this.me 3.1.6 → 3.1.7
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 +49 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,6 @@ npm install this.me
|
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
## **Start .me in 60 seconds**
|
|
17
|
-
|
|
18
17
|
###### Import
|
|
19
18
|
```ts
|
|
20
19
|
import Me from "this.me";
|
|
@@ -70,6 +69,25 @@ me.home.kitchen.lights["="]("avg", "(main.brightness + leds.brightness) / 2"); /
|
|
|
70
69
|
me("home.kitchen.lights.avg"); // → 60
|
|
71
70
|
```
|
|
72
71
|
|
|
72
|
+
```txt
|
|
73
|
+
Runtime output (real):
|
|
74
|
+
avg -> 60
|
|
75
|
+
|
|
76
|
+
inspect().index ->
|
|
77
|
+
{
|
|
78
|
+
"home.kitchen.lights.main.brightness": 80,
|
|
79
|
+
"home.kitchen.lights.leds.brightness": 40,
|
|
80
|
+
"home.kitchen.lights.avg": 60
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
last thoughts ->
|
|
84
|
+
[
|
|
85
|
+
{ path: "home.kitchen.lights.main.brightness", op: null, value: 80 },
|
|
86
|
+
{ path: "home.kitchen.lights.leds.brightness", op: null, value: 40 },
|
|
87
|
+
{ path: "home.kitchen.lights.avg", op: "=", value: 60 }
|
|
88
|
+
]
|
|
89
|
+
```
|
|
90
|
+
|
|
73
91
|
You can **bridge** distant rooms with **Pointers**:
|
|
74
92
|
```ts
|
|
75
93
|
// Create a "Master Switch" at your root
|
|
@@ -113,6 +131,19 @@ me.wallet.balance(500);
|
|
|
113
131
|
me.wallet.note("Private savings");
|
|
114
132
|
```
|
|
115
133
|
|
|
134
|
+
```txt
|
|
135
|
+
After these writes:
|
|
136
|
+
|
|
137
|
+
Public index plane (inspect().index):
|
|
138
|
+
"" -> { __id: "jabellae" }
|
|
139
|
+
|
|
140
|
+
Secret scope roots:
|
|
141
|
+
["wallet"]
|
|
142
|
+
|
|
143
|
+
Encrypted branch plane (exportSnapshot().encryptedBranches):
|
|
144
|
+
wallet -> 0x4b46...6f1c4e
|
|
145
|
+
```
|
|
146
|
+
|
|
116
147
|
Everything under a `["_"]` scope is **stored as an Encrypted Blob**. By design, secret roots are Stealth:
|
|
117
148
|
```ts
|
|
118
149
|
me("wallet"); // → undefined (The root is a ghost)
|
|
@@ -142,6 +173,22 @@ me("wallet.hidden.note");// → "Deep dark secret"
|
|
|
142
173
|
- If you declare another secret inside, it becomes a deeper encrypted scope.
|
|
143
174
|
- Reads are path-based; there is no global `me.secret(...)` unlock call.
|
|
144
175
|
|
|
176
|
+
###### Structural view (public vs secret planes)
|
|
177
|
+
```txt
|
|
178
|
+
Public index plane (inspect().index):
|
|
179
|
+
"" -> { __id: "jabellae" }
|
|
180
|
+
|
|
181
|
+
Secret scope roots:
|
|
182
|
+
["wallet"]
|
|
183
|
+
|
|
184
|
+
Encrypted branch plane (exportSnapshot().encryptedBranches):
|
|
185
|
+
wallet -> 0x4b46...6f1c4e
|
|
186
|
+
|
|
187
|
+
Read behavior:
|
|
188
|
+
me("wallet") -> undefined
|
|
189
|
+
me("wallet.balance") -> 500
|
|
190
|
+
```
|
|
191
|
+
|
|
145
192
|
---
|
|
146
193
|
|
|
147
194
|
## ⟐ Why .me?
|
|
@@ -238,9 +285,8 @@ The behavior is identical, bit-by-bit, because the logic is part of the state.
|
|
|
238
285
|
##### License
|
|
239
286
|
**MIT © 2025 by https://neurons.me**
|
|
240
287
|
|
|
241
|
-
See the
|
|
288
|
+
See the `LICENSE` file in the package root for details.
|
|
242
289
|
|
|
243
290
|
**∴ Witness our seal**
|
|
244
291
|
|
|
245
292
|
**suiGn**
|
|
246
|
-
|