@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 url = window.location.origin + '/cmd/api/preview?path=.myclaw/__MY_ARTIFACTS__.json';
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.198",
3
+ "version": "1.0.199",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {