sp-rag 0.6.3 → 0.6.4
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 +6 -1
- package/dist/cli.js +1 -1
- package/dist/lib/skill.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ CLI để setup nhanh SP-RAG theo hướng dev-friendly:
|
|
|
17
17
|
## Trạng thái package
|
|
18
18
|
|
|
19
19
|
- package npm public: `sp-rag`
|
|
20
|
-
- version đang publish: `0.6.
|
|
20
|
+
- version đang publish: `0.6.4`
|
|
21
21
|
- binary public: `sp-rag`
|
|
22
22
|
|
|
23
23
|
## Cài từ source trong monorepo
|
|
@@ -66,6 +66,11 @@ Flow khuyên dùng sau khi đã có `grc_pat_*`:
|
|
|
66
66
|
4. khi đổi token, chỉ cần `token add`
|
|
67
67
|
5. khi muốn kiểm tra máy đang được cấu hình ra sao, dùng `explain`
|
|
68
68
|
|
|
69
|
+
Ghi chú:
|
|
70
|
+
|
|
71
|
+
- với `cursor` và `vscode` ở `scope project`, nếu Sếpp đang đứng sẵn trong repo thì có thể bỏ `--cwd`
|
|
72
|
+
- CLI sẽ tự dùng thư mục hiện tại cho cả MCP lẫn skill
|
|
73
|
+
|
|
69
74
|
Ví dụ:
|
|
70
75
|
|
|
71
76
|
```bash
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import { runEvaluationSuite } from './lib/eval.js';
|
|
|
4
4
|
import { defaultBaseUrl, defaultMcpServerAlias, defaultMcpUrl, installMcpConfig, resolveMcpConfigPath, } from './lib/mcp-config.js';
|
|
5
5
|
import { fetchJson, fetchText, runDoctor } from './lib/http.js';
|
|
6
6
|
import { installSkill, resolveSkillInstallTarget, } from './lib/skill.js';
|
|
7
|
-
const cliVersion = '0.6.
|
|
7
|
+
const cliVersion = '0.6.4';
|
|
8
8
|
function parseArgv(argv) {
|
|
9
9
|
const positionals = [];
|
|
10
10
|
const options = {};
|
package/dist/lib/skill.js
CHANGED
|
@@ -31,10 +31,11 @@ function normalizeScope(client, scope) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
function requireProjectCwd(client, cwd) {
|
|
34
|
-
|
|
34
|
+
const resolvedCwd = cwd?.trim() ? cwd : process.cwd();
|
|
35
|
+
if (!resolvedCwd.trim()) {
|
|
35
36
|
throw new Error(`${client} cần --cwd hoặc --target-dir để cài skill theo project.`);
|
|
36
37
|
}
|
|
37
|
-
return path.resolve(
|
|
38
|
+
return path.resolve(resolvedCwd);
|
|
38
39
|
}
|
|
39
40
|
export function defaultSkillDir(client = 'codex', cwd, scope) {
|
|
40
41
|
const normalizedScope = normalizeScope(client, scope);
|