Draft
Conversation
Copilot
AI
changed the title
[WIP] Generate DSL for high-fidelity widget restoration
No changes: Task targets wrong repository
Feb 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The request asks to generate an iOS widget DSL with
aiwidget/bundle@1schema,widgetFamily: "systemSmall", and SwiftUI-style components (Row,Column,Text,Icon). This repository ismcp-chrome- a Chrome browser automation MCP server with no iOS widget rendering system.Findings
systemSmall,catalogId: "aiwidget/widget_catalog_v1") not present in this codebaseNo Changes Made
This PR contains no code changes as the requested functionality does not exist in this repository.
Action Needed
Clarify either:
Original prompt
看下这个截图,然后看下当前项目的schema,看能否生成一个DSL来还原出图片的小组件,下面是之前生成的,但是还原度太差了,我要至少能90%还原出图片的小组件,你先仔细了解项目中的DSL to 小组件的原理和实现,然后帮我重新生成DSL
{
"bundleId" : "b44d6a7e-8204-41c5-9201-ab7607713933",
"category" : "classic",
"createdAt" : "2026-02-04T08:11:53.982Z",
"description" : "深色地平线风格天气卡片(预览专用)",
"featuredRank" : 100,
"id" : "df1ba9d4-66e7-4e5f-afa5-d5a12c02267f",
"latestBundleVersion" : 1,
"preview" : {
"bundle" : {
"meta" : {
"createdAt" : "2026-02-04T00:00:00.000Z",
"id" : "b44d6a7e-8204-41c5-9201-ab7607713933",
"name" : "经典 II | 地平线",
"origin" : "system",
"previewOnly" : true,
"updatedAt" : "2026-02-04T00:00:00.000Z"
},
"renderSpec" : {
"catalogId" : "aiwidget/widget_catalog_v1",
"surfaces" : [
{
"components" : [
{
"component" : {
"Row" : {
"alignment" : "center",
"children" : {
"explicitList" : [
"cloud_small",
"col_small_text",
"spacer_small_header",
"col_small_temp"
]
},
"spacing" : 12
}
},
"id" : "root_small",
"modifiers" : [
{
"all" : 16,
"type" : "padding"
},
{
"gradient" : {
"colors" : [
{
"literalString" : "#2B2B36"
},
{
"literalString" : "#151520"
}
],
"endPoint" : "bottomTrailing",
"startPoint" : "topLeading",
"type" : "linear"
},
"opacity" : 1,
"type" : "background"
},
{
"type" : "cornerRadius",
"value" : 24
},
{
"color" : {
"literalString" : "#55"
},
"radius" : 14,
"type" : "shadow",
"x" : 0,
"y" : 6
}
]
},
{
"component" : {
"Icon" : {
"name" : {
"literalString" : "cloud.fill"
},
"renderingMode" : "template",
"size" : {
"literalNumber" : 44
},
"tintColor" : {
"literalString" : "#FFFFFF"
}
}
},
"id" : "cloud_small"
},
{
"component" : {
"Text" : {
"color" : {
"literalString" : "#FFFFFF"
},
"text" : {
"literalString" : "南山区",
"path" : "/location"
},
"usageHint" : "h2"
}
},
"id" : "text_small_location"
},
{
"component" : {
"Text" : {
"color" : {
"literalString" : "#D6D6DC"
},
"text" : {
"literalString" : "大部多云",
"path" : "/condition"
},
"usageHint" : "caption"
}
},
"id" : "text_small_condition"
},
{
"component" : {
"Text" : {
"color" : {
"literalString" : "#D6D6DC"
},
"text" : {
"literalString" : "紫外线指数: 6",
"path" : "/uvDisplay"
},
"usageHint" : "caption"
}
},
"id" : "text_small_uv"
...
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.