dotmem 0.2.4 → 0.2.6

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/types/policy.d.ts CHANGED
@@ -93,14 +93,7 @@ interface PolicyOverride {
93
93
 
94
94
  type PolicyOverrideState = 'ACTIVE' | 'EXPIRED' | 'STALE' | 'INERT' | 'NONE'
95
95
 
96
- type PolicyOverrideInertDetail =
97
- | 'active'
98
- | 'policy-missing'
99
- | 'policy-changed'
100
- | 'expired'
101
- | 'revoked'
102
- | 'superseded'
103
- | 'multiple-active'
96
+ type PolicyOverrideInertDetail = 'active' | 'policy-missing' | 'policy-changed' | 'expired' | 'revoked' | 'superseded' | 'multiple-active'
104
97
 
105
98
  interface ResolvedOverride {
106
99
  override: PolicyOverride
@@ -204,17 +197,9 @@ interface MemoryPolicyOverrideAPI {
204
197
  * from the payload. Exactly one active slot per target; a new grant
205
198
  * atomically supersedes the previous one.
206
199
  */
207
- grant(
208
- input: PolicyOverrideGrantInput,
209
- namespace?: PolicyNamespace,
210
- basedOnRevision?: number
211
- ): Promise<PolicyOverride>
200
+ grant(input: PolicyOverrideGrantInput, namespace?: PolicyNamespace, basedOnRevision?: number): Promise<PolicyOverride>
212
201
  /** Remove a relaxation and restore the base policy. */
213
- revoke(
214
- input: PolicyOverrideRevokeInput,
215
- namespace?: PolicyNamespace,
216
- basedOnRevision?: number
217
- ): Promise<PolicyOverride>
202
+ revoke(input: PolicyOverrideRevokeInput, namespace?: PolicyNamespace, basedOnRevision?: number): Promise<PolicyOverride>
218
203
  /** Every override with its resolved state (ACTIVE / EXPIRED / STALE / INERT). */
219
204
  list(namespace?: PolicyNamespace): Promise<ResolvedOverride[]>
220
205
  /** Effective policy state with the provenance scar. */
@@ -267,12 +252,7 @@ interface MemoryPolicyAPI {
267
252
  }
268
253
 
269
254
  /** Advisory relationship index over memories (@brain.mem). Non-authoritative. */
270
- type BrainRelationshipKind =
271
- | 'uses'
272
- | 'related-to'
273
- | 'supersedes'
274
- | 'encountered-in'
275
- | 'associated-with'
255
+ type BrainRelationshipKind = 'uses' | 'related-to' | 'supersedes' | 'encountered-in' | 'associated-with'
276
256
 
277
257
  interface BrainRelationship {
278
258
  id: string
@@ -288,4 +268,4 @@ interface MemoryBrainAPI {
288
268
  getRelationships(from?: string, to?: string): Promise<BrainRelationship[]>
289
269
  removeRelationship(id: string): Promise<void>
290
270
  clear(): Promise<void>
291
- }
271
+ }