@ubundi/openclaw-cortex 2.0.1 → 2.0.2
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/cortex/client.d.ts.map +1 -0
- package/dist/cortex/client.js.map +1 -0
- package/dist/features/capture/filter.d.ts +1 -1
- package/dist/features/capture/filter.d.ts.map +1 -1
- package/dist/features/capture/handler.d.ts +4 -4
- package/dist/features/capture/handler.d.ts.map +1 -1
- package/dist/features/capture/index.d.ts +3 -0
- package/dist/features/capture/index.d.ts.map +1 -0
- package/dist/features/capture/index.js +3 -0
- package/dist/features/capture/index.js.map +1 -0
- package/dist/features/checkpoint/handler.d.ts +3 -3
- package/dist/features/checkpoint/handler.d.ts.map +1 -1
- package/dist/features/heartbeat/handler.d.ts +2 -2
- package/dist/features/heartbeat/handler.d.ts.map +1 -1
- package/dist/features/index.d.ts +7 -0
- package/dist/features/index.d.ts.map +1 -0
- package/dist/features/index.js +7 -0
- package/dist/features/index.js.map +1 -0
- package/dist/features/recall/context-profile.d.ts +1 -1
- package/dist/features/recall/context-profile.d.ts.map +1 -1
- package/dist/features/recall/formatter.d.ts +1 -1
- package/dist/features/recall/formatter.d.ts.map +1 -1
- package/dist/features/recall/handler.d.ts +4 -4
- package/dist/features/recall/handler.d.ts.map +1 -1
- package/dist/features/recall/handler.js +1 -1
- package/dist/features/recall/handler.js.map +1 -1
- package/dist/features/recall/index.d.ts +4 -0
- package/dist/features/recall/index.d.ts.map +1 -0
- package/dist/features/recall/index.js +4 -0
- package/dist/features/recall/index.js.map +1 -0
- package/dist/features/sync/daily-logs-sync.d.ts +3 -3
- package/dist/features/sync/daily-logs-sync.d.ts.map +1 -1
- package/dist/features/sync/daily-logs-sync.js +1 -1
- package/dist/features/sync/daily-logs-sync.js.map +1 -1
- package/dist/features/sync/index.d.ts +5 -0
- package/dist/features/sync/index.d.ts.map +1 -0
- package/dist/features/sync/index.js +5 -0
- package/dist/features/sync/index.js.map +1 -0
- package/dist/features/sync/memory-md-sync.d.ts +3 -3
- package/dist/features/sync/memory-md-sync.d.ts.map +1 -1
- package/dist/features/sync/memory-md-sync.js +1 -1
- package/dist/features/sync/memory-md-sync.js.map +1 -1
- package/dist/features/sync/transcripts-sync.d.ts +3 -3
- package/dist/features/sync/transcripts-sync.d.ts.map +1 -1
- package/dist/features/sync/transcripts-sync.js +2 -2
- package/dist/features/sync/transcripts-sync.js.map +1 -1
- package/dist/features/sync/watcher.d.ts +3 -3
- package/dist/features/sync/watcher.d.ts.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/internal/api-key.d.ts.map +1 -0
- package/dist/internal/api-key.js.map +1 -0
- package/dist/internal/audit-logger.d.ts.map +1 -0
- package/dist/internal/audit-logger.js.map +1 -0
- package/dist/internal/{transcript/cleaner.d.ts → cleaner.d.ts} +1 -1
- package/dist/internal/cleaner.d.ts.map +1 -0
- package/dist/internal/cleaner.js.map +1 -0
- package/dist/internal/index.d.ts +11 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +11 -0
- package/dist/internal/index.js.map +1 -0
- package/dist/internal/latency-metrics.d.ts.map +1 -0
- package/dist/internal/latency-metrics.js.map +1 -0
- package/dist/internal/retry-queue.d.ts.map +1 -0
- package/dist/internal/retry-queue.js.map +1 -0
- package/dist/internal/safe-path.d.ts.map +1 -0
- package/dist/internal/safe-path.js.map +1 -0
- package/dist/internal/session-state.d.ts.map +1 -0
- package/dist/internal/session-state.js.map +1 -0
- package/dist/internal/user-id.d.ts.map +1 -0
- package/dist/internal/user-id.js.map +1 -0
- package/dist/plugin/cli.d.ts +33 -0
- package/dist/plugin/cli.d.ts.map +1 -0
- package/dist/plugin/cli.js +278 -0
- package/dist/plugin/cli.js.map +1 -0
- package/dist/plugin/commands.d.ts +21 -0
- package/dist/plugin/commands.d.ts.map +1 -0
- package/dist/plugin/commands.js +94 -0
- package/dist/plugin/commands.js.map +1 -0
- package/dist/plugin/{config/schema.d.ts → config.d.ts} +1 -1
- package/dist/plugin/config.d.ts.map +1 -0
- package/dist/plugin/{config/schema.js → config.js} +1 -1
- package/dist/plugin/config.js.map +1 -0
- package/dist/plugin/index.d.ts +1 -87
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +54 -586
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/tools.d.ts +31 -0
- package/dist/plugin/tools.d.ts.map +1 -0
- package/dist/plugin/tools.js +230 -0
- package/dist/plugin/tools.js.map +1 -0
- package/dist/plugin/types.d.ts +83 -0
- package/dist/plugin/types.d.ts.map +1 -0
- package/dist/plugin/types.js +3 -0
- package/dist/plugin/types.js.map +1 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/dist/adapters/cortex/client.d.ts.map +0 -1
- package/dist/adapters/cortex/client.js.map +0 -1
- package/dist/internal/audit/audit-logger.d.ts.map +0 -1
- package/dist/internal/audit/audit-logger.js.map +0 -1
- package/dist/internal/fs/safe-path.d.ts.map +0 -1
- package/dist/internal/fs/safe-path.js.map +0 -1
- package/dist/internal/identity/api-key.d.ts.map +0 -1
- package/dist/internal/identity/api-key.js.map +0 -1
- package/dist/internal/identity/user-id.d.ts.map +0 -1
- package/dist/internal/identity/user-id.js.map +0 -1
- package/dist/internal/metrics/latency-metrics.d.ts.map +0 -1
- package/dist/internal/metrics/latency-metrics.js.map +0 -1
- package/dist/internal/queue/retry-queue.d.ts.map +0 -1
- package/dist/internal/queue/retry-queue.js.map +0 -1
- package/dist/internal/session/session-state.d.ts.map +0 -1
- package/dist/internal/session/session-state.js.map +0 -1
- package/dist/internal/transcript/cleaner.d.ts.map +0 -1
- package/dist/internal/transcript/cleaner.js.map +0 -1
- package/dist/plugin/config/schema.d.ts.map +0 -1
- package/dist/plugin/config/schema.js.map +0 -1
- /package/dist/{adapters/cortex → cortex}/client.d.ts +0 -0
- /package/dist/{adapters/cortex → cortex}/client.js +0 -0
- /package/dist/internal/{identity/api-key.d.ts → api-key.d.ts} +0 -0
- /package/dist/internal/{identity/api-key.js → api-key.js} +0 -0
- /package/dist/internal/{audit/audit-logger.d.ts → audit-logger.d.ts} +0 -0
- /package/dist/internal/{audit/audit-logger.js → audit-logger.js} +0 -0
- /package/dist/internal/{transcript/cleaner.js → cleaner.js} +0 -0
- /package/dist/internal/{metrics/latency-metrics.d.ts → latency-metrics.d.ts} +0 -0
- /package/dist/internal/{metrics/latency-metrics.js → latency-metrics.js} +0 -0
- /package/dist/internal/{queue/retry-queue.d.ts → retry-queue.d.ts} +0 -0
- /package/dist/internal/{queue/retry-queue.js → retry-queue.js} +0 -0
- /package/dist/internal/{fs/safe-path.d.ts → safe-path.d.ts} +0 -0
- /package/dist/internal/{fs/safe-path.js → safe-path.js} +0 -0
- /package/dist/internal/{session/session-state.d.ts → session-state.d.ts} +0 -0
- /package/dist/internal/{session/session-state.js → session-state.js} +0 -0
- /package/dist/internal/{identity/user-id.d.ts → user-id.d.ts} +0 -0
- /package/dist/internal/{identity/user-id.js → user-id.js} +0 -0
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PluginApi } from "./types.js";
|
|
1
2
|
export interface KnowledgeState {
|
|
2
3
|
hasMemories: boolean;
|
|
3
4
|
totalSessions: number;
|
|
@@ -5,93 +6,6 @@ export interface KnowledgeState {
|
|
|
5
6
|
maturity: "cold" | "warming" | "mature" | "unknown";
|
|
6
7
|
lastChecked: number;
|
|
7
8
|
}
|
|
8
|
-
interface HookMetadata {
|
|
9
|
-
name: string;
|
|
10
|
-
description: string;
|
|
11
|
-
}
|
|
12
|
-
interface ToolDefinition {
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
parameters: Record<string, unknown>;
|
|
16
|
-
execute: (id: string, params: Record<string, unknown>) => Promise<{
|
|
17
|
-
content: Array<{
|
|
18
|
-
type: string;
|
|
19
|
-
text: string;
|
|
20
|
-
}>;
|
|
21
|
-
}>;
|
|
22
|
-
}
|
|
23
|
-
interface CommandDefinition {
|
|
24
|
-
name: string;
|
|
25
|
-
description: string;
|
|
26
|
-
acceptsArgs?: boolean;
|
|
27
|
-
requireAuth?: boolean;
|
|
28
|
-
handler: (ctx: CommandContext) => Promise<{
|
|
29
|
-
text: string;
|
|
30
|
-
}> | {
|
|
31
|
-
text: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
interface CommandContext {
|
|
35
|
-
senderId?: string;
|
|
36
|
-
channel?: string;
|
|
37
|
-
isAuthorizedSender?: boolean;
|
|
38
|
-
args?: string;
|
|
39
|
-
commandBody?: string;
|
|
40
|
-
config?: Record<string, unknown>;
|
|
41
|
-
}
|
|
42
|
-
interface PluginApi {
|
|
43
|
-
pluginConfig?: Record<string, unknown>;
|
|
44
|
-
logger: {
|
|
45
|
-
debug?(...args: unknown[]): void;
|
|
46
|
-
info(...args: unknown[]): void;
|
|
47
|
-
warn(...args: unknown[]): void;
|
|
48
|
-
error(...args: unknown[]): void;
|
|
49
|
-
};
|
|
50
|
-
on?(hookName: string, handler: (...args: any[]) => any, opts?: {
|
|
51
|
-
priority?: number;
|
|
52
|
-
}): void;
|
|
53
|
-
registerHook?(hookName: string, handler: (...args: any[]) => any, metadata: HookMetadata): void;
|
|
54
|
-
registerService(service: {
|
|
55
|
-
id: string;
|
|
56
|
-
start?: (ctx: {
|
|
57
|
-
workspaceDir?: string;
|
|
58
|
-
}) => void;
|
|
59
|
-
stop?: (ctx: {
|
|
60
|
-
workspaceDir?: string;
|
|
61
|
-
}) => void;
|
|
62
|
-
}): void;
|
|
63
|
-
registerTool?(definition: ToolDefinition, options?: {
|
|
64
|
-
optional?: boolean;
|
|
65
|
-
}): void;
|
|
66
|
-
registerCommand?(definition: CommandDefinition): void;
|
|
67
|
-
registerGatewayMethod?(name: string, handler: (ctx: {
|
|
68
|
-
respond: (ok: boolean, data: unknown) => void;
|
|
69
|
-
}) => void): void;
|
|
70
|
-
registerCli?(registrar: (ctx: {
|
|
71
|
-
program: CliProgram;
|
|
72
|
-
config: Record<string, unknown>;
|
|
73
|
-
workspaceDir?: string;
|
|
74
|
-
logger: Logger;
|
|
75
|
-
}) => void, opts?: {
|
|
76
|
-
commands?: string[];
|
|
77
|
-
}): void;
|
|
78
|
-
}
|
|
79
|
-
interface CliProgram {
|
|
80
|
-
command(name: string): CliCommand;
|
|
81
|
-
}
|
|
82
|
-
interface CliCommand {
|
|
83
|
-
description(desc: string): CliCommand;
|
|
84
|
-
command(name: string): CliCommand;
|
|
85
|
-
argument(name: string, desc: string): CliCommand;
|
|
86
|
-
option(flags: string, desc: string, defaultValue?: string): CliCommand;
|
|
87
|
-
action(fn: (...args: any[]) => void | Promise<void>): CliCommand;
|
|
88
|
-
}
|
|
89
|
-
interface Logger {
|
|
90
|
-
debug?(...args: unknown[]): void;
|
|
91
|
-
info(...args: unknown[]): void;
|
|
92
|
-
warn(...args: unknown[]): void;
|
|
93
|
-
error(...args: unknown[]): void;
|
|
94
|
-
}
|
|
95
9
|
declare const plugin: {
|
|
96
10
|
id: string;
|
|
97
11
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAEV,SAAS,EAEV,MAAM,YAAY,CAAC;AA2CpB,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACpD,WAAW,EAAE,MAAM,CAAC;CACrB;AAoJD,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASI,SAAS;CAiXxB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|