@elizaos/skills 2.0.0-alpha.203 → 2.0.0-alpha.205

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.
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../src/resolver.ts"],"names":[],"mappings":"AA+CA;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,IAAI,MAAM,CA6CrC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAoBD;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAoBjD"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../src/resolver.ts"],"names":[],"mappings":"AA+DA;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,IAAI,MAAM,CA6CrC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAiBD;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAoBjD"}
package/dist/resolver.js CHANGED
@@ -2,6 +2,19 @@ import { existsSync, mkdirSync, readdirSync, renameSync, statSync, } from "node:
2
2
  import { homedir } from "node:os";
3
3
  import { dirname, join } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
+ /**
6
+ * Resolve the Milady per-user state directory.
7
+ *
8
+ * Kept inline (not imported from `@elizaos/core`) because `@elizaos/skills` is
9
+ * a deliberately minimal seed/sync package with no runtime dep on core. The
10
+ * precedence order matches `resolveStateDir()` in
11
+ * `@elizaos/core/utils/state-dir` — update both together if the rule changes.
12
+ */
13
+ function resolveStateDir() {
14
+ return (process.env.MILADY_STATE_DIR?.trim() ||
15
+ process.env.ELIZA_STATE_DIR?.trim() ||
16
+ join(homedir(), ".milady"));
17
+ }
5
18
  /**
6
19
  * Cached skills directory path
7
20
  */
@@ -100,10 +113,7 @@ export function clearSkillsDirCache() {
100
113
  * to `~/.milady`.
101
114
  */
102
115
  function resolveCuratedBaseDir() {
103
- const stateDir = process.env.MILADY_STATE_DIR?.trim() ||
104
- process.env.ELIZA_STATE_DIR?.trim() ||
105
- join(homedir(), ".milady");
106
- return join(stateDir, "skills", "curated");
116
+ return join(resolveStateDir(), "skills", "curated");
107
117
  }
108
118
  /**
109
119
  * Absolute path to the curated **active** skills directory. Skills here are
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/skills",
3
- "version": "2.0.0-alpha.203",
3
+ "version": "2.0.0-alpha.205",
4
4
  "description": "Bundled skills and skill loading utilities for elizaOS agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "ecf384da5ce60320bda143b0e42744ccec40df1b"
57
+ "gitHead": "2c79e6bbb545f053c6c9ec6f10ea7497c60dbd50"
58
58
  }