~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
105 lines · 3.7 KB Raw History
{
	"$type": "place.hud.view",
	"method": "dev.knotless.getFeed",
	"app": "knotless",
	"service": "did:web:knotless.dev#knotless_appview",
	"description": "What is happening on knotless: repositories made, pushes, pulls, issues and comments, everyone's or one account's (params: { actor?: a DID, kind?: \"pushes\", \"pulls\", \"issues\" or \"comments\" })",
	"launch": [{ "title": "Activity", "params": { "actor": { "$me": "did" } } }, { "title": "Everyone’s activity" }],
	"origins": ["https://cdn.bsky.app", "https://knotless.dev"],
	"thumbnails": [{ "from": "https://cdn.bsky.app/img/avatar/plain/", "to": "https://cdn.bsky.app/img/avatar_thumbnail/plain/" }],
	"query": {
		"items": "events",
		"cursor": "cursor",
		"latest": "createdAt",
		"summary": { "noun": ["event", "events"], "label": { "$": ["action.title", "repo.name"] } },
		"layout": {
			"component": "List",
			"props": { "items": { "$": "items" }, "style": "rows", "empty": "Nothing has happened yet", "open": false },
			"children": [
				{
					"component": "Row",
					"props": { "gap": "sm", "align": "center" },
					"children": [
						{ "component": "Image", "props": { "src": { "$": "actor.avatar" }, "alt": { "$": "actor.handle" }, "size": "avatar" } },
						{
							"component": "Link",
							"props": { "label": { "$": "actor.handle" }, "href": { "$": "actor.did" } }
						},
						{
							"component": "Text",
							"props": {
								"value": { "$": "action.$type" },
								"style": "muted",
								"words": {
									"dev.knotless.getFeed#created": "created",
									"dev.knotless.getFeed#pushed": "pushed to",
									"dev.knotless.getFeed#deleted": "deleted",
									"dev.knotless.getFeed#opened": "opened",
									"dev.knotless.getFeed#commented": "commented on",
									"dev.knotless.getFeed#changed": "changed",
									"dev.knotless.getFeed#starred": "starred"
								}
							}
						},
						{ "component": "Text", "props": { "value": { "$": "action.ref" }, "style": "mono" } },
						{
							"component": "Link",
							"props": {
								"label": { "$": "action.title" },
								"open": {
									"query": "dev.knotless.getThread",
									"params": {
										"repo": { "$atUri": [{ "$": "repo.did" }, "dev.knotless.repo", { "$": "repo.name" }] },
										"uri": { "$": "action.subject" },
										"filesOnly": true
									}
								}
							}
						},
						{
							"component": "State",
							"props": {
								"value": { "$": ["action.state", "action.subjectState"] },
								"roles": { "open": "open-issue", "merged": "merged", "closed": "closed-issue" },
								"style": "mark"
							}
						}
					]
				},
				{
					"component": "Row",
					"props": { "gap": "sm", "align": "center" },
					"children": [
						{
							"component": "Link",
							"props": {
								"label": { "$": "repo.name" },
								"open": {
									"query": "dev.knotless.getRepo",
									"params": { "repo": { "$atUri": [{ "$": "repo.did" }, "dev.knotless.repo", { "$": "repo.name" }] } }
								}
							}
						},
						{ "component": "Text", "props": { "value": { "$": "repo.handle" }, "prefix": "by ", "style": "muted" } },
						{ "component": "Time", "props": { "value": { "$": "createdAt" } } }
					]
				},
				{ "component": "Text", "props": { "value": { "$": "action.text" }, "style": "muted", "clamp": 3 } },
				{
					"component": "List",
					"props": { "items": { "$": "action.commits" }, "style": "rows", "open": false },
					"children": [
						{
							"component": "Row",
							"props": { "gap": "sm", "align": "center" },
							"children": [
								{ "component": "Text", "props": { "value": { "$": "sha" }, "chars": 7, "style": "mono" } },
								{ "component": "Text", "props": { "value": { "$": "message" }, "clamp": 1 } }
							]
						}
					]
				}
			]
		}
	}
}