@aiyiran/myclaw 1.1.66 → 1.1.67

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.
@@ -478,7 +478,6 @@
478
478
  'TOOLS.md',
479
479
  'SOUL.md',
480
480
  'MEMORY.md',
481
- 'IDENTITY.md',
482
481
  'HEARTBEAT.md',
483
482
  'BOOTSTRAP.md',
484
483
  'AGENTS.md'
@@ -487,7 +486,8 @@
487
486
  // 黑名单目录:隐藏特定的系统目录
488
487
  var DIR_BLACKLIST = [
489
488
  'memory/',
490
- '.openclaw/'
489
+ '.openclaw/',
490
+ '.git/'
491
491
  ];
492
492
 
493
493
  if (!showHiddenArtifacts) {
@@ -1615,7 +1615,11 @@ btn.addEventListener("click", function () {
1615
1615
  form.appendChild(lockRow);
1616
1616
 
1617
1617
  // 批量删除伙伴弹框
1618
- var MYCLAW_API_BASE_DEL = 'http://127.0.0.1:18800';
1618
+ var MYCLAW_API_BASE_DEL = (function () {
1619
+ var h = window.location.hostname;
1620
+ var isRemote = h === 'claw.yiranlaoshi.com' || h.endsWith('.kekouen.cn');
1621
+ return isRemote ? window.location.origin + '/sync' : 'http://127.0.0.1:18800';
1622
+ })();
1619
1623
 
1620
1624
  function fmtDate(ms) {
1621
1625
  if (!ms) return '未知';
package/index.js CHANGED
@@ -1851,7 +1851,7 @@ function runSyncTemplates() {
1851
1851
  }).on('error', cb);
1852
1852
  }
1853
1853
 
1854
- console.log(colors.blue + '[sync-templates]' + colors.nc + ' 正在检查模板更新...');
1854
+ console.log(colors.blue + '[muban]' + colors.nc + ' 正在检查模板更新...');
1855
1855
 
1856
1856
  apiGet('/api/sync-templates', (err, res) => {
1857
1857
  if (err) {
@@ -2396,7 +2396,7 @@ function showHelp() {
2396
2396
  console.log(' open 打开浏览器控制台(自动带 token)');
2397
2397
  console.log(' tui 唤起新对话上下文 (用法: mc tui <agentname>)');
2398
2398
  console.log(' delete 批量删除 Agent(交互式勾选 + 二次确认)');
2399
- console.log(' sync-templates 更新本地课程模板(从 CDN 增量下载)');
2399
+ console.log(' muban 更新本地课程模板(从 CDN 增量下载)');
2400
2400
  console.log(' list-agents 列出所有 Agent(--json 输出机器可读)');
2401
2401
  console.log(' trash-paths <p1> <p2> 将路径移入回收站(跨平台)');
2402
2402
  console.log(' fix 兜底修复(自动补装 WSL + Chrome,仅限 Windows)');
@@ -2602,7 +2602,7 @@ if (!command) {
2602
2602
  runServer(args[1]); // args[1] 是可选的 name
2603
2603
  } else if (command === 'sync') {
2604
2604
  runSync(args[1]); // args[1] 是可选的 workspace 名称
2605
- } else if (command === 'sync-templates') {
2605
+ } else if (command === 'muban') {
2606
2606
  runSyncTemplates();
2607
2607
  } else if (command === 'init') {
2608
2608
  console.log('init 还没实现,后续添加钩子');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.1.66",
3
+ "version": "1.1.67",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {