@axiom-lattice/gateway 2.1.99 → 2.1.101
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/.turbo/turbo-build.log +16 -16
- package/CHANGELOG.md +23 -0
- package/dist/{WechatChannelAdapter-QQYOHZTL.mjs → WechatChannelAdapter-WSDKR4OA.mjs} +23 -17
- package/dist/WechatChannelAdapter-WSDKR4OA.mjs.map +1 -0
- package/dist/index.js +36 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/channels/wechat/WechatChannelAdapter.ts +3 -3
- package/src/channels/wechat/__tests__/context-store.test.ts +148 -0
- package/src/channels/wechat/context-store.ts +22 -15
- package/src/controllers/workspace.ts +16 -9
- package/dist/WechatChannelAdapter-QQYOHZTL.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -3434,9 +3434,13 @@ var WorkspaceController = class {
|
|
|
3434
3434
|
const isBinary = this.isBinaryContentType(filename2);
|
|
3435
3435
|
const volumeBackend = await sandboxManager.getVolumeBackendForPath(volumeConfig, resolvedPath);
|
|
3436
3436
|
let buf;
|
|
3437
|
-
if (volumeBackend
|
|
3438
|
-
|
|
3439
|
-
|
|
3437
|
+
if (volumeBackend) {
|
|
3438
|
+
if (isBinary && volumeBackend.readBinary) {
|
|
3439
|
+
buf = await volumeBackend.readBinary(resolvedPath);
|
|
3440
|
+
} else {
|
|
3441
|
+
const fileData = await volumeBackend.readRaw(resolvedPath);
|
|
3442
|
+
buf = Buffer.from(fileData.content.join("\n"), "utf-8");
|
|
3443
|
+
}
|
|
3440
3444
|
} else {
|
|
3441
3445
|
const sandbox = await sandboxManager.getSandboxFromConfig(volumeConfig);
|
|
3442
3446
|
buf = await sandbox.file.downloadFile({ file: resolvedPath });
|
|
@@ -3484,9 +3488,13 @@ var WorkspaceController = class {
|
|
|
3484
3488
|
const isBinary = this.isBinaryContentType(filename2);
|
|
3485
3489
|
const volumeBackend = await sandboxManager.getVolumeBackendForPath(volumeConfig, resolvedPath);
|
|
3486
3490
|
let buf;
|
|
3487
|
-
if (volumeBackend
|
|
3488
|
-
|
|
3489
|
-
|
|
3491
|
+
if (volumeBackend) {
|
|
3492
|
+
if (isBinary && volumeBackend.readBinary) {
|
|
3493
|
+
buf = await volumeBackend.readBinary(resolvedPath);
|
|
3494
|
+
} else {
|
|
3495
|
+
const fileData = await volumeBackend.readRaw(resolvedPath);
|
|
3496
|
+
buf = Buffer.from(fileData.content.join("\n"), "utf-8");
|
|
3497
|
+
}
|
|
3490
3498
|
} else {
|
|
3491
3499
|
const sandbox = await sandboxManager.getSandboxFromConfig(volumeConfig);
|
|
3492
3500
|
buf = await sandbox.file.downloadFile({ file: resolvedPath });
|
|
@@ -8310,7 +8318,7 @@ var start = async (config) => {
|
|
|
8310
8318
|
let channelDeps;
|
|
8311
8319
|
const adapterRegistry = new ChannelAdapterRegistry();
|
|
8312
8320
|
adapterRegistry.register(larkChannelAdapter);
|
|
8313
|
-
const { wechatChannelAdapter } = await import("./WechatChannelAdapter-
|
|
8321
|
+
const { wechatChannelAdapter } = await import("./WechatChannelAdapter-WSDKR4OA.mjs");
|
|
8314
8322
|
adapterRegistry.register(wechatChannelAdapter);
|
|
8315
8323
|
try {
|
|
8316
8324
|
const { getStoreLattice: getStore2 } = await import("@axiom-lattice/core");
|