mioki 0.15.1 → 0.16.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.
package/dist/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_package = require('./package-DrAKGYns.cjs');
2
+ const require_package = require('./package-Cs8cEndC.cjs');
3
3
  let node_fs = require("node:fs");
4
4
  node_fs = require_package.__toESM(node_fs);
5
5
  let node_path = require("node:path");
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as version } from "./package-75_Caljc.mjs";
2
+ import { t as version } from "./package-UYRX612w.mjs";
3
3
  import fs from "node:fs";
4
4
  import path from "node:path";
5
5
  import mri from "mri";
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_package = require('./package-DrAKGYns.cjs');
1
+ const require_package = require('./package-Cs8cEndC.cjs');
2
2
  let node_fs = require("node:fs");
3
3
  node_fs = require_package.__toESM(node_fs);
4
4
  let node_util = require("node:util");
@@ -1391,13 +1391,15 @@ async function enablePlugin(bots, plugin, type = "external") {
1391
1391
  const createContext = (bot) => {
1392
1392
  return {
1393
1393
  bot,
1394
- bots,
1395
1394
  self_id: bot.bot_id,
1395
+ bots,
1396
+ pickBot: (id) => bots.find((b) => b.bot_id === id),
1396
1397
  segment: bot.segment,
1397
1398
  getCookie: bot.getCookie.bind(bot),
1398
1399
  ...utils_exports,
1399
1400
  ...config_exports,
1400
1401
  ...buildRemovedActions(bot),
1402
+ actions: actions_exports,
1401
1403
  logger: logger$1,
1402
1404
  services,
1403
1405
  clears: userClears,