@elizaos/cli 1.7.1-alpha.9 → 1.7.1-beta.0

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":"docker-build.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/utils/docker-build.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,CAS7D;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAA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E,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,CAS7D;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAgC3E;AA4BD;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAoJ9F;AA2DD;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAsJ3F;AAiBD;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,kBAAkB,EAChC,WAAW,EAAE,iBAAiB,GAC7B,OAAO,CAAC;IACT,WAAW,EAAE,iBAAiB,CAAC;IAC/B,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B,CAAC,CAeD;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B3E"}
package/dist/index.js CHANGED
@@ -4670,7 +4670,7 @@ __export(exports_version, {
4670
4670
  BUILD_TIME: () => BUILD_TIME,
4671
4671
  BUILD_ENV: () => BUILD_ENV
4672
4672
  });
4673
- var CLI_VERSION = "1.7.1-alpha.9", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2026-01-05T15:21:47.465Z", BUILD_ENV = "production", version_default;
4673
+ var CLI_VERSION = "1.7.1-beta.0", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2026-01-12T18:53:52.188Z", BUILD_ENV = "production", version_default;
4674
4674
  var init_version = __esm(() => {
4675
4675
  version_default = {
4676
4676
  version: CLI_VERSION,
@@ -33948,7 +33948,7 @@ function mergeUint8Arrays(items) {
33948
33948
  }
33949
33949
 
33950
33950
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/util/version.js
33951
- var packageVersion = "24.34.0";
33951
+ var packageVersion = "24.35.0";
33952
33952
 
33953
33953
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js
33954
33954
  async function importDebug() {
@@ -38643,6 +38643,7 @@ var init_Page = __esm(() => {
38643
38643
  }
38644
38644
  _isDragging = (__runInitializers4(this, _instanceExtraInitializers), false);
38645
38645
  _timeoutSettings = new TimeoutSettings;
38646
+ _tabId = "";
38646
38647
  #requestHandlers = new WeakMap;
38647
38648
  #inflight$ = new ReplaySubject(1);
38648
38649
  constructor() {
@@ -39788,13 +39789,15 @@ class ConsoleMessage {
39788
39789
  #stackTraceLocations;
39789
39790
  #frame;
39790
39791
  #rawStackTrace;
39791
- constructor(type, text, args, stackTraceLocations, frame, rawStackTrace) {
39792
+ #targetId;
39793
+ constructor(type, text, args, stackTraceLocations, frame, rawStackTrace, targetId) {
39792
39794
  this.#type = type;
39793
39795
  this.#text = text;
39794
39796
  this.#args = args;
39795
39797
  this.#stackTraceLocations = stackTraceLocations;
39796
39798
  this.#frame = frame;
39797
39799
  this.#rawStackTrace = rawStackTrace;
39800
+ this.#targetId = targetId;
39798
39801
  }
39799
39802
  type() {
39800
39803
  return this.#type;
@@ -39814,6 +39817,9 @@ class ConsoleMessage {
39814
39817
  _rawStackTrace() {
39815
39818
  return this.#rawStackTrace;
39816
39819
  }
39820
+ _targetId() {
39821
+ return this.#targetId;
39822
+ }
39817
39823
  }
39818
39824
 
39819
39825
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js
@@ -53252,9 +53258,6 @@ var init_BrowsingContext = __esm(() => {
53252
53258
  return data;
53253
53259
  }
53254
53260
  async close(promptUnload) {
53255
- await Promise.all([...this.#children.values()].map(async (child) => {
53256
- await child.close(promptUnload);
53257
- }));
53258
53261
  await this.#session.send("browsingContext.close", {
53259
53262
  context: this.id,
53260
53263
  promptUnload
@@ -53652,6 +53655,7 @@ var init_UserContext = __esm(() => {
53652
53655
  type,
53653
53656
  ...options,
53654
53657
  referenceContext: options.referenceContext?.id,
53658
+ background: options.background,
53655
53659
  userContext: this.#id
53656
53660
  });
53657
53661
  const browsingContext = this.#browsingContexts.get(contextId);
@@ -55525,7 +55529,7 @@ var init_Frame2 = __esm(() => {
55525
55529
  const parsedValue = arg instanceof BidiJSHandle && arg.isPrimitiveValue ? BidiDeserializer.deserialize(arg.remoteValue()) : arg.toString();
55526
55530
  return `${value} ${parsedValue}`;
55527
55531
  }, "").slice(1);
55528
- this.page().trustedEmitter.emit("console", new ConsoleMessage(convertConsoleMessageLevel2(entry.method), text, args, getStackTraceLocations(entry.stackTrace), this));
55532
+ this.page().trustedEmitter.emit("console", new ConsoleMessage(convertConsoleMessageLevel2(entry.method), text, args, getStackTraceLocations(entry.stackTrace), this, undefined));
55529
55533
  } else if (isJavaScriptLogEntry(entry)) {
55530
55534
  const error47 = new Error(entry.text ?? "");
55531
55535
  const messageHeight = error47.message.split(`
@@ -57599,7 +57603,9 @@ var init_BrowserContext2 = __esm(() => {
57599
57603
  try {
57600
57604
  const _guard = __addDisposableResource18(env_1, await this.waitForScreenshotOperations(), false);
57601
57605
  const type = options?.type === "window" ? "window" : "tab";
57602
- const context2 = await this.userContext.createBrowsingContext(type);
57606
+ const context2 = await this.userContext.createBrowsingContext(type, {
57607
+ background: options?.background
57608
+ });
57603
57609
  const page = this.#pages.get(context2);
57604
57610
  if (!page) {
57605
57611
  throw new Error("Page is not found");
@@ -58463,8 +58469,8 @@ var init_Browser3 = __esm(() => {
58463
58469
  defaultBrowserContext() {
58464
58470
  return this.#browserContexts.get(this.#browserCore.defaultUserContext);
58465
58471
  }
58466
- newPage() {
58467
- return this.defaultBrowserContext().newPage();
58472
+ newPage(options) {
58473
+ return this.defaultBrowserContext().newPage(options);
58468
58474
  }
58469
58475
  installExtension(path46) {
58470
58476
  return this.#browserCore.installExtension(path46);
@@ -83213,6 +83219,7 @@ function defaultProfilePreferences(extraPrefs) {
83213
83219
  "plugin.state.flash": 0,
83214
83220
  "privacy.trackingprotection.enabled": false,
83215
83221
  "remote.enabled": true,
83222
+ "remote.bidi.dismiss_file_pickers.enabled": true,
83216
83223
  "screenshots.browser.component.enabled": false,
83217
83224
  "security.certerrors.mitm.priming.enabled": false,
83218
83225
  "security.fileuri.strict_origin_policy": false,
@@ -94194,7 +94201,7 @@ class CLI {
94194
94201
  })}`);
94195
94202
  }
94196
94203
  }
94197
- var packageVersion2 = "2.11.0";
94204
+ var packageVersion2 = "2.11.1";
94198
94205
  var init_CLI = __esm(() => {
94199
94206
  init_browser_data();
94200
94207
  init_Cache();
@@ -94884,39 +94891,39 @@ var require_lib4 = __commonJS((exports) => {
94884
94891
  var NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
94885
94892
  var BRACKET = /^[()[\]{}]$/;
94886
94893
  var tokenize2;
94887
- {
94888
- const JSX_TAG = /^[a-z][\w-]*$/i;
94889
- const getTokenType = function(token, offset, text) {
94890
- if (token.type === "name") {
94891
- if (helperValidatorIdentifier.isKeyword(token.value) || helperValidatorIdentifier.isStrictReservedWord(token.value, true) || sometimesKeywords.has(token.value)) {
94892
- return "keyword";
94893
- }
94894
- if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
94895
- return "jsxIdentifier";
94896
- }
94897
- if (token.value[0] !== token.value[0].toLowerCase()) {
94898
- return "capitalized";
94899
- }
94894
+ var JSX_TAG = /^[a-z][\w-]*$/i;
94895
+ var getTokenType = function(token, offset, text) {
94896
+ if (token.type === "name") {
94897
+ const tokenValue = token.value;
94898
+ if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) {
94899
+ return "keyword";
94900
94900
  }
94901
- if (token.type === "punctuator" && BRACKET.test(token.value)) {
94902
- return "bracket";
94901
+ if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
94902
+ return "jsxIdentifier";
94903
94903
  }
94904
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
94905
- return "punctuator";
94904
+ const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
94905
+ if (firstChar !== firstChar.toLowerCase()) {
94906
+ return "capitalized";
94906
94907
  }
94907
- return token.type;
94908
- };
94909
- tokenize2 = function* (text) {
94910
- let match2;
94911
- while (match2 = jsTokens.default.exec(text)) {
94912
- const token = jsTokens.matchToToken(match2);
94913
- yield {
94914
- type: getTokenType(token, match2.index, text),
94915
- value: token.value
94916
- };
94917
- }
94918
- };
94919
- }
94908
+ }
94909
+ if (token.type === "punctuator" && BRACKET.test(token.value)) {
94910
+ return "bracket";
94911
+ }
94912
+ if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
94913
+ return "punctuator";
94914
+ }
94915
+ return token.type;
94916
+ };
94917
+ tokenize2 = function* (text) {
94918
+ let match2;
94919
+ while (match2 = jsTokens.default.exec(text)) {
94920
+ const token = jsTokens.matchToToken(match2);
94921
+ yield {
94922
+ type: getTokenType(token, match2.index, text),
94923
+ value: token.value
94924
+ };
94925
+ }
94926
+ };
94920
94927
  function highlight(text) {
94921
94928
  if (text === "")
94922
94929
  return "";
@@ -299388,9 +299395,7 @@ class CdpWebWorker extends WebWorker {
299388
299395
  });
299389
299396
  this.#world.emitter.on("consoleapicalled", async (event) => {
299390
299397
  try {
299391
- return consoleAPICalled(event.type, event.args.map((object2) => {
299392
- return new CdpJSHandle(this.#world, object2);
299393
- }), event.stackTrace);
299398
+ return consoleAPICalled(this.#world, event);
299394
299399
  } catch (err) {
299395
299400
  debugError(err);
299396
299401
  }
@@ -299558,6 +299563,7 @@ class CdpPage extends Page {
299558
299563
  assert2(this.#tabTargetClient, "Tab target session is not defined.");
299559
299564
  this.#tabTarget = this.#tabTargetClient.target();
299560
299565
  assert2(this.#tabTarget, "Tab target is not defined.");
299566
+ this._tabId = this.#tabTarget._getTargetInfo().targetId;
299561
299567
  this.#primaryTarget = target;
299562
299568
  this.#targetManager = target._targetManager();
299563
299569
  this.#keyboard = new CdpKeyboard(client);
@@ -299684,7 +299690,7 @@ class CdpPage extends Page {
299684
299690
  assert2(session2 instanceof CdpCDPSession);
299685
299691
  this.#frameManager.onAttachedToTarget(session2.target());
299686
299692
  if (session2.target()._getTargetInfo().type === "worker") {
299687
- const worker = new CdpWebWorker(session2, session2.target().url(), session2.target()._targetId, session2.target().type(), this.#addConsoleMessage.bind(this), this.#handleException.bind(this), this.#frameManager.networkManager);
299693
+ const worker = new CdpWebWorker(session2, session2.target().url(), session2.target()._targetId, session2.target().type(), this.#onConsoleAPI.bind(this), this.#handleException.bind(this), this.#frameManager.networkManager);
299688
299694
  this.#workers.set(session2.id(), worker);
299689
299695
  this.emit("workercreated", worker);
299690
299696
  }
@@ -299809,7 +299815,7 @@ class CdpPage extends Page {
299809
299815
  });
299810
299816
  }
299811
299817
  if (source2 !== "worker") {
299812
- this.emit("console", new ConsoleMessage(convertConsoleMessageLevel(level), text, [], [{ url: url2, lineNumber }], undefined, stackTrace));
299818
+ this.emit("console", new ConsoleMessage(convertConsoleMessageLevel(level), text, [], [{ url: url2, lineNumber }], undefined, stackTrace, this.#primaryTarget._targetId));
299813
299819
  }
299814
299820
  }
299815
299821
  mainFrame() {
@@ -300014,35 +300020,14 @@ class CdpPage extends Page {
300014
300020
  const values = event.args.map((arg) => {
300015
300021
  return world.createCdpHandle(arg);
300016
300022
  });
300017
- this.#addConsoleMessage(convertConsoleMessageLevel(event.type), values, event.stackTrace);
300018
- }
300019
- async#onBindingCalled(world, event) {
300020
- let payload;
300021
- try {
300022
- payload = JSON.parse(event.payload);
300023
- } catch {
300024
- return;
300025
- }
300026
- const { type, name, seq, args, isTrivial } = payload;
300027
- if (type !== "exposedFun") {
300028
- return;
300029
- }
300030
- const context2 = world.context;
300031
- if (!context2) {
300032
- return;
300033
- }
300034
- const binding = this.#bindings.get(name);
300035
- await binding?.run(context2, seq, args, isTrivial);
300036
- }
300037
- #addConsoleMessage(eventType, args, stackTrace) {
300038
300023
  if (!this.listenerCount("console")) {
300039
- args.forEach((arg) => {
300024
+ values.forEach((arg) => {
300040
300025
  return arg.dispose();
300041
300026
  });
300042
300027
  return;
300043
300028
  }
300044
300029
  const textTokens = [];
300045
- for (const arg of args) {
300030
+ for (const arg of values) {
300046
300031
  const remoteObject = arg.remoteObject();
300047
300032
  if (remoteObject.objectId) {
300048
300033
  textTokens.push(arg.toString());
@@ -300051,8 +300036,8 @@ class CdpPage extends Page {
300051
300036
  }
300052
300037
  }
300053
300038
  const stackTraceLocations = [];
300054
- if (stackTrace) {
300055
- for (const callFrame of stackTrace.callFrames) {
300039
+ if (event.stackTrace) {
300040
+ for (const callFrame of event.stackTrace.callFrames) {
300056
300041
  stackTraceLocations.push({
300057
300042
  url: callFrame.url,
300058
300043
  lineNumber: callFrame.lineNumber,
@@ -300060,9 +300045,31 @@ class CdpPage extends Page {
300060
300045
  });
300061
300046
  }
300062
300047
  }
300063
- const message = new ConsoleMessage(convertConsoleMessageLevel(eventType), textTokens.join(" "), args, stackTraceLocations, undefined, stackTrace);
300048
+ let targetId;
300049
+ if (world.environment.client instanceof CdpCDPSession) {
300050
+ targetId = world.environment.client.target()._targetId;
300051
+ }
300052
+ const message = new ConsoleMessage(convertConsoleMessageLevel(event.type), textTokens.join(" "), values, stackTraceLocations, undefined, event.stackTrace, targetId);
300064
300053
  this.emit("console", message);
300065
300054
  }
300055
+ async#onBindingCalled(world, event) {
300056
+ let payload;
300057
+ try {
300058
+ payload = JSON.parse(event.payload);
300059
+ } catch {
300060
+ return;
300061
+ }
300062
+ const { type, name, seq, args, isTrivial } = payload;
300063
+ if (type !== "exposedFun") {
300064
+ return;
300065
+ }
300066
+ const context2 = world.context;
300067
+ if (!context2) {
300068
+ return;
300069
+ }
300070
+ const binding = this.#bindings.get(name);
300071
+ await binding?.run(context2, seq, args, isTrivial);
300072
+ }
300066
300073
  #onDialog(event) {
300067
300074
  const type = validateDialogType(event.type);
300068
300075
  const dialog = new CdpDialog(this.#primaryTargetClient, type, event.message, event.defaultPrompt);
@@ -301096,7 +301103,8 @@ class CdpBrowser extends Browser {
301096
301103
  width: windowBounds?.width,
301097
301104
  height: windowBounds?.height,
301098
301105
  windowState: windowBounds?.windowState,
301099
- newWindow: hasTargets && options?.type === "window" ? true : undefined
301106
+ newWindow: hasTargets && options?.type === "window" ? true : undefined,
301107
+ background: options?.background
301100
301108
  });
301101
301109
  const target = await this.waitForTarget((t) => {
301102
301110
  return t._targetId === targetId;
@@ -303213,8 +303221,8 @@ init_WaitTask();
303213
303221
  init_XPathQueryHandler();
303214
303222
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js
303215
303223
  var PUPPETEER_REVISIONS = Object.freeze({
303216
- chrome: "143.0.7499.169",
303217
- "chrome-headless-shell": "143.0.7499.169",
303224
+ chrome: "143.0.7499.192",
303225
+ "chrome-headless-shell": "143.0.7499.192",
303218
303226
  firefox: "stable_146.0.1"
303219
303227
  });
303220
303228
  // ../../node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js
@@ -307479,5 +307487,5 @@ main().catch((error47) => {
307479
307487
  process.exit(1);
307480
307488
  });
307481
307489
 
307482
- //# debugId=38CE72B92C793BC764756E2164756E21
307490
+ //# debugId=6FEE6C8E3EB2D0FA64756E2164756E21
307483
307491
  //# sourceMappingURL=index.js.map