dotmem 0.2.3 → 0.2.5
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/CHANGELOG.md +24 -4
- package/MEMORY.md +2 -0
- package/OVERVIEW.md +376 -378
- package/README.md +461 -456
- package/agent.cjs +135 -27
- package/agent.js +135 -27
- package/built-in-context.json +12 -12
- package/cli.cjs +263 -139
- package/cli.js +263 -139
- package/context/profiles/joy/ai.md +1 -1
- package/context/profiles/joy/behavior.md +16 -0
- package/context/profiles/joy/soul.md +1 -1
- package/global.cjs +135 -27
- package/global.js +135 -27
- package/index.cjs +165 -57
- package/index.js +165 -57
- package/llms.txt +6 -0
- package/mcp.cjs +192 -81
- package/mcp.js +192 -81
- package/package.json +4 -4
- package/types/fflate-browser.d.ts +1 -5
- package/types/global-types.d.ts +82 -306
- package/types/memory.d.ts +7 -39
- package/types/policy.d.ts +5 -25
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
|
+
}
|