dotmem 0.0.1 → 0.0.3
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/AGENTS.md +464 -0
- package/CHANGELOG.md +0 -0
- package/COPYRIGHT.md +4 -0
- package/DOTMEM.md +42 -0
- package/LICENSE.md +11 -0
- package/MEMORY.md +518 -0
- package/PACKAGE.md +59 -0
- package/README.md +347 -0
- package/SECURITY.md +524 -0
- package/agent.cjs +221 -0
- package/agent.js +218 -0
- package/bin/cli.cjs +35 -0
- package/bin/cli.js +28 -0
- package/bin/mcp.cjs +22 -0
- package/bin/mcp.js +16 -0
- package/cli.cjs +15482 -0
- package/cli.js +15350 -0
- package/global.cjs +7827 -0
- package/global.d.ts +14 -0
- package/global.js +7808 -0
- package/index.cjs +29855 -0
- package/index.d.ts +15 -0
- package/index.js +29617 -0
- package/llms.txt +295 -0
- package/mcp.cjs +45234 -0
- package/mcp.js +45207 -0
- package/package.json +73 -53
- package/types/agent.d.ts +87 -0
- package/types/assets.d.ts +4 -0
- package/types/bun-sqlite.d.ts +14 -0
- package/types/exports.d.ts +285 -0
- package/types/fflate-browser.d.ts +7 -0
- package/types/inspect.d.ts +14 -0
- package/types/llm-cache.d.ts +53 -0
- package/types/logic.d.ts +79 -0
- package/types/memory.d.ts +336 -0
- package/types/policy.d.ts +291 -0
- package/types/profile.d.ts +27 -0
- package/types/reattach.d.ts +0 -87
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOTMEM PROFILE DECLARATIONS
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the source-owned built-in identity exported by `core/profile.ts`.
|
|
5
|
+
* The profile is immutable through normal runtime memory operations.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface DotMemProfileDocument {
|
|
9
|
+
readonly name: string
|
|
10
|
+
readonly content: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface DotMemProfile {
|
|
14
|
+
readonly format: 'dotmem.profile'
|
|
15
|
+
readonly version: 1
|
|
16
|
+
readonly id: 'joy'
|
|
17
|
+
readonly name: 'Joy'
|
|
18
|
+
readonly alternative: ['Jo']
|
|
19
|
+
readonly documents: ReadonlyArray<DotMemProfileDocument>
|
|
20
|
+
readonly type: 'ai-persona'
|
|
21
|
+
readonly role: string
|
|
22
|
+
readonly immutable: true
|
|
23
|
+
readonly description: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Embedded source-owned built-in identity profile. */
|
|
27
|
+
export declare const JO_PROFILE: Readonly<DotMemProfile>
|
package/types/reattach.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode, CSSProperties, Context } from "react"
|
|
2
|
-
import type { Root } from "react-dom/client"
|
|
3
|
-
|
|
4
|
-
export type ReattachWhere = string
|
|
5
|
-
|
|
6
|
-
export interface ReattachElementAttributes {
|
|
7
|
-
id?: string
|
|
8
|
-
class?: string
|
|
9
|
-
name?: string
|
|
10
|
-
dataset?: Record<string, string>
|
|
11
|
-
style?: CSSProperties | string
|
|
12
|
-
[key: string]: unknown
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface OverlayOptions {
|
|
16
|
-
trapFocus?: boolean
|
|
17
|
-
lockScroll?: boolean
|
|
18
|
-
closeOnEscape?: boolean
|
|
19
|
-
stackingOrder?: "top" | "bottom" | "exact"
|
|
20
|
-
zIndex?: number
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface LayoutOptions {
|
|
24
|
-
anchor?: string
|
|
25
|
-
placement?: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end"
|
|
26
|
-
offset?: number
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type EventHandlerKey = `on${string}`
|
|
30
|
-
|
|
31
|
-
export interface AttachmentHandle {
|
|
32
|
-
updateProps: (newProps: Record<string, unknown>) => void
|
|
33
|
-
getContainer: () => HTMLElement
|
|
34
|
-
destroy: () => void
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface MountOptions extends Partial<ReattachElementAttributes> {
|
|
38
|
-
root?: Root
|
|
39
|
-
inheritContext?: boolean
|
|
40
|
-
resilient?: boolean
|
|
41
|
-
overlay?: OverlayOptions
|
|
42
|
-
bubbleEvents?: EventHandlerKey[]
|
|
43
|
-
isolateNativeEvents?: boolean
|
|
44
|
-
layout?: LayoutOptions
|
|
45
|
-
hydrate?: boolean
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface ReattachProps extends ReattachElementAttributes {
|
|
49
|
-
where: ReattachWhere
|
|
50
|
-
children: ReactNode
|
|
51
|
-
inheritContext?: boolean
|
|
52
|
-
resilient?: boolean
|
|
53
|
-
overlay?: OverlayOptions
|
|
54
|
-
bubbleEvents?: EventHandlerKey[]
|
|
55
|
-
isolateNativeEvents?: boolean
|
|
56
|
-
layout?: LayoutOptions
|
|
57
|
-
hydrate?: boolean
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export declare class ReattachError extends Error {
|
|
61
|
-
readonly code: string
|
|
62
|
-
readonly details?: unknown
|
|
63
|
-
constructor(message: string, code: string, details?: unknown)
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface ReattachFn {
|
|
67
|
-
(where: string): HTMLElement | null
|
|
68
|
-
(where: string, id: string, children: ReactNode, options?: MountOptions): HTMLElement
|
|
69
|
-
(where: string, children: ReactNode, options?: MountOptions): HTMLElement
|
|
70
|
-
(where: string, attrs: ReattachElementAttributes, children: ReactNode, options?: MountOptions): HTMLElement
|
|
71
|
-
readonly mount: (container: HTMLElement, children: ReactNode, options?: MountOptions) => HTMLElement
|
|
72
|
-
readonly unmount: (where?: string, id?: string) => boolean
|
|
73
|
-
readonly clear: (where?: string) => number
|
|
74
|
-
readonly has: (where?: string, id?: string) => boolean
|
|
75
|
-
readonly when: (where: string, timeout?: number) => Promise<HTMLElement>
|
|
76
|
-
readonly global: () => ReattachFn
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export declare const Reattach: (props: ReattachProps) => ReactElement | null
|
|
80
|
-
|
|
81
|
-
export declare const reattach: ReattachFn
|
|
82
|
-
|
|
83
|
-
export declare function captureContext<T>(ctx: Context<T>, value: T): void
|
|
84
|
-
|
|
85
|
-
interface Window {
|
|
86
|
-
reattach?: ReattachFn
|
|
87
|
-
}
|