forge-openclaw-plugin 0.2.52 → 0.2.53
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/assets/index-BR2FOGKC.js +91 -0
- package/dist/assets/index-BR2FOGKC.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/server/server/src/services/knowledge-graph.js +13 -1
- package/dist/server/server/src/types.js +1 -1
- package/dist/server/src/lib/knowledge-graph.js +1 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/dist/assets/index-DX8RiahO.js +0 -91
- package/dist/assets/index-DX8RiahO.js.map +0 -1
package/dist/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/>
|
|
14
14
|
<link rel="icon" type="image/png" href="/forge/assets/favicon-BCHm9dUV.ico" />
|
|
15
15
|
<link rel="alternate icon" href="/forge/assets/favicon-BCHm9dUV.ico" />
|
|
16
|
-
<script type="module" crossorigin src="/forge/assets/index-
|
|
16
|
+
<script type="module" crossorigin src="/forge/assets/index-BR2FOGKC.js"></script>
|
|
17
17
|
<link rel="modulepreload" crossorigin href="/forge/assets/vendor-D_NZFJze.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/forge/assets/board-CAszQU7Y.js">
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/forge/assets/ui-B5MjRjKe.js">
|
|
@@ -19,6 +19,7 @@ const GRAPH_RANGE = {
|
|
|
19
19
|
from: "2000-01-01T00:00:00.000Z",
|
|
20
20
|
to: "2100-01-01T00:00:00.000Z"
|
|
21
21
|
};
|
|
22
|
+
const KNOWLEDGE_GRAPH_NOTE_LIMIT = 2000;
|
|
22
23
|
const BASE_NODE_SIZE = {
|
|
23
24
|
goal: 56,
|
|
24
25
|
strategy: 52,
|
|
@@ -167,6 +168,7 @@ function makeNode(input) {
|
|
|
167
168
|
title: truncate(input.title, 90) || input.entityId,
|
|
168
169
|
subtitle: truncate(input.subtitle, 120),
|
|
169
170
|
description: truncate(input.description, 220),
|
|
171
|
+
searchText: truncate(input.searchText, 4000) || null,
|
|
170
172
|
href: input.href ?? null,
|
|
171
173
|
graphHref: buildKnowledgeGraphFocusHref(input.entityType, input.entityId),
|
|
172
174
|
iconName: null,
|
|
@@ -226,7 +228,16 @@ export function buildKnowledgeGraph(userIds, query = {}) {
|
|
|
226
228
|
const tags = filterOwnedEntities("tag", listTags(), userIds);
|
|
227
229
|
const strategies = listStrategies({ userIds });
|
|
228
230
|
const habits = listHabits({ userIds });
|
|
229
|
-
const
|
|
231
|
+
const selectedUserIds = new Set(userIds ?? []);
|
|
232
|
+
const notes = listNotes({ limit: KNOWLEDGE_GRAPH_NOTE_LIMIT }).filter((note) => {
|
|
233
|
+
if (selectedUserIds.size === 0) {
|
|
234
|
+
return true;
|
|
235
|
+
}
|
|
236
|
+
if (note.userId && selectedUserIds.has(note.userId)) {
|
|
237
|
+
return true;
|
|
238
|
+
}
|
|
239
|
+
return note.kind === "wiki" && note.userId === null;
|
|
240
|
+
});
|
|
230
241
|
const insights = listInsights({ userIds });
|
|
231
242
|
const calendarEvents = listCalendarEvents({ ...GRAPH_RANGE, userIds });
|
|
232
243
|
const workBlocks = listWorkBlockTemplates({ userIds });
|
|
@@ -585,6 +596,7 @@ export function buildKnowledgeGraph(userIds, query = {}) {
|
|
|
585
596
|
title: note.title,
|
|
586
597
|
subtitle: isWiki ? note.slug : note.summary,
|
|
587
598
|
description: note.summary || note.contentPlain,
|
|
599
|
+
searchText: note.contentPlain,
|
|
588
600
|
previewStats: [
|
|
589
601
|
{ label: "Kind", value: note.kind },
|
|
590
602
|
{ label: "Links", value: note.links.length },
|
|
@@ -2627,7 +2627,7 @@ export const notesListQuerySchema = z
|
|
|
2627
2627
|
userIds: repeatedTrimmedStringQuerySchema,
|
|
2628
2628
|
updatedFrom: dateOnlySchema.optional(),
|
|
2629
2629
|
updatedTo: dateOnlySchema.optional(),
|
|
2630
|
-
limit: z.coerce.number().int().positive().max(
|
|
2630
|
+
limit: z.coerce.number().int().positive().max(2000).optional()
|
|
2631
2631
|
})
|
|
2632
2632
|
.superRefine((value, context) => {
|
|
2633
2633
|
if (value.linkedEntityType !== undefined &&
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED