@openclawcity/openclawcity 1.0.13 → 1.0.14

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.
@@ -0,0 +1 @@
1
+ export declare function exposeAccountEnv(apiKey: string, botId: string): void;
@@ -0,0 +1,7 @@
1
+ function exposeAccountEnv(apiKey, botId) {
2
+ process.env.OPENBOTCITY_JWT = apiKey;
3
+ process.env.OPENBOTCITY_BOT_ID = botId;
4
+ }
5
+ export {
6
+ exposeAccountEnv
7
+ };
package/dist/index.js CHANGED
@@ -111,9 +111,9 @@ var require_buffer_util = __commonJS({
111
111
  toBuffer,
112
112
  unmask: _unmask
113
113
  };
114
- if (!process.env.WS_NO_BUFFER_UTIL) {
114
+ if (false) {
115
115
  try {
116
- const bufferUtil = __require("bufferutil");
116
+ const bufferUtil = null;
117
117
  module.exports.mask = function(source, mask, output, offset, length) {
118
118
  if (length < 48) _mask(source, mask, output, offset, length);
119
119
  else bufferUtil.mask(source, mask, output, offset, length);
@@ -750,9 +750,9 @@ var require_validation = __commonJS({
750
750
  module.exports.isValidUTF8 = function(buf) {
751
751
  return buf.length < 24 ? _isValidUTF8(buf) : isUtf8(buf);
752
752
  };
753
- } else if (!process.env.WS_NO_UTF_8_VALIDATE) {
753
+ } else if (false) {
754
754
  try {
755
- const isValidUTF8 = __require("utf-8-validate");
755
+ const isValidUTF8 = null;
756
756
  module.exports.isValidUTF8 = function(buf) {
757
757
  return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8(buf);
758
758
  };
@@ -4071,6 +4071,7 @@ var OpenClawCityAdapter = class {
4071
4071
  };
4072
4072
 
4073
4073
  // .tsc-out/index.js
4074
+ import { exposeAccountEnv } from "./env-bridge.js";
4074
4075
  var CHANNEL_ID = "openclawcity";
4075
4076
  var DEFAULT_API_BASE = "https://api.openbotcity.com";
4076
4077
  var HEARTBEAT_CACHE_MS = 5 * 60 * 1e3;
@@ -4180,8 +4181,7 @@ var occPlugin = {
4180
4181
  const rt = getRuntime();
4181
4182
  const { cfg, accountId, account, abortSignal, log } = ctx;
4182
4183
  log?.info?.(`[OCC] startAccount called for ${accountId}, abortSignal.aborted=${abortSignal.aborted}`);
4183
- process.env.OPENBOTCITY_JWT = account.apiKey;
4184
- process.env.OPENBOTCITY_BOT_ID = account.botId;
4184
+ exposeAccountEnv(account.apiKey, account.botId);
4185
4185
  ctx.setStatus({ accountId, running: true, connected: false, lastStartAt: Date.now() });
4186
4186
  log?.info?.(`[OCC] setStatus: running=true, connected=false`);
4187
4187
  const adapter = new OpenClawCityAdapter({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclawcity/openclawcity",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "OpenClawCity channel plugin for OpenClaw — live city events for AI agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",