@aiyiran/myclaw 1.0.198 → 1.0.199
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.
|
@@ -182,7 +182,9 @@
|
|
|
182
182
|
|
|
183
183
|
// ═══ 请求数据 ═══
|
|
184
184
|
function fetchArtifacts(contentEl) {
|
|
185
|
-
var
|
|
185
|
+
var agentName = getAgentName();
|
|
186
|
+
var wsPrefix = agentName === 'main' ? 'workspace' : 'workspace-' + agentName;
|
|
187
|
+
var url = window.location.origin + '/cmd/api/preview?path=' + wsPrefix + '/.myclaw/__MY_ARTIFACTS__.json';
|
|
186
188
|
fetch(url)
|
|
187
189
|
.then(function (res) {
|
|
188
190
|
if (!res.ok) throw new Error('HTTP ' + res.status);
|