@vivantel/rag-core 0.1.0 → 1.1.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/.github/config/release-please.json +37 -37
- package/.github/dependabot.yaml +27 -27
- package/.github/workflows/ci.yaml +119 -119
- package/.github/workflows/publish.yaml +155 -151
- package/.github/workflows/release.yaml +54 -150
- package/.release-please-manifest.json +3 -0
- package/.versionrc.json +18 -18
- package/CHANGELOG.md +51 -21
- package/README.md +62 -62
- package/bin/rag-update.ts +48 -48
- package/eslint.config.js +24 -24
- package/package.json +106 -102
- package/tsconfig.json +20 -20
- package/typedoc.json +10 -10
- package/vitest.config.ts +18 -18
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"release-type": "node",
|
|
3
|
-
"bootstrap-sha": "main",
|
|
4
|
-
"separate-pull-requests": true,
|
|
5
|
-
"include-component-in-tag": false,
|
|
6
|
-
"tag-separator": "@",
|
|
7
|
-
"packages": {
|
|
8
|
-
".": {
|
|
9
|
-
"package-name": "@vivantel/rag-core",
|
|
10
|
-
"changelog-path": "CHANGELOG.md",
|
|
11
|
-
"release-type": "node",
|
|
12
|
-
"bump-minor-pre-major": true,
|
|
13
|
-
"bump-patch-for-minor-pre-major": true,
|
|
14
|
-
"draft": false,
|
|
15
|
-
"prerelease": false
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"plugins": [
|
|
19
|
-
{
|
|
20
|
-
"type": "node-workspace",
|
|
21
|
-
"merge": false
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "sentence-case",
|
|
25
|
-
"pull-request-title-pattern": "chore: release ${version}"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"changelog-sections": [
|
|
29
|
-
{"type": "feat", "section": "Features", "hidden": false},
|
|
30
|
-
{"type": "fix", "section": "Bug Fixes", "hidden": false},
|
|
31
|
-
{"type": "perf", "section": "Performance Improvements", "hidden": false},
|
|
32
|
-
{"type": "refactor", "section": "Code Refactoring", "hidden": false},
|
|
33
|
-
{"type": "docs", "section": "Documentation", "hidden": false},
|
|
34
|
-
{"type": "style", "section": "Styles", "hidden": true},
|
|
35
|
-
{"type": "test", "section": "Tests", "hidden": true},
|
|
36
|
-
{"type": "chore", "section": "Miscellaneous Chores", "hidden": true}
|
|
37
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"release-type": "node",
|
|
3
|
+
"bootstrap-sha": "main",
|
|
4
|
+
"separate-pull-requests": true,
|
|
5
|
+
"include-component-in-tag": false,
|
|
6
|
+
"tag-separator": "@",
|
|
7
|
+
"packages": {
|
|
8
|
+
".": {
|
|
9
|
+
"package-name": "@vivantel/rag-core",
|
|
10
|
+
"changelog-path": "CHANGELOG.md",
|
|
11
|
+
"release-type": "node",
|
|
12
|
+
"bump-minor-pre-major": true,
|
|
13
|
+
"bump-patch-for-minor-pre-major": true,
|
|
14
|
+
"draft": false,
|
|
15
|
+
"prerelease": false
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"plugins": [
|
|
19
|
+
{
|
|
20
|
+
"type": "node-workspace",
|
|
21
|
+
"merge": false
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "sentence-case",
|
|
25
|
+
"pull-request-title-pattern": "chore: release ${version}"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"changelog-sections": [
|
|
29
|
+
{"type": "feat", "section": "Features", "hidden": false},
|
|
30
|
+
{"type": "fix", "section": "Bug Fixes", "hidden": false},
|
|
31
|
+
{"type": "perf", "section": "Performance Improvements", "hidden": false},
|
|
32
|
+
{"type": "refactor", "section": "Code Refactoring", "hidden": false},
|
|
33
|
+
{"type": "docs", "section": "Documentation", "hidden": false},
|
|
34
|
+
{"type": "style", "section": "Styles", "hidden": true},
|
|
35
|
+
{"type": "test", "section": "Tests", "hidden": true},
|
|
36
|
+
{"type": "chore", "section": "Miscellaneous Chores", "hidden": true}
|
|
37
|
+
]
|
|
38
38
|
}
|
package/.github/dependabot.yaml
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: "npm"
|
|
4
|
-
directory: "/"
|
|
5
|
-
schedule:
|
|
6
|
-
interval: "weekly"
|
|
7
|
-
day: "monday"
|
|
8
|
-
groups:
|
|
9
|
-
production-dependencies:
|
|
10
|
-
dependency-type: "production"
|
|
11
|
-
development-dependencies:
|
|
12
|
-
dependency-type: "development"
|
|
13
|
-
open-pull-requests-limit: 10
|
|
14
|
-
versioning-strategy: auto
|
|
15
|
-
labels:
|
|
16
|
-
- "dependencies"
|
|
17
|
-
- "automated"
|
|
18
|
-
commit-message:
|
|
19
|
-
prefix: "chore"
|
|
20
|
-
include: "scope"
|
|
21
|
-
|
|
22
|
-
- package-ecosystem: "github-actions"
|
|
23
|
-
directory: "/"
|
|
24
|
-
schedule:
|
|
25
|
-
interval: "weekly"
|
|
26
|
-
labels:
|
|
27
|
-
- "dependencies"
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "npm"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "weekly"
|
|
7
|
+
day: "monday"
|
|
8
|
+
groups:
|
|
9
|
+
production-dependencies:
|
|
10
|
+
dependency-type: "production"
|
|
11
|
+
development-dependencies:
|
|
12
|
+
dependency-type: "development"
|
|
13
|
+
open-pull-requests-limit: 10
|
|
14
|
+
versioning-strategy: auto
|
|
15
|
+
labels:
|
|
16
|
+
- "dependencies"
|
|
17
|
+
- "automated"
|
|
18
|
+
commit-message:
|
|
19
|
+
prefix: "chore"
|
|
20
|
+
include: "scope"
|
|
21
|
+
|
|
22
|
+
- package-ecosystem: "github-actions"
|
|
23
|
+
directory: "/"
|
|
24
|
+
schedule:
|
|
25
|
+
interval: "weekly"
|
|
26
|
+
labels:
|
|
27
|
+
- "dependencies"
|
|
28
28
|
- "ci"
|
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master, develop]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build-and-test:
|
|
11
|
-
name: Build & Test
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
strategy:
|
|
15
|
-
matrix:
|
|
16
|
-
node-version: [22, 24, 26]
|
|
17
|
-
fail-fast: false
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- name: Checkout code
|
|
21
|
-
uses: actions/checkout@v6
|
|
22
|
-
with:
|
|
23
|
-
fetch-depth: 0
|
|
24
|
-
|
|
25
|
-
- name: Setup Node.js
|
|
26
|
-
uses: actions/setup-node@v6
|
|
27
|
-
with:
|
|
28
|
-
node-version: ${{ matrix.node-version }}
|
|
29
|
-
cache: "npm"
|
|
30
|
-
|
|
31
|
-
- name: Install dependencies
|
|
32
|
-
run: npm ci
|
|
33
|
-
|
|
34
|
-
- name: Type check
|
|
35
|
-
run: npm run type-check
|
|
36
|
-
|
|
37
|
-
- name: Lint
|
|
38
|
-
run: npm run lint
|
|
39
|
-
|
|
40
|
-
- name: Run tests
|
|
41
|
-
run: npm test
|
|
42
|
-
|
|
43
|
-
- name: Build
|
|
44
|
-
run: npm run build
|
|
45
|
-
|
|
46
|
-
- name: Upload build artifacts
|
|
47
|
-
uses: actions/upload-artifact@v4
|
|
48
|
-
with:
|
|
49
|
-
name: dist-node-${{ matrix.node-version }}
|
|
50
|
-
path: dist/
|
|
51
|
-
retention-days: 7
|
|
52
|
-
|
|
53
|
-
code-quality:
|
|
54
|
-
name: Code Quality
|
|
55
|
-
runs-on: ubuntu-latest
|
|
56
|
-
|
|
57
|
-
steps:
|
|
58
|
-
- name: Checkout code
|
|
59
|
-
uses: actions/checkout@v6
|
|
60
|
-
|
|
61
|
-
- name: Setup Node.js
|
|
62
|
-
uses: actions/setup-node@v6
|
|
63
|
-
with:
|
|
64
|
-
node-version: "lts/*"
|
|
65
|
-
cache: "npm"
|
|
66
|
-
|
|
67
|
-
- name: Install dependencies
|
|
68
|
-
run: npm ci
|
|
69
|
-
|
|
70
|
-
- name: Check formatting
|
|
71
|
-
run: npx prettier --check "src/**/*.ts"
|
|
72
|
-
|
|
73
|
-
- name: Run lint with fix check
|
|
74
|
-
run: npx eslint src/ --max-warnings 0
|
|
75
|
-
|
|
76
|
-
- name: Type coverage
|
|
77
|
-
run: npx type-coverage --at-least 90
|
|
78
|
-
|
|
79
|
-
- name: Audit dependencies
|
|
80
|
-
run: npm audit --audit-level=moderate
|
|
81
|
-
|
|
82
|
-
security:
|
|
83
|
-
name: Security Scan
|
|
84
|
-
runs-on: ubuntu-latest
|
|
85
|
-
permissions:
|
|
86
|
-
contents: read
|
|
87
|
-
security-events: write
|
|
88
|
-
actions: read
|
|
89
|
-
|
|
90
|
-
steps:
|
|
91
|
-
- name: Checkout code
|
|
92
|
-
uses: actions/checkout@v6
|
|
93
|
-
|
|
94
|
-
- name: Setup Node.js
|
|
95
|
-
uses: actions/setup-node@v6
|
|
96
|
-
with:
|
|
97
|
-
node-version: "lts/*"
|
|
98
|
-
|
|
99
|
-
- name: Run Trivy vulnerability scanner
|
|
100
|
-
uses: aquasecurity/trivy-action@v0.36.0
|
|
101
|
-
with:
|
|
102
|
-
scan-type: "fs"
|
|
103
|
-
scan-ref: "."
|
|
104
|
-
format: "sarif"
|
|
105
|
-
output: "trivy-results.sarif"
|
|
106
|
-
|
|
107
|
-
- name: Upload Trivy results to GitHub Security tab
|
|
108
|
-
uses: github/codeql-action/upload-sarif@v4
|
|
109
|
-
with:
|
|
110
|
-
sarif_file: "trivy-results.sarif"
|
|
111
|
-
|
|
112
|
-
- name: Run npm audit
|
|
113
|
-
run: npm audit --json > npm-audit.json || true
|
|
114
|
-
|
|
115
|
-
- name: Upload npm audit results
|
|
116
|
-
uses: actions/upload-artifact@v4
|
|
117
|
-
with:
|
|
118
|
-
name: npm-audit
|
|
119
|
-
path: npm-audit.json
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master, develop]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [master]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-and-test:
|
|
11
|
+
name: Build & Test
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
node-version: [22, 24, 26]
|
|
17
|
+
fail-fast: false
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout code
|
|
21
|
+
uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Setup Node.js
|
|
26
|
+
uses: actions/setup-node@v6
|
|
27
|
+
with:
|
|
28
|
+
node-version: ${{ matrix.node-version }}
|
|
29
|
+
cache: "npm"
|
|
30
|
+
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: npm ci
|
|
33
|
+
|
|
34
|
+
- name: Type check
|
|
35
|
+
run: npm run type-check
|
|
36
|
+
|
|
37
|
+
- name: Lint
|
|
38
|
+
run: npm run lint
|
|
39
|
+
|
|
40
|
+
- name: Run tests
|
|
41
|
+
run: npm test
|
|
42
|
+
|
|
43
|
+
- name: Build
|
|
44
|
+
run: npm run build
|
|
45
|
+
|
|
46
|
+
- name: Upload build artifacts
|
|
47
|
+
uses: actions/upload-artifact@v4
|
|
48
|
+
with:
|
|
49
|
+
name: dist-node-${{ matrix.node-version }}
|
|
50
|
+
path: dist/
|
|
51
|
+
retention-days: 7
|
|
52
|
+
|
|
53
|
+
code-quality:
|
|
54
|
+
name: Code Quality
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
|
|
57
|
+
steps:
|
|
58
|
+
- name: Checkout code
|
|
59
|
+
uses: actions/checkout@v6
|
|
60
|
+
|
|
61
|
+
- name: Setup Node.js
|
|
62
|
+
uses: actions/setup-node@v6
|
|
63
|
+
with:
|
|
64
|
+
node-version: "lts/*"
|
|
65
|
+
cache: "npm"
|
|
66
|
+
|
|
67
|
+
- name: Install dependencies
|
|
68
|
+
run: npm ci
|
|
69
|
+
|
|
70
|
+
- name: Check formatting
|
|
71
|
+
run: npx prettier --check "src/**/*.ts"
|
|
72
|
+
|
|
73
|
+
- name: Run lint with fix check
|
|
74
|
+
run: npx eslint src/ --max-warnings 0
|
|
75
|
+
|
|
76
|
+
- name: Type coverage
|
|
77
|
+
run: npx type-coverage --at-least 90
|
|
78
|
+
|
|
79
|
+
- name: Audit dependencies
|
|
80
|
+
run: npm audit --audit-level=moderate
|
|
81
|
+
|
|
82
|
+
security:
|
|
83
|
+
name: Security Scan
|
|
84
|
+
runs-on: ubuntu-latest
|
|
85
|
+
permissions:
|
|
86
|
+
contents: read
|
|
87
|
+
security-events: write
|
|
88
|
+
actions: read
|
|
89
|
+
|
|
90
|
+
steps:
|
|
91
|
+
- name: Checkout code
|
|
92
|
+
uses: actions/checkout@v6
|
|
93
|
+
|
|
94
|
+
- name: Setup Node.js
|
|
95
|
+
uses: actions/setup-node@v6
|
|
96
|
+
with:
|
|
97
|
+
node-version: "lts/*"
|
|
98
|
+
|
|
99
|
+
- name: Run Trivy vulnerability scanner
|
|
100
|
+
uses: aquasecurity/trivy-action@v0.36.0
|
|
101
|
+
with:
|
|
102
|
+
scan-type: "fs"
|
|
103
|
+
scan-ref: "."
|
|
104
|
+
format: "sarif"
|
|
105
|
+
output: "trivy-results.sarif"
|
|
106
|
+
|
|
107
|
+
- name: Upload Trivy results to GitHub Security tab
|
|
108
|
+
uses: github/codeql-action/upload-sarif@v4
|
|
109
|
+
with:
|
|
110
|
+
sarif_file: "trivy-results.sarif"
|
|
111
|
+
|
|
112
|
+
- name: Run npm audit
|
|
113
|
+
run: npm audit --json > npm-audit.json || true
|
|
114
|
+
|
|
115
|
+
- name: Upload npm audit results
|
|
116
|
+
uses: actions/upload-artifact@v4
|
|
117
|
+
with:
|
|
118
|
+
name: npm-audit
|
|
119
|
+
path: npm-audit.json
|