@awiki/dsh-plugin 0.3.0-rc.1 → 0.3.0-rc.2
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 +8 -7
- package/README.zh.md +7 -3
- package/lib/client.js +1608 -478
- package/lib/client.js.map +1 -1
- package/lib/index.js +373 -36
- package/lib/provider.js +1 -1
- package/lib/{sdk-adapter-DLhLrLI6.mjs → sdk-adapter-BIbsJmRj.mjs} +28 -4
- package/lib/typert.host.js +221 -81
- package/lib/typert.remote-client.d.ts +5 -1
- package/lib/typert.remote-client.d.ts.map +1 -1
- package/lib/typert.remote-client.js +221 -81
- package/lib/types/client/AwikiGroupAccessNotice.d.ts +12 -0
- package/lib/types/client/AwikiGroupAccessNotice.d.ts.map +1 -0
- package/lib/types/client/AwikiGroupAccessNotice.js +31 -0
- package/lib/types/client/AwikiGroupAccessNotice.js.map +1 -0
- package/lib/types/client/AwikiGroupDetails.d.ts +8 -1
- package/lib/types/client/AwikiGroupDetails.d.ts.map +1 -1
- package/lib/types/client/AwikiGroupDetails.js +40 -4
- package/lib/types/client/AwikiGroupDetails.js.map +1 -1
- package/lib/types/client/AwikiIdentityAccess.d.ts +2 -1
- package/lib/types/client/AwikiIdentityAccess.d.ts.map +1 -1
- package/lib/types/client/AwikiIdentityAccess.js +10 -2
- package/lib/types/client/AwikiIdentityAccess.js.map +1 -1
- package/lib/types/client/AwikiMail.d.ts.map +1 -1
- package/lib/types/client/AwikiMail.js +5 -1
- package/lib/types/client/AwikiMail.js.map +1 -1
- package/lib/types/client/AwikiOnboarding.d.ts.map +1 -1
- package/lib/types/client/AwikiOnboarding.js +4 -1
- package/lib/types/client/AwikiOnboarding.js.map +1 -1
- package/lib/types/client/AwikiOverlay.d.ts.map +1 -1
- package/lib/types/client/AwikiOverlay.js +72 -11
- package/lib/types/client/AwikiOverlay.js.map +1 -1
- package/lib/types/client/AwikiRecoveryForm.d.ts +3 -0
- package/lib/types/client/AwikiRecoveryForm.d.ts.map +1 -1
- package/lib/types/client/AwikiRecoveryForm.js +10 -6
- package/lib/types/client/AwikiRecoveryForm.js.map +1 -1
- package/lib/types/client/AwikiSettingsSection.d.ts.map +1 -1
- package/lib/types/client/AwikiSettingsSection.js +5 -1
- package/lib/types/client/AwikiSettingsSection.js.map +1 -1
- package/lib/types/client/controller.d.ts +38 -2
- package/lib/types/client/controller.d.ts.map +1 -1
- package/lib/types/client/controller.js +473 -47
- 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 +3 -0
- package/lib/types/client/index.js.map +1 -1
- package/lib/types/client/recharge-availability.d.ts +1 -1
- package/lib/types/client/recharge-availability.d.ts.map +1 -1
- package/lib/types/client/recharge-availability.js +1 -1
- package/lib/types/client/recharge-availability.js.map +1 -1
- package/lib/types/client/settings-locales.d.ts +1 -1
- package/lib/types/client/settings-locales.d.ts.map +1 -1
- package/lib/types/client/settings-locales.js +6 -0
- package/lib/types/client/settings-locales.js.map +1 -1
- package/lib/types/client/slots.d.ts +6 -0
- package/lib/types/client/slots.d.ts.map +1 -1
- package/lib/types/conversation-preferences.d.ts +20 -0
- package/lib/types/conversation-preferences.d.ts.map +1 -0
- package/lib/types/conversation-preferences.js +294 -0
- package/lib/types/conversation-preferences.js.map +1 -0
- package/lib/types/index.d.ts +6 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +39 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/sdk-adapter.d.ts.map +1 -1
- package/lib/types/sdk-adapter.js +35 -4
- package/lib/types/sdk-adapter.js.map +1 -1
- package/lib/types/types.d.ts +32 -1
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ TypeScript SDK `identity.json`; create a new Rust-backed identity after upgradin
|
|
|
23
23
|
- Direct-message and existing-group conversation lists, unread counts, latest-message previews, and persisted display names. Core SQLite remains the persistent source of truth: the Host joins persisted peer profiles onto Direct roster rows, while the browser keeps the active identity's last trustworthy Direct profile and group title. Sparse polling identifiers therefore cannot overwrite a resolved display name or real group title. After an existing Handle is recovered, the Host synchronizes account projections before asking Core to restore old group memberships; pending or blocked groups expose a retryable status without disabling Direct messages or other groups. Opening a conversation renders the committed local timeline first, hydrates group sender labels from the Core display-profile cache, reconciles remote history and Direct profile data in the background, and keeps local messages visible if refresh fails. A failed background roster poll also leaves the usable local view quiet; explicit loads still surface their errors. This local-first path covers the newest projected page; loading older messages still requires the remote history service. Scrolling up reveals a latest-message control that counts newer arrivals without interrupting reading. A conversation is marked read only after its newest rendered message reaches the visible bottom.
|
|
24
24
|
- Create a private-discovery, open-join, transport-protected group from the Web UI with a name and 1–50 initial Handle or DID members. The group opens immediately; members that could not be added are reported without hiding the successfully created group.
|
|
25
25
|
- Text messages plus one attachment per message, with Enter-to-send, Shift+Enter line breaks, optimistic sending bubbles reconciled by an exact client message ID, image previews, and SHA verification. Verified image bytes use three bounded layers: a browser-runtime LRU makes conversation remounts immediate, identity-scoped IndexedDB survives full page reloads without a Host call, and the private Host disk cache survives browser-storage loss and Harness restarts. Clear Local Data removes all three layers.
|
|
26
|
-
- A draggable circular launcher, adaptive popup placement, dark mode, and remembered active conversation.
|
|
26
|
+
- A draggable circular launcher that defaults to the lower-left sidebar area, adaptive popup placement, dark mode, and remembered active conversation.
|
|
27
27
|
- User-triggered AI summaries for up to 50 recent or unread messages, kept only in runtime memory with explicit stale, retry, copy, and source-navigation states.
|
|
28
28
|
- OTP identity access keeps the verification form visible and disables resend with a visible server-directed cooldown countdown. Handle classification happens before OTP delivery, so each attempt sends exactly one purpose-correct registration or recovery code.
|
|
29
29
|
- When the separate `@awiki/dsh-model-proxy` package is installed, an AWiki-hosted DeepSeek choice appears before the official API-key onboarding step only when Harness has no usable model provider, with an explicit opt-in and an unchanged API-key escape path. New sessions do not show AWiki model or payment prompts after the official or another provider is usable.
|
|
@@ -129,8 +129,9 @@ The former runtime import `@awiki/dsh-plugin/model-proxy` has been removed. Use
|
|
|
129
129
|
model onboarding, account/recharge, and usage entry points hidden while leaving
|
|
130
130
|
AWiki Advanced settings functional.
|
|
131
131
|
|
|
132
|
-
|
|
133
|
-
`@awiki/dsh-model-proxy@0.1.0-rc.1`. The optional package requires main
|
|
132
|
+
The current RC line uses `@awiki/dsh-plugin@0.3.0-rc.2` with
|
|
133
|
+
`@awiki/dsh-model-proxy@0.1.0-rc.1`. The optional package requires main
|
|
134
|
+
`^0.3.0-rc.1`, so
|
|
134
135
|
it cannot be combined with a `0.2.x` main package that still inserted the old
|
|
135
136
|
runtime by default.
|
|
136
137
|
|
|
@@ -153,10 +154,10 @@ disabled it reports the development restriction without blocking an account whos
|
|
|
153
154
|
`model_access_available` flag is true. Development bypass displays calculated and charged amounts
|
|
154
155
|
separately, with zero charged; it does not invent a price when no price table is active.
|
|
155
156
|
Public recharge creation also has a client release gate in
|
|
156
|
-
`src/client/recharge-availability.ts`. The
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
polling, and cancellation flows
|
|
157
|
+
`src/client/recharge-availability.ts`. The current RC line ships that gate open. Order creation still
|
|
158
|
+
requires the account response to report `payments_available=true`; otherwise the UI reports that
|
|
159
|
+
payments are unavailable and sends no order RPC. The gate remains a single emergency rollback for
|
|
160
|
+
the existing payment, polling, and cancellation flows.
|
|
160
161
|
Strict billing keeps the internal billing-mode label out of the normal account summary. When the
|
|
161
162
|
backend reports `model_access_reason=insufficient_balance`, recharge becomes the primary action and
|
|
162
163
|
model enablement is withheld until credit is available. The Host restores the newest pending order
|
package/README.zh.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
为 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 提供 AWiki
|
|
4
4
|
身份与消息能力。一个包同时包含 Host Service、Rust SDK Provider、Agent 工具,
|
|
5
|
-
以及带可拖动 AWiki Me 悬浮入口的 Web
|
|
5
|
+
以及带可拖动 AWiki Me 悬浮入口的 Web 客户端;入口默认位于 DSH 左下角侧栏区域。
|
|
6
6
|
|
|
7
7
|
Rust SDK 独占管理配置的 `stateRoot` 下的身份、SecretVault、数据库、缓存和元数据。
|
|
8
8
|
本版本采用干净切换,不导入旧 TypeScript SDK 的 `identity.json`;升级后需创建新的
|
|
@@ -112,8 +112,9 @@ AWiki Host Service、Rust SDK Provider 和 Summary Provider;浏览器客户端
|
|
|
112
112
|
`@awiki/dsh-plugin/model-proxy-contract`。只安装主包时,模型首次引导、账户/充值和
|
|
113
113
|
用量入口保持隐藏,高级 AWiki 设置仍可正常使用。
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
`@awiki/dsh-model-proxy@0.1.0-rc.1
|
|
115
|
+
当前 RC 版本为 `@awiki/dsh-plugin@0.3.0-rc.2`,可选包为
|
|
116
|
+
`@awiki/dsh-model-proxy@0.1.0-rc.1`。可选包 peer 固定为主包
|
|
117
|
+
`^0.3.0-rc.1`,避免与仍会
|
|
117
118
|
默认插入旧 runtime 的 `0.2.x` 主包组合后加载两个 Model Proxy。
|
|
118
119
|
|
|
119
120
|
以下环境变量归可选包所有:
|
|
@@ -132,6 +133,9 @@ AWiki Host Service、Rust SDK Provider 和 Summary Provider;浏览器客户端
|
|
|
132
133
|
设置页同时支持支付跳转和通企付 `ALI_QR` 二维码。支付功能关闭时会显示“开发环境暂未开放
|
|
133
134
|
充值”,但只要账户响应中的 `model_access_available` 为真,仍可启用模型。开发绕过模式会
|
|
134
135
|
展示计算费用和实际扣费的区别,实际扣费固定为 0;未激活价表时不显示臆造价格。
|
|
136
|
+
客户端充值发布门禁在当前 RC 中已打开。创建订单仍要求账户响应返回
|
|
137
|
+
`payments_available=true`;否则界面会提示充值不可用且不发送订单 RPC。该门禁继续作为
|
|
138
|
+
现有支付、轮询和取消流程的紧急回退开关。
|
|
135
139
|
正式计费时,账户摘要不会显示内部的“计费模式”项。后端返回
|
|
136
140
|
`model_access_reason=insufficient_balance` 时,界面会把充值作为当前主要操作,余额到账前
|
|
137
141
|
不显示误导性的启用按钮。Host 会在每次重新打开设置时恢复最新的待支付订单和支付入口,
|