@elizaos/cli 1.0.7 → 1.0.8

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.
Files changed (77) hide show
  1. package/dist/assets/{index-zeG6Jws8.js → index-CZAd5zm2.js} +17 -17
  2. package/dist/assets/index-CZAd5zm2.js.br +0 -0
  3. package/dist/assets/{index-zeG6Jws8.js.map → index-CZAd5zm2.js.map} +1 -1
  4. package/dist/assets/{index-BMJNV7A7.js → index-CaEsCLCC.js} +772 -8056
  5. package/dist/assets/{index-BMJNV7A7.js.map → index-CaEsCLCC.js.map} +1 -1
  6. package/dist/assets/{vendor-BiCY-iVm.js → vendor-DSdxb8P-.js} +2 -2
  7. package/dist/assets/vendor-DSdxb8P-.js.br +0 -0
  8. package/dist/assets/{vendor-BiCY-iVm.js.map → vendor-DSdxb8P-.js.map} +1 -1
  9. package/dist/chunk-33BHGAF7.js +616 -0
  10. package/dist/{chunk-YTV6GDEJ.js → chunk-CVADLFW6.js} +100 -42
  11. package/dist/chunk-F24MS2YR.js +19 -0
  12. package/dist/{chunk-7HDCC22V.js → chunk-IEKLJDUU.js} +99 -0
  13. package/dist/chunk-MA2ZXPG6.js +260 -0
  14. package/dist/{chunk-YMXO6XZ5.js → chunk-REBZFQYE.js} +4890 -789
  15. package/dist/chunk-W3HS2NP6.js +154 -0
  16. package/dist/commands/agent/actions/index.d.ts +25 -0
  17. package/dist/commands/agent/actions/index.js +23 -0
  18. package/dist/commands/agent/index.d.ts +16 -0
  19. package/dist/commands/agent/index.js +24 -0
  20. package/dist/commands/create/actions/index.d.ts +35 -0
  21. package/dist/commands/create/actions/index.js +30 -0
  22. package/dist/commands/{create.d.ts → create/index.d.ts} +0 -3
  23. package/dist/commands/create/index.js +17 -0
  24. package/dist/commands/shared/index.d.ts +35 -0
  25. package/dist/commands/shared/index.js +13 -0
  26. package/dist/index.html +2 -2
  27. package/dist/index.js +103835 -56
  28. package/dist/{prompts-I4LK5NKX.js → lib-NAGYZHVV.js} +3 -3
  29. package/dist/{migrator-BQMHMHSG.js → migrator-KZLCVEIH.js} +117 -117
  30. package/dist/{plugin-creator-EUJNDFIB.js → plugin-creator-IC42XOHG.js} +3 -4
  31. package/dist/{registry-AV3SDTPW.js → registry-XFOSZFU4.js} +4 -5
  32. package/dist/utils-DIZZ3HNZ.js +218 -0
  33. package/package.json +18 -11
  34. package/templates/plugin-starter/package.json +1 -1
  35. package/templates/project-starter/package.json +1 -1
  36. package/templates/project-tee-starter/e2e/project.test.ts +1 -1
  37. package/templates/project-tee-starter/e2e/starter-plugin.test.ts +1 -1
  38. package/templates/project-tee-starter/package.json +2 -1
  39. package/dist/assets/index-zeG6Jws8.js.br +0 -0
  40. package/dist/assets/vendor-BiCY-iVm.js.br +0 -0
  41. package/dist/chunk-2RXF3FKA.js +0 -17
  42. package/dist/chunk-335PGADS.js +0 -207
  43. package/dist/chunk-3EAACNH2.js +0 -478
  44. package/dist/chunk-4OL6NNBI.js +0 -264
  45. package/dist/chunk-5J7S2CSH.js +0 -2771
  46. package/dist/chunk-APFJCFC6.js +0 -78
  47. package/dist/chunk-CEMRVVKO.js +0 -96
  48. package/dist/chunk-IYVGVCIB.js +0 -90156
  49. package/dist/chunk-JOHBW4FN.js +0 -576
  50. package/dist/chunk-JROMRXES.js +0 -711
  51. package/dist/chunk-KB3JDWUI.js +0 -106
  52. package/dist/chunk-LRSU7IN6.js +0 -4862
  53. package/dist/chunk-SCN6ZP4J.js +0 -315
  54. package/dist/chunk-V2MPQGYW.js +0 -613
  55. package/dist/chunk-WIPEH5RX.js +0 -7898
  56. package/dist/commands/agent.d.ts +0 -27
  57. package/dist/commands/agent.js +0 -22
  58. package/dist/commands/create.js +0 -18
  59. package/dist/commands/dev.d.ts +0 -8
  60. package/dist/commands/dev.js +0 -18
  61. package/dist/commands/env.d.ts +0 -16
  62. package/dist/commands/env.js +0 -21
  63. package/dist/commands/monorepo.d.ts +0 -5
  64. package/dist/commands/monorepo.js +0 -17
  65. package/dist/commands/plugins.d.ts +0 -19
  66. package/dist/commands/plugins.js +0 -25
  67. package/dist/commands/publish.d.ts +0 -5
  68. package/dist/commands/publish.js +0 -18
  69. package/dist/commands/start.d.ts +0 -198
  70. package/dist/commands/start.js +0 -26
  71. package/dist/commands/tee.d.ts +0 -5
  72. package/dist/commands/tee.js +0 -13
  73. package/dist/commands/test.d.ts +0 -6
  74. package/dist/commands/test.js +0 -25
  75. package/dist/commands/update.d.ts +0 -14
  76. package/dist/commands/update.js +0 -23
  77. package/dist/{chunk-NHI4RJD2.js → chunk-CEE6RKN5.js} +58 -58
@@ -7,13 +7,12 @@ import {
7
7
  ora,
8
8
  require_lib,
9
9
  sdk_default
10
- } from "./chunk-YTV6GDEJ.js";
10
+ } from "./chunk-CVADLFW6.js";
11
11
  import "./chunk-2GXSCVA2.js";
12
12
  import "./chunk-TUAYJIF2.js";
13
- import "./chunk-7HDCC22V.js";
14
13
  import {
15
14
  emoji
16
- } from "./chunk-KB3JDWUI.js";
15
+ } from "./chunk-IEKLJDUU.js";
17
16
  import {
18
17
  __commonJS,
19
18
  __require,
@@ -92,7 +91,7 @@ var require_path = __commonJS({
92
91
  Object.defineProperty(exports, "__esModule", { value: true });
93
92
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
94
93
  var os2 = __require("os");
95
- var path3 = __require("path");
94
+ var path4 = __require("path");
96
95
  var IS_WINDOWS_PLATFORM = os2.platform() === "win32";
97
96
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
98
97
  var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
@@ -104,7 +103,7 @@ var require_path = __commonJS({
104
103
  }
105
104
  exports.unixify = unixify;
106
105
  function makeAbsolute(cwd, filepath) {
107
- return path3.resolve(cwd, filepath);
106
+ return path4.resolve(cwd, filepath);
108
107
  }
109
108
  exports.makeAbsolute = makeAbsolute;
110
109
  function removeLeadingDotSegment(entry) {
@@ -1401,7 +1400,7 @@ var require_braces = __commonJS({
1401
1400
  var require_constants2 = __commonJS({
1402
1401
  "../../node_modules/micromatch/node_modules/picomatch/lib/constants.js"(exports, module) {
1403
1402
  "use strict";
1404
- var path3 = __require("path");
1403
+ var path4 = __require("path");
1405
1404
  var WIN_SLASH = "\\\\/";
1406
1405
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
1407
1406
  var DOT_LITERAL = "\\.";
@@ -1571,7 +1570,7 @@ var require_constants2 = __commonJS({
1571
1570
  /* | */
1572
1571
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
1573
1572
  /* \uFEFF */
1574
- SEP: path3.sep,
1573
+ SEP: path4.sep,
1575
1574
  /**
1576
1575
  * Create EXTGLOB_CHARS
1577
1576
  */
@@ -1598,7 +1597,7 @@ var require_constants2 = __commonJS({
1598
1597
  var require_utils2 = __commonJS({
1599
1598
  "../../node_modules/micromatch/node_modules/picomatch/lib/utils.js"(exports) {
1600
1599
  "use strict";
1601
- var path3 = __require("path");
1600
+ var path4 = __require("path");
1602
1601
  var win32 = process.platform === "win32";
1603
1602
  var {
1604
1603
  REGEX_BACKSLASH,
@@ -1627,7 +1626,7 @@ var require_utils2 = __commonJS({
1627
1626
  if (options && typeof options.windows === "boolean") {
1628
1627
  return options.windows;
1629
1628
  }
1630
- return win32 === true || path3.sep === "\\";
1629
+ return win32 === true || path4.sep === "\\";
1631
1630
  };
1632
1631
  exports.escapeLast = (input, char, lastIdx) => {
1633
1632
  const idx = input.lastIndexOf(char, lastIdx);
@@ -2762,7 +2761,7 @@ var require_parse2 = __commonJS({
2762
2761
  var require_picomatch = __commonJS({
2763
2762
  "../../node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(exports, module) {
2764
2763
  "use strict";
2765
- var path3 = __require("path");
2764
+ var path4 = __require("path");
2766
2765
  var scan = require_scan();
2767
2766
  var parse = require_parse2();
2768
2767
  var utils = require_utils2();
@@ -2847,7 +2846,7 @@ var require_picomatch = __commonJS({
2847
2846
  };
2848
2847
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
2849
2848
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
2850
- return regex.test(path3.basename(input));
2849
+ return regex.test(path4.basename(input));
2851
2850
  };
2852
2851
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
2853
2852
  picomatch.parse = (pattern, options) => {
@@ -3074,7 +3073,7 @@ var require_pattern = __commonJS({
3074
3073
  "use strict";
3075
3074
  Object.defineProperty(exports, "__esModule", { value: true });
3076
3075
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
3077
- var path3 = __require("path");
3076
+ var path4 = __require("path");
3078
3077
  var globParent = require_glob_parent();
3079
3078
  var micromatch = require_micromatch();
3080
3079
  var GLOBSTAR = "**";
@@ -3169,7 +3168,7 @@ var require_pattern = __commonJS({
3169
3168
  }
3170
3169
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
3171
3170
  function isAffectDepthOfReadingPattern(pattern) {
3172
- const basename = path3.basename(pattern);
3171
+ const basename = path4.basename(pattern);
3173
3172
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
3174
3173
  }
3175
3174
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
@@ -3227,7 +3226,7 @@ var require_pattern = __commonJS({
3227
3226
  }
3228
3227
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
3229
3228
  function isAbsolute(pattern) {
3230
- return path3.isAbsolute(pattern);
3229
+ return path4.isAbsolute(pattern);
3231
3230
  }
3232
3231
  exports.isAbsolute = isAbsolute;
3233
3232
  }
@@ -3404,8 +3403,8 @@ var require_utils3 = __commonJS({
3404
3403
  exports.errno = errno;
3405
3404
  var fs5 = require_fs();
3406
3405
  exports.fs = fs5;
3407
- var path3 = require_path();
3408
- exports.path = path3;
3406
+ var path4 = require_path();
3407
+ exports.path = path4;
3409
3408
  var pattern = require_pattern();
3410
3409
  exports.pattern = pattern;
3411
3410
  var stream = require_stream();
@@ -3517,8 +3516,8 @@ var require_async = __commonJS({
3517
3516
  "use strict";
3518
3517
  Object.defineProperty(exports, "__esModule", { value: true });
3519
3518
  exports.read = void 0;
3520
- function read(path3, settings, callback) {
3521
- settings.fs.lstat(path3, (lstatError, lstat) => {
3519
+ function read(path4, settings, callback) {
3520
+ settings.fs.lstat(path4, (lstatError, lstat) => {
3522
3521
  if (lstatError !== null) {
3523
3522
  callFailureCallback(callback, lstatError);
3524
3523
  return;
@@ -3527,7 +3526,7 @@ var require_async = __commonJS({
3527
3526
  callSuccessCallback(callback, lstat);
3528
3527
  return;
3529
3528
  }
3530
- settings.fs.stat(path3, (statError, stat2) => {
3529
+ settings.fs.stat(path4, (statError, stat2) => {
3531
3530
  if (statError !== null) {
3532
3531
  if (settings.throwErrorOnBrokenSymbolicLink) {
3533
3532
  callFailureCallback(callback, statError);
@@ -3559,13 +3558,13 @@ var require_sync = __commonJS({
3559
3558
  "use strict";
3560
3559
  Object.defineProperty(exports, "__esModule", { value: true });
3561
3560
  exports.read = void 0;
3562
- function read(path3, settings) {
3563
- const lstat = settings.fs.lstatSync(path3);
3561
+ function read(path4, settings) {
3562
+ const lstat = settings.fs.lstatSync(path4);
3564
3563
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
3565
3564
  return lstat;
3566
3565
  }
3567
3566
  try {
3568
- const stat2 = settings.fs.statSync(path3);
3567
+ const stat2 = settings.fs.statSync(path4);
3569
3568
  if (settings.markSymbolicLink) {
3570
3569
  stat2.isSymbolicLink = () => true;
3571
3570
  }
@@ -3636,17 +3635,17 @@ var require_out = __commonJS({
3636
3635
  var sync = require_sync();
3637
3636
  var settings_1 = require_settings();
3638
3637
  exports.Settings = settings_1.default;
3639
- function stat2(path3, optionsOrSettingsOrCallback, callback) {
3638
+ function stat2(path4, optionsOrSettingsOrCallback, callback) {
3640
3639
  if (typeof optionsOrSettingsOrCallback === "function") {
3641
- async.read(path3, getSettings(), optionsOrSettingsOrCallback);
3640
+ async.read(path4, getSettings(), optionsOrSettingsOrCallback);
3642
3641
  return;
3643
3642
  }
3644
- async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
3643
+ async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
3645
3644
  }
3646
3645
  exports.stat = stat2;
3647
- function statSync(path3, optionsOrSettings) {
3646
+ function statSync(path4, optionsOrSettings) {
3648
3647
  const settings = getSettings(optionsOrSettings);
3649
- return sync.read(path3, settings);
3648
+ return sync.read(path4, settings);
3650
3649
  }
3651
3650
  exports.statSync = statSync;
3652
3651
  function getSettings(settingsOrOptions = {}) {
@@ -3862,16 +3861,16 @@ var require_async2 = __commonJS({
3862
3861
  return;
3863
3862
  }
3864
3863
  const tasks = names.map((name) => {
3865
- const path3 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
3864
+ const path4 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
3866
3865
  return (done) => {
3867
- fsStat.stat(path3, settings.fsStatSettings, (error, stats) => {
3866
+ fsStat.stat(path4, settings.fsStatSettings, (error, stats) => {
3868
3867
  if (error !== null) {
3869
3868
  done(error);
3870
3869
  return;
3871
3870
  }
3872
3871
  const entry = {
3873
3872
  name,
3874
- path: path3,
3873
+ path: path4,
3875
3874
  dirent: utils.fs.createDirentFromStats(name, stats)
3876
3875
  };
3877
3876
  if (settings.stats) {
@@ -3989,7 +3988,7 @@ var require_settings2 = __commonJS({
3989
3988
  "../../node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
3990
3989
  "use strict";
3991
3990
  Object.defineProperty(exports, "__esModule", { value: true });
3992
- var path3 = __require("path");
3991
+ var path4 = __require("path");
3993
3992
  var fsStat = require_out();
3994
3993
  var fs5 = require_fs4();
3995
3994
  var Settings = class {
@@ -3997,7 +3996,7 @@ var require_settings2 = __commonJS({
3997
3996
  this._options = _options;
3998
3997
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
3999
3998
  this.fs = fs5.createFileSystemAdapter(this._options.fs);
4000
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path3.sep);
3999
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
4001
4000
  this.stats = this._getValue(this._options.stats, false);
4002
4001
  this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
4003
4002
  this.fsStatSettings = new fsStat.Settings({
@@ -4024,17 +4023,17 @@ var require_out2 = __commonJS({
4024
4023
  var sync = require_sync2();
4025
4024
  var settings_1 = require_settings2();
4026
4025
  exports.Settings = settings_1.default;
4027
- function scandir(path3, optionsOrSettingsOrCallback, callback) {
4026
+ function scandir(path4, optionsOrSettingsOrCallback, callback) {
4028
4027
  if (typeof optionsOrSettingsOrCallback === "function") {
4029
- async.read(path3, getSettings(), optionsOrSettingsOrCallback);
4028
+ async.read(path4, getSettings(), optionsOrSettingsOrCallback);
4030
4029
  return;
4031
4030
  }
4032
- async.read(path3, getSettings(optionsOrSettingsOrCallback), callback);
4031
+ async.read(path4, getSettings(optionsOrSettingsOrCallback), callback);
4033
4032
  }
4034
4033
  exports.scandir = scandir;
4035
- function scandirSync(path3, optionsOrSettings) {
4034
+ function scandirSync(path4, optionsOrSettings) {
4036
4035
  const settings = getSettings(optionsOrSettings);
4037
- return sync.read(path3, settings);
4036
+ return sync.read(path4, settings);
4038
4037
  }
4039
4038
  exports.scandirSync = scandirSync;
4040
4039
  function getSettings(settingsOrOptions = {}) {
@@ -4658,7 +4657,7 @@ var require_settings3 = __commonJS({
4658
4657
  "../../node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
4659
4658
  "use strict";
4660
4659
  Object.defineProperty(exports, "__esModule", { value: true });
4661
- var path3 = __require("path");
4660
+ var path4 = __require("path");
4662
4661
  var fsScandir = require_out2();
4663
4662
  var Settings = class {
4664
4663
  constructor(_options = {}) {
@@ -4668,7 +4667,7 @@ var require_settings3 = __commonJS({
4668
4667
  this.deepFilter = this._getValue(this._options.deepFilter, null);
4669
4668
  this.entryFilter = this._getValue(this._options.entryFilter, null);
4670
4669
  this.errorFilter = this._getValue(this._options.errorFilter, null);
4671
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path3.sep);
4670
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path4.sep);
4672
4671
  this.fsScandirSettings = new fsScandir.Settings({
4673
4672
  followSymbolicLinks: this._options.followSymbolicLinks,
4674
4673
  fs: this._options.fs,
@@ -4730,7 +4729,7 @@ var require_reader2 = __commonJS({
4730
4729
  "../../node_modules/fast-glob/out/readers/reader.js"(exports) {
4731
4730
  "use strict";
4732
4731
  Object.defineProperty(exports, "__esModule", { value: true });
4733
- var path3 = __require("path");
4732
+ var path4 = __require("path");
4734
4733
  var fsStat = require_out();
4735
4734
  var utils = require_utils3();
4736
4735
  var Reader = class {
@@ -4743,7 +4742,7 @@ var require_reader2 = __commonJS({
4743
4742
  });
4744
4743
  }
4745
4744
  _getFullEntryPath(filepath) {
4746
- return path3.resolve(this._settings.cwd, filepath);
4745
+ return path4.resolve(this._settings.cwd, filepath);
4747
4746
  }
4748
4747
  _makeEntry(stats, pattern) {
4749
4748
  const entry = {
@@ -5159,7 +5158,7 @@ var require_provider = __commonJS({
5159
5158
  "../../node_modules/fast-glob/out/providers/provider.js"(exports) {
5160
5159
  "use strict";
5161
5160
  Object.defineProperty(exports, "__esModule", { value: true });
5162
- var path3 = __require("path");
5161
+ var path4 = __require("path");
5163
5162
  var deep_1 = require_deep();
5164
5163
  var entry_1 = require_entry();
5165
5164
  var error_1 = require_error();
@@ -5173,7 +5172,7 @@ var require_provider = __commonJS({
5173
5172
  this.entryTransformer = new entry_2.default(this._settings);
5174
5173
  }
5175
5174
  _getRootDirectory(task) {
5176
- return path3.resolve(this._settings.cwd, task.base);
5175
+ return path4.resolve(this._settings.cwd, task.base);
5177
5176
  }
5178
5177
  _getReaderOptions(task) {
5179
5178
  const basePath = task.base === "." ? "" : task.base;
@@ -5806,7 +5805,7 @@ var require_ignore = __commonJS({
5806
5805
  // path matching.
5807
5806
  // - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
5808
5807
  // @returns {TestResult} true if a file is ignored
5809
- test(path3, checkUnignored, mode) {
5808
+ test(path4, checkUnignored, mode) {
5810
5809
  let ignored = false;
5811
5810
  let unignored = false;
5812
5811
  let matchedRule;
@@ -5815,7 +5814,7 @@ var require_ignore = __commonJS({
5815
5814
  if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
5816
5815
  return;
5817
5816
  }
5818
- const matched = rule[mode].test(path3);
5817
+ const matched = rule[mode].test(path4);
5819
5818
  if (!matched) {
5820
5819
  return;
5821
5820
  }
@@ -5836,17 +5835,17 @@ var require_ignore = __commonJS({
5836
5835
  var throwError = (message, Ctor) => {
5837
5836
  throw new Ctor(message);
5838
5837
  };
5839
- var checkPath = (path3, originalPath, doThrow) => {
5840
- if (!isString(path3)) {
5838
+ var checkPath = (path4, originalPath, doThrow) => {
5839
+ if (!isString(path4)) {
5841
5840
  return doThrow(
5842
5841
  `path must be a string, but got \`${originalPath}\``,
5843
5842
  TypeError
5844
5843
  );
5845
5844
  }
5846
- if (!path3) {
5845
+ if (!path4) {
5847
5846
  return doThrow(`path must not be empty`, TypeError);
5848
5847
  }
5849
- if (checkPath.isNotRelative(path3)) {
5848
+ if (checkPath.isNotRelative(path4)) {
5850
5849
  const r = "`path.relative()`d";
5851
5850
  return doThrow(
5852
5851
  `path should be a ${r} string, but got "${originalPath}"`,
@@ -5855,7 +5854,7 @@ var require_ignore = __commonJS({
5855
5854
  }
5856
5855
  return true;
5857
5856
  };
5858
- var isNotRelative = (path3) => REGEX_TEST_INVALID_PATH.test(path3);
5857
+ var isNotRelative = (path4) => REGEX_TEST_INVALID_PATH.test(path4);
5859
5858
  checkPath.isNotRelative = isNotRelative;
5860
5859
  checkPath.convert = (p) => p;
5861
5860
  var Ignore = class {
@@ -5885,19 +5884,19 @@ var require_ignore = __commonJS({
5885
5884
  }
5886
5885
  // @returns {TestResult}
5887
5886
  _test(originalPath, cache, checkUnignored, slices) {
5888
- const path3 = originalPath && checkPath.convert(originalPath);
5887
+ const path4 = originalPath && checkPath.convert(originalPath);
5889
5888
  checkPath(
5890
- path3,
5889
+ path4,
5891
5890
  originalPath,
5892
5891
  this._strictPathCheck ? throwError : RETURN_FALSE
5893
5892
  );
5894
- return this._t(path3, cache, checkUnignored, slices);
5893
+ return this._t(path4, cache, checkUnignored, slices);
5895
5894
  }
5896
- checkIgnore(path3) {
5897
- if (!REGEX_TEST_TRAILING_SLASH.test(path3)) {
5898
- return this.test(path3);
5895
+ checkIgnore(path4) {
5896
+ if (!REGEX_TEST_TRAILING_SLASH.test(path4)) {
5897
+ return this.test(path4);
5899
5898
  }
5900
- const slices = path3.split(SLASH).filter(Boolean);
5899
+ const slices = path4.split(SLASH).filter(Boolean);
5901
5900
  slices.pop();
5902
5901
  if (slices.length) {
5903
5902
  const parent = this._t(
@@ -5910,18 +5909,18 @@ var require_ignore = __commonJS({
5910
5909
  return parent;
5911
5910
  }
5912
5911
  }
5913
- return this._rules.test(path3, false, MODE_CHECK_IGNORE);
5912
+ return this._rules.test(path4, false, MODE_CHECK_IGNORE);
5914
5913
  }
5915
- _t(path3, cache, checkUnignored, slices) {
5916
- if (path3 in cache) {
5917
- return cache[path3];
5914
+ _t(path4, cache, checkUnignored, slices) {
5915
+ if (path4 in cache) {
5916
+ return cache[path4];
5918
5917
  }
5919
5918
  if (!slices) {
5920
- slices = path3.split(SLASH).filter(Boolean);
5919
+ slices = path4.split(SLASH).filter(Boolean);
5921
5920
  }
5922
5921
  slices.pop();
5923
5922
  if (!slices.length) {
5924
- return cache[path3] = this._rules.test(path3, checkUnignored, MODE_IGNORE);
5923
+ return cache[path4] = this._rules.test(path4, checkUnignored, MODE_IGNORE);
5925
5924
  }
5926
5925
  const parent = this._t(
5927
5926
  slices.join(SLASH) + SLASH,
@@ -5929,29 +5928,29 @@ var require_ignore = __commonJS({
5929
5928
  checkUnignored,
5930
5929
  slices
5931
5930
  );
5932
- return cache[path3] = parent.ignored ? parent : this._rules.test(path3, checkUnignored, MODE_IGNORE);
5931
+ return cache[path4] = parent.ignored ? parent : this._rules.test(path4, checkUnignored, MODE_IGNORE);
5933
5932
  }
5934
- ignores(path3) {
5935
- return this._test(path3, this._ignoreCache, false).ignored;
5933
+ ignores(path4) {
5934
+ return this._test(path4, this._ignoreCache, false).ignored;
5936
5935
  }
5937
5936
  createFilter() {
5938
- return (path3) => !this.ignores(path3);
5937
+ return (path4) => !this.ignores(path4);
5939
5938
  }
5940
5939
  filter(paths) {
5941
5940
  return makeArray(paths).filter(this.createFilter());
5942
5941
  }
5943
5942
  // @returns {TestResult}
5944
- test(path3) {
5945
- return this._test(path3, this._testCache, true);
5943
+ test(path4) {
5944
+ return this._test(path4, this._testCache, true);
5946
5945
  }
5947
5946
  };
5948
5947
  var factory = (options) => new Ignore(options);
5949
- var isPathValid = (path3) => checkPath(path3 && checkPath.convert(path3), path3, RETURN_FALSE);
5948
+ var isPathValid = (path4) => checkPath(path4 && checkPath.convert(path4), path4, RETURN_FALSE);
5950
5949
  var setupWindows = () => {
5951
5950
  const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
5952
5951
  checkPath.convert = makePosix;
5953
5952
  const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
5954
- checkPath.isNotRelative = (path3) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path3) || isNotRelative(path3);
5953
+ checkPath.isNotRelative = (path4) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path4) || isNotRelative(path4);
5955
5954
  };
5956
5955
  if (
5957
5956
  // Detect `process` so that it can run in browsers.
@@ -6360,13 +6359,13 @@ var require_tiktoken = __commonJS({
6360
6359
  var wasm = require_tiktoken_bg();
6361
6360
  var imports = {};
6362
6361
  imports["./tiktoken_bg.js"] = wasm;
6363
- var path3 = __require("path");
6362
+ var path4 = __require("path");
6364
6363
  var fs5 = __require("fs");
6365
- var candidates = __dirname.split(path3.sep).reduce((memo, _, index, array) => {
6366
- const prefix = array.slice(0, index + 1).join(path3.sep) + path3.sep;
6367
- if (!prefix.includes("node_modules" + path3.sep)) {
6364
+ var candidates = __dirname.split(path4.sep).reduce((memo, _, index, array) => {
6365
+ const prefix = array.slice(0, index + 1).join(path4.sep) + path4.sep;
6366
+ if (!prefix.includes("node_modules" + path4.sep)) {
6368
6367
  memo.unshift(
6369
- path3.join(
6368
+ path4.join(
6370
6369
  prefix,
6371
6370
  "node_modules",
6372
6371
  "tiktoken",
@@ -6377,7 +6376,7 @@ var require_tiktoken = __commonJS({
6377
6376
  }
6378
6377
  return memo;
6379
6378
  }, []);
6380
- candidates.unshift(path3.join(__dirname, "./tiktoken_bg.wasm"));
6379
+ candidates.unshift(path4.join(__dirname, "./tiktoken_bg.wasm"));
6381
6380
  var bytes = null;
6382
6381
  for (const candidate of candidates) {
6383
6382
  try {
@@ -6402,14 +6401,14 @@ import { logger } from "@elizaos/core";
6402
6401
  import { execa } from "execa";
6403
6402
 
6404
6403
  // ../../node_modules/globby/index.js
6405
- import process3 from "node:process";
6406
- import fs3 from "node:fs";
6407
- import nodePath from "node:path";
6404
+ import process3 from "process";
6405
+ import fs3 from "fs";
6406
+ import nodePath from "path";
6408
6407
 
6409
6408
  // ../../node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js
6410
- import { on, once } from "node:events";
6411
- import { PassThrough as PassThroughStream } from "node:stream";
6412
- import { finished } from "node:stream/promises";
6409
+ import { on, once } from "events";
6410
+ import { PassThrough as PassThroughStream } from "stream";
6411
+ import { finished } from "stream/promises";
6413
6412
  function mergeStreams(streams) {
6414
6413
  if (!Array.isArray(streams)) {
6415
6414
  throw new TypeError(`Expected an array, got \`${typeof streams}\`.`);
@@ -6587,8 +6586,8 @@ var PASSTHROUGH_LISTENERS_PER_STREAM = 1;
6587
6586
  var import_fast_glob2 = __toESM(require_out4(), 1);
6588
6587
 
6589
6588
  // ../../node_modules/path-type/index.js
6590
- import fs from "node:fs";
6591
- import fsPromises from "node:fs/promises";
6589
+ import fs from "fs";
6590
+ import fsPromises from "fs/promises";
6592
6591
  async function isType(fsStatType, statsMethodName, filePath) {
6593
6592
  if (typeof filePath !== "string") {
6594
6593
  throw new TypeError(`Expected a string, got ${typeof filePath}`);
@@ -6624,9 +6623,10 @@ var isDirectorySync = isTypeSync.bind(void 0, "statSync", "isDirectory");
6624
6623
  var isSymlinkSync = isTypeSync.bind(void 0, "lstatSync", "isSymbolicLink");
6625
6624
 
6626
6625
  // ../../node_modules/unicorn-magic/node.js
6627
- import { promisify } from "node:util";
6628
- import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
6629
- import { fileURLToPath } from "node:url";
6626
+ import { promisify } from "util";
6627
+ import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "child_process";
6628
+ import path from "path";
6629
+ import { fileURLToPath } from "url";
6630
6630
  var execFileOriginal = promisify(execFileCallback);
6631
6631
  function toPath(urlOrPath) {
6632
6632
  return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
@@ -6636,18 +6636,18 @@ var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
6636
6636
  // ../../node_modules/globby/ignore.js
6637
6637
  var import_fast_glob = __toESM(require_out4(), 1);
6638
6638
  var import_ignore = __toESM(require_ignore(), 1);
6639
- import process2 from "node:process";
6640
- import fs2 from "node:fs";
6641
- import fsPromises2 from "node:fs/promises";
6642
- import path from "node:path";
6639
+ import process2 from "process";
6640
+ import fs2 from "fs";
6641
+ import fsPromises2 from "fs/promises";
6642
+ import path2 from "path";
6643
6643
 
6644
6644
  // ../../node_modules/globby/node_modules/slash/index.js
6645
- function slash(path3) {
6646
- const isExtendedLengthPath = path3.startsWith("\\\\?\\");
6645
+ function slash(path4) {
6646
+ const isExtendedLengthPath = path4.startsWith("\\\\?\\");
6647
6647
  if (isExtendedLengthPath) {
6648
- return path3;
6648
+ return path4;
6649
6649
  }
6650
- return path3.replace(/\\/g, "/");
6650
+ return path4.replace(/\\/g, "/");
6651
6651
  }
6652
6652
 
6653
6653
  // ../../node_modules/globby/utilities.js
@@ -6665,16 +6665,16 @@ var ignoreFilesGlobOptions = {
6665
6665
  dot: true
6666
6666
  };
6667
6667
  var GITIGNORE_FILES_PATTERN = "**/.gitignore";
6668
- var applyBaseToPattern = (pattern, base) => isNegativePattern(pattern) ? "!" + path.posix.join(base, pattern.slice(1)) : path.posix.join(base, pattern);
6668
+ var applyBaseToPattern = (pattern, base) => isNegativePattern(pattern) ? "!" + path2.posix.join(base, pattern.slice(1)) : path2.posix.join(base, pattern);
6669
6669
  var parseIgnoreFile = (file, cwd) => {
6670
- const base = slash(path.relative(cwd, path.dirname(file.filePath)));
6670
+ const base = slash(path2.relative(cwd, path2.dirname(file.filePath)));
6671
6671
  return file.content.split(/\r?\n/).filter((line) => line && !line.startsWith("#")).map((pattern) => applyBaseToPattern(pattern, base));
6672
6672
  };
6673
6673
  var toRelativePath = (fileOrDirectory, cwd) => {
6674
6674
  cwd = slash(cwd);
6675
- if (path.isAbsolute(fileOrDirectory)) {
6675
+ if (path2.isAbsolute(fileOrDirectory)) {
6676
6676
  if (slash(fileOrDirectory).startsWith(cwd)) {
6677
- return path.relative(cwd, fileOrDirectory);
6677
+ return path2.relative(cwd, fileOrDirectory);
6678
6678
  }
6679
6679
  throw new Error(`Path ${fileOrDirectory} is not in cwd ${cwd}`);
6680
6680
  }
@@ -6735,8 +6735,8 @@ var assertPatternsInput = (patterns) => {
6735
6735
  }
6736
6736
  };
6737
6737
  var normalizePathForDirectoryGlob = (filePath, cwd) => {
6738
- const path3 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
6739
- return nodePath.isAbsolute(path3) ? path3 : nodePath.join(cwd, path3);
6738
+ const path4 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
6739
+ return nodePath.isAbsolute(path4) ? path4 : nodePath.join(cwd, path4);
6740
6740
  };
6741
6741
  var getDirectoryGlob = ({ directoryPath, files, extensions }) => {
6742
6742
  const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
@@ -6919,7 +6919,7 @@ var generateGlobTasksSync = normalizeArgumentsSync(generateTasksSync);
6919
6919
  var { convertPathToPattern } = import_fast_glob2.default;
6920
6920
 
6921
6921
  // src/utils/upgrade/migrator.ts
6922
- import * as path2 from "path";
6922
+ import * as path3 from "path";
6923
6923
  import { dirname as dirname2 } from "path";
6924
6924
  var import_tiktoken = __toESM(require_tiktoken(), 1);
6925
6925
  import { fileURLToPath as fileURLToPath2 } from "url";
@@ -7011,7 +7011,7 @@ var PluginMigrator = class {
7011
7011
  await this.createBranch();
7012
7012
  spinner.succeed(`Branch ${BRANCH_NAME} created`);
7013
7013
  const initialCommit = await this.git.revparse(["HEAD"]);
7014
- const claudeMdPath = path2.join(this.repoPath, "CLAUDE.md");
7014
+ const claudeMdPath = path3.join(this.repoPath, "CLAUDE.md");
7015
7015
  let skipGeneration = false;
7016
7016
  if (await fs4.pathExists(claudeMdPath)) {
7017
7017
  spinner.info(`CLAUDE.md already exists. Skipping generation.`);
@@ -7135,7 +7135,7 @@ var PluginMigrator = class {
7135
7135
  }
7136
7136
  async runTests() {
7137
7137
  try {
7138
- const packageJsonPath = path2.join(this.repoPath, "package.json");
7138
+ const packageJsonPath = path3.join(this.repoPath, "package.json");
7139
7139
  if (!await fs4.pathExists(packageJsonPath)) {
7140
7140
  return {
7141
7141
  success: false,
@@ -7171,7 +7171,7 @@ var PluginMigrator = class {
7171
7171
  logger.info("Running tests with elizaos test...");
7172
7172
  } catch {
7173
7173
  const packageJson = JSON.parse(
7174
- await fs4.readFile(path2.join(this.repoPath, "package.json"), "utf-8")
7174
+ await fs4.readFile(path3.join(this.repoPath, "package.json"), "utf-8")
7175
7175
  );
7176
7176
  if (packageJson.scripts?.test) {
7177
7177
  testCommand = "bun";
@@ -7260,7 +7260,7 @@ Respond with a JSON object:
7260
7260
  let content = "";
7261
7261
  let totalTokens = 0;
7262
7262
  for (const file of this.changedFiles) {
7263
- const filePath = path2.join(this.repoPath, file);
7263
+ const filePath = path3.join(this.repoPath, file);
7264
7264
  if (await fs4.pathExists(filePath)) {
7265
7265
  let fileContent = await fs4.readFile(filePath, "utf-8");
7266
7266
  let fileTokens = encoder.encode(fileContent).length;
@@ -7364,8 +7364,8 @@ Make all necessary changes to fix the issues and ensure the migration is complet
7364
7364
  this.originalPath = input;
7365
7365
  const repoName = input.split("/").slice(-2).join("/").replace(".git", "");
7366
7366
  const repoFolder = repoName.split("/")[1] || repoName;
7367
- this.repoPath = path2.join(process.cwd(), "cloned_repos", repoFolder);
7368
- await fs4.ensureDir(path2.dirname(this.repoPath));
7367
+ this.repoPath = path3.join(process.cwd(), "cloned_repos", repoFolder);
7368
+ await fs4.ensureDir(path3.dirname(this.repoPath));
7369
7369
  if (await fs4.pathExists(this.repoPath)) {
7370
7370
  this.git = esm_default(this.repoPath);
7371
7371
  try {
@@ -7386,7 +7386,7 @@ Make all necessary changes to fix the issues and ensure the migration is complet
7386
7386
  if (branches.current !== "main") await this.git.checkout("main");
7387
7387
  }
7388
7388
  } else {
7389
- this.repoPath = path2.resolve(input);
7389
+ this.repoPath = path3.resolve(input);
7390
7390
  if (!await fs4.pathExists(this.repoPath)) {
7391
7391
  throw new Error(`Folder not found: ${this.repoPath}`);
7392
7392
  }
@@ -7400,17 +7400,17 @@ Make all necessary changes to fix the issues and ensure the migration is complet
7400
7400
  index: null,
7401
7401
  sourceFiles: []
7402
7402
  };
7403
- const readmePath = path2.join(this.repoPath, "README.md");
7403
+ const readmePath = path3.join(this.repoPath, "README.md");
7404
7404
  if (await fs4.pathExists(readmePath)) {
7405
7405
  files.readme = await fs4.readFile(readmePath, "utf-8");
7406
7406
  }
7407
- const packagePath = path2.join(this.repoPath, "package.json");
7407
+ const packagePath = path3.join(this.repoPath, "package.json");
7408
7408
  if (await fs4.pathExists(packagePath)) {
7409
7409
  files.packageJson = await fs4.readFile(packagePath, "utf-8");
7410
7410
  }
7411
7411
  const indexPaths = ["index.ts", "src/index.ts", "index.js", "src/index.js"];
7412
7412
  for (const indexPath of indexPaths) {
7413
- const fullPath = path2.join(this.repoPath, indexPath);
7413
+ const fullPath = path3.join(this.repoPath, indexPath);
7414
7414
  if (await fs4.pathExists(fullPath)) {
7415
7415
  files.index = {
7416
7416
  path: indexPath,
@@ -7448,7 +7448,7 @@ Make all necessary changes to fix the issues and ensure the migration is complet
7448
7448
  });
7449
7449
  for (const file of sortedFiles) {
7450
7450
  if (file === files.index?.path) continue;
7451
- const filePath = path2.join(this.repoPath, file);
7451
+ const filePath = path3.join(this.repoPath, file);
7452
7452
  const stats = await fs4.stat(filePath);
7453
7453
  if (stats.size > 1024 * 1024) {
7454
7454
  logger.warn(`Skipping large file: ${file} (${stats.size} bytes)`);
@@ -7550,7 +7550,7 @@ Format your response as a clear, actionable migration plan.`;
7550
7550
  );
7551
7551
  }
7552
7552
  async createMigrationInstructions(specificStrategy) {
7553
- const baseClaude = await fs4.readFile(path2.join(__dirname2, "./CLAUDE.md"), "utf-8");
7553
+ const baseClaude = await fs4.readFile(path3.join(__dirname2, "./CLAUDE.md"), "utf-8");
7554
7554
  const combinedInstructions = baseClaude + `
7555
7555
 
7556
7556
  ## SPECIFIC MIGRATION STRATEGY FOR THIS PLUGIN
@@ -7572,7 +7572,7 @@ Work systematically through the strategy. Make all changes, create all tests, an
7572
7572
 
7573
7573
  The goal is a fully migrated, tested, and working 1.x plugin.
7574
7574
  `;
7575
- const outputPath = path2.join(this.repoPath, "CLAUDE.md");
7575
+ const outputPath = path3.join(this.repoPath, "CLAUDE.md");
7576
7576
  await fs4.writeFile(outputPath, combinedInstructions);
7577
7577
  }
7578
7578
  async createBranch() {
@@ -7624,7 +7624,7 @@ The goal is a fully migrated, tested, and working 1.x plugin.
7624
7624
  }
7625
7625
  async createLockFile() {
7626
7626
  if (!this.repoPath) return;
7627
- this.lockFilePath = path2.join(this.repoPath, LOCK_FILE_NAME);
7627
+ this.lockFilePath = path3.join(this.repoPath, LOCK_FILE_NAME);
7628
7628
  if (await fs4.pathExists(this.lockFilePath)) {
7629
7629
  const lockData2 = await fs4.readFile(this.lockFilePath, "utf-8");
7630
7630
  throw new Error(