this.me / OperatorKernel
Interface: OperatorKernel
Defined in: types.ts:139
A minimal “kernel facade” for operator modules. These are capabilities the ME kernel must expose so ops can behave exactly like me.ts.
Properties
encryptedBranches?
optionalencryptedBranches:Record<string,`0x${string}`>
Defined in: types.ts:150
localNoises?
optionallocalNoises:Record<string,string>
Defined in: types.ts:149
localSecrets?
optionallocalSecrets:Record<string,string>
Defined in: types.ts:148
memories?
optionalmemories:Memory[]
Defined in: types.ts:153
operators?
optionaloperators:OperatorRegistry
Defined in: types.ts:142
Methods
commitMemory()?
optionalcommitMemory(t):void
Defined in: types.ts:182
Append an event to memories and rebuild index. Operators that are “kernel-only” should avoid emitting memories.
Parameters
t
Returns
void
computeEffectiveSecret()
computeEffectiveSecret(
path):string
Defined in: types.ts:157
Parameters
path
Returns
string
hashFn()
hashFn(
input):string
Defined in: types.ts:197
Portable hash function used to populate Memory.hash
Parameters
input
string
Returns
string
isEncryptedBlob()
isEncryptedBlob(
v):v is `0x${string}`
Defined in: types.ts:160
Parameters
v
any
Returns
v is `0x${string}`
isIdentityRef()
isIdentityRef(
v):v is MeIdentityRef
Defined in: types.ts:167
Parameters
v
any
Returns
v is MeIdentityRef
isPointer()
isPointer(
v):v is MePointer
Defined in: types.ts:164
Parameters
v
any
Returns
v is MePointer
makeIdentityRef()
makeIdentityRef(
id):MeIdentityRef
Defined in: types.ts:166
Parameters
id
string
Returns
MeIdentityRef
makePointer()
makePointer(
targetPath):MePointer
Defined in: types.ts:163
Parameters
targetPath
string
Returns
MePointer
normalizeAndValidateUsername()
normalizeAndValidateUsername(
input):string
Defined in: types.ts:192
For ops that need username normalization.
Parameters
input
string
Returns
string
now()
now():
number
Defined in: types.ts:202
Current time. me.ts uses Date.now().
Returns
number
opKind()
opKind(
op):OperatorKind|null
Defined in: types.ts:141
Parameters
op
string
Returns
OperatorKind | null
readPath()
readPath(
path):any
Defined in: types.ts:176
Read semantic data using the same rules as me.ts:
- Secret scope roots return undefined (stealth)
- Secret interior reads decrypt from encryptedBranches
- Public reads come from index and decrypt value-level blobs
Parameters
path
Returns
any
rebuildIndex()
rebuildIndex():
void
Defined in: types.ts:154
Returns
void
removeSubtree()
removeSubtree(
targetPath):void
Defined in: types.ts:187
Remove a subtree: deletes matching localSecrets/localNoises/encryptedBranches and emits a "-" memory.
Parameters
targetPath
Returns
void
splitPath()
splitPath(
path):object
Defined in: types.ts:145
Parameters
path
Returns
object
leaf
leaf:
string|null
scope
scope:
SemanticPath
xorDecrypt()
xorDecrypt(
blob,secret,path):any
Defined in: types.ts:159
Parameters
blob
`0x${string}`
secret
string
path
Returns
any
xorEncrypt()
xorEncrypt(
value,secret,path):`0x${string}`
Defined in: types.ts:158
Parameters
value
any
secret
string
path
Returns
`0x${string}`
