dsh-mnemon-source-documents 0.5.0-rc.1
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/LICENSE +21 -0
- package/README.md +39 -0
- package/lib/client.js +1594 -0
- package/lib/contracts.d.ts +89 -0
- package/lib/contracts.js +5 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.js +1034 -0
- package/lib/types/client/api.d.ts +9 -0
- package/lib/types/client/pages.d.ts +10 -0
- package/lib/types/client/ui.d.ts +8 -0
- package/lib/types/client.d.ts +3 -0
- package/lib/types/contracts.d.ts +86 -0
- package/package.json +87 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-external contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# dsh-mnemon-source-documents
|
|
2
|
+
|
|
3
|
+
An ordinary, self-contained Source plugin. It owns its configuration, storage,
|
|
4
|
+
projection, read/write semantics and tests; Core supplies no private controller.
|
|
5
|
+
|
|
6
|
+
Install declared dependencies, then run `pnpm verify`. For unreleased SDK work,
|
|
7
|
+
install the packed `dsh-mnemon` artifact as the development peer. This directory
|
|
8
|
+
has no dependency on the parent repository's tsconfig, test helpers or source.
|
|
9
|
+
|
|
10
|
+
Configure `dataDir` explicitly to reuse existing data. Otherwise storage is scoped
|
|
11
|
+
to the stable Source instance id under `~/.mnemon/sources/`. The default Mnemon
|
|
12
|
+
bundle supplies the existing storage paths without changing existing user data.
|
|
13
|
+
|
|
14
|
+
This package does not auto-mount a default instance. The Starter or a user's
|
|
15
|
+
Profile explicitly mounts its Entry. The same module can be mounted again with
|
|
16
|
+
another Entry id and configuration; no default Strategy is installed here.
|
|
17
|
+
|
|
18
|
+
## Source-owned Client
|
|
19
|
+
|
|
20
|
+
The optional ./client entry is a normal DSH Client module. This package owns
|
|
21
|
+
its pages, browser API adapter, Host management operations, and tests. It only
|
|
22
|
+
imports the public dsh-mnemon/client helpers; it never receives a Host Context,
|
|
23
|
+
raw RPC transport, credentials, or an LLM View grant.
|
|
24
|
+
|
|
25
|
+
The default distribution loads these same Client plugins through DSH. Each page
|
|
26
|
+
uses Source-scoped read/mutate operations. Optional Agent-assisted cross-Source
|
|
27
|
+
maintenance is advertised by the Host through the same scoped page client; it
|
|
28
|
+
is not silently installed by a Source. There is one Slot owner per Source page,
|
|
29
|
+
not a second fallback registration or copied default implementation.
|
|
30
|
+
|
|
31
|
+
pnpm verify checks Host behavior and real Source-backed page interactions, then
|
|
32
|
+
builds both Host and browser artifacts plus their public declarations. Client
|
|
33
|
+
tests load the installed Core's browser artifact using dsh-mnemon/testing; they
|
|
34
|
+
have no dependency on Core's repository sources or configuration files.
|
|
35
|
+
|
|
36
|
+
An explicit dataDir names one document authority, even when the caller's cwd
|
|
37
|
+
changes. The default Host adapter maps workspace/global storage as before.
|
|
38
|
+
Standalone archival retains content locally; it does not claim cross-Source
|
|
39
|
+
LLM distillation. Creating a document through management does not need an Agent.
|