engine7 7.0.0 → 7.0.2
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/dist/cli.mjs +171 -13
- package/dist/engine-startup.mjs +60 -56
- package/dist/main.mjs +60 -56
- package/package.json +1 -1
- package/templates/skills/aim/SKILL.md +143 -0
- package/templates/skills/docx/LICENSE.txt +30 -0
- package/templates/skills/docx/SKILL.md +590 -0
- package/templates/skills/docx/scripts/__init__.py +1 -0
- package/templates/skills/docx/scripts/accept_changes.py +135 -0
- package/templates/skills/docx/scripts/comment.py +318 -0
- package/templates/skills/docx/scripts/office/helpers/__init__.py +0 -0
- package/templates/skills/docx/scripts/office/helpers/merge_runs.py +199 -0
- package/templates/skills/docx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/templates/skills/docx/scripts/office/pack.py +159 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/templates/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/templates/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/templates/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/templates/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/templates/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/templates/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/templates/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/templates/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/templates/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/templates/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/templates/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/templates/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/templates/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/templates/skills/docx/scripts/office/soffice.py +183 -0
- package/templates/skills/docx/scripts/office/unpack.py +132 -0
- package/templates/skills/docx/scripts/office/validate.py +111 -0
- package/templates/skills/docx/scripts/office/validators/__init__.py +15 -0
- package/templates/skills/docx/scripts/office/validators/base.py +847 -0
- package/templates/skills/docx/scripts/office/validators/docx.py +446 -0
- package/templates/skills/docx/scripts/office/validators/pptx.py +275 -0
- package/templates/skills/docx/scripts/office/validators/redlining.py +247 -0
- package/templates/skills/docx/scripts/templates/comments.xml +3 -0
- package/templates/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/templates/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/templates/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/templates/skills/docx/scripts/templates/people.xml +3 -0
- package/templates/skills/pdf/LICENSE.txt +30 -0
- package/templates/skills/pdf/SKILL.md +314 -0
- package/templates/skills/pdf/forms.md +294 -0
- package/templates/skills/pdf/reference.md +612 -0
- package/templates/skills/pptx/LICENSE.txt +30 -0
- package/templates/skills/pptx/SKILL.md +232 -0
- package/templates/skills/pptx/editing.md +205 -0
- package/templates/skills/pptx/pptxgenjs.md +420 -0
- package/templates/skills/pptx/scripts/__init__.py +0 -0
- package/templates/skills/pptx/scripts/add_slide.py +195 -0
- package/templates/skills/pptx/scripts/clean.py +286 -0
- package/templates/skills/pptx/scripts/office/helpers/__init__.py +0 -0
- package/templates/skills/pptx/scripts/office/helpers/merge_runs.py +199 -0
- package/templates/skills/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/templates/skills/pptx/scripts/office/pack.py +159 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/templates/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/templates/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/templates/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/templates/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/templates/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/templates/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/templates/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/templates/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/templates/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/templates/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/templates/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/templates/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/templates/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/templates/skills/pptx/scripts/office/soffice.py +183 -0
- package/templates/skills/pptx/scripts/office/unpack.py +132 -0
- package/templates/skills/pptx/scripts/office/validate.py +111 -0
- package/templates/skills/pptx/scripts/office/validators/__init__.py +15 -0
- package/templates/skills/pptx/scripts/office/validators/base.py +847 -0
- package/templates/skills/pptx/scripts/office/validators/docx.py +446 -0
- package/templates/skills/pptx/scripts/office/validators/pptx.py +275 -0
- package/templates/skills/pptx/scripts/office/validators/redlining.py +247 -0
- package/templates/skills/pptx/scripts/thumbnail.py +289 -0
- package/templates/skills/sop/SKILL.md +243 -0
- package/templates/skills/xlsx/LICENSE.txt +30 -0
- package/templates/skills/xlsx/SKILL.md +292 -0
- package/templates/skills/xlsx/scripts/office/helpers/__init__.py +0 -0
- package/templates/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
- package/templates/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/templates/skills/xlsx/scripts/office/pack.py +159 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/templates/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/templates/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/templates/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/templates/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/templates/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/templates/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/templates/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/templates/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/templates/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/templates/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/templates/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/templates/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/templates/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/templates/skills/xlsx/scripts/office/soffice.py +183 -0
- package/templates/skills/xlsx/scripts/office/unpack.py +132 -0
- package/templates/skills/xlsx/scripts/office/validate.py +111 -0
- package/templates/skills/xlsx/scripts/office/validators/__init__.py +15 -0
- package/templates/skills/xlsx/scripts/office/validators/base.py +847 -0
- package/templates/skills/xlsx/scripts/office/validators/docx.py +446 -0
- package/templates/skills/xlsx/scripts/office/validators/pptx.py +275 -0
- package/templates/skills/xlsx/scripts/office/validators/redlining.py +247 -0
- package/templates/skills/xlsx/scripts/recalc.py +184 -0
- package/templates/workspace/prompts/contacts.md +8 -22
package/dist/main.mjs
CHANGED
|
@@ -3527,6 +3527,46 @@ ${perTurnSystemDynamic}` : deferredHint || perTurnSystemDynamic;
|
|
|
3527
3527
|
}
|
|
3528
3528
|
});
|
|
3529
3529
|
|
|
3530
|
+
// src/config/live.ts
|
|
3531
|
+
var LiveConfigClass, liveConfig;
|
|
3532
|
+
var init_live = __esm({
|
|
3533
|
+
"src/config/live.ts"() {
|
|
3534
|
+
"use strict";
|
|
3535
|
+
LiveConfigClass = class {
|
|
3536
|
+
current = null;
|
|
3537
|
+
/** 启动时注入(替代 registry.config = config) */
|
|
3538
|
+
init(config2) {
|
|
3539
|
+
this.current = config2;
|
|
3540
|
+
}
|
|
3541
|
+
/** 取整个 config 对象(只读引用,不要缓存) */
|
|
3542
|
+
all() {
|
|
3543
|
+
if (!this.current) {
|
|
3544
|
+
throw new Error("[liveConfig] not initialized \u2014 call liveConfig.init() first");
|
|
3545
|
+
}
|
|
3546
|
+
return this.current;
|
|
3547
|
+
}
|
|
3548
|
+
/** 安全取子段('services.voice-chat.start' → current.services.voice-chat.start) */
|
|
3549
|
+
get(dotPath) {
|
|
3550
|
+
if (!this.current) return void 0;
|
|
3551
|
+
return dotPath.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], this.current);
|
|
3552
|
+
}
|
|
3553
|
+
/** reload 时原地更新(Object.assign 保持引用不变) */
|
|
3554
|
+
assign(newConfig) {
|
|
3555
|
+
if (!this.current) {
|
|
3556
|
+
this.current = newConfig;
|
|
3557
|
+
return;
|
|
3558
|
+
}
|
|
3559
|
+
Object.assign(this.current, newConfig);
|
|
3560
|
+
}
|
|
3561
|
+
/** 是否已初始化 */
|
|
3562
|
+
isReady() {
|
|
3563
|
+
return this.current !== null;
|
|
3564
|
+
}
|
|
3565
|
+
};
|
|
3566
|
+
liveConfig = new LiveConfigClass();
|
|
3567
|
+
}
|
|
3568
|
+
});
|
|
3569
|
+
|
|
3530
3570
|
// src/memory/shims/memory-core-host-engine-foundation.ts
|
|
3531
3571
|
import path5 from "node:path";
|
|
3532
3572
|
function resolveAgentDir(cfg, agentId) {
|
|
@@ -5760,13 +5800,8 @@ __export(config_exports, {
|
|
|
5760
5800
|
isAutoDreamEnabled: () => isAutoDreamEnabled,
|
|
5761
5801
|
setAutoDreamConfig: () => setAutoDreamConfig
|
|
5762
5802
|
});
|
|
5763
|
-
import fsSync from "node:fs";
|
|
5764
5803
|
function dlog(msg2) {
|
|
5765
|
-
|
|
5766
|
-
fsSync.appendFileSync(DEBUG_LOG, `[${(/* @__PURE__ */ new Date()).toISOString()}] ${msg2}
|
|
5767
|
-
`);
|
|
5768
|
-
} catch {
|
|
5769
|
-
}
|
|
5804
|
+
if (process.env.AUTODREAM_DEBUG) console.log(`[autoDream] ${msg2}`);
|
|
5770
5805
|
}
|
|
5771
5806
|
function setAutoDreamConfig(config2) {
|
|
5772
5807
|
_config = config2;
|
|
@@ -5803,11 +5838,10 @@ function getMaxEntrypointLines() {
|
|
|
5803
5838
|
if (typeof maxScan === "number" && maxScan > 200) return maxScan;
|
|
5804
5839
|
return void 0;
|
|
5805
5840
|
}
|
|
5806
|
-
var
|
|
5841
|
+
var _config, DEFAULTS;
|
|
5807
5842
|
var init_config2 = __esm({
|
|
5808
5843
|
"src/memory/autoDream/config.ts"() {
|
|
5809
5844
|
"use strict";
|
|
5810
|
-
DEBUG_LOG = "C:\\Users\\24045\\.openclaw\\logs\\autoDream-debug.log";
|
|
5811
5845
|
_config = null;
|
|
5812
5846
|
DEFAULTS = {
|
|
5813
5847
|
minHours: 24,
|
|
@@ -6002,13 +6036,8 @@ __export(autoDream_exports, {
|
|
|
6002
6036
|
executeAutoDream: () => executeAutoDream,
|
|
6003
6037
|
initAutoDream: () => initAutoDream
|
|
6004
6038
|
});
|
|
6005
|
-
import fsSync2 from "node:fs";
|
|
6006
6039
|
function dlog2(msg2) {
|
|
6007
|
-
|
|
6008
|
-
fsSync2.appendFileSync(DEBUG_LOG2, `[${(/* @__PURE__ */ new Date()).toISOString()}] ${msg2}
|
|
6009
|
-
`);
|
|
6010
|
-
} catch {
|
|
6011
|
-
}
|
|
6040
|
+
if (process.env.AUTODREAM_DEBUG) console.log(`[autoDream] ${msg2}`);
|
|
6012
6041
|
}
|
|
6013
6042
|
function initAutoDream(deps) {
|
|
6014
6043
|
_deps2 = deps;
|
|
@@ -6130,7 +6159,7 @@ stack: ${err.stack ?? "(no stack)"}`);
|
|
|
6130
6159
|
return { fired: false, reason: `fork failed: ${err.message}` };
|
|
6131
6160
|
}
|
|
6132
6161
|
}
|
|
6133
|
-
var
|
|
6162
|
+
var SESSION_SCAN_INTERVAL_MS, _deps2, lastSessionScanAt;
|
|
6134
6163
|
var init_autoDream = __esm({
|
|
6135
6164
|
"src/memory/autoDream/autoDream.ts"() {
|
|
6136
6165
|
"use strict";
|
|
@@ -6138,7 +6167,6 @@ var init_autoDream = __esm({
|
|
|
6138
6167
|
init_config2();
|
|
6139
6168
|
init_consolidationLock();
|
|
6140
6169
|
init_consolidationPrompt();
|
|
6141
|
-
DEBUG_LOG2 = "C:\\Users\\24045\\.openclaw\\logs\\autoDream-debug.log";
|
|
6142
6170
|
SESSION_SCAN_INTERVAL_MS = 10 * 60 * 1e3;
|
|
6143
6171
|
_deps2 = null;
|
|
6144
6172
|
lastSessionScanAt = 0;
|
|
@@ -11434,10 +11462,12 @@ var init_wx_query = __esm({
|
|
|
11434
11462
|
"src/tools/wechat/wx-query.ts"() {
|
|
11435
11463
|
"use strict";
|
|
11436
11464
|
init_registry();
|
|
11465
|
+
init_live();
|
|
11437
11466
|
SCRIPT = "C:/Users/24045/.openclaw/engine/src/tools/wechat/wx_query.py";
|
|
11438
11467
|
PYTHON = "python3";
|
|
11439
11468
|
registry.register({
|
|
11440
11469
|
name: "wx_query",
|
|
11470
|
+
isEnabled: () => !!liveConfig?.agents?.defaults?.privateTools,
|
|
11441
11471
|
description: getDescription(),
|
|
11442
11472
|
schema: {
|
|
11443
11473
|
type: "object",
|
|
@@ -20485,12 +20515,12 @@ var init_hash2 = __esm({
|
|
|
20485
20515
|
|
|
20486
20516
|
// src/memory/host/internal.ts
|
|
20487
20517
|
import crypto8 from "node:crypto";
|
|
20488
|
-
import
|
|
20518
|
+
import fsSync from "node:fs";
|
|
20489
20519
|
import fs44 from "node:fs/promises";
|
|
20490
20520
|
import path46 from "node:path";
|
|
20491
20521
|
function ensureDir(dir) {
|
|
20492
20522
|
try {
|
|
20493
|
-
|
|
20523
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
20494
20524
|
} catch {
|
|
20495
20525
|
}
|
|
20496
20526
|
return dir;
|
|
@@ -21767,7 +21797,7 @@ var init_provider_adapter_registration = __esm({
|
|
|
21767
21797
|
});
|
|
21768
21798
|
|
|
21769
21799
|
// src/memory/tools/memory/provider-adapters.ts
|
|
21770
|
-
import
|
|
21800
|
+
import fsSync2 from "node:fs";
|
|
21771
21801
|
function canAutoSelectLocal(modelPath) {
|
|
21772
21802
|
const trimmed = modelPath?.trim();
|
|
21773
21803
|
if (!trimmed) {
|
|
@@ -21778,7 +21808,7 @@ function canAutoSelectLocal(modelPath) {
|
|
|
21778
21808
|
}
|
|
21779
21809
|
const resolved = resolveUserPath(trimmed);
|
|
21780
21810
|
try {
|
|
21781
|
-
return
|
|
21811
|
+
return fsSync2.statSync(resolved).isFile();
|
|
21782
21812
|
} catch {
|
|
21783
21813
|
return false;
|
|
21784
21814
|
}
|
|
@@ -24701,7 +24731,7 @@ var init_watch_settle = __esm({
|
|
|
24701
24731
|
|
|
24702
24732
|
// src/memory/tools/memory/manager-sync-ops.ts
|
|
24703
24733
|
import { randomUUID as randomUUID10 } from "node:crypto";
|
|
24704
|
-
import
|
|
24734
|
+
import fsSync3 from "node:fs";
|
|
24705
24735
|
import fs49 from "node:fs/promises";
|
|
24706
24736
|
import path51 from "node:path";
|
|
24707
24737
|
function isSyncDisabled(cfg) {
|
|
@@ -25004,7 +25034,7 @@ var init_manager_sync_ops = __esm({
|
|
|
25004
25034
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
25005
25035
|
for (const entry of additionalPaths) {
|
|
25006
25036
|
try {
|
|
25007
|
-
const stat8 =
|
|
25037
|
+
const stat8 = fsSync3.lstatSync(entry);
|
|
25008
25038
|
if (stat8.isSymbolicLink()) {
|
|
25009
25039
|
continue;
|
|
25010
25040
|
}
|
|
@@ -29996,40 +30026,7 @@ function getActiveQueryEngine(sessionId) {
|
|
|
29996
30026
|
|
|
29997
30027
|
// src/engine-startup.ts
|
|
29998
30028
|
init_loader();
|
|
29999
|
-
|
|
30000
|
-
// src/config/live.ts
|
|
30001
|
-
var LiveConfigClass = class {
|
|
30002
|
-
current = null;
|
|
30003
|
-
/** 启动时注入(替代 registry.config = config) */
|
|
30004
|
-
init(config2) {
|
|
30005
|
-
this.current = config2;
|
|
30006
|
-
}
|
|
30007
|
-
/** 取整个 config 对象(只读引用,不要缓存) */
|
|
30008
|
-
all() {
|
|
30009
|
-
if (!this.current) {
|
|
30010
|
-
throw new Error("[liveConfig] not initialized \u2014 call liveConfig.init() first");
|
|
30011
|
-
}
|
|
30012
|
-
return this.current;
|
|
30013
|
-
}
|
|
30014
|
-
/** 安全取子段('services.voice-chat.start' → current.services.voice-chat.start) */
|
|
30015
|
-
get(dotPath) {
|
|
30016
|
-
if (!this.current) return void 0;
|
|
30017
|
-
return dotPath.split(".").reduce((acc, key) => acc == null ? void 0 : acc[key], this.current);
|
|
30018
|
-
}
|
|
30019
|
-
/** reload 时原地更新(Object.assign 保持引用不变) */
|
|
30020
|
-
assign(newConfig) {
|
|
30021
|
-
if (!this.current) {
|
|
30022
|
-
this.current = newConfig;
|
|
30023
|
-
return;
|
|
30024
|
-
}
|
|
30025
|
-
Object.assign(this.current, newConfig);
|
|
30026
|
-
}
|
|
30027
|
-
/** 是否已初始化 */
|
|
30028
|
-
isReady() {
|
|
30029
|
-
return this.current !== null;
|
|
30030
|
-
}
|
|
30031
|
-
};
|
|
30032
|
-
var liveConfig = new LiveConfigClass();
|
|
30029
|
+
init_live();
|
|
30033
30030
|
|
|
30034
30031
|
// src/services/withRetry.ts
|
|
30035
30032
|
var DEFAULT_MAX_RETRIES = 10;
|
|
@@ -41180,6 +41177,7 @@ ${rawOutput}
|
|
|
41180
41177
|
}
|
|
41181
41178
|
|
|
41182
41179
|
// src/tools/msg-send.ts
|
|
41180
|
+
init_live();
|
|
41183
41181
|
init_registry();
|
|
41184
41182
|
function getConfig() {
|
|
41185
41183
|
return liveConfig.all();
|
|
@@ -41323,6 +41321,7 @@ Examples:
|
|
|
41323
41321
|
|
|
41324
41322
|
// src/tools/msg-husband.ts
|
|
41325
41323
|
init_registry();
|
|
41324
|
+
init_live();
|
|
41326
41325
|
import fs26 from "node:fs";
|
|
41327
41326
|
import path26 from "node:path";
|
|
41328
41327
|
function getHusbandFeishuId(workspace) {
|
|
@@ -41343,6 +41342,7 @@ var FALLBACK_IDS = [
|
|
|
41343
41342
|
];
|
|
41344
41343
|
registry.register({
|
|
41345
41344
|
name: "msg_husband",
|
|
41345
|
+
isEnabled: () => !!liveConfig?.agents?.defaults?.privateTools,
|
|
41346
41346
|
description: `\u7ED9\u7FC0\u54E5\uFF08\u8001\u516C\uFF09\u53D1\u98DE\u4E66\u79C1\u4FE1\u3002\u53C2\u6570\u5199\u6B7B\uFF1Ato=\u7FC0\u54E5\u98DE\u4E66open_id, source=feishu\u3002\u53EA\u9700\u4F20 content\u3002
|
|
41347
41347
|
|
|
41348
41348
|
Parameters:
|
|
@@ -41525,6 +41525,7 @@ Examples:
|
|
|
41525
41525
|
});
|
|
41526
41526
|
|
|
41527
41527
|
// src/tools/my-eyes.ts
|
|
41528
|
+
init_live();
|
|
41528
41529
|
init_registry();
|
|
41529
41530
|
import * as fs27 from "node:fs";
|
|
41530
41531
|
import * as path27 from "node:path";
|
|
@@ -41604,6 +41605,7 @@ registry.register({
|
|
|
41604
41605
|
});
|
|
41605
41606
|
|
|
41606
41607
|
// src/tools/my-voice.ts
|
|
41608
|
+
init_live();
|
|
41607
41609
|
init_registry();
|
|
41608
41610
|
import { execFile } from "node:child_process";
|
|
41609
41611
|
import { promisify } from "node:util";
|
|
@@ -41817,6 +41819,7 @@ registry.register({
|
|
|
41817
41819
|
});
|
|
41818
41820
|
|
|
41819
41821
|
// src/tools/my-selfie.ts
|
|
41822
|
+
init_live();
|
|
41820
41823
|
init_registry();
|
|
41821
41824
|
import * as fs29 from "node:fs";
|
|
41822
41825
|
import * as path29 from "node:path";
|
|
@@ -42109,6 +42112,7 @@ registry.register({
|
|
|
42109
42112
|
|
|
42110
42113
|
// src/tools/service.ts
|
|
42111
42114
|
init_registry();
|
|
42115
|
+
init_live();
|
|
42112
42116
|
import { exec as exec3, spawn as spawn6 } from "node:child_process";
|
|
42113
42117
|
import { promisify as promisify2 } from "node:util";
|
|
42114
42118
|
var execAsync = promisify2(exec3);
|
package/package.json
CHANGED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aim
|
|
3
|
+
description: 团队协作目标追踪机制。派活→起cron盯→自检→达成→归档→block防循环。用法:/aim create、/aim status、/aim complete、/aim archive
|
|
4
|
+
allowed-tools: Bash(cron_create:*) Bash(cron_list:*) Bash(cron_delete:*) Bash(reply_blocklist:*) read write edit glob
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# aim — 团队协作目标追踪
|
|
8
|
+
|
|
9
|
+
> 核心流程:写目标 → 催到完 → 归档 → block
|
|
10
|
+
|
|
11
|
+
## 命令
|
|
12
|
+
|
|
13
|
+
### `/aim create` — 创建 aim 任务
|
|
14
|
+
|
|
15
|
+
参数(从用户消息或 args 中提取):
|
|
16
|
+
- `task`: 任务描述(必填)
|
|
17
|
+
- `goal`: 可验证的完成条件(必填,不能是模糊描述)
|
|
18
|
+
- `channel`: 协作频道(必填,如 discord#CC频道 或 feishu)
|
|
19
|
+
- `assignee`: 指派给谁(必填,agent 名字或 ID)
|
|
20
|
+
- `interval`: cron 检查间隔(默认 10min)
|
|
21
|
+
- `archive`: 归档路径(默认 workspace/aim-archive/<日期-任务名>/)
|
|
22
|
+
|
|
23
|
+
**执行步骤:**
|
|
24
|
+
|
|
25
|
+
1. 写入 aim 文件到 `workspace/aim-archive/<日期-任务名>/aim.md`:
|
|
26
|
+
```markdown
|
|
27
|
+
# aim: <task>
|
|
28
|
+
|
|
29
|
+
## 目标
|
|
30
|
+
<goal>
|
|
31
|
+
|
|
32
|
+
## 元信息
|
|
33
|
+
- 频道: <channel>
|
|
34
|
+
- 指派: <assignee>
|
|
35
|
+
- 创建时间: <now>
|
|
36
|
+
- 检查间隔: <interval>
|
|
37
|
+
- 状态: 🔄 进行中
|
|
38
|
+
|
|
39
|
+
## 进度记录
|
|
40
|
+
(cron 自检时追加)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
2. 用 `cron_create` 创建定时检查任务:
|
|
44
|
+
- `schedule_type`: "interval"
|
|
45
|
+
- `schedule_value`: interval 值(如 "10" 表示 10 分钟)
|
|
46
|
+
- `prompt`: 自检指令(见下方模板)
|
|
47
|
+
- `description`: "aim-check: <task>"
|
|
48
|
+
|
|
49
|
+
3. 在 SESSION-STATE.md 加任务条目:
|
|
50
|
+
`- [ ] 🎯 aim: <task> → <assignee> | cron=<cron_id>`
|
|
51
|
+
|
|
52
|
+
4. 通知协作者开始干活(通过 channel 发消息)
|
|
53
|
+
|
|
54
|
+
### cron 自检 prompt 模板
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
你是 aim 检查器。检查以下 aim 是否达成:
|
|
58
|
+
|
|
59
|
+
任务:<task>
|
|
60
|
+
目标:<goal>
|
|
61
|
+
频道:<channel>
|
|
62
|
+
指派:<assignee>
|
|
63
|
+
归档:<archive_path>
|
|
64
|
+
cron_id:<cron_id>
|
|
65
|
+
|
|
66
|
+
执行步骤:
|
|
67
|
+
1. 翻 <channel> 看 <assignee> 的最新进度
|
|
68
|
+
2. 检查 <goal> 是否达成(要具体验证,不能猜)
|
|
69
|
+
3. 如果没达成:
|
|
70
|
+
- 在 <channel> 通知 <assignee> 继续做,说明还差什么
|
|
71
|
+
- 在 <archive_path>/aim.md 追加进度记录
|
|
72
|
+
4. 如果达成了:
|
|
73
|
+
- 回复 "aim 达成:<task>"
|
|
74
|
+
- 后续由 agent 执行 /aim complete
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### `/aim status` — 查看当前 aims
|
|
78
|
+
|
|
79
|
+
1. 扫描 `workspace/aim-archive/*/aim.md`
|
|
80
|
+
2. 列出所有状态为 "🔄 进行中" 的 aim
|
|
81
|
+
3. 显示:任务名 | 指派 | 频道 | 创建时间 | 最后检查时间
|
|
82
|
+
|
|
83
|
+
### `/aim complete <task-name>` — 标记 aim 达成
|
|
84
|
+
|
|
85
|
+
1. 更新 `workspace/aim-archive/<task-name>/aim.md`:
|
|
86
|
+
- 状态改为 "✅ 已达成"
|
|
87
|
+
- 追加达成时间和验收结果
|
|
88
|
+
|
|
89
|
+
2. 用 `cron_delete` 删除对应的 cron 任务
|
|
90
|
+
|
|
91
|
+
3. 用 `reply_blocklist` block 协作者(防循环):
|
|
92
|
+
- `action`: "add"
|
|
93
|
+
- `user_ids`: 协作者的 ID
|
|
94
|
+
|
|
95
|
+
4. 更新 SESSION-STATE.md:
|
|
96
|
+
- 把 `- [ ] 🎯 aim:` 改成 `- [x] 🎯 aim:`
|
|
97
|
+
|
|
98
|
+
5. 通知相关人:aim 已达成
|
|
99
|
+
|
|
100
|
+
### `/aim archive <task-name>` — 归档(complete 后自动执行)
|
|
101
|
+
|
|
102
|
+
1. 在 `workspace/aim-archive/<task-name>/` 下生成:
|
|
103
|
+
- `COMPLETE.md` — 完成报告(目标、过程、结果、耗时)
|
|
104
|
+
- 确保 `aim.md` 已更新为达成状态
|
|
105
|
+
|
|
106
|
+
2. 确认 cron 已删除、协作者已 block
|
|
107
|
+
|
|
108
|
+
### `/aim unblock <assignee-id>` — 解除 block(需要再协作时)
|
|
109
|
+
|
|
110
|
+
1. 用 `reply_blocklist` 解除:
|
|
111
|
+
- `action`: "remove"
|
|
112
|
+
- `user_ids`: 协作者 ID
|
|
113
|
+
|
|
114
|
+
2. 通知协作者:可以继续协作了
|
|
115
|
+
|
|
116
|
+
## 注意事项
|
|
117
|
+
|
|
118
|
+
- **goal 必须是可验证的**:不是"优化性能",而是"响应时间 < 200ms"
|
|
119
|
+
- **cron 不停催**:翀哥说"歇会儿" ≠ 任务停,cron 继续催
|
|
120
|
+
- **主动翻频道**:不等 msg_send,主动去频道看进度
|
|
121
|
+
- **达成后立即 block**:防止心跳循环,这是铁律
|
|
122
|
+
- **归档要完整**:过程记录、验收结果、耗时统计都要有
|
|
123
|
+
|
|
124
|
+
## 示例
|
|
125
|
+
|
|
126
|
+
```
|
|
127
|
+
/aim create
|
|
128
|
+
task: 小柯修复 session 回复路径敏感词
|
|
129
|
+
goal: session 回复路径接上 getSensitiveWords,飞书测试群验证通过
|
|
130
|
+
channel: discord#CC频道
|
|
131
|
+
assignee: 小柯
|
|
132
|
+
interval: 10min
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
/aim status
|
|
137
|
+
→ 🎯 修复敏感词 | 小柯 | discord#CC频道 | 10分钟前
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
/aim complete 修复敏感词
|
|
142
|
+
→ ✅ 已达成 | cron 已删 | 小柯已 block | 归档完成
|
|
143
|
+
```
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
© 2025 Anthropic, PBC. All rights reserved.
|
|
2
|
+
|
|
3
|
+
LICENSE: Use of these materials (including all code, prompts, assets, files,
|
|
4
|
+
and other components of this Skill) is governed by your agreement with
|
|
5
|
+
Anthropic regarding use of Anthropic's services. If no separate agreement
|
|
6
|
+
exists, use is governed by Anthropic's Consumer Terms of Service or
|
|
7
|
+
Commercial Terms of Service, as applicable:
|
|
8
|
+
https://www.anthropic.com/legal/consumer-terms
|
|
9
|
+
https://www.anthropic.com/legal/commercial-terms
|
|
10
|
+
Your applicable agreement is referred to as the "Agreement." "Services" are
|
|
11
|
+
as defined in the Agreement.
|
|
12
|
+
|
|
13
|
+
ADDITIONAL RESTRICTIONS: Notwithstanding anything in the Agreement to the
|
|
14
|
+
contrary, users may not:
|
|
15
|
+
|
|
16
|
+
- Extract these materials from the Services or retain copies of these
|
|
17
|
+
materials outside the Services
|
|
18
|
+
- Reproduce or copy these materials, except for temporary copies created
|
|
19
|
+
automatically during authorized use of the Services
|
|
20
|
+
- Create derivative works based on these materials
|
|
21
|
+
- Distribute, sublicense, or transfer these materials to any third party
|
|
22
|
+
- Make, offer to sell, sell, or import any inventions embodied in these
|
|
23
|
+
materials
|
|
24
|
+
- Reverse engineer, decompile, or disassemble these materials
|
|
25
|
+
|
|
26
|
+
The receipt, viewing, or possession of these materials does not convey or
|
|
27
|
+
imply any license or right beyond those expressly granted above.
|
|
28
|
+
|
|
29
|
+
Anthropic retains all right, title, and interest in these materials,
|
|
30
|
+
including all copyrights, patents, and other intellectual property rights.
|