njuboy11-ark-kb 1.0.0
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/.github/workflows/ci.yml +53 -0
- package/CLA.md +37 -0
- package/CONTRIBUTING.md +21 -0
- package/LICENSE +661 -0
- package/README.md +200 -0
- package/TODO.md +35 -0
- package/WORKFLOW.md +54 -0
- package/ark-kb-1.0.0.tgz +0 -0
- package/clean_pdf_chunks.mjs +27 -0
- package/cli.d.ts +22 -0
- package/cli.d.ts.map +1 -0
- package/cli.js +460 -0
- package/cli.js.map +1 -0
- package/compile.sh +30 -0
- package/config.d.ts +179 -0
- package/config.d.ts.map +1 -0
- package/config.js +431 -0
- package/config.js.map +1 -0
- package/email-ingester.d.ts +84 -0
- package/email-ingester.d.ts.map +1 -0
- package/email-ingester.js +722 -0
- package/email-ingester.js.map +1 -0
- package/embedder.d.ts +47 -0
- package/embedder.d.ts.map +1 -0
- package/embedder.js +244 -0
- package/embedder.js.map +1 -0
- package/eslint.config.js +17 -0
- package/index.d.ts +355 -0
- package/index.d.ts.map +1 -0
- package/index.js +758 -0
- package/index.js.map +1 -0
- package/ingester.d.ts +76 -0
- package/ingester.d.ts.map +1 -0
- package/ingester.js +1261 -0
- package/ingester.js.map +1 -0
- package/kb-manager.d.ts +253 -0
- package/kb-manager.d.ts.map +1 -0
- package/kb-manager.js +518 -0
- package/kb-manager.js.map +1 -0
- package/openclaw.plugin.json +200 -0
- package/package.json +56 -0
- package/plugin-config.example.json +86 -0
- package/plugin-config.json +89 -0
- package/reindex_pdfs.mjs +61 -0
- package/searcher.d.ts +56 -0
- package/searcher.d.ts.map +1 -0
- package/searcher.js +321 -0
- package/searcher.js.map +1 -0
- package/store.d.ts +118 -0
- package/store.d.ts.map +1 -0
- package/store.js +327 -0
- package/store.js.map +1 -0
- package/tools.d.ts +236 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +413 -0
- package/tools.js.map +1 -0
- package/video.d.ts +45 -0
- package/video.d.ts.map +1 -0
- package/video.js +275 -0
- package/video.js.map +1 -0
- package/vitest.config.js +7 -0
- package/watcher.d.ts +32 -0
- package/watcher.d.ts.map +1 -0
- package/watcher.js +174 -0
- package/watcher.js.map +1 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
version-sync:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Check version consistency
|
|
16
|
+
run: |
|
|
17
|
+
pkg_ver=$(node -p "JSON.parse(require('fs').readFileSync('package.json','utf8')).version")
|
|
18
|
+
plugin_ver=$(node -p "JSON.parse(require('fs').readFileSync('openclaw.plugin.json','utf8')).version")
|
|
19
|
+
if [ "$pkg_ver" != "$plugin_ver" ]; then
|
|
20
|
+
echo "::error::Version mismatch: package.json=$pkg_ver, openclaw.plugin.json=$plugin_ver"
|
|
21
|
+
exit 1
|
|
22
|
+
fi
|
|
23
|
+
echo "Versions match: $pkg_ver"
|
|
24
|
+
|
|
25
|
+
build:
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
|
|
30
|
+
- name: Setup Node
|
|
31
|
+
uses: actions/setup-node@v4
|
|
32
|
+
with:
|
|
33
|
+
node-version: 22
|
|
34
|
+
cache: npm
|
|
35
|
+
|
|
36
|
+
- name: Install dependencies
|
|
37
|
+
run: npm ci
|
|
38
|
+
|
|
39
|
+
- name: TypeScript compile
|
|
40
|
+
run: npx tsc --noEmit
|
|
41
|
+
|
|
42
|
+
- name: Build
|
|
43
|
+
run: npm run build
|
|
44
|
+
|
|
45
|
+
- name: Check no leftover .js/.d.ts in src/
|
|
46
|
+
run: |
|
|
47
|
+
js_count=$(find src -name '*.js' -o -name '*.d.ts' | wc -l)
|
|
48
|
+
if [ "$js_count" -gt 0 ]; then
|
|
49
|
+
echo "::error::Found $(js_count) compiled files in src/:"
|
|
50
|
+
find src -name '*.js' -o -name '*.d.ts'
|
|
51
|
+
exit 1
|
|
52
|
+
fi
|
|
53
|
+
echo "No compiled files in src/: clean"
|
package/CLA.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Contributor License Agreement
|
|
2
|
+
|
|
3
|
+
**Project**: ark-kb
|
|
4
|
+
**Maintainer**: njuboy11
|
|
5
|
+
**License**: AGPL-3.0
|
|
6
|
+
|
|
7
|
+
By submitting a Pull Request to this project, you agree to the following:
|
|
8
|
+
|
|
9
|
+
## You Grant Me
|
|
10
|
+
|
|
11
|
+
1. **Copyright License** — A permanent, worldwide, royalty-free, non-exclusive license to use, reproduce, modify, merge, publish, distribute, sublicense, and create derivative works of your contribution, including the right to relicense it under a different open-source or commercial license.
|
|
12
|
+
|
|
13
|
+
2. **Patent License** — A permanent, worldwide, royalty-free, non-exclusive license under any patents you own or control, to make, have made, use, offer to sell, sell, import, and otherwise transfer your contribution, where such license applies only to those patent claims necessarily infringed by your contribution alone.
|
|
14
|
+
|
|
15
|
+
## You Keep
|
|
16
|
+
|
|
17
|
+
3. Your full copyright ownership of your contribution. You may use, reproduce, modify, distribute, and sublicense your contribution for any purpose, outside of this project.
|
|
18
|
+
|
|
19
|
+
## You Promise
|
|
20
|
+
|
|
21
|
+
4. Your contribution is your original creation, or you have all necessary permissions to submit it.
|
|
22
|
+
|
|
23
|
+
5. Your contribution does not infringe on any third-party copyright, patent, trademark, or other intellectual property rights.
|
|
24
|
+
|
|
25
|
+
6. If your employer has rights to intellectual property you create, you have obtained permission from them to submit this contribution under the terms of this agreement.
|
|
26
|
+
|
|
27
|
+
## I Promise
|
|
28
|
+
|
|
29
|
+
7. Your contribution is licensed to the public under the AGPL-3.0 license, unless a separate written agreement is made between you and me.
|
|
30
|
+
|
|
31
|
+
8. I may grant additional permissions (including commercial/closed-source use) to third parties for the project as a whole, without requiring further consent from you.
|
|
32
|
+
|
|
33
|
+
9. I will not hold you liable for any damages or claims related to your contribution, except as required by law.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
*Based on the Apache Individual Contributor License Agreement v2.0, simplified for solo-maintainer open-source projects.*
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Contributing to ark-kb
|
|
2
|
+
|
|
3
|
+
## Contributor License Agreement (CLA)
|
|
4
|
+
|
|
5
|
+
Before we can accept your contribution, you must agree to the [Contributor License Agreement](CLA.md). By submitting a Pull Request, you confirm that you have read and agree to the terms of the CLA.
|
|
6
|
+
|
|
7
|
+
## Development
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
git clone https://github.com/njuboy11/ark-kb.git
|
|
11
|
+
cd ark-kb
|
|
12
|
+
npm install
|
|
13
|
+
npm run build # TypeScript compile
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Pull Request Process
|
|
17
|
+
|
|
18
|
+
1. Fork the repo and create your branch from `main`
|
|
19
|
+
2. Ensure `npm run build` compiles without errors
|
|
20
|
+
3. Submit a Pull Request
|
|
21
|
+
4. A maintainer will review and merge once approved
|