@aiyiran/myclaw 1.1.200 → 1.1.201
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.
|
@@ -248,8 +248,7 @@
|
|
|
248
248
|
|
|
249
249
|
// 展示间跳转(发布按钮左边)
|
|
250
250
|
var showcaseLink = document.createElement('a');
|
|
251
|
-
|
|
252
|
-
showcaseLink.href = 'https://www.yiranlaoshi.com/studio?claw=' + _scClaw + '&my=' + _scClaw;
|
|
251
|
+
showcaseLink.href = getMyProjectsUrl();
|
|
253
252
|
showcaseLink.target = '_blank';
|
|
254
253
|
showcaseLink.textContent = '我的项目';
|
|
255
254
|
showcaseLink.style.cssText = 'cursor:pointer;padding:2px 10px;border-radius:3px;font-size:12px;background:rgba(255,255,255,0.08);transition:background 0.15s;color:#cdd6f4;text-decoration:none;';
|
|
@@ -337,6 +336,11 @@
|
|
|
337
336
|
return agent === 'main' ? 'workspace' : 'workspace-' + agent;
|
|
338
337
|
}
|
|
339
338
|
|
|
339
|
+
function getMyProjectsUrl() {
|
|
340
|
+
var claw = lastKnownClawName || '';
|
|
341
|
+
return 'https://www.yiranlaoshi.com/studio?claw=' + claw + '&my=' + claw;
|
|
342
|
+
}
|
|
343
|
+
|
|
340
344
|
function fetchArtifactsFromLocalAPI(wsPrefix) {
|
|
341
345
|
var url = MYCLAW_API_BASE + '/api/artifacts?workspace=' + encodeURIComponent(wsPrefix);
|
|
342
346
|
console.log('[myclaw-artifacts] [1/3] 尝试 LocalAPI:', url);
|
|
@@ -2293,8 +2297,7 @@
|
|
|
2293
2297
|
|
|
2294
2298
|
var showcaseBtn = document.createElement('a');
|
|
2295
2299
|
var cfgAgent = getAgentName() || 'main';
|
|
2296
|
-
|
|
2297
|
-
showcaseBtn.href = 'https://www.yiranlaoshi.com/showcase?workspace=' + cfgWs;
|
|
2300
|
+
showcaseBtn.href = getMyProjectsUrl();
|
|
2298
2301
|
showcaseBtn.target = '_blank';
|
|
2299
2302
|
showcaseBtn.textContent = '\uD83D\uDC41 \u67E5\u770B' + cfgAgent + '\u9879\u76EE\u96C6';
|
|
2300
2303
|
showcaseBtn.style.cssText = [
|