@prover-coder-ai/context-doc 1.0.4 → 1.0.5
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 +20 -11
- package/dist/shell/syncKnowledge.js +1 -0
- package/package.json +4 -1
- package/src/shell/syncKnowledge.ts +1 -0
package/README.md
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
# Knowledge Sync CLI
|
|
2
2
|
|
|
3
|
-
Command: `npm run sync:knowledge` (or `tsx src/shell/syncKnowledge.ts`) — copies
|
|
3
|
+
Command: `npm run sync:knowledge` (or `tsx src/shell/syncKnowledge.ts`) — copies project dialogs into `.knowledge` for both Codex and Qwen.
|
|
4
4
|
|
|
5
5
|
## Flags
|
|
6
|
-
- `--source, -s <path>` — explicit path to `.codex
|
|
7
|
-
- `--dest, -d <path>` — destination root (defaults to `.knowledge/.codex`
|
|
6
|
+
- `--source, -s <path>` — explicit path to `.codex` (Codex source).
|
|
7
|
+
- `--dest, -d <path>` — Codex destination root (defaults to `.knowledge/.codex`).
|
|
8
8
|
- `--project-url` / `--project-name <url>` — override repository URL (otherwise read from `package.json`).
|
|
9
|
-
- `--meta-root <path>` —
|
|
9
|
+
- `--meta-root <path>` — meta folder root; Codex lookup tries `<meta-root>/.codex`, Qwen lookup tries `<meta-root>/.qwen/tmp/<hash>`.
|
|
10
|
+
- `--qwen-source <path>` — explicit path to Qwen source.
|
|
10
11
|
|
|
11
|
-
## `.
|
|
12
|
-
1) `--source`
|
|
13
|
-
2) env `CODEX_SOURCE_DIR`
|
|
14
|
-
3) `--meta-root` (
|
|
15
|
-
4) project-local `.codex`
|
|
12
|
+
## Codex lookup order (`.jsonl` filtered by project)
|
|
13
|
+
1) `--source`
|
|
14
|
+
2) env `CODEX_SOURCE_DIR`
|
|
15
|
+
3) `--meta-root` (use if already `.codex` or append `/.codex`)
|
|
16
|
+
4) project-local `.codex`
|
|
16
17
|
5) home `~/.codex`
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
Files: copies only `.jsonl` whose `git.repository_url` or `cwd` match this project into `.knowledge/.codex`, preserving structure.
|
|
20
|
+
|
|
21
|
+
## Qwen lookup order (`.json` only, no project filter)
|
|
22
|
+
1) `--qwen-source`
|
|
23
|
+
2) env `QWEN_SOURCE_DIR`
|
|
24
|
+
3) `<meta-root>/.qwen/tmp/<hash>`
|
|
25
|
+
4) `<cwd>/.qwen/tmp/<hash>`
|
|
26
|
+
5) `~/.qwen/tmp/<hash>`
|
|
27
|
+
|
|
28
|
+
Files: copies only `.json` into `.knowledge/.qwen`, preserving structure (directories recreated).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prover-coder-ai/context-doc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"sync:knowledge": "tsx src/shell/syncKnowledge.ts",
|
|
12
12
|
"release": "npm run build && npm run lint && npm version patch && npm publish --access public"
|
|
13
13
|
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"knowledge-sync": "dist/shell/syncKnowledge.js"
|
|
16
|
+
},
|
|
14
17
|
"repository": {
|
|
15
18
|
"type": "git",
|
|
16
19
|
"url": "git+https://github.com/prover-coder-ai/context-doc.git"
|