Monorepo for Tangled tangled.org
2

Configure Feed

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

lexicons: `git.getEntry`

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

author
Seongmin Lee
committer
Tangled
date (Jun 11, 2026, 10:52 AM +0300) commit c8067b1d parent c90cec2e change-id oxvsvtmr
+124 -128
-14
api/tangled/tempdefs.go
··· 10 10 11 11 const () 12 12 13 - // GitTempDefs_Blob is a "blob" in the sh.tangled.git.temp.defs schema. 14 - // 15 - // blob metadata. This object doesn't include the blob content 16 - type GitTempDefs_Blob struct { 17 - LastCommit *GitTempDefs_Commit `json:"lastCommit" cborgen:"lastCommit"` 18 - Mode string `json:"mode" cborgen:"mode"` 19 - // name: The file name 20 - Name string `json:"name" cborgen:"name"` 21 - // size: File size in bytes 22 - Size int64 `json:"size" cborgen:"size"` 23 - // submodule: Submodule information if path is a submodule 24 - Submodule *GitTempDefs_Submodule `json:"submodule,omitempty" cborgen:"submodule,omitempty"` 25 - } 26 - 27 13 // GitTempDefs_Branch is a "branch" in the sh.tangled.git.temp.defs schema. 28 14 type GitTempDefs_Branch struct { 29 15 // commit: hydrated commit object
-36
api/tangled/tempgetEntity.go
··· 1 - // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 - 3 - package tangled 4 - 5 - // schema: sh.tangled.git.temp.getEntity 6 - 7 - import ( 8 - "context" 9 - 10 - "github.com/bluesky-social/indigo/lex/util" 11 - ) 12 - 13 - const ( 14 - GitTempGetEntityNSID = "sh.tangled.git.temp.getEntity" 15 - ) 16 - 17 - // GitTempGetEntity calls the XRPC method "sh.tangled.git.temp.getEntity". 18 - // 19 - // path: path of the entity 20 - // ref: Git reference (branch, tag, or commit SHA) 21 - // repo: DID of the repository 22 - func GitTempGetEntity(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*GitTempDefs_Blob, error) { 23 - var out GitTempDefs_Blob 24 - 25 - params := map[string]interface{}{} 26 - params["path"] = path 27 - if ref != "" { 28 - params["ref"] = ref 29 - } 30 - params["repo"] = repo 31 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getEntity", params, nil, &out); err != nil { 32 - return nil, err 33 - } 34 - 35 - return &out, nil 36 - }
+47
api/tangled/tempgetEntry.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package tangled 4 + 5 + // schema: sh.tangled.git.temp.getEntry 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/lex/util" 11 + ) 12 + 13 + const ( 14 + GitTempGetEntryNSID = "sh.tangled.git.temp.getEntry" 15 + ) 16 + 17 + // GitTempGetEntry_Output is the output of a sh.tangled.git.temp.getEntry call. 18 + type GitTempGetEntry_Output struct { 19 + LastCommit *GitTempDefs_Commit `json:"lastCommit,omitempty" cborgen:"lastCommit,omitempty"` 20 + Mode string `json:"mode" cborgen:"mode"` 21 + // name: The file name 22 + Name string `json:"name" cborgen:"name"` 23 + Oid string `json:"oid" cborgen:"oid"` 24 + // submodule: Submodule information if path is a submodule 25 + Submodule *GitTempDefs_Submodule `json:"submodule,omitempty" cborgen:"submodule,omitempty"` 26 + } 27 + 28 + // GitTempGetEntry calls the XRPC method "sh.tangled.git.temp.getEntry". 29 + // 30 + // path: path of the entity 31 + // ref: Git revision (branch, tag, or commit id) 32 + // repo: DID of the repository 33 + func GitTempGetEntry(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*GitTempGetEntry_Output, error) { 34 + var out GitTempGetEntry_Output 35 + 36 + params := map[string]interface{}{} 37 + params["path"] = path 38 + if ref != "" { 39 + params["ref"] = ref 40 + } 41 + params["repo"] = repo 42 + if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp.getEntry", params, nil, &out); err != nil { 43 + return nil, err 44 + } 45 + 46 + return &out, nil 47 + }
-27
lexicons/git/temp/defs.json
··· 2 2 "lexicon": 1, 3 3 "id": "sh.tangled.git.temp.defs", 4 4 "defs": { 5 - "blob": { 6 - "type": "object", 7 - "description": "blob metadata. This object doesn't include the blob content", 8 - "required": ["name", "mode", "size", "lastCommit"], 9 - "properties": { 10 - "name": { 11 - "type": "string", 12 - "description": "The file name" 13 - }, 14 - "mode": { 15 - "type": "string" 16 - }, 17 - "size": { 18 - "type": "integer", 19 - "description": "File size in bytes" 20 - }, 21 - "lastCommit": { 22 - "type": "ref", 23 - "ref": "#commit" 24 - }, 25 - "submodule": { 26 - "type": "ref", 27 - "ref": "#submodule", 28 - "description": "Submodule information if path is a submodule" 29 - } 30 - } 31 - }, 32 5 "branch": { 33 6 "type": "object", 34 7 "required": ["name", "commit"],
-51
lexicons/git/temp/getEntity.json
··· 1 - { 2 - "lexicon": 1, 3 - "id": "sh.tangled.git.temp.getEntity", 4 - "defs": { 5 - "main": { 6 - "type": "query", 7 - "description": "get metadata of blob by ref and path", 8 - "parameters": { 9 - "type": "params", 10 - "required": ["repo", "path"], 11 - "properties": { 12 - "repo": { 13 - "type": "string", 14 - "format": "did", 15 - "description": "DID of the repository" 16 - }, 17 - "ref": { 18 - "type": "string", 19 - "description": "Git reference (branch, tag, or commit SHA)", 20 - "default": "HEAD" 21 - }, 22 - "path": { 23 - "type": "string", 24 - "description": "path of the entity" 25 - } 26 - } 27 - }, 28 - "output": { 29 - "encoding": "application/json", 30 - "schema": { 31 - "type": "ref", 32 - "ref": "sh.tangled.git.temp.defs#blob" 33 - } 34 - }, 35 - "errors": [ 36 - { 37 - "name": "RepoNotFound", 38 - "description": "Repository not found or access denied" 39 - }, 40 - { 41 - "name": "BlobNotFound", 42 - "description": "Blob not found" 43 - }, 44 - { 45 - "name": "InvalidRequest", 46 - "description": "Invalid request parameters" 47 - } 48 - ] 49 - } 50 - } 51 - }
+77
lexicons/git/temp/getEntry.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "sh.tangled.git.temp.getEntry", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "get metadata of blob by ref and path", 8 + "parameters": { 9 + "type": "params", 10 + "required": ["repo", "path"], 11 + "properties": { 12 + "repo": { 13 + "type": "string", 14 + "format": "did", 15 + "description": "DID of the repository" 16 + }, 17 + "ref": { 18 + "type": "string", 19 + "description": "Git revision (branch, tag, or commit id)", 20 + "default": "HEAD" 21 + }, 22 + "path": { 23 + "type": "string", 24 + "description": "path of the entity" 25 + } 26 + } 27 + }, 28 + "output": { 29 + "encoding": "application/json", 30 + "schema": { 31 + "type": "object", 32 + "required": ["name", "mode", "oid"], 33 + "properties": { 34 + "name": { 35 + "type": "string", 36 + "description": "The file name" 37 + }, 38 + "mode": { 39 + "type": "string", 40 + "enum": ["0040000", "0100644", "0100664", "0100755", "0120000", "0160000"] 41 + }, 42 + "oid": { 43 + "type": "string" 44 + }, 45 + "lastCommit": { 46 + "type": "ref", 47 + "ref": "sh.tangled.git.temp.defs#commit" 48 + }, 49 + "submodule": { 50 + "type": "ref", 51 + "ref": "sh.tangled.git.temp.defs#submodule", 52 + "description": "Submodule information if path is a submodule" 53 + } 54 + } 55 + } 56 + }, 57 + "errors": [ 58 + { 59 + "name": "RepoNotFound", 60 + "description": "Repository not found or access denied" 61 + }, 62 + { 63 + "name": "RefNotFound", 64 + "description": "Git reference not found" 65 + }, 66 + { 67 + "name": "EntryNotFound", 68 + "description": "Entry not found" 69 + }, 70 + { 71 + "name": "InvalidRequest", 72 + "description": "Invalid request parameters" 73 + } 74 + ] 75 + } 76 + } 77 + }