@tscircuit/runframe 0.0.1176 → 0.0.1178
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/dist/{chunk-7Q46SAZY.js → chunk-M6QM527S.js} +23 -17
- package/dist/preview.js +1 -1
- package/dist/runner.js +1 -1
- package/dist/standalone-preview.min.js +14 -14
- package/dist/standalone.min.js +16 -16
- package/package.json +2 -2
|
@@ -1454,7 +1454,7 @@ var useErrorTelemetry = ({
|
|
|
1454
1454
|
};
|
|
1455
1455
|
|
|
1456
1456
|
// package.json
|
|
1457
|
-
var version = "0.0.
|
|
1457
|
+
var version = "0.0.1177";
|
|
1458
1458
|
var package_default = {
|
|
1459
1459
|
name: "@tscircuit/runframe",
|
|
1460
1460
|
main: "dist/preview.js",
|
|
@@ -1505,7 +1505,7 @@ var package_default = {
|
|
|
1505
1505
|
"@tscircuit/assembly-viewer": "^0.0.5",
|
|
1506
1506
|
"@tscircuit/checks": "^0.0.78",
|
|
1507
1507
|
"@tscircuit/create-snippet-url": "^0.0.9",
|
|
1508
|
-
"@tscircuit/eval": "^0.0.
|
|
1508
|
+
"@tscircuit/eval": "^0.0.443",
|
|
1509
1509
|
"@tscircuit/fake-snippets": "^0.0.122",
|
|
1510
1510
|
"@tscircuit/file-server": "^0.0.32",
|
|
1511
1511
|
"@tscircuit/footprinter": "^0.0.236",
|
|
@@ -4053,20 +4053,20 @@ import {
|
|
|
4053
4053
|
useState as useState18
|
|
4054
4054
|
} from "react";
|
|
4055
4055
|
import { Fragment as Fragment7, jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4056
|
-
var DYNAMIC_FILE_EXTENSIONS2 = [".tsx", ".ts", ".jsx", ".js", ".json"];
|
|
4057
4056
|
async function getFilesFromServer() {
|
|
4058
4057
|
const response = await fetch(`${API_BASE}/files/list`);
|
|
4059
4058
|
const { file_list } = await response.json();
|
|
4060
4059
|
const fileMap = /* @__PURE__ */ new Map();
|
|
4061
4060
|
for (const file of file_list) {
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4061
|
+
const fileResponse = await fetch(
|
|
4062
|
+
`${API_BASE}/files/get?file_path=${encodeURIComponent(file.file_path)}`
|
|
4063
|
+
);
|
|
4064
|
+
const fileData = await fileResponse.json();
|
|
4065
|
+
if (fileData.file?.text_content || fileData.file?.binary_content_b64) {
|
|
4066
|
+
fileMap.set(file.file_path, {
|
|
4067
|
+
text_content: fileData.file.text_content,
|
|
4068
|
+
binary_content_b64: fileData.file.binary_content_b64
|
|
4069
|
+
});
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
4072
|
return fileMap;
|
|
@@ -4134,13 +4134,19 @@ ${globalError}`);
|
|
|
4134
4134
|
}
|
|
4135
4135
|
}).json();
|
|
4136
4136
|
const bugReportId = createResponse.bug_report.bug_report_id;
|
|
4137
|
-
for (const [filePath,
|
|
4137
|
+
for (const [filePath, fileContent] of filesFromServer.entries()) {
|
|
4138
|
+
const uploadPayload = {
|
|
4139
|
+
bug_report_id: bugReportId,
|
|
4140
|
+
file_path: filePath
|
|
4141
|
+
};
|
|
4142
|
+
if (fileContent.text_content) {
|
|
4143
|
+
uploadPayload.content_text = fileContent.text_content;
|
|
4144
|
+
}
|
|
4145
|
+
if (fileContent.binary_content_b64) {
|
|
4146
|
+
uploadPayload.content_base64 = fileContent.binary_content_b64;
|
|
4147
|
+
}
|
|
4138
4148
|
await registryKy2.post("bug_reports/upload_file", {
|
|
4139
|
-
json:
|
|
4140
|
-
bug_report_id: bugReportId,
|
|
4141
|
-
file_path: filePath,
|
|
4142
|
-
content_text: String(fileContents ?? "")
|
|
4143
|
-
}
|
|
4149
|
+
json: uploadPayload
|
|
4144
4150
|
});
|
|
4145
4151
|
}
|
|
4146
4152
|
const bugReportUrl = buildBugReportUrl(bugReportId);
|
package/dist/preview.js
CHANGED
package/dist/runner.js
CHANGED