deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
AWiki identity and messaging for DeepSeek Harness. The package installs one Host service, its production Rust SDK provider, the model tools, and a Web client with a draggable AWiki Me launcher.
Registration failures preserve the form and local pending identity material. Closed registration, unavailable verification state, and commit conflicts each give a safe next action without exposing remote response details.
The Rust SDK exclusively owns the identity, SecretVault, database, cache, and metadata below the
configured stateRoot. This release performs a clean cutover and does not import the former
TypeScript SDK identity.json; create a new Rust-backed identity after upgrading.
The first release does not implement end-to-end encryption, multiple identities, group administration, realtime push, or multiple attachments in one message.
Install the official public npm package:
pnpm add @awiki/dsh-plugin@latest
@awiki/dsh-plugin is the canonical package identity starting with
0.2.0-rc.4. The former @awiki/dsh registry entry was unpublished and is
not an installation source for this release line.
Apply the package after the normal DSH base and Web app bundles. Its
cordis.patch.yml adds the Host service and provider; DSH discovers and injects
the browser client through the package metadata.
The plugin works against the public awiki.ai tenant without environment configuration. Set these variables only when a deployment needs an override:
| Variable | Purpose | Default |
|---|---|---|
DSH_AWIKI_USER_SERVICE_URL |
Absolute AWiki user-service URL | https://awiki.ai |
DSH_AWIKI_USER_SERVICE_DOMAIN |
Composition default for the Handle provider domain | awiki.ai |
DSH_AWIKI_MESSAGE_SERVICE_URL |
Message-service URL called by the Host | https://awiki.ai |
DSH_AWIKI_MESSAGE_SERVICE_DID |
Authoritative message-service DID | did:wba:awiki.ai |
DSH_AWIKI_MESSAGE_SERVICE_PUBLIC_URL |
Public endpoint written to protocol records | https://awiki.ai |
DSH_AWIKI_ALLOWED_ATTACHMENT_ORIGINS |
JSON array of extra exact HTTPS origins | [] |
DSH_AWIKI_STATE_ROOT |
Private Rust IM Core state directory | $DSH_HOME/awiki/im-core or ~/.dsh/awiki/im-core |
DSH_AWIKI_POLL_INTERVAL_MS |
Open-dialog polling interval | 5000 |
DSH_AWIKI_ATTACHMENT_MAX_BYTES |
Decoded attachment limit | 10485760 |
DSH_AWIKI_SUMMARY_MAX_INPUT_BYTES |
UTF-8 cap after Host-side summary minimization | 32768 |
DSH_AWIKI_SUMMARY_TIMEOUT_MS |
One-shot model deadline | 30000 |
DSH_AWIKI_SUMMARY_MAX_OUTPUT_TOKENS |
Structured summary output cap | 768 |
The default Handle provider domain is awiki.ai. A local user can override it
from Settings → AWiki; DSH persists that choice in its settings document and
applies it after the next Harness restart. The setting affects future identity
registration and completion of short Handles. It does not rewrite an already
registered DID or Handle.
The settings page talks to a plugin-owned Connection channel that the Host
accepts only from loopback. This keeps an independently installed @awiki/dsh-plugin
compatible with stock DSH releases without adding AWiki to a core settings
allowlist; non-local browser origins cannot read or mutate the Host setting.
Settings → AWiki → Danger zone clears only this installation's local AWiki state; it does not delete the server-side account or Handle. The dialog requires the displayed confirmation phrase. After success, the local DID keys, access token, registration draft, conversations, and attachment index cannot be recovered by the app, and this installation may lose access to the old identity.
Ordinary sign-out is separate from that destructive action. It writes only a private Host-owned session marker, gates both Web and Agent operations, and retains the SDK-owned SecretVault identity, keys, tokens, conversations, and attachment index. Resuming removes the marker and reloads the same local identity without registration.
The provider domain and message-service DID are protocol identifiers. Do not infer them from an API hostname. Production service URLs must use HTTPS. The IM Core state directory contains access material; keep it outside the repository, restrict filesystem access, and protect the underlying disk and backups.
For the default 10 MiB decoded attachment cap, configure a reverse-proxy request limit of at least 14 MiB to account for base64 and JSON overhead.
AI summary generation runs only after the user selects AI Summary. If a
conversation had unread messages when it was opened, the Host summarizes that
unread tail; otherwise it summarizes the newest 50 messages. The Host enforces
the 50-message and UTF-8 limits, sends attachment metadata rather than file
bytes, and treats serialized conversation content as untrusted data. Summaries
are cached per conversation only for the current browser runtime and become
stale, without another model call, when newer messages arrive. The replaceable
@awiki/dsh-plugin/summary-provider uses the current Harness default provider and model
for one direct ctx.llm.stream request; it does not create an Agent or write an
Agent session.
Requirements: Node.js 22.19+ (or 24+) and pnpm 11.7.
pnpm install --frozen-lockfile
pnpm run verify
pnpm pack --dry-run
The production Host loads the exact @awiki/im-core-node@0.1.2 runtime package;
the platform-specific native addon is selected through its optional dependencies
and remains external to the JavaScript bundle. Consumers do not need Rust or an
awiki-cli-rs2 checkout. See THIRD_PARTY_NOTICES.md for provenance and
licensing.
The checked-in Typert Host/Remote artifacts were generated from the same Host
contract. pnpm check:generated pins their complete seventeen-method surface until
the standalone Typert generator supports root-level packages.
Do not commit OTPs, access tokens, private keys, identity state, .env files, or
remote-test reports. pnpm check:public enforces the public-tree guard before
verification and packaging.
The plugin is MIT licensed. Its Rust IM Core runtime dependency is distributed under AGPL-3.0-only and remains subject to its own retained notices and license.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。