@aiyiran/myclaw 1.1.173 → 1.1.174
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/create_agent.js +1 -6
- package/package.json +1 -1
package/create_agent.js
CHANGED
|
@@ -97,13 +97,8 @@ const FALLBACK_WORDS = [
|
|
|
97
97
|
function pad2(n) { return String(n).padStart(2, '0'); }
|
|
98
98
|
|
|
99
99
|
function generateFallbackKey() {
|
|
100
|
-
// 北京时间(UTC+8),与 buildBirthMessage 保持一致
|
|
101
|
-
const bj = new Date(Date.now() + 8 * 60 * 60 * 1000);
|
|
102
|
-
const MMDD = pad2(bj.getUTCMonth() + 1) + pad2(bj.getUTCDate());
|
|
103
|
-
const MMSS = pad2(bj.getUTCMinutes()) + pad2(bj.getUTCSeconds());
|
|
104
100
|
const pick = () => FALLBACK_WORDS[Math.floor(Math.random() * FALLBACK_WORDS.length)];
|
|
105
|
-
|
|
106
|
-
return MMDD + '_' + words + '_' + MMSS;
|
|
101
|
+
return pick() + '-' + pick() + '-' + pick();
|
|
107
102
|
}
|
|
108
103
|
|
|
109
104
|
// ── 命名决策:判断输入是否「天生满足」key 格式 ───────────────────
|