vite-plugin-opencode-assistant 1.0.18 → 1.0.20
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.
- package/es/core/proxy-server.js +5 -5
- package/lib/client.js +3356 -2700
- package/lib/core/proxy-server.js +5 -5
- package/package.json +4 -4
package/es/core/proxy-server.js
CHANGED
|
@@ -151,19 +151,19 @@ function generateBridgeScript(options) {
|
|
|
151
151
|
const jsonStr = JSON.stringify({
|
|
152
152
|
nodeContext: {
|
|
153
153
|
"filePath": {
|
|
154
|
-
"value": filePath,
|
|
154
|
+
"value": filePath ?? '\u672A\u77E5',
|
|
155
155
|
"desc": "\u6E90\u7801\u6587\u4EF6\u8DEF\u5F84"
|
|
156
156
|
},
|
|
157
157
|
"line": {
|
|
158
|
-
"value": line,
|
|
158
|
+
"value": line ?? '\u672A\u77E5',
|
|
159
159
|
"desc": "\u4EE3\u7801\u6240\u5728\u884C\u53F7"
|
|
160
160
|
},
|
|
161
161
|
"column": {
|
|
162
|
-
"value": column,
|
|
162
|
+
"value": column ?? '\u672A\u77E5',
|
|
163
163
|
"desc": "\u4EE3\u7801\u6240\u5728\u5217\u53F7"
|
|
164
164
|
},
|
|
165
165
|
"description": {
|
|
166
|
-
"value": description,
|
|
166
|
+
"value": description ?? '\u672A\u77E5',
|
|
167
167
|
"desc": "DOM \u5143\u7D20\u9009\u62E9\u5668"
|
|
168
168
|
},
|
|
169
169
|
"innerText": {
|
|
@@ -171,7 +171,7 @@ function generateBridgeScript(options) {
|
|
|
171
171
|
"desc": "DOM \u5143\u7D20\u5185\u90E8\u6587\u672C"
|
|
172
172
|
},
|
|
173
173
|
"selectAt": {
|
|
174
|
-
"value": previewPageUrl || '',
|
|
174
|
+
"value": previewPageUrl || '\u672A\u77E5',
|
|
175
175
|
"desc": "\u7528\u6237\u9009\u4E2D\u8282\u70B9\u65F6\u7684\u9875\u9762 URL"
|
|
176
176
|
}
|
|
177
177
|
}
|