@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 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 only dialogs that belong to the current project into `.knowledge/.codex`.
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` in the project).
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>` — path to a meta folder; if it’s not already `.codex`, the tool looks for `<meta-root>/.codex`.
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
- ## `.codex` lookup order
12
- 1) `--source` (if provided)
13
- 2) env `CODEX_SOURCE_DIR`
14
- 3) `--meta-root` (either the `.codex` itself or `<meta-root>/.codex`)
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
- Only `.jsonl` files whose `git.repository_url` or `cwd` match this project are copied.\
19
- Copies are placed under `.knowledge/.codex` preserving the directory structure.
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).
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { pathToFileURL } from "node:url";
2
3
  import { Effect } from "effect";
3
4
  import { syncCodex } from "./codexSync.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prover-coder-ai/context-doc",
3
- "version": "1.0.4",
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"
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { pathToFileURL } from "node:url";
2
3
  import { Effect } from "effect";
3
4
  import { syncCodex } from "./codexSync.js";