@aiyiran/myclaw 1.1.192 → 1.1.194
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/assets/myclaw-artifacts.js +2 -3
- package/injects/inject-minimax.js +22 -2
- package/package.json +1 -1
- package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/1.html +1756 -0
- package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__demo__.html +1756 -0
- package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__student-view__.html +77 -0
- package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__student__.json +60 -0
- package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__teacher-view__.html +52 -0
- package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/__teacher__.json +45 -0
- package//345/234/260/344/270/213/345/237/216/345/244/247/345/206/222/351/231/251/index.html +150 -0
- package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__demo__.html +1531 -0
- package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__student-view__.html +77 -0
- package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__student__.json +60 -0
- package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__teacher-view__.html +52 -0
- package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/__teacher__.json +45 -0
- package//346/210/221/347/232/204/345/217/254/345/224/244/345/233/276/351/211/264/357/274/232/346/215/242/344/270/273/351/242/230/346/215/242/345/215/241/346/261/240/index.html +150 -0
- package//347/264/257/345/220/220/350/241/200/345/220/216/347/232/204/346/200/273/347/273/223.md +196 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/1.jpg +0 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/2.jpg +0 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/3.jpg +0 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/4.jpg +0 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/AI/344/270/215/347/224/250/347/234/213/347/232/204/345/216/237/345/247/213/346/217/220/347/244/272/350/257/215/344/272/272/347/261/273/347/234/213/__/351/200/211/351/242/230/345/274/225/346/223/216__.html +589 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/AI/344/270/215/347/224/250/347/234/213/347/232/204/345/216/237/345/247/213/346/217/220/347/244/272/350/257/215/344/272/272/347/261/273/347/234/213//345/216/237/345/247/213/346/217/220/347/244/272/350/257/215.md +125 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/AI/344/270/215/347/224/250/347/234/213/347/232/204/345/216/237/345/247/213/346/217/220/347/244/272/350/257/215/344/272/272/347/261/273/347/234/213//350/200/201/350/202/226/347/210/206/346/254/276/351/200/211/351/242/230/345/274/225/346/223/216.md +179 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/AI/344/270/215/347/224/250/347/234/213/347/232/204/345/216/237/345/247/213/346/217/220/347/244/272/350/257/215/344/272/272/347/261/273/347/234/213//350/200/201/350/202/226/351/207/221/345/217/245/345/272/223v1.md +594 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__demo__.html +588 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__student-view__.html +77 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__student__.json +54 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__teacher-view__.html +52 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/__teacher__.json +46 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220/index.html +148 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//344/270/211/344/270/252/350/247/206/351/242/221/345/216/237/345/247/213/345/206/205/345/256/271/1-/344/273/200/344/271/210/346/230/257/344/274/230/347/247/200/347/232/204/345/255/251/345/255/220+/350/223/235/346/230/237/344/277/261/344/271/220/351/203/250/345/210/233/345/212/236+/347/210/266/346/257/215/345/244/251/350/201/214/357/274/210/351/200/220/345/255/227/347/250/277/357/274/211.md +48 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//344/270/211/344/270/252/350/247/206/351/242/221/345/216/237/345/247/213/345/206/205/345/256/271/2-/350/277/207/347/250/213/345/206/231/344/275/234/350/257/276/347/250/213/345/210/206/344/272/253/357/274/210/351/200/220/345/255/227/347/250/277/357/274/211.md +27 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//344/270/211/344/270/252/350/247/206/351/242/221/345/216/237/345/247/213/345/206/205/345/256/271/3-/350/202/262/345/204/277/345/273/272/350/256/256/357/274/232/345/242/236/351/207/217/344/277/241/346/201/257+/346/214/207/345/274/225vs/345/216/237/345/210/231+/345/210/206/344/272/253/347/224/237/346/264/273/347/273/206/350/212/202/357/274/210/351/200/220/345/255/227/347/250/277/357/274/211.md +204 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//344/270/211/344/270/252/350/247/206/351/242/221/345/216/237/345/247/213/345/206/205/345/256/271//346/213/206/345/210/206/345/211/215/345/275/225/351/237/263/346/226/207/346/234/254.md +267 -0
- package//350/223/235/346/230/237/345/276/256/344/277/241/347/237/255/350/247/206/351/242/221/345/210/206/346/236/220//350/264/242/345/212/241/345/210/206/346/236/220.html +411 -0
- package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__demo__.html +411 -0
- package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__student-view__.html +77 -0
- package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__student__.json +54 -0
- package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__teacher-view__.html +52 -0
- package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/__teacher__.json +50 -0
- package//350/264/246/345/215/225/345/210/206/346/236/220/345/212/251/346/211/213/index.html +148 -0
- package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__demo__.html +842 -0
- package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__student-view__.html +77 -0
- package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__student__.json +60 -0
- package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__teacher-view__.html +52 -0
- package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/__teacher__.json +45 -0
- package//351/200/203/345/207/272/350/277/267/345/256/253/357/274/232/346/210/221/346/235/245/345/256/232/350/247/204/345/210/231/index.html +150 -0
|
@@ -249,8 +249,7 @@
|
|
|
249
249
|
// 展示间跳转(发布按钮左边)
|
|
250
250
|
var showcaseLink = document.createElement('a');
|
|
251
251
|
var _scClaw = lastKnownClawName || '';
|
|
252
|
-
|
|
253
|
-
showcaseLink.href = 'https://www.yiranlaoshi.com/showcase?claw=' + _scClaw + '&workspace=' + _scWs + '&clawName=' + _scClaw;
|
|
252
|
+
showcaseLink.href = 'https://www.yiranlaoshi.com/creator?claw=' + _scClaw + '&my=' + _scClaw;
|
|
254
253
|
showcaseLink.target = '_blank';
|
|
255
254
|
showcaseLink.textContent = '我的项目';
|
|
256
255
|
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;';
|
|
@@ -759,7 +758,7 @@
|
|
|
759
758
|
var assetExt = (asset.path || '').split('.').pop().toLowerCase();
|
|
760
759
|
var isCSV = assetExt === 'csv';
|
|
761
760
|
var isPDF = assetExt === 'pdf';
|
|
762
|
-
var CODE_EXTS = ['ts', 'tsx', 'py', 'sh', 'bash', 'go', 'java', 'c', 'cpp', 'h', 'rs', 'rb', 'php', 'swift', 'kt', 'vue'];
|
|
761
|
+
var CODE_EXTS = ['ts', 'tsx', 'py', 'sh', 'bash', 'go', 'java', 'c', 'cpp', 'h', 'rs', 'rb', 'php', 'swift', 'kt', 'vue', 'log'];
|
|
763
762
|
var isCode = CODE_EXTS.indexOf(assetExt) !== -1;
|
|
764
763
|
var OFFICE_EXTS = ['ppt', 'pptx', 'doc', 'docx', 'xls', 'xlsx'];
|
|
765
764
|
var isOffice = OFFICE_EXTS.indexOf(assetExt) !== -1;
|
|
@@ -30,7 +30,7 @@ const PROVIDER_ID = "minimax";
|
|
|
30
30
|
const DEFAULT_MODEL = "minimax/MiniMax-M2.7-highspeed";
|
|
31
31
|
|
|
32
32
|
// ── zai (智谱 GLM) 配置:仅 --beta 模式下附带注入 ──
|
|
33
|
-
const DEFAULT_ZAI_KEY = "
|
|
33
|
+
const DEFAULT_ZAI_KEY = "d353aa76b4ac415b89feb867de6ea870.blKBNpJW0L8dyrH6";
|
|
34
34
|
const ZAI_BETA_MODELS = [
|
|
35
35
|
{
|
|
36
36
|
id: "glm-5.2",
|
|
@@ -49,6 +49,24 @@ const ZAI_BETA_MODELS = [
|
|
|
49
49
|
cost: { input: 1.2, output: 4, cacheRead: 0.24, cacheWrite: 0 },
|
|
50
50
|
contextWindow: 202800,
|
|
51
51
|
maxTokens: 131100
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
id: "glm-5",
|
|
55
|
+
name: "GLM-5",
|
|
56
|
+
reasoning: true,
|
|
57
|
+
input: ["text"],
|
|
58
|
+
cost: { input: 1.2, output: 4, cacheRead: 0.24, cacheWrite: 0 },
|
|
59
|
+
contextWindow: 202800,
|
|
60
|
+
maxTokens: 131100
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "glm-4.7",
|
|
64
|
+
name: "GLM-4.7",
|
|
65
|
+
reasoning: true,
|
|
66
|
+
input: ["text"],
|
|
67
|
+
cost: { input: 1.2, output: 4, cacheRead: 0.24, cacheWrite: 0 },
|
|
68
|
+
contextWindow: 202800,
|
|
69
|
+
maxTokens: 131100
|
|
52
70
|
}
|
|
53
71
|
];
|
|
54
72
|
|
|
@@ -188,6 +206,8 @@ function run(cliArgs) {
|
|
|
188
206
|
};
|
|
189
207
|
config.agents.defaults.models["zai/glm-5.2"] = {};
|
|
190
208
|
config.agents.defaults.models["zai/glm-5-turbo"] = {};
|
|
209
|
+
config.agents.defaults.models["zai/glm-5"] = {};
|
|
210
|
+
config.agents.defaults.models["zai/glm-4.7"] = {};
|
|
191
211
|
}
|
|
192
212
|
|
|
193
213
|
// ── Step 3:--default 设默认模型 ──
|
|
@@ -346,7 +366,7 @@ CREATE TABLE IF NOT EXISTS auth_profile_state (
|
|
|
346
366
|
console.log('');
|
|
347
367
|
console.log('✅ MiniMax 注入完成');
|
|
348
368
|
console.log(' 默认模型: ' + (setDefault ? DEFAULT_MODEL : '(未修改)'));
|
|
349
|
-
console.log(' 备选模型: minimax/MiniMax-M2.7-highspeed' + (betaMode ? ' + zai/glm-5.2 + zai/glm-5-turbo' : ''));
|
|
369
|
+
console.log(' 备选模型: minimax/MiniMax-M2.7-highspeed' + (betaMode ? ' + zai/glm-5.2 + zai/glm-5-turbo + zai/glm-5 + zai/glm-4.7' : ''));
|
|
350
370
|
console.log(' Agent: ' + okCount + ' 个写入,' + skipCount + ' 个跳过');
|
|
351
371
|
if (betaMode) console.log(' 其他 provider 已清除 (保留 minimax + zai)');
|
|
352
372
|
else if (onlyMode) console.log(' 其他 provider 已清除');
|