dsh-world 0.7.2 → 0.7.3
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/CHANGELOG.md +394 -379
- package/INSTALL.md +314 -314
- package/LICENSE +21 -21
- package/NOTES.md +21 -13
- package/README.md +20 -6
- package/client/index.js +74 -27
- package/cordis.patch.yml +6 -6
- package/lib/archiveSelection.d.ts +6 -2
- package/lib/archiveSelection.js +21 -12
- package/lib/compaction.d.ts +7 -0
- package/lib/compaction.js +16 -7
- package/lib/console/routes.d.ts +2 -3
- package/lib/console/routes.js +7 -8
- package/lib/console/snapshot.d.ts +1 -3
- package/lib/console/snapshot.js +0 -3
- package/lib/ecosystem/bridge/bridge.d.ts +5 -0
- package/lib/ecosystem/bridge/bridge.js +2 -1
- package/lib/ecosystem/bridge/route.d.ts +4 -6
- package/lib/ecosystem/bridge/route.js +34 -58
- package/lib/ecosystem/qq/panel.d.ts +0 -1
- package/lib/ecosystem/qq/route.d.ts +6 -7
- package/lib/ecosystem/qq/route.js +10 -10
- package/lib/ecosystem/qq/snowluma-start.d.ts +1 -0
- package/lib/ecosystem/qq/snowluma-start.js +41 -8
- package/lib/ecosystem/qq/supervisor.d.ts +1 -2
- package/lib/ecosystem/qq/supervisor.js +4 -2
- package/lib/ecosystem/qq-native/index.js +2 -0
- package/lib/ecosystem/qq-native/native-bridge.d.ts +0 -1
- package/lib/ecosystem/qq-native/native-bridge.js +0 -2
- package/lib/ecosystem/qq-native/snowluma.js +11 -2
- package/lib/ecosystem/wechat/index.d.ts +0 -1
- package/lib/ecosystem/wechat/index.js +6 -5
- package/lib/hostContract.d.ts +13 -0
- package/lib/index.js +106 -45
- package/lib/life/toolRegistry.js +2 -2
- package/lib/memoryFiles.d.ts +0 -1
- package/lib/memoryStore.d.ts +0 -1
- package/lib/memoryStore.js +0 -1
- package/lib/memoryTools.d.ts +0 -1
- package/lib/memoryTools.js +2 -3
- package/lib/promptSection.d.ts +7 -5
- package/lib/promptSection.js +74 -28
- package/lib/runtime.d.ts +6 -2
- package/lib/runtime.js +136 -26
- package/lib/sourceArchive.d.ts +4 -2
- package/lib/sourceArchive.js +18 -4
- package/lib/store.js +2 -1
- package/lib/types.d.ts +1 -1
- package/lib/worldPrompt.d.ts +2 -3
- package/lib/worldPrompt.js +2 -3
- package/lib/worldRoutes.d.ts +9 -0
- package/lib/worldRoutes.js +29 -0
- package/lib/worldScope.d.ts +5 -5
- package/lib/worldScope.js +16 -7
- package/lib/worldSwitch.d.ts +1 -2
- package/lib/worldSwitch.js +1 -1
- package/package.json +17 -16
- package/scripts/compact-home.mjs +29 -29
- package/scripts/enable-tool-free-compaction.ps1 +33 -33
- package/scripts/import-stickers.mjs +17 -17
- package/scripts/update-world.mjs +2 -2
- package/src/ecosystem/README.md +1 -1
- package/src/ecosystem/wechat/windows/README.md +2 -2
- package/src/ecosystem/wechat/windows/adapter.py +4 -2
- package/src/ecosystem/wechat/windows/engine/profiles.json +142 -142
- package/src/ecosystem/wechat/windows/presence.py +109 -109
- package/templates/alarm.md +2 -2
- package/templates/world-prompt.md +8 -2
package/scripts/compact-home.mjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// Asks a running world to compact her home conversation once (held behind her running turn).
|
|
3
|
-
// Needs `bridge: true` in the plugin config. Usage: node scripts/compact-home.mjs [world directory]
|
|
4
|
-
// The world directory defaults to $DSH_WORLD_DIR, then ~/.dsh/worlds/<the only world there>.
|
|
5
|
-
import { existsSync, readFileSync, readdirSync } from 'node:fs';
|
|
6
|
-
import { homedir } from 'node:os';
|
|
7
|
-
import { join } from 'node:path';
|
|
8
|
-
|
|
9
|
-
function worldDir() {
|
|
10
|
-
if (process.argv[2]) return process.argv[2];
|
|
11
|
-
if (process.env.DSH_WORLD_DIR) return process.env.DSH_WORLD_DIR;
|
|
12
|
-
const root = join(homedir(), '.dsh', 'worlds');
|
|
13
|
-
const worlds = existsSync(root) ? readdirSync(root, { withFileTypes: true }).filter(entry => entry.isDirectory()).map(entry => entry.name) : [];
|
|
14
|
-
if (worlds.length !== 1) throw new Error(`找不到唯一的世界目录,请把路径作为参数传入(在 ${root} 下找到 ${worlds.length} 个)`);
|
|
15
|
-
return join(root, worlds[0]);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
try {
|
|
19
|
-
const file = join(worldDir(), 'bridge.json');
|
|
20
|
-
if (!existsSync(file)) throw new Error(`没有 ${file}:世界没有在运行,或者没有开启 bridge`);
|
|
21
|
-
const { origin, token } = JSON.parse(readFileSync(file, 'utf8'));
|
|
22
|
-
const response = await fetch(new URL(
|
|
23
|
-
const body = await response.json().catch(() => ({}));
|
|
24
|
-
if (response.status === 202) console.log('已请求压缩家会话;她正在忙的话会等这一轮结束后再压缩。');
|
|
25
|
-
else { console.error(`没有受理(${response.status}):${body.error ?? '未知原因'}`); process.exitCode = 1; }
|
|
26
|
-
} catch (error) {
|
|
27
|
-
console.error(error instanceof Error ? error.message : String(error));
|
|
28
|
-
process.exitCode = 1;
|
|
29
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Asks a running world to compact her home conversation once (held behind her running turn).
|
|
3
|
+
// Needs `bridge: true` in the plugin config. Usage: node scripts/compact-home.mjs [world directory]
|
|
4
|
+
// The world directory defaults to $DSH_WORLD_DIR, then ~/.dsh/worlds/<the only world there>.
|
|
5
|
+
import { existsSync, readFileSync, readdirSync } from 'node:fs';
|
|
6
|
+
import { homedir } from 'node:os';
|
|
7
|
+
import { join } from 'node:path';
|
|
8
|
+
|
|
9
|
+
function worldDir() {
|
|
10
|
+
if (process.argv[2]) return process.argv[2];
|
|
11
|
+
if (process.env.DSH_WORLD_DIR) return process.env.DSH_WORLD_DIR;
|
|
12
|
+
const root = join(homedir(), '.dsh', 'worlds');
|
|
13
|
+
const worlds = existsSync(root) ? readdirSync(root, { withFileTypes: true }).filter(entry => entry.isDirectory()).map(entry => entry.name) : [];
|
|
14
|
+
if (worlds.length !== 1) throw new Error(`找不到唯一的世界目录,请把路径作为参数传入(在 ${root} 下找到 ${worlds.length} 个)`);
|
|
15
|
+
return join(root, worlds[0]);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
try {
|
|
19
|
+
const file = join(worldDir(), 'bridge.json');
|
|
20
|
+
if (!existsSync(file)) throw new Error(`没有 ${file}:世界没有在运行,或者没有开启 bridge`);
|
|
21
|
+
const { origin, compactPath, token } = JSON.parse(readFileSync(file, 'utf8'));
|
|
22
|
+
const response = await fetch(new URL(compactPath, origin), { method: 'POST', headers: { 'x-dsh-world-token': token }, signal: AbortSignal.timeout(15000) });
|
|
23
|
+
const body = await response.json().catch(() => ({}));
|
|
24
|
+
if (response.status === 202) console.log('已请求压缩家会话;她正在忙的话会等这一轮结束后再压缩。');
|
|
25
|
+
else { console.error(`没有受理(${response.status}):${body.error ?? '未知原因'}`); process.exitCode = 1; }
|
|
26
|
+
} catch (error) {
|
|
27
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
28
|
+
process.exitCode = 1;
|
|
29
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
param(
|
|
2
|
-
[Parameter(Mandatory = $true)]
|
|
3
|
-
[string] $profilePath
|
|
4
|
-
)
|
|
5
|
-
|
|
6
|
-
$ErrorActionPreference = 'Stop'
|
|
7
|
-
try {
|
|
8
|
-
$resolvedProfile = (Resolve-Path -LiteralPath $profilePath).Path
|
|
9
|
-
$packagePath = Join-Path $resolvedProfile 'package.json'
|
|
10
|
-
$patchPath = Join-Path $resolvedProfile 'cordis.patch.yml'
|
|
11
|
-
$package = Get-Content -LiteralPath $packagePath -Raw | ConvertFrom-Json
|
|
12
|
-
if (-not $package.dependencies.'dsh-world') {
|
|
13
|
-
throw 'Install the built dsh-world package in this profile before enabling its compaction backend.'
|
|
14
|
-
}
|
|
15
|
-
$content = [System.IO.File]::ReadAllText($patchPath)
|
|
16
|
-
if ($content -match '(?m)^\s*name:\s*[''"'']?dsh-world/compaction[''"'']?\s*$') {
|
|
17
|
-
Write-Output 'Tool-free compaction is already configured.'
|
|
18
|
-
return
|
|
19
|
-
}
|
|
20
|
-
$pattern = '(?m)^(\s*name:\s*)([''"'']?)@deepseek-ai/dsh-compaction-basic\2([ \t]*(?:#.*)?\r?)$'
|
|
21
|
-
$matchesFound = [regex]::Matches($content, $pattern)
|
|
22
|
-
if ($matchesFound.Count -ne 1) {
|
|
23
|
-
throw "Expected exactly one explicit compaction-basic entry in cordis.patch.yml; found $($matchesFound.Count). No configuration was changed."
|
|
24
|
-
}
|
|
25
|
-
$updated = [regex]::Replace($content, $pattern, '${1}''dsh-world/compaction''${3}')
|
|
26
|
-
$backupPath = "$patchPath.dsh-world.$([Guid]::NewGuid().ToString('N')).bak"
|
|
27
|
-
$temporaryPath = "$patchPath.$([Guid]::NewGuid().ToString('N')).tmp"
|
|
28
|
-
[System.IO.File]::WriteAllText($temporaryPath, $updated, [System.Text.UTF8Encoding]::new($false))
|
|
29
|
-
[System.IO.File]::Replace($temporaryPath, $patchPath, $backupPath)
|
|
30
|
-
Write-Output "Configured tool-free compaction. Restart this DSH profile to load it. Backup: $backupPath"
|
|
31
|
-
} catch {
|
|
32
|
-
throw "Cannot configure dsh-world compaction: $($_.Exception.Message)"
|
|
33
|
-
}
|
|
1
|
+
param(
|
|
2
|
+
[Parameter(Mandatory = $true)]
|
|
3
|
+
[string] $profilePath
|
|
4
|
+
)
|
|
5
|
+
|
|
6
|
+
$ErrorActionPreference = 'Stop'
|
|
7
|
+
try {
|
|
8
|
+
$resolvedProfile = (Resolve-Path -LiteralPath $profilePath).Path
|
|
9
|
+
$packagePath = Join-Path $resolvedProfile 'package.json'
|
|
10
|
+
$patchPath = Join-Path $resolvedProfile 'cordis.patch.yml'
|
|
11
|
+
$package = Get-Content -LiteralPath $packagePath -Raw | ConvertFrom-Json
|
|
12
|
+
if (-not $package.dependencies.'dsh-world') {
|
|
13
|
+
throw 'Install the built dsh-world package in this profile before enabling its compaction backend.'
|
|
14
|
+
}
|
|
15
|
+
$content = [System.IO.File]::ReadAllText($patchPath)
|
|
16
|
+
if ($content -match '(?m)^\s*name:\s*[''"'']?dsh-world/compaction[''"'']?\s*$') {
|
|
17
|
+
Write-Output 'Tool-free compaction is already configured.'
|
|
18
|
+
return
|
|
19
|
+
}
|
|
20
|
+
$pattern = '(?m)^(\s*name:\s*)([''"'']?)@deepseek-ai/dsh-compaction-basic\2([ \t]*(?:#.*)?\r?)$'
|
|
21
|
+
$matchesFound = [regex]::Matches($content, $pattern)
|
|
22
|
+
if ($matchesFound.Count -ne 1) {
|
|
23
|
+
throw "Expected exactly one explicit compaction-basic entry in cordis.patch.yml; found $($matchesFound.Count). No configuration was changed."
|
|
24
|
+
}
|
|
25
|
+
$updated = [regex]::Replace($content, $pattern, '${1}''dsh-world/compaction''${3}')
|
|
26
|
+
$backupPath = "$patchPath.dsh-world.$([Guid]::NewGuid().ToString('N')).bak"
|
|
27
|
+
$temporaryPath = "$patchPath.$([Guid]::NewGuid().ToString('N')).tmp"
|
|
28
|
+
[System.IO.File]::WriteAllText($temporaryPath, $updated, [System.Text.UTF8Encoding]::new($false))
|
|
29
|
+
[System.IO.File]::Replace($temporaryPath, $patchPath, $backupPath)
|
|
30
|
+
Write-Output "Configured tool-free compaction. Restart this DSH profile to load it. Backup: $backupPath"
|
|
31
|
+
} catch {
|
|
32
|
+
throw "Cannot configure dsh-world compaction: $($_.Exception.Message)"
|
|
33
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// One-time import of the older sticker plugin's library (catalog.json + assets/) into the world's own sticker library.
|
|
2
|
-
// Usage: node scripts/import-stickers.mjs <older library folder, e.g. ~/.dsh/memes> <world folder, e.g. ~/.dsh/worlds/<id>>
|
|
3
|
-
// Ids, names and tags carry over; packs and long meanings do not. Running it again adds nothing. The older folder is only read.
|
|
4
|
-
import { join, resolve } from 'node:path';
|
|
5
|
-
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
6
|
-
|
|
7
|
-
const [legacy, world] = process.argv.slice(2);
|
|
8
|
-
if (!legacy || !world) {
|
|
9
|
-
console.error('用法:node scripts/import-stickers.mjs <旧表情包目录> <世界目录>');
|
|
10
|
-
process.exit(2);
|
|
11
|
-
}
|
|
12
|
-
const modulePath = join(fileURLToPath(new URL('..', import.meta.url)), 'lib', 'ecosystem', 'wechat', 'stickerLibrary.js');
|
|
13
|
-
const { createStickerLibrary, importLegacyStickers } = await import(pathToFileURL(modulePath).href);
|
|
14
|
-
const library = createStickerLibrary(join(resolve(world), 'stickers'));
|
|
15
|
-
const report = await importLegacyStickers(resolve(legacy), library);
|
|
16
|
-
console.log(`导入 ${report.imported} 张,已在库里的 ${report.duplicates} 张,跳过 ${report.skipped.length} 张;表情库现有 ${(await library.list()).length} 张。`);
|
|
17
|
-
for (const line of report.skipped) console.log(` 跳过 ${line}`);
|
|
1
|
+
// One-time import of the older sticker plugin's library (catalog.json + assets/) into the world's own sticker library.
|
|
2
|
+
// Usage: node scripts/import-stickers.mjs <older library folder, e.g. ~/.dsh/memes> <world folder, e.g. ~/.dsh/worlds/<id>>
|
|
3
|
+
// Ids, names and tags carry over; packs and long meanings do not. Running it again adds nothing. The older folder is only read.
|
|
4
|
+
import { join, resolve } from 'node:path';
|
|
5
|
+
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
6
|
+
|
|
7
|
+
const [legacy, world] = process.argv.slice(2);
|
|
8
|
+
if (!legacy || !world) {
|
|
9
|
+
console.error('用法:node scripts/import-stickers.mjs <旧表情包目录> <世界目录>');
|
|
10
|
+
process.exit(2);
|
|
11
|
+
}
|
|
12
|
+
const modulePath = join(fileURLToPath(new URL('..', import.meta.url)), 'lib', 'ecosystem', 'wechat', 'stickerLibrary.js');
|
|
13
|
+
const { createStickerLibrary, importLegacyStickers } = await import(pathToFileURL(modulePath).href);
|
|
14
|
+
const library = createStickerLibrary(join(resolve(world), 'stickers'));
|
|
15
|
+
const report = await importLegacyStickers(resolve(legacy), library);
|
|
16
|
+
console.log(`导入 ${report.imported} 张,已在库里的 ${report.duplicates} 张,跳过 ${report.skipped.length} 张;表情库现有 ${(await library.list()).length} 张。`);
|
|
17
|
+
for (const line of report.skipped) console.log(` 跳过 ${line}`);
|
package/scripts/update-world.mjs
CHANGED
|
@@ -7,8 +7,8 @@ import { fileURLToPath } from 'node:url';
|
|
|
7
7
|
import { isDeepStrictEqual, parseArgs, promisify } from 'node:util';
|
|
8
8
|
|
|
9
9
|
const execute = promisify(execFile);
|
|
10
|
-
const command = (file, args, options = {}) => execute(file, args, { windowsHide: true, maxBuffer: 16 * 1024 * 1024, ...options });
|
|
11
|
-
// GNU tar (the one Git Bash puts first) reads the `C:` of an archive path as a remote host; naming the archive from its own folder works with every tar.
|
|
10
|
+
const command = (file, args, options = {}) => execute(file, args, { windowsHide: true, maxBuffer: 16 * 1024 * 1024, ...options });
|
|
11
|
+
// GNU tar (the one Git Bash puts first) reads the `C:` of an archive path as a remote host; naming the archive from its own folder works with every tar.
|
|
12
12
|
const readArchive = (run, archive, args, options = {}) => run('tar', [args[0], basename(archive), ...args.slice(1)], { ...options, cwd: dirname(archive) });
|
|
13
13
|
const json = async file => JSON.parse((await readFile(file, 'utf8')).replace(/^\uFEFF/, ''));
|
|
14
14
|
async function exists(file) {
|
package/src/ecosystem/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
新增模块的目录约定、公共协议、内核变更说明和提交要求见 [贡献协议](../../CONTRIBUTING.md)。
|
|
6
6
|
|
|
7
7
|
- `wechat/`:微信宿主接口、群消息主动分页读取、回复编排、图片接收和发送回执;读写使用同一账号绑定与适配器轮询。`windows/messages.py` 共用身份与显示格式,`reading.py` 负责只读历史分页,`windows/` 同时放 Python 收发适配器及 `engine/` 原生桥。启动步骤见 [微信模块](wechat/windows/README.md)。
|
|
8
|
-
- `qq/`:QQ 的两扇门——插件自己那条通道的接口(`/dsh-world/qq/native` 看状态、拨开关)与 SnowLuma 控制台入口。收发不在这里。(2026-10-27 之前这里管的是一个外部 `qq-bridge` 进程,那个进程已拆掉,配置项一并消失。)
|
|
8
|
+
- `qq/`:QQ 的两扇门——插件自己那条通道的接口(`/dsh-world/worlds/<worldId>/qq/native` 看状态、拨开关)与 SnowLuma 控制台入口。收发不在这里。(2026-10-27 之前这里管的是一个外部 `qq-bridge` 进程,那个进程已拆掉,配置项一并消失。)
|
|
9
9
|
- `qq-native/`:QQ 的原生通道——直连 OneBot 的 WebSocket(收发、去重、白名单、群里被叫到才接、主动开口引擎),以及「阳台」那条给本机别的程序用的线(`native-bridge.ts`,对面跑的是 `src/qq-line.ts`)。
|
|
10
10
|
- `shared/`:通用来源身份、群上下文、平台会话路由和消息出口。
|
|
11
11
|
- `bridge/`:桌宠及其他本地程序向家的通用桥。
|
|
@@ -142,8 +142,8 @@ node <dsh-world 包目录>scriptsimport-stickers.mjs C:Usersyou.dshmemes C:Users
|
|
|
142
142
|
|
|
143
143
|
这不是微信官方 API。版本变更需重新校准,锁屏和群聊等实际条件必须分别验证。`engine/` 基于第三方原生 ABI 研究定制,保留独立的非商业许可与来源说明;该目录不适用仓库根目录的 MIT 许可。
|
|
144
144
|
|
|
145
|
-
4.1.15.56 的指纹与 19 个原生地址映射来自 [helper 的版本表](https://github.com/Prometheus-first/helper/blob/main/native/core_version.h)。两版沿用相同请求 ABI、账号核对和消息对象字段布局;版本表选择、地址编码及未知构建拒绝由离线测试覆盖。上游已实测新版文字收发及桥接加载卸载,媒体未逐项重做真实网络操作,详见其 [验证范围](https://github.com/Prometheus-first/helper/blob/main/native/README.md);本项目实测范围见下方日期记录。本次仅更新 Python 和版本表,无须重新编译未改动的 C++ 桥;新增构建或结构发生变化时仍需校准并实测。
|
|
146
|
-
|
|
145
|
+
4.1.15.56 的指纹与 19 个原生地址映射来自 [helper 的版本表](https://github.com/Prometheus-first/helper/blob/main/native/core_version.h)。两版沿用相同请求 ABI、账号核对和消息对象字段布局;版本表选择、地址编码及未知构建拒绝由离线测试覆盖。上游已实测新版文字收发及桥接加载卸载,媒体未逐项重做真实网络操作,详见其 [验证范围](https://github.com/Prometheus-first/helper/blob/main/native/README.md);本项目实测范围见下方日期记录。本次仅更新 Python 和版本表,无须重新编译未改动的 C++ 桥;新增构建或结构发生变化时仍需校准并实测。
|
|
146
|
+
|
|
147
147
|
4.2.0.11 与 4.2.0.12 的指纹和地址取自 helper 的版本表。4.2.0.13 的地址由本项目从腾讯签名的 `Weixin.dll` 独立比对得出,基准是从安装包离线解出的 4.2.0.12 DLL。三个 4.2 构建都沿用静态表情发送方式。适配器取 GIF 第一帧转为 PNG,第一帧完全透明或只有一种颜色时改取最后一帧。4.2.0.13 仅更新版本表,已构建当前原生桥的环境可直接使用。来源见 [NOTICE](engine/NOTICE.md)。
|
|
148
148
|
|
|
149
149
|
2026-11-04 已在 Windows 微信 4.2.0.13 上通过 `Probe`,核对了构建指纹、绑定账号及原生调度。实际文字、图片、表情包投递及 DSH 收发联动待验证。
|
|
@@ -3,6 +3,7 @@ import argparse
|
|
|
3
3
|
from contextlib import contextmanager
|
|
4
4
|
from http.client import IncompleteRead
|
|
5
5
|
import json
|
|
6
|
+
import re
|
|
6
7
|
import sqlite3
|
|
7
8
|
import sys
|
|
8
9
|
import time
|
|
@@ -368,9 +369,10 @@ def postHomeOnce(moduleFile, message, timeout):
|
|
|
368
369
|
if message.get('media') and connection.get('protocol', 0) < 3:
|
|
369
370
|
raise RuntimeError('私聊图片需要新版宿主协议,请更新并重载 DSH 的 dsh-world 插件')
|
|
370
371
|
origin = urlparse(connection['origin'])
|
|
371
|
-
|
|
372
|
+
path = connection.get('path', '')
|
|
373
|
+
if origin.scheme != 'http' or origin.hostname not in ('127.0.0.1', 'localhost', '::1') or not isinstance(path, str) or not re.fullmatch(r'/dsh-world/worlds/[A-Za-z0-9][A-Za-z0-9_-]{0,63}/wechat/ask', path):
|
|
372
374
|
raise ValueError('微信模块地址必须是本机 DSH 的独立接口')
|
|
373
|
-
request = Request(connection['origin'].rstrip('/') +
|
|
375
|
+
request = Request(connection['origin'].rstrip('/') + path,
|
|
374
376
|
data=json.dumps(message, ensure_ascii=False).encode(),
|
|
375
377
|
headers={'Content-Type': 'application/json', 'x-dsh-world-token': connection['token']}, method='POST')
|
|
376
378
|
with urlopen(request, timeout=timeout) as response:
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"version": "4.1.15.13",
|
|
4
|
-
"size": 201552944,
|
|
5
|
-
"sha256": "10f8e995453e2da46d4f2b5080cd6da1f13cc5147746adc119ceae38cb039de5",
|
|
6
|
-
"timestamp": 1789961080,
|
|
7
|
-
"imageSize": 202039296,
|
|
8
|
-
"addresses": {
|
|
9
|
-
"application": 285968,
|
|
10
|
-
"scheduler": 291600,
|
|
11
|
-
"schedule": 3125264,
|
|
12
|
-
"context": 291360,
|
|
13
|
-
"provider": 3589952,
|
|
14
|
-
"manager": 7294352,
|
|
15
|
-
"text": 88802032,
|
|
16
|
-
"image": 64608656,
|
|
17
|
-
"emoticon": 29340096,
|
|
18
|
-
"copyWide": 636368,
|
|
19
|
-
"validateGif": 15182048,
|
|
20
|
-
"probeGif": 5441984,
|
|
21
|
-
"releaseProbe": 5137248,
|
|
22
|
-
"send": 24703232,
|
|
23
|
-
"allocate": 122337436,
|
|
24
|
-
"free": 122337504,
|
|
25
|
-
"accountRoot": 194061968,
|
|
26
|
-
"contextVtable": 148890360,
|
|
27
|
-
"emoticonVtable": 151891960
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"version": "4.1.15.56",
|
|
32
|
-
"size": 204305968,
|
|
33
|
-
"sha256": "e0428a7b691853de496532523c2c09aa095f90941c37c9f4cfb3f137f3c66556",
|
|
34
|
-
"timestamp": 1792050120,
|
|
35
|
-
"imageSize": 204795904,
|
|
36
|
-
"addresses": {
|
|
37
|
-
"application": 285968,
|
|
38
|
-
"scheduler": 291600,
|
|
39
|
-
"schedule": 3208272,
|
|
40
|
-
"context": 291360,
|
|
41
|
-
"provider": 3679184,
|
|
42
|
-
"manager": 7377536,
|
|
43
|
-
"text": 90112896,
|
|
44
|
-
"image": 65154416,
|
|
45
|
-
"emoticon": 29436416,
|
|
46
|
-
"copyWide": 636384,
|
|
47
|
-
"validateGif": 15343584,
|
|
48
|
-
"probeGif": 5528896,
|
|
49
|
-
"releaseProbe": 5224160,
|
|
50
|
-
"send": 24788000,
|
|
51
|
-
"allocate": 122993884,
|
|
52
|
-
"free": 122993952,
|
|
53
|
-
"accountRoot": 196685728,
|
|
54
|
-
"contextVtable": 150803560,
|
|
55
|
-
"emoticonVtable": 153824520
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"version": "4.2.0.11",
|
|
60
|
-
"size": 205929008,
|
|
61
|
-
"sha256": "745cdf2955fa5128cdb00c056c97571156a5f107406a9bb15ac0754f3246b201",
|
|
62
|
-
"timestamp": 1793108177,
|
|
63
|
-
"imageSize": 206422016,
|
|
64
|
-
"addresses": {
|
|
65
|
-
"application": 285968,
|
|
66
|
-
"scheduler": 291600,
|
|
67
|
-
"schedule": 3217808,
|
|
68
|
-
"context": 291360,
|
|
69
|
-
"provider": 3688240,
|
|
70
|
-
"manager": 7456256,
|
|
71
|
-
"text": 91356448,
|
|
72
|
-
"image": 65819968,
|
|
73
|
-
"emoticon": null,
|
|
74
|
-
"copyWide": 636384,
|
|
75
|
-
"validateGif": null,
|
|
76
|
-
"probeGif": null,
|
|
77
|
-
"releaseProbe": null,
|
|
78
|
-
"send": 24965648,
|
|
79
|
-
"allocate": 124404668,
|
|
80
|
-
"free": 124404736,
|
|
81
|
-
"accountRoot": 198233648,
|
|
82
|
-
"contextVtable": 151867272,
|
|
83
|
-
"emoticonVtable": null
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"version": "4.2.0.12",
|
|
88
|
-
"size": 205932072,
|
|
89
|
-
"sha256": "2b3677c3f932daaa4ef84c8b2acd0aee12cbe5a779ff9e740c370761e5c291ce",
|
|
90
|
-
"timestamp": 1793275655,
|
|
91
|
-
"imageSize": 206417920,
|
|
92
|
-
"addresses": {
|
|
93
|
-
"application": 285968,
|
|
94
|
-
"scheduler": 291600,
|
|
95
|
-
"schedule": 3217808,
|
|
96
|
-
"context": 291360,
|
|
97
|
-
"provider": 3688240,
|
|
98
|
-
"manager": 7451520,
|
|
99
|
-
"text": 91361344,
|
|
100
|
-
"image": 65824848,
|
|
101
|
-
"emoticon": null,
|
|
102
|
-
"copyWide": 636384,
|
|
103
|
-
"validateGif": null,
|
|
104
|
-
"probeGif": null,
|
|
105
|
-
"releaseProbe": null,
|
|
106
|
-
"send": 24962240,
|
|
107
|
-
"allocate": 124408764,
|
|
108
|
-
"free": 124408832,
|
|
109
|
-
"accountRoot": 198233648,
|
|
110
|
-
"contextVtable": 151871336,
|
|
111
|
-
"emoticonVtable": null
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"version": "4.2.0.13",
|
|
116
|
-
"size": 205943848,
|
|
117
|
-
"sha256": "afe3d02c58bada3c35009c0cd58ee1f57b2a00fe53237d0dce649107fddb9a20",
|
|
118
|
-
"timestamp": 1793604862,
|
|
119
|
-
"imageSize": 206430208,
|
|
120
|
-
"addresses": {
|
|
121
|
-
"application": 285968,
|
|
122
|
-
"scheduler": 291600,
|
|
123
|
-
"schedule": 3228064,
|
|
124
|
-
"context": 291360,
|
|
125
|
-
"provider": 3690048,
|
|
126
|
-
"manager": 7465840,
|
|
127
|
-
"text": 91370832,
|
|
128
|
-
"image": 65862832,
|
|
129
|
-
"emoticon": null,
|
|
130
|
-
"copyWide": 636384,
|
|
131
|
-
"validateGif": null,
|
|
132
|
-
"probeGif": null,
|
|
133
|
-
"releaseProbe": null,
|
|
134
|
-
"send": 25014992,
|
|
135
|
-
"allocate": 124417292,
|
|
136
|
-
"free": 124417360,
|
|
137
|
-
"accountRoot": 198245872,
|
|
138
|
-
"contextVtable": 151879656,
|
|
139
|
-
"emoticonVtable": null
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
]
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"version": "4.1.15.13",
|
|
4
|
+
"size": 201552944,
|
|
5
|
+
"sha256": "10f8e995453e2da46d4f2b5080cd6da1f13cc5147746adc119ceae38cb039de5",
|
|
6
|
+
"timestamp": 1789961080,
|
|
7
|
+
"imageSize": 202039296,
|
|
8
|
+
"addresses": {
|
|
9
|
+
"application": 285968,
|
|
10
|
+
"scheduler": 291600,
|
|
11
|
+
"schedule": 3125264,
|
|
12
|
+
"context": 291360,
|
|
13
|
+
"provider": 3589952,
|
|
14
|
+
"manager": 7294352,
|
|
15
|
+
"text": 88802032,
|
|
16
|
+
"image": 64608656,
|
|
17
|
+
"emoticon": 29340096,
|
|
18
|
+
"copyWide": 636368,
|
|
19
|
+
"validateGif": 15182048,
|
|
20
|
+
"probeGif": 5441984,
|
|
21
|
+
"releaseProbe": 5137248,
|
|
22
|
+
"send": 24703232,
|
|
23
|
+
"allocate": 122337436,
|
|
24
|
+
"free": 122337504,
|
|
25
|
+
"accountRoot": 194061968,
|
|
26
|
+
"contextVtable": 148890360,
|
|
27
|
+
"emoticonVtable": 151891960
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"version": "4.1.15.56",
|
|
32
|
+
"size": 204305968,
|
|
33
|
+
"sha256": "e0428a7b691853de496532523c2c09aa095f90941c37c9f4cfb3f137f3c66556",
|
|
34
|
+
"timestamp": 1792050120,
|
|
35
|
+
"imageSize": 204795904,
|
|
36
|
+
"addresses": {
|
|
37
|
+
"application": 285968,
|
|
38
|
+
"scheduler": 291600,
|
|
39
|
+
"schedule": 3208272,
|
|
40
|
+
"context": 291360,
|
|
41
|
+
"provider": 3679184,
|
|
42
|
+
"manager": 7377536,
|
|
43
|
+
"text": 90112896,
|
|
44
|
+
"image": 65154416,
|
|
45
|
+
"emoticon": 29436416,
|
|
46
|
+
"copyWide": 636384,
|
|
47
|
+
"validateGif": 15343584,
|
|
48
|
+
"probeGif": 5528896,
|
|
49
|
+
"releaseProbe": 5224160,
|
|
50
|
+
"send": 24788000,
|
|
51
|
+
"allocate": 122993884,
|
|
52
|
+
"free": 122993952,
|
|
53
|
+
"accountRoot": 196685728,
|
|
54
|
+
"contextVtable": 150803560,
|
|
55
|
+
"emoticonVtable": 153824520
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"version": "4.2.0.11",
|
|
60
|
+
"size": 205929008,
|
|
61
|
+
"sha256": "745cdf2955fa5128cdb00c056c97571156a5f107406a9bb15ac0754f3246b201",
|
|
62
|
+
"timestamp": 1793108177,
|
|
63
|
+
"imageSize": 206422016,
|
|
64
|
+
"addresses": {
|
|
65
|
+
"application": 285968,
|
|
66
|
+
"scheduler": 291600,
|
|
67
|
+
"schedule": 3217808,
|
|
68
|
+
"context": 291360,
|
|
69
|
+
"provider": 3688240,
|
|
70
|
+
"manager": 7456256,
|
|
71
|
+
"text": 91356448,
|
|
72
|
+
"image": 65819968,
|
|
73
|
+
"emoticon": null,
|
|
74
|
+
"copyWide": 636384,
|
|
75
|
+
"validateGif": null,
|
|
76
|
+
"probeGif": null,
|
|
77
|
+
"releaseProbe": null,
|
|
78
|
+
"send": 24965648,
|
|
79
|
+
"allocate": 124404668,
|
|
80
|
+
"free": 124404736,
|
|
81
|
+
"accountRoot": 198233648,
|
|
82
|
+
"contextVtable": 151867272,
|
|
83
|
+
"emoticonVtable": null
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"version": "4.2.0.12",
|
|
88
|
+
"size": 205932072,
|
|
89
|
+
"sha256": "2b3677c3f932daaa4ef84c8b2acd0aee12cbe5a779ff9e740c370761e5c291ce",
|
|
90
|
+
"timestamp": 1793275655,
|
|
91
|
+
"imageSize": 206417920,
|
|
92
|
+
"addresses": {
|
|
93
|
+
"application": 285968,
|
|
94
|
+
"scheduler": 291600,
|
|
95
|
+
"schedule": 3217808,
|
|
96
|
+
"context": 291360,
|
|
97
|
+
"provider": 3688240,
|
|
98
|
+
"manager": 7451520,
|
|
99
|
+
"text": 91361344,
|
|
100
|
+
"image": 65824848,
|
|
101
|
+
"emoticon": null,
|
|
102
|
+
"copyWide": 636384,
|
|
103
|
+
"validateGif": null,
|
|
104
|
+
"probeGif": null,
|
|
105
|
+
"releaseProbe": null,
|
|
106
|
+
"send": 24962240,
|
|
107
|
+
"allocate": 124408764,
|
|
108
|
+
"free": 124408832,
|
|
109
|
+
"accountRoot": 198233648,
|
|
110
|
+
"contextVtable": 151871336,
|
|
111
|
+
"emoticonVtable": null
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"version": "4.2.0.13",
|
|
116
|
+
"size": 205943848,
|
|
117
|
+
"sha256": "afe3d02c58bada3c35009c0cd58ee1f57b2a00fe53237d0dce649107fddb9a20",
|
|
118
|
+
"timestamp": 1793604862,
|
|
119
|
+
"imageSize": 206430208,
|
|
120
|
+
"addresses": {
|
|
121
|
+
"application": 285968,
|
|
122
|
+
"scheduler": 291600,
|
|
123
|
+
"schedule": 3228064,
|
|
124
|
+
"context": 291360,
|
|
125
|
+
"provider": 3690048,
|
|
126
|
+
"manager": 7465840,
|
|
127
|
+
"text": 91370832,
|
|
128
|
+
"image": 65862832,
|
|
129
|
+
"emoticon": null,
|
|
130
|
+
"copyWide": 636384,
|
|
131
|
+
"validateGif": null,
|
|
132
|
+
"probeGif": null,
|
|
133
|
+
"releaseProbe": null,
|
|
134
|
+
"send": 25014992,
|
|
135
|
+
"allocate": 124417292,
|
|
136
|
+
"free": 124417360,
|
|
137
|
+
"accountRoot": 198245872,
|
|
138
|
+
"contextVtable": 151879656,
|
|
139
|
+
"emoticonVtable": null
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
]
|