vite-plugin-opencode-assistant 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,16 +149,31 @@ function generateBridgeScript(options) {
149
149
  const displayText = '@' + selector + (textPreview ? '(' + textPreview + ')' : '');
150
150
 
151
151
  const jsonStr = JSON.stringify({
152
- pageContext: {
153
- url: previewPageUrl || '',
154
- title: previewPageTitle || '',
155
- },
156
152
  nodeContext: {
157
- filePath,
158
- line,
159
- column,
160
- description,
161
- innerText: innerText ? innerText.substring(0, 500) : ''
153
+ "filePath": {
154
+ "value": filePath ?? '\u672A\u77E5',
155
+ "desc": "\u6E90\u7801\u6587\u4EF6\u8DEF\u5F84"
156
+ },
157
+ "line": {
158
+ "value": line ?? '\u672A\u77E5',
159
+ "desc": "\u4EE3\u7801\u6240\u5728\u884C\u53F7"
160
+ },
161
+ "column": {
162
+ "value": column ?? '\u672A\u77E5',
163
+ "desc": "\u4EE3\u7801\u6240\u5728\u5217\u53F7"
164
+ },
165
+ "description": {
166
+ "value": description ?? '\u672A\u77E5',
167
+ "desc": "DOM \u5143\u7D20\u9009\u62E9\u5668"
168
+ },
169
+ "innerText": {
170
+ "value": innerText ? innerText.substring(0, 500) : '',
171
+ "desc": "DOM \u5143\u7D20\u5185\u90E8\u6587\u672C"
172
+ },
173
+ "selectAt": {
174
+ "value": previewPageUrl || '\u672A\u77E5',
175
+ "desc": "\u7528\u6237\u9009\u4E2D\u8282\u70B9\u65F6\u7684\u9875\u9762 URL"
176
+ }
162
177
  }
163
178
  });
164
179