@nex-ai/nex 0.1.67 → 0.1.68
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/dist/lib/installers.js +2 -3
- package/dist/lib/installers.js.map +1 -1
- package/package.json +1 -2
- package/openclaw-plugin/dist/capture-filter.d.ts +0 -32
- package/openclaw-plugin/dist/capture-filter.d.ts.map +0 -1
- package/openclaw-plugin/dist/capture-filter.js +0 -117
- package/openclaw-plugin/dist/capture-filter.js.map +0 -1
- package/openclaw-plugin/dist/config.d.ts +0 -24
- package/openclaw-plugin/dist/config.d.ts.map +0 -1
- package/openclaw-plugin/dist/config.js +0 -68
- package/openclaw-plugin/dist/config.js.map +0 -1
- package/openclaw-plugin/dist/context-format.d.ts +0 -23
- package/openclaw-plugin/dist/context-format.d.ts.map +0 -1
- package/openclaw-plugin/dist/context-format.js +0 -40
- package/openclaw-plugin/dist/context-format.js.map +0 -1
- package/openclaw-plugin/dist/file-scanner.d.ts +0 -23
- package/openclaw-plugin/dist/file-scanner.d.ts.map +0 -1
- package/openclaw-plugin/dist/file-scanner.js +0 -119
- package/openclaw-plugin/dist/file-scanner.js.map +0 -1
- package/openclaw-plugin/dist/index.d.ts +0 -94
- package/openclaw-plugin/dist/index.d.ts.map +0 -1
- package/openclaw-plugin/dist/index.js +0 -1227
- package/openclaw-plugin/dist/index.js.map +0 -1
- package/openclaw-plugin/dist/nex-client.d.ts +0 -52
- package/openclaw-plugin/dist/nex-client.d.ts.map +0 -1
- package/openclaw-plugin/dist/nex-client.js +0 -129
- package/openclaw-plugin/dist/nex-client.js.map +0 -1
- package/openclaw-plugin/dist/rate-limiter.d.ts +0 -29
- package/openclaw-plugin/dist/rate-limiter.d.ts.map +0 -1
- package/openclaw-plugin/dist/rate-limiter.js +0 -95
- package/openclaw-plugin/dist/rate-limiter.js.map +0 -1
- package/openclaw-plugin/dist/session-store.d.ts +0 -15
- package/openclaw-plugin/dist/session-store.d.ts.map +0 -1
- package/openclaw-plugin/dist/session-store.js +0 -43
- package/openclaw-plugin/dist/session-store.js.map +0 -1
- package/openclaw-plugin/openclaw.plugin.json +0 -85
- package/openclaw-plugin/package.json +0 -29
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Nex Memory Plugin for OpenClaw
|
|
3
|
-
*
|
|
4
|
-
* Gives OpenClaw agents persistent long-term memory powered by the Nex
|
|
5
|
-
* context intelligence layer. Auto-recalls relevant context before each
|
|
6
|
-
* agent turn and auto-captures conversation facts after each turn.
|
|
7
|
-
*/
|
|
8
|
-
interface Logger {
|
|
9
|
-
debug?(...args: unknown[]): void;
|
|
10
|
-
info(...args: unknown[]): void;
|
|
11
|
-
warn(...args: unknown[]): void;
|
|
12
|
-
error(...args: unknown[]): void;
|
|
13
|
-
}
|
|
14
|
-
interface PluginHookAgentContext {
|
|
15
|
-
agentId?: string;
|
|
16
|
-
sessionKey?: string;
|
|
17
|
-
sessionId?: string;
|
|
18
|
-
workspaceDir?: string;
|
|
19
|
-
messageProvider?: string;
|
|
20
|
-
}
|
|
21
|
-
interface BeforeAgentStartEvent {
|
|
22
|
-
prompt: string;
|
|
23
|
-
messages?: unknown[];
|
|
24
|
-
}
|
|
25
|
-
interface AgentEndEvent {
|
|
26
|
-
messages: unknown[];
|
|
27
|
-
success: boolean;
|
|
28
|
-
error?: unknown;
|
|
29
|
-
durationMs?: number;
|
|
30
|
-
}
|
|
31
|
-
interface PluginCommandContext {
|
|
32
|
-
args?: string;
|
|
33
|
-
commandBody: string;
|
|
34
|
-
}
|
|
35
|
-
interface ToolCallResult {
|
|
36
|
-
content: Array<{
|
|
37
|
-
type: string;
|
|
38
|
-
text: string;
|
|
39
|
-
}>;
|
|
40
|
-
details: unknown;
|
|
41
|
-
}
|
|
42
|
-
interface OpenClawPluginApi {
|
|
43
|
-
id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
pluginConfig?: Record<string, unknown>;
|
|
46
|
-
logger: Logger;
|
|
47
|
-
on(hookName: "before_agent_start", handler: (event: BeforeAgentStartEvent, ctx: PluginHookAgentContext) => Promise<{
|
|
48
|
-
prependContext?: string;
|
|
49
|
-
} | void> | {
|
|
50
|
-
prependContext?: string;
|
|
51
|
-
} | void, opts?: {
|
|
52
|
-
priority?: number;
|
|
53
|
-
}): void;
|
|
54
|
-
on(hookName: "agent_end", handler: (event: AgentEndEvent, ctx: PluginHookAgentContext) => Promise<void> | void, opts?: {
|
|
55
|
-
priority?: number;
|
|
56
|
-
}): void;
|
|
57
|
-
registerTool(tool: {
|
|
58
|
-
name: string;
|
|
59
|
-
label: string;
|
|
60
|
-
description: string;
|
|
61
|
-
parameters: unknown;
|
|
62
|
-
execute: (toolCallId: string, params: Record<string, unknown>, signal?: AbortSignal) => Promise<ToolCallResult>;
|
|
63
|
-
ownerOnly?: boolean;
|
|
64
|
-
}): void;
|
|
65
|
-
registerCommand(command: {
|
|
66
|
-
name: string;
|
|
67
|
-
description: string;
|
|
68
|
-
acceptsArgs?: boolean;
|
|
69
|
-
handler: (ctx: PluginCommandContext) => Promise<{
|
|
70
|
-
text: string;
|
|
71
|
-
}> | {
|
|
72
|
-
text: string;
|
|
73
|
-
};
|
|
74
|
-
}): void;
|
|
75
|
-
registerService(service: {
|
|
76
|
-
id: string;
|
|
77
|
-
start: (ctx: {
|
|
78
|
-
logger: Logger;
|
|
79
|
-
}) => Promise<void> | void;
|
|
80
|
-
stop?: (ctx: {
|
|
81
|
-
logger: Logger;
|
|
82
|
-
}) => Promise<void> | void;
|
|
83
|
-
}): void;
|
|
84
|
-
}
|
|
85
|
-
declare const plugin: {
|
|
86
|
-
id: string;
|
|
87
|
-
name: string;
|
|
88
|
-
description: string;
|
|
89
|
-
version: string;
|
|
90
|
-
kind: "memory";
|
|
91
|
-
register(api: OpenClawPluginApi): void;
|
|
92
|
-
};
|
|
93
|
-
export default plugin;
|
|
94
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3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