dsh-mnemon-source-memory-spaces 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 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,38 @@
1
+ # dsh-mnemon-source-memory-spaces
2
+
3
+ Memory Spaces owns its Provider contracts and private child-Fiber host. Provider authors depend on `dsh-mnemon-source-memory-spaces/provider-sdk`, never on the main repository's controllers or global registry.
4
+
5
+ The Source owns its storage registry, scoped native command transport, recall policy, routing, receipts and management operations. It imports **no Provider implementation** and defines no extra Context service. Each mount defaults to a separate data directory; set `dataDir` explicitly to select an existing authority.
6
+
7
+ Install the chosen Provider packages and configure them explicitly on the Source entry:
8
+
9
+ ```yaml
10
+ name: dsh-mnemon-source-memory-spaces
11
+ config:
12
+ dataDir: /absolute/path/to/memory
13
+ providers:
14
+ - use: dsh-mnemon-provider-holographic
15
+ instanceId: local-facts
16
+ ```
17
+
18
+ The host must already provide `ctx.mnemonMemory`; a Strategy decides how this Source enters the LLM View. For programmatic composition, import `installMemorySpaces` and pass explicit typed child modules. It returns `Promise<void>`; no private Host or Snapshot escapes. Omitting the child list is an error, not automatic dependency discovery. The default `dsh-mnemon` bundle supplies the existing nine Providers and existing storage settings separately.
19
+
20
+ Run `pnpm install && pnpm verify` in this directory. Its own tests mount real Cordis Fibers and exercise Source isolation, scoped management, View actions/routes, persistence and failed-child cleanup. Provider authors use `mountMemorySpaceProvider(module, { instanceId, config })` from the public `/testing` entry to test actual child registration and obtain frozen metadata plus `createAdapter`/`dispose`. `createMemorySpaceProviderFixture` supplies scoped authority and validated connection data for driver tests. Dispose the mounted fixture to release its adapters and Fiber. Neither fixture exposes the private Host, Registry or Snapshot; test the full Source separately for View integration.
21
+
22
+ ## Source-owned Client
23
+
24
+ The optional ./client entry is a normal DSH Client module. This package owns
25
+ its pages, browser API adapter, Host management operations, and tests. It only
26
+ imports the public dsh-mnemon/client helpers; it never receives a Host Context,
27
+ raw RPC transport, credentials, or an LLM View grant.
28
+
29
+ The default distribution loads these same Client plugins through DSH. Each page
30
+ uses Source-scoped read/mutate operations. Optional Agent-assisted cross-Source
31
+ maintenance is advertised by the Host through the same scoped page client; it
32
+ is not silently installed by a Source. There is one Slot owner per Source page,
33
+ not a second fallback registration or copied default implementation.
34
+
35
+ pnpm verify checks Host behavior and real Source-backed page interactions, then
36
+ builds both Host and browser artifacts plus their public declarations. Client
37
+ tests load the installed Core's browser artifact using dsh-mnemon/testing; they
38
+ have no dependency on Core's repository sources or configuration files.