@ontos-ai/knowhere-claw 0.1.4 → 0.1.5-beta.20260320121253
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/README.md +3 -0
- package/dist/tools.js +3 -3
- package/openclaw.plugin.json +9 -3
- package/package.json +8 -2
- package/skills/knowhere/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -138,3 +138,6 @@ Within each scope, the plugin keeps:
|
|
|
138
138
|
|
|
139
139
|
Contributor-oriented architecture, workflow, and packaging notes live in
|
|
140
140
|
`DEVELOPMENT.md` at the repository root.
|
|
141
|
+
|
|
142
|
+
Release-process details for maintainers live in
|
|
143
|
+
[`docs/release-workflow.md`](./docs/release-workflow.md).
|
package/dist/tools.js
CHANGED
|
@@ -492,7 +492,7 @@ function createIngestTool(params) {
|
|
|
492
492
|
return {
|
|
493
493
|
name: "knowhere_ingest_document",
|
|
494
494
|
label: "Knowhere Ingest",
|
|
495
|
-
description: "Parse a local file or remote URL with Knowhere and store the result in the current scope. Before calling this for a document that might already be stored in the current scope, use knowhere_list_documents and reuse the existing stored document when Source, File, or Title clearly match unless the user explicitly asks for a fresh parse or overwrite. When the user provides a URL to a document (PDF link, web page, etc.), pass it as the url parameter — Knowhere fetches it directly, no local download needed. Returns immediately with a job ID while parsing continues in the background. Use knowhere_get_job_status
|
|
495
|
+
description: "Parse a local file or remote URL with Knowhere and store the result in the current scope. Before calling this for a document that might already be stored in the current scope, use knowhere_list_documents and reuse the existing stored document when Source, File, or Title clearly match unless the user explicitly asks for a fresh parse or overwrite. When the user provides a URL to a document (PDF link, web page, etc.), pass it as the url parameter — Knowhere fetches it directly, no local download needed. Returns immediately with a job ID while parsing continues in the background. Use knowhere_get_job_status only when the current turn needs the parsed result. Use lang to control the language of any user-facing background status update (`en` by default, `ch` for Chinese). Provide either filePath or url, not both.",
|
|
496
496
|
parameters: {
|
|
497
497
|
type: "object",
|
|
498
498
|
additionalProperties: false,
|
|
@@ -536,7 +536,7 @@ function createIngestTool(params) {
|
|
|
536
536
|
},
|
|
537
537
|
lang: {
|
|
538
538
|
type: "string",
|
|
539
|
-
description: "Language for
|
|
539
|
+
description: "Language for any user-facing background status update sent after parsing completes or fails. Supports en and ch; unsupported values fall back to en."
|
|
540
540
|
},
|
|
541
541
|
parsing: {
|
|
542
542
|
type: "object",
|
|
@@ -679,7 +679,7 @@ function createIngestTool(params) {
|
|
|
679
679
|
`Job ID: ${createdJob.job_id}`,
|
|
680
680
|
`File: ${progressLabel}`,
|
|
681
681
|
`Scope: ${scope.label}`,
|
|
682
|
-
"Use knowhere_get_job_status
|
|
682
|
+
"Use knowhere_get_job_status only if this turn needs the parsed result."
|
|
683
683
|
].join("\n"));
|
|
684
684
|
}
|
|
685
685
|
};
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
"id": "knowhere-claw",
|
|
3
3
|
"name": "Knowhere",
|
|
4
4
|
"description": "Parse documents with Knowhere and expose the stored result as tool-queryable document state for OpenClaw agents.",
|
|
5
|
-
"skills": [
|
|
6
|
-
|
|
5
|
+
"skills": [
|
|
6
|
+
"./skills"
|
|
7
|
+
],
|
|
8
|
+
"version": "0.1.5-beta.20260320121253",
|
|
7
9
|
"uiHints": {
|
|
8
10
|
"apiKey": {
|
|
9
11
|
"label": "Knowhere API Key",
|
|
@@ -56,7 +58,11 @@
|
|
|
56
58
|
},
|
|
57
59
|
"scopeMode": {
|
|
58
60
|
"type": "string",
|
|
59
|
-
"enum": [
|
|
61
|
+
"enum": [
|
|
62
|
+
"session",
|
|
63
|
+
"agent",
|
|
64
|
+
"global"
|
|
65
|
+
],
|
|
60
66
|
"default": "session"
|
|
61
67
|
},
|
|
62
68
|
"pollIntervalMs": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ontos-ai/knowhere-claw",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5-beta.20260320121253",
|
|
4
4
|
"description": "OpenClaw plugin for Knowhere-powered document ingestion and automatic grounding.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/",
|
|
@@ -19,15 +19,19 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "rolldown -c && tsc -p tsconfig.build.json",
|
|
22
|
+
"changeset": "changeset",
|
|
23
|
+
"changeset:publish": "changeset publish",
|
|
22
24
|
"fmt": "oxfmt",
|
|
23
25
|
"fmt:check": "oxfmt --check",
|
|
24
26
|
"lint": "oxlint --type-aware",
|
|
25
27
|
"lint:fix": "oxlint --type-aware --fix",
|
|
26
28
|
"smoke:tools": "vite-node --mode smoke ./smoketest/run-tool.ts",
|
|
29
|
+
"release:beta": "node ./scripts/publish-beta-release.mjs",
|
|
30
|
+
"release:publish": "node ./scripts/publish-release.mjs",
|
|
31
|
+
"release:version": "node ./scripts/release-version.mjs",
|
|
27
32
|
"tsgo": "tsgo --noEmit -p tsconfig.json",
|
|
28
33
|
"typecheck": "pnpm tsgo",
|
|
29
34
|
"check:plugin-version": "node ./scripts/release-guard.mjs plugin-version",
|
|
30
|
-
"check:beta-version": "node ./scripts/release-guard.mjs beta-version",
|
|
31
35
|
"prepack": "pnpm build",
|
|
32
36
|
"test": "vitest --run",
|
|
33
37
|
"clean": "rm -rf dist"
|
|
@@ -37,6 +41,8 @@
|
|
|
37
41
|
"fflate": "^0.8.2"
|
|
38
42
|
},
|
|
39
43
|
"devDependencies": {
|
|
44
|
+
"@changesets/changelog-github": "^0.6.0",
|
|
45
|
+
"@changesets/cli": "^2.30.0",
|
|
40
46
|
"@tsconfig/node22": "^22.0.5",
|
|
41
47
|
"@types/node": "^25.3.5",
|
|
42
48
|
"@typescript/native-preview": "7.0.0-dev.20260307.1",
|
package/skills/knowhere/SKILL.md
CHANGED
|
@@ -132,7 +132,7 @@ After ingesting a document, use the returned document or job identifiers for fol
|
|
|
132
132
|
## Recommended workflow
|
|
133
133
|
|
|
134
134
|
1. If the document may already exist in the current scope, call `knowhere_list_documents` first and compare `Source`, `File`, and `Title` to find an existing match.
|
|
135
|
-
2. Ingest or import the document only if it is not already in the store, or if the user explicitly wants a fresh parse. After calling `knowhere_ingest_document`, you receive a job ID immediately while parsing continues in the background.
|
|
135
|
+
2. Ingest or import the document only if it is not already in the store, or if the user explicitly wants a fresh parse. After calling `knowhere_ingest_document`, you receive a job ID immediately while parsing continues in the background. If the current turn needs the parsed document, check with `knowhere_get_job_status`; otherwise stop and wait for the user to continue later.
|
|
136
136
|
3. Call `knowhere_list_documents` again if you need to confirm the right `docId`.
|
|
137
137
|
4. Call `knowhere_preview_document` to get a structural overview (table of contents with summaries).
|
|
138
138
|
5. When you know what to search for, call `knowhere_grep` with `conditions: [{ pattern: "your query" }]` — this searches all text fields (content, summary, keywords, path) in one call. Add more conditions to narrow results (e.g. filter by `chunk.type` or `chunk.path`).
|