@awiki/dsh-plugin 0.3.5 → 0.3.6
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/README.md +29 -14
- package/README.zh.md +24 -13
- package/cordis.patch.yml +7 -4
- package/lib/client.js +569 -95
- package/lib/client.js.map +1 -1
- package/lib/index.js +402 -98
- package/lib/provider.js +1 -1
- package/lib/{sdk-adapter-CDLTgHJA.mjs → sdk-adapter--trNlr-T.mjs} +34 -1
- package/lib/typert.host.js +97 -42
- package/lib/typert.remote-client.d.ts +3 -1
- package/lib/typert.remote-client.d.ts.map +1 -1
- package/lib/typert.remote-client.js +97 -42
- package/lib/types/client/AwikiMail.d.ts +1 -1
- package/lib/types/client/AwikiMail.d.ts.map +1 -1
- package/lib/types/client/AwikiMail.js +130 -6
- package/lib/types/client/AwikiMail.js.map +1 -1
- package/lib/types/client/AwikiOverlay.d.ts.map +1 -1
- package/lib/types/client/AwikiOverlay.js +1 -1
- package/lib/types/client/AwikiOverlay.js.map +1 -1
- package/lib/types/client/controller.d.ts +7 -1
- package/lib/types/client/controller.d.ts.map +1 -1
- package/lib/types/client/controller.js +41 -15
- package/lib/types/client/controller.js.map +1 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/index.js +2 -0
- package/lib/types/client/index.js.map +1 -1
- package/lib/types/client/mail-attachment.d.ts +40 -0
- package/lib/types/client/mail-attachment.d.ts.map +1 -0
- package/lib/types/client/mail-attachment.js +186 -0
- package/lib/types/client/mail-attachment.js.map +1 -0
- package/lib/types/client/settings-locales.js +8 -8
- package/lib/types/client/settings-locales.js.map +1 -1
- package/lib/types/client/slots.d.ts +5 -1
- package/lib/types/client/slots.d.ts.map +1 -1
- package/lib/types/index.d.ts +18 -6
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +244 -68
- package/lib/types/index.js.map +1 -1
- package/lib/types/mail.d.ts +28 -2
- package/lib/types/mail.d.ts.map +1 -1
- package/lib/types/mail.js +78 -2
- package/lib/types/mail.js.map +1 -1
- package/lib/types/profile-state.d.ts +6 -0
- package/lib/types/profile-state.d.ts.map +1 -1
- package/lib/types/profile-state.js +10 -0
- package/lib/types/profile-state.js.map +1 -1
- package/lib/types/provider-api.d.ts +32 -4
- package/lib/types/provider-api.d.ts.map +1 -1
- package/lib/types/sdk-adapter.d.ts +4 -3
- package/lib/types/sdk-adapter.d.ts.map +1 -1
- package/lib/types/sdk-adapter.js +45 -1
- package/lib/types/sdk-adapter.js.map +1 -1
- package/lib/types/sent-mail-store.d.ts +7 -2
- package/lib/types/sent-mail-store.d.ts.map +1 -1
- package/lib/types/sent-mail-store.js +125 -23
- package/lib/types/sent-mail-store.js.map +1 -1
- package/lib/types/tools.d.ts +1 -1
- package/lib/types/tools.d.ts.map +1 -1
- package/lib/types/tools.js +20 -4
- package/lib/types/tools.js.map +1 -1
- package/lib/types/types.d.ts +39 -1
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js.map +1 -1
- package/package.json +15 -17
package/README.md
CHANGED
|
@@ -32,7 +32,8 @@ TypeScript SDK `identity.json`; create a new Rust-backed identity after upgradin
|
|
|
32
32
|
- AWiki identity, domain, and local-data settings remain in the main package. Installing only the main package does not register model opt-in, recharge, usage, or model onboarding UI.
|
|
33
33
|
- A typed second confirmation in the Settings danger zone before permanently clearing local AWiki identity, key, token, registration-draft, and message-index state.
|
|
34
34
|
- Five messaging Agent tools: identity status, conversations, history, approved text send, and approved attachment send.
|
|
35
|
-
-
|
|
35
|
+
- A mail Web UI that selects, reviews, removes, and sends up to 10 bounded attachments, then explicitly downloads one metadata-matched attachment with Base64, size, and SHA-256 verification.
|
|
36
|
+
- Five on-demand mail Agent tools: mailbox account, inbox, plain-text read, approved mark-read, and approved plain-text send. Mail read exposes attachment metadata plus a Browser-UI-only download note; Agent mail send remains attachment-free because DSH has no authorized file-resource handle for this tool.
|
|
36
37
|
- An opt-in realtime listener that lets exact-allowlisted Direct peers continue one DSH Agent session or use `/new`, `/status`, and `/help`.
|
|
37
38
|
|
|
38
39
|
## Screenshots
|
|
@@ -50,12 +51,20 @@ post-creation group administration or multiple attachments in one message. The A
|
|
|
50
51
|
plain Direct text; Groups, attachments, encrypted/payload content, and unknown slash commands never
|
|
51
52
|
reach the Agent.
|
|
52
53
|
|
|
53
|
-
Mail
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
Mail remains on demand and does not wake an Agent for new mail, render or send HTML, or implement
|
|
55
|
+
reply, forward, and threading. The Browser reads only user-selected `File` objects, freezes the
|
|
56
|
+
approved draft during its one send attempt, and enforces the Host-provided count, single-file, and
|
|
57
|
+
total-size limits before canonical Base64 crosses Remote. Attachment downloads are always explicit;
|
|
58
|
+
the Browser matches the returned metadata and verifies canonical Base64, byte count, and SHA-256
|
|
59
|
+
before creating a temporary Blob URL, then revokes that URL immediately. It never auto-opens HTML,
|
|
60
|
+
SVG, or another attachment. Sent history stores only the service message id, file metadata, and
|
|
61
|
+
SHA-256, never attachment bytes. Mail subject, addresses,
|
|
62
|
+
preview, body, timestamps, and attachment metadata are
|
|
56
63
|
untrusted external data, never Agent instructions. `awiki_mail_mark_read` and `awiki_mail_send`
|
|
57
64
|
require execution approval. Mail send is attempted once without automatic retry; a timeout or
|
|
58
65
|
transport loss returns `delivery-unknown`, so inspect the mailbox before approving another send.
|
|
66
|
+
The Agent tool does not accept attachment Base64 or local paths; attachment selection and download
|
|
67
|
+
remain explicit Browser UI actions until Harness provides a formally authorized file-resource contract.
|
|
59
68
|
|
|
60
69
|
Identity recovery does not add server-side private-chat restoration. A fresh local state does not
|
|
61
70
|
reconstruct historical Direct conversations; only ordinary data already retained by the Rust SDK
|
|
@@ -101,12 +110,12 @@ The plugin works against the public `awiki.ai` tenant without environment config
|
|
|
101
110
|
|
|
102
111
|
| Variable | Purpose | Default |
|
|
103
112
|
| --- | --- | --- |
|
|
104
|
-
| `DSH_AWIKI_USER_SERVICE_URL` | Absolute AWiki user-service URL | `https
|
|
105
|
-
| `DSH_AWIKI_USER_SERVICE_DOMAIN` | Composition default for the
|
|
106
|
-
| `DSH_AWIKI_MESSAGE_SERVICE_URL` | Message-service URL called by the Host | `https
|
|
113
|
+
| `DSH_AWIKI_USER_SERVICE_URL` | Absolute AWiki user-service URL | `https://<selected-domain>` |
|
|
114
|
+
| `DSH_AWIKI_USER_SERVICE_DOMAIN` | Composition default for the tenant domain | `awiki.ai` |
|
|
115
|
+
| `DSH_AWIKI_MESSAGE_SERVICE_URL` | Message-service URL called by the Host | `https://<selected-domain>` |
|
|
107
116
|
| `DSH_AWIKI_MAIL_SERVICE_URL` | Mail-service URL called by the Host | Resolved user-service URL |
|
|
108
|
-
| `DSH_AWIKI_MESSAGE_SERVICE_DID` | Authoritative message-service DID | `did:wba
|
|
109
|
-
| `DSH_AWIKI_MESSAGE_SERVICE_PUBLIC_URL` | Public endpoint written to protocol records | `https
|
|
117
|
+
| `DSH_AWIKI_MESSAGE_SERVICE_DID` | Authoritative message-service DID | `did:wba:<selected-domain>` |
|
|
118
|
+
| `DSH_AWIKI_MESSAGE_SERVICE_PUBLIC_URL` | Public endpoint written to protocol records | `https://<selected-domain>` |
|
|
110
119
|
| `DSH_AWIKI_ALLOWED_ATTACHMENT_ORIGINS` | JSON array of extra exact HTTPS origins | `[]` |
|
|
111
120
|
| `DSH_AWIKI_STATE_ROOT` | Private Rust IM Core state directory; an explicit value overrides profile isolation | `$DSH_HOME/awiki/<profile>/im-core` or `~/.dsh/awiki/<profile>/im-core`; legacy `awiki/im-core` when no profile can be proven |
|
|
112
121
|
| `DSH_AWIKI_VAULT_ROOT_KEY_FILE` | Existing private file containing a base64/base64url 32-byte Vault root key | `$DSH_HOME/awiki/secret-vault/root-key.b64u` |
|
|
@@ -114,6 +123,9 @@ The plugin works against the public `awiki.ai` tenant without environment config
|
|
|
114
123
|
| `DSH_AWIKI_VAULT_DEVICE_ID` | Stable non-secret Vault device context | `local-device` |
|
|
115
124
|
| `DSH_AWIKI_POLL_INTERVAL_MS` | Open-dialog polling interval | `5000` |
|
|
116
125
|
| `DSH_AWIKI_ATTACHMENT_MAX_BYTES` | Decoded attachment limit | `10485760` |
|
|
126
|
+
| `DSH_AWIKI_MAIL_ATTACHMENT_MAX_COUNT` | Maximum attachments in one mail; at most the service limit | `10` |
|
|
127
|
+
| `DSH_AWIKI_MAIL_ATTACHMENT_MAX_BYTES` | Maximum decoded bytes in one mail attachment | `10485760` |
|
|
128
|
+
| `DSH_AWIKI_MAIL_ATTACHMENT_TOTAL_MAX_BYTES` | Maximum total decoded attachment bytes in one mail | `18874368` |
|
|
117
129
|
| `DSH_AWIKI_IMAGE_CACHE_MAX_BYTES` | Private verified image-preview cache budget | `67108864` |
|
|
118
130
|
| `DSH_AWIKI_LISTENER_ENABLED` | Enable the Direct-to-Agent listener | `false` |
|
|
119
131
|
| `DSH_AWIKI_LISTENER_ALLOWED_PEERS` | JSON array of exact Handles or DIDs; required when enabled | `[]` |
|
|
@@ -182,11 +194,14 @@ closes the provider order, then restores the amount editor without creating a re
|
|
|
182
194
|
failure leaves the existing payment action available, while a payment that wins the race refreshes
|
|
183
195
|
the credited account instead of being reported as cancelled.
|
|
184
196
|
|
|
185
|
-
The default
|
|
197
|
+
The default AWiki tenant domain is `awiki.ai`. A local user can switch it
|
|
186
198
|
from Settings → AWiki; DSH persists that choice in its settings document and
|
|
187
|
-
applies it after the next Harness restart.
|
|
188
|
-
|
|
189
|
-
|
|
199
|
+
applies it after the next Harness restart. Unless an endpoint has an explicit
|
|
200
|
+
deployment override, the User, Message, Mail, attachment origin, and message-
|
|
201
|
+
service DID routes are derived from the selected domain. Each domain uses an
|
|
202
|
+
isolated local identity, message, cache directory, and browser recovery-operation
|
|
203
|
+
key. Switching back restores that tenant's previous local state instead of
|
|
204
|
+
rewriting its DID or keys.
|
|
190
205
|
|
|
191
206
|
The settings page talks to a plugin-owned Connection channel that the Host
|
|
192
207
|
accepts only from loopback. This keeps an independently installed `@awiki/dsh-plugin`
|
|
@@ -279,7 +294,7 @@ pnpm run verify:workspace
|
|
|
279
294
|
pnpm pack --dry-run
|
|
280
295
|
```
|
|
281
296
|
|
|
282
|
-
The production Host loads the exact `@awiki/im-core-node@0.1.
|
|
297
|
+
The production Host loads the exact `@awiki/im-core-node@0.1.9` runtime package;
|
|
283
298
|
the platform-specific native addon is selected through its optional dependencies
|
|
284
299
|
and remains external to the JavaScript bundle. Consumers do not need Rust or an
|
|
285
300
|
`awiki-cli-rs2` checkout. See `THIRD_PARTY_NOTICES.md` for provenance and
|
package/README.zh.md
CHANGED
|
@@ -25,7 +25,8 @@ Rust 身份。
|
|
|
25
25
|
- AWiki 主包只保留身份、域名和本地数据设置。只安装主包时,不会注册模型启停、充值、用量或模型首次引导界面。
|
|
26
26
|
- 在设置页危险区域中,经输入确认词的二次确认后,永久清空本机 AWiki 身份、密钥、令牌、注册草稿和消息索引。
|
|
27
27
|
- 五个消息 Agent 工具:身份、会话、历史、需审批的文本发送和需审批的附件发送。
|
|
28
|
-
-
|
|
28
|
+
- 邮件 Web UI 支持选择、确认、移除和发送最多 10 个受限附件,并在显式下载时复核元数据、Base64、大小和 SHA-256。
|
|
29
|
+
- 五个按需邮件 Agent 工具:邮箱账户、收件箱、纯文本读取、需审批的标记已读和需审批的纯文本发送。读取工具返回附件元数据和“仅可在 Browser UI 下载”的说明;由于 DSH 当前没有该工具可授权使用的文件资源句柄,Agent 邮件发送仍不接受附件。
|
|
29
30
|
- 可选的实时监听模式:exact allowlist 中的私聊对方可续接一个 DSH Agent 会话,或使用 `/new`、`/status`、`/help`。
|
|
30
31
|
|
|
31
32
|
## 界面截图
|
|
@@ -41,11 +42,16 @@ Rust 身份。
|
|
|
41
42
|
首版不包含端到端加密、多身份、建群后的成员或群设置管理和单消息多附件。Agent listener 只接受明文私聊文本;
|
|
42
43
|
群聊、附件、加密/payload 内容和未知斜杠命令都不会进入 Agent。
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
邮件仍按需调用,不会以新邮件唤醒 Agent;不渲染或发送 HTML,也不支持回复、转发和会话串联。
|
|
46
|
+
Browser 只读取用户明确选择的 `File` 对象,确认发送后冻结整份草稿,并在唯一一次发送前执行
|
|
47
|
+
Host 下发的数量、单文件和总量限制;只有 canonical Base64 会穿过 Remote。附件只能显式下载;
|
|
48
|
+
Browser 在创建临时 Blob URL 前复核返回元数据、canonical Base64、字节数和 SHA-256,随后立即
|
|
49
|
+
释放 URL,不会自动打开 HTML、SVG 或其他附件。本地发件历史只保存服务端消息 ID、文件元数据和
|
|
50
|
+
SHA-256,不保存附件字节。邮件主题、地址、预览、正文、
|
|
46
51
|
时间戳和附件元数据都是不可信外部数据,不能作为 Agent 指令。`awiki_mail_mark_read` 和
|
|
47
52
|
`awiki_mail_send` 每次执行都需要审批。邮件发送只尝试一次且不自动重试;超时或传输中断返回
|
|
48
|
-
`delivery-unknown`,再次审批发送前应先检查邮箱。
|
|
53
|
+
`delivery-unknown`,再次审批发送前应先检查邮箱。Agent 工具不接受附件 Base64 或本地路径;
|
|
54
|
+
在 Harness 提供正式、可授权的文件资源契约前,附件选择和下载都保留为 Browser UI 显式操作。
|
|
49
55
|
|
|
50
56
|
身份恢复不新增服务端私聊恢复。清空本地状态后不会重新构造历史私聊会话;只有 Rust SDK
|
|
51
57
|
已经保留的普通本地数据继续遵循 Core 既有迁移规则。邮箱和托管模型账本对账与私聊边界相互独立。
|
|
@@ -84,12 +90,12 @@ AWiki Host Service、Rust SDK Provider 和 Summary Provider;浏览器客户端
|
|
|
84
90
|
|
|
85
91
|
| 环境变量 | 用途 | 默认值 |
|
|
86
92
|
| --- | --- | --- |
|
|
87
|
-
| `DSH_AWIKI_USER_SERVICE_URL` | AWiki user service 绝对 URL | `https
|
|
88
|
-
| `DSH_AWIKI_USER_SERVICE_DOMAIN` |
|
|
89
|
-
| `DSH_AWIKI_MESSAGE_SERVICE_URL` | Host 调用的 message service URL | `https
|
|
93
|
+
| `DSH_AWIKI_USER_SERVICE_URL` | AWiki user service 绝对 URL | `https://<所选域名>` |
|
|
94
|
+
| `DSH_AWIKI_USER_SERVICE_DOMAIN` | 租户域名的部署默认值 | `awiki.ai` |
|
|
95
|
+
| `DSH_AWIKI_MESSAGE_SERVICE_URL` | Host 调用的 message service URL | `https://<所选域名>` |
|
|
90
96
|
| `DSH_AWIKI_MAIL_SERVICE_URL` | Host 调用的 mail service URL | 解析后的 user service URL |
|
|
91
|
-
| `DSH_AWIKI_MESSAGE_SERVICE_DID` | 权威消息服务 DID | `did:wba
|
|
92
|
-
| `DSH_AWIKI_MESSAGE_SERVICE_PUBLIC_URL` | 写入协议记录的公开 endpoint | `https
|
|
97
|
+
| `DSH_AWIKI_MESSAGE_SERVICE_DID` | 权威消息服务 DID | `did:wba:<所选域名>` |
|
|
98
|
+
| `DSH_AWIKI_MESSAGE_SERVICE_PUBLIC_URL` | 写入协议记录的公开 endpoint | `https://<所选域名>` |
|
|
93
99
|
| `DSH_AWIKI_ALLOWED_ATTACHMENT_ORIGINS` | 额外附件 HTTPS origin 的 JSON 数组 | `[]` |
|
|
94
100
|
| `DSH_AWIKI_STATE_ROOT` | 私有 Rust IM Core 状态目录;显式设置时覆盖 profile 隔离 | `$DSH_HOME/awiki/<profile>/im-core` 或 `~/.dsh/awiki/<profile>/im-core`;无法确认 profile 时兼容旧路径 `awiki/im-core` |
|
|
95
101
|
| `DSH_AWIKI_VAULT_ROOT_KEY_FILE` | 含 base64/base64url 32-byte Vault root key 的既有私有文件 | `$DSH_HOME/awiki/secret-vault/root-key.b64u` |
|
|
@@ -97,6 +103,9 @@ AWiki Host Service、Rust SDK Provider 和 Summary Provider;浏览器客户端
|
|
|
97
103
|
| `DSH_AWIKI_VAULT_DEVICE_ID` | 稳定、非秘密的 Vault device context | `local-device` |
|
|
98
104
|
| `DSH_AWIKI_POLL_INTERVAL_MS` | 弹窗打开时的轮询间隔 | `5000` |
|
|
99
105
|
| `DSH_AWIKI_ATTACHMENT_MAX_BYTES` | 解码后的附件上限 | `10485760` |
|
|
106
|
+
| `DSH_AWIKI_MAIL_ATTACHMENT_MAX_COUNT` | 单封邮件附件数量上限,不得高于服务端 | `10` |
|
|
107
|
+
| `DSH_AWIKI_MAIL_ATTACHMENT_MAX_BYTES` | 单个邮件附件解码字节上限 | `10485760` |
|
|
108
|
+
| `DSH_AWIKI_MAIL_ATTACHMENT_TOTAL_MAX_BYTES` | 单封邮件附件解码总字节上限 | `18874368` |
|
|
100
109
|
| `DSH_AWIKI_IMAGE_CACHE_MAX_BYTES` | 私有图片预览缓存的磁盘预算 | `67108864` |
|
|
101
110
|
| `DSH_AWIKI_LISTENER_ENABLED` | 开启私聊到 Agent 的 listener | `false` |
|
|
102
111
|
| `DSH_AWIKI_LISTENER_ALLOWED_PEERS` | exact Handle/DID JSON 数组;开启时必填 | `[]` |
|
|
@@ -155,9 +164,11 @@ AWiki Host Service、Rust SDK Provider 和 Summary Provider;浏览器客户端
|
|
|
155
164
|
关闭支付平台订单,再恢复金额输入框,并且不会自动创建替代订单。关闭失败时原支付入口继续
|
|
156
165
|
有效;若支付在关闭竞态中先完成,界面会刷新已入账账户,而不会误报订单已取消。
|
|
157
166
|
|
|
158
|
-
|
|
159
|
-
DSH 会把选择写入自己的设置文件,并在下次重启 Harness
|
|
160
|
-
|
|
167
|
+
AWiki 的默认租户域名为 `awiki.ai`。本机用户可以在“设置 → AWiki”中切换租户;
|
|
168
|
+
DSH 会把选择写入自己的设置文件,并在下次重启 Harness 后生效。未显式配置独立服务
|
|
169
|
+
端点时,User、Message、Mail、附件公开来源和消息服务 DID 都由所选域名派生。
|
|
170
|
+
每个域名使用相互隔离的本地身份、消息、缓存目录和浏览器身份恢复任务;切回原域名会恢复
|
|
171
|
+
原有本地状态,不会把一个租户的 DID、私钥、邮箱账号或恢复进度带到另一个租户。
|
|
161
172
|
|
|
162
173
|
设置页通过插件自有的 Connection 通道访问 Host,Host 只接受 loopback 来源。
|
|
163
174
|
因此独立安装的 `@awiki/dsh-plugin` 无需修改 DSH 核心设置白名单;非本机浏览器来源不能
|
|
@@ -236,7 +247,7 @@ pnpm run verify:workspace
|
|
|
236
247
|
pnpm pack --dry-run
|
|
237
248
|
```
|
|
238
249
|
|
|
239
|
-
生产 Host 加载固定版本 `@awiki/im-core-node@0.1.
|
|
250
|
+
生产 Host 加载固定版本 `@awiki/im-core-node@0.1.9`;平台原生 addon 由它的
|
|
240
251
|
optional dependencies 选择,并保持在 JavaScript bundle 外。使用者无需安装 Rust,
|
|
241
252
|
也无需检出 `awiki-cli-rs2`。来源与许可证见 `THIRD_PARTY_NOTICES.md`。
|
|
242
253
|
|
package/cordis.patch.yml
CHANGED
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
- id: awiki
|
|
6
6
|
name: '@awiki/dsh-plugin'
|
|
7
7
|
config:
|
|
8
|
-
userServiceUrl: !!js process.env.DSH_AWIKI_USER_SERVICE_URL
|
|
8
|
+
userServiceUrl: !!js process.env.DSH_AWIKI_USER_SERVICE_URL
|
|
9
9
|
userServiceDomain: !!js process.env.DSH_AWIKI_USER_SERVICE_DOMAIN ?? 'awiki.ai'
|
|
10
|
-
messageServiceUrl: !!js process.env.DSH_AWIKI_MESSAGE_SERVICE_URL
|
|
10
|
+
messageServiceUrl: !!js process.env.DSH_AWIKI_MESSAGE_SERVICE_URL
|
|
11
11
|
mailServiceUrl: !!js process.env.DSH_AWIKI_MAIL_SERVICE_URL
|
|
12
|
-
messageServiceDid: !!js process.env.DSH_AWIKI_MESSAGE_SERVICE_DID
|
|
13
|
-
messageServicePublicUrl: !!js process.env.DSH_AWIKI_MESSAGE_SERVICE_PUBLIC_URL
|
|
12
|
+
messageServiceDid: !!js process.env.DSH_AWIKI_MESSAGE_SERVICE_DID
|
|
13
|
+
messageServicePublicUrl: !!js process.env.DSH_AWIKI_MESSAGE_SERVICE_PUBLIC_URL
|
|
14
14
|
allowedAttachmentOrigins: !!js JSON.parse(process.env.DSH_AWIKI_ALLOWED_ATTACHMENT_ORIGINS ?? '[]')
|
|
15
15
|
stateRoot: !!js process.env.DSH_AWIKI_STATE_ROOT
|
|
16
16
|
pollIntervalMs: !!js Number(process.env.DSH_AWIKI_POLL_INTERVAL_MS ?? '5000')
|
|
17
17
|
attachmentMaxBytes: !!js Number(process.env.DSH_AWIKI_ATTACHMENT_MAX_BYTES ?? '10485760')
|
|
18
|
+
mailAttachmentMaxCount: !!js Number(process.env.DSH_AWIKI_MAIL_ATTACHMENT_MAX_COUNT ?? '10')
|
|
19
|
+
mailAttachmentMaxBytes: !!js Number(process.env.DSH_AWIKI_MAIL_ATTACHMENT_MAX_BYTES ?? '10485760')
|
|
20
|
+
mailAttachmentTotalMaxBytes: !!js Number(process.env.DSH_AWIKI_MAIL_ATTACHMENT_TOTAL_MAX_BYTES ?? '18874368')
|
|
18
21
|
imageAttachmentCacheMaxBytes: !!js Number(process.env.DSH_AWIKI_IMAGE_CACHE_MAX_BYTES ?? '67108864')
|
|
19
22
|
summaryMaxInputBytes: !!js Number(process.env.DSH_AWIKI_SUMMARY_MAX_INPUT_BYTES ?? '32768')
|
|
20
23
|
listenerEnabled: !!js process.env.DSH_AWIKI_LISTENER_ENABLED === 'true'
|