@xdxer/dingtalk-agent 0.1.0 → 0.1.1

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.
@@ -21,7 +21,9 @@ import * as dutymod from '../src/duty.js'
21
21
  import { boot } from '../src/boot.js'
22
22
  import { init } from '../src/init.js'
23
23
 
24
- const ROOT = process.env.DTA_ROOT || dirname(dirname(fileURLToPath(import.meta.url)))
24
+ // ROOT = **你的工作区**(当前目录),不是包所在的目录。
25
+ // 全局装 / npx 跑的时候,包住在 node_modules 里 —— 那不是 agent 的家。
26
+ const ROOT = process.env.DTA_ROOT || process.cwd()
25
27
 
26
28
  const HELP = `
27
29
  dingtalk-agent —— 钉钉数字员工:CLI(拦) + Skill(劝) + 本体(记)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xdxer/dingtalk-agent",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "钉钉数字员工的标准范式:CLI(拦) + Skill(劝)。零依赖,任何 Coding Agent init 即用。",
5
5
  "keywords": [
6
6
  "dingtalk",