wiki-graph 0.3.0 → 0.4.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.
Files changed (69) hide show
  1. package/README.md +10 -271
  2. package/dist/cli.d.ts +1 -0
  3. package/dist/cli.js +2983 -4
  4. package/dist/cli.js.map +1 -0
  5. package/{data → dist/data}/editor/text_compressor.jinja +17 -13
  6. package/{data → dist/data}/help/commands/archive/next.jinja +7 -2
  7. package/{data → dist/data}/help/commands/gc.jinja +2 -1
  8. package/{data → dist/data}/help/commands/legacy/migrate.jinja +6 -1
  9. package/{data → dist/data}/help/commands/legacy.jinja +3 -2
  10. package/dist/data/help/commands/library-predicate.jinja +296 -0
  11. package/dist/data/help/commands/library.jinja +235 -0
  12. package/{data → dist/data}/help/commands/maintenance/chapter/add.jinja +3 -3
  13. package/{data → dist/data}/help/commands/maintenance/chapter/list.jinja +4 -4
  14. package/{data → dist/data}/help/commands/maintenance/chapter/move.jinja +4 -4
  15. package/{data → dist/data}/help/commands/maintenance/chapter/remove.jinja +1 -1
  16. package/{data → dist/data}/help/commands/maintenance/chapter/reset.jinja +1 -1
  17. package/{data → dist/data}/help/commands/maintenance/chapter/set-source.jinja +2 -2
  18. package/{data → dist/data}/help/commands/maintenance/chapter/set-summary.jinja +1 -1
  19. package/{data → dist/data}/help/commands/maintenance/chapter/set-title.jinja +3 -3
  20. package/{data → dist/data}/help/commands/maintenance/chapter/tree.jinja +6 -6
  21. package/{data → dist/data}/help/commands/maintenance/chapter.jinja +10 -10
  22. package/{data → dist/data}/help/commands/maintenance/meta.jinja +7 -7
  23. package/dist/data/help/commands/maintenance/upgrade.jinja +35 -0
  24. package/dist/data/help/commands/maintenance.jinja +23 -0
  25. package/{data → dist/data}/help/commands/predicate.jinja +204 -28
  26. package/{data → dist/data}/help/commands/root.jinja +10 -3
  27. package/{data → dist/data}/help/commands/uri.jinja +165 -6
  28. package/{data → dist/data}/help/topics/config.jinja +10 -3
  29. package/dist/data/help/topics/library.jinja +87 -0
  30. package/{data → dist/data}/help/topics/readiness.jinja +32 -2
  31. package/{data → dist/data}/help/topics/recipe.jinja +42 -17
  32. package/{data → dist/data}/help/topics/runtime.jinja +20 -3
  33. package/{data → dist/data}/help/topics/uri.jinja +51 -25
  34. package/dist/gc-worker.d.ts +1 -0
  35. package/dist/gc-worker.js +548 -0
  36. package/dist/gc-worker.js.map +1 -0
  37. package/dist/index.cjs +12463 -19690
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +36 -842
  40. package/dist/index.d.ts +36 -842
  41. package/dist/index.js +13871 -9
  42. package/dist/index.js.map +1 -0
  43. package/dist/queue-worker.d.ts +1 -0
  44. package/dist/queue-worker.js +2110 -0
  45. package/dist/queue-worker.js.map +1 -0
  46. package/package.json +18 -45
  47. package/dist/cli.cjs +0 -41734
  48. package/dist/cli.cjs.map +0 -1
  49. package/docs/images/flowchart.excalidraw +0 -3293
  50. package/docs/images/flowchart.svg +0 -4
  51. package/docs/images/terminal-cn.png +0 -0
  52. package/docs/images/terminal-en.png +0 -0
  53. package/docs/wikispine-runtime.md +0 -143
  54. /package/{data → dist/data}/editor/clue_reviewer.jinja +0 -0
  55. /package/{data → dist/data}/editor/clue_reviewer_generator.jinja +0 -0
  56. /package/{data → dist/data}/editor/revision_feedback.jinja +0 -0
  57. /package/{data → dist/data}/guaranteed/response_intent_classifier.jinja +0 -0
  58. /package/{data → dist/data}/help/commands/maintenance/cover.jinja +0 -0
  59. /package/{data → dist/data}/help/commands/transform.jinja +0 -0
  60. /package/{data → dist/data}/help/topics/format.jinja +0 -0
  61. /package/{data → dist/data}/output/epub/cover.xhtml.jinja +0 -0
  62. /package/{data → dist/data}/output/epub/nav.xhtml.jinja +0 -0
  63. /package/{data → dist/data}/output/epub/package.opf.xml.jinja +0 -0
  64. /package/{data → dist/data}/output/epub/section.xhtml.jinja +0 -0
  65. /package/{data → dist/data}/topologization/book_coherence_extraction.jinja +0 -0
  66. /package/{data → dist/data}/topologization/chunk_extraction.jinja +0 -0
  67. /package/{data → dist/data}/topologization/evidence_choice.jinja +0 -0
  68. /package/{data → dist/data}/topologization/translate_chunks.jinja +0 -0
  69. /package/{data → dist/data}/topologization/user_focused_extraction.jinja +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wiki-graph",
3
- "version": "0.3.0",
4
- "description": "CLI-first tool for building and querying .wikg knowledge-base archives from long-form text and ebooks.",
3
+ "version": "0.4.0",
4
+ "description": "CLI for building and querying .wikg knowledge-base archives from long-form text and ebooks.",
5
5
  "keywords": [
6
6
  "wiki-graph",
7
7
  "knowledge-graph",
@@ -11,7 +11,6 @@
11
11
  ],
12
12
  "license": "Apache-2.0",
13
13
  "type": "module",
14
- "packageManager": "pnpm@10.33.2",
15
14
  "repository": {
16
15
  "type": "git",
17
16
  "url": "git+https://github.com/oomol-lab/wiki-graph.git"
@@ -30,10 +29,9 @@
30
29
  "access": "public"
31
30
  },
32
31
  "files": [
33
- "data",
34
32
  "dist",
35
- "docs",
36
- "LICENSE"
33
+ "LICENSE",
34
+ "README.md"
37
35
  ],
38
36
  "bin": {
39
37
  "wg": "dist/cli.js",
@@ -48,28 +46,6 @@
48
46
  },
49
47
  "./package.json": "./package.json"
50
48
  },
51
- "scripts": {
52
- "build": "rimraf dist && tsup --config tsup.config.ts && node ./scripts/write-esm-wrappers.mjs",
53
- "coverage:report": "node ./scripts/coverage-report.mjs",
54
- "cli:install-local": "node ./scripts/install-local-cli.mjs",
55
- "cli:uninstall-local": "npm uninstall -g wiki-graph",
56
- "dev": "tsx src/cli.ts",
57
- "fixtures:generate": "node ./scripts/generate-test-fixtures.mjs",
58
- "format": "prettier . --write",
59
- "format:check": "prettier . --check",
60
- "lint": "eslint .",
61
- "lint:fix": "eslint . --fix && prettier . --write",
62
- "prepack": "pnpm build",
63
- "publish:dry-run": "npm publish --dry-run --access public",
64
- "release:check": "pnpm verify && pnpm test:run && pnpm build && pnpm smoke:pack-install && pnpm publish:dry-run",
65
- "smoke:pack-install": "node ./scripts/smoke-pack-install.mjs",
66
- "test": "vitest --passWithNoTests",
67
- "test:run": "vitest run --passWithNoTests",
68
- "test:coverage": "vitest run --coverage --passWithNoTests",
69
- "test:watch": "vitest --passWithNoTests",
70
- "typecheck": "tsc -p tsconfig.json --noEmit",
71
- "verify": "pnpm lint && pnpm typecheck && pnpm format:check"
72
- },
73
49
  "dependencies": {
74
50
  "@ai-sdk/anthropic": "^3.0.68",
75
51
  "@ai-sdk/google": "^3.0.61",
@@ -89,21 +65,18 @@
89
65
  "zod": "^4.3.6"
90
66
  },
91
67
  "devDependencies": {
92
- "@eslint/js": "^9.39.1",
93
- "@types/node": "^24.6.1",
94
- "@types/nunjucks": "^3.2.6",
95
- "@types/yauzl": "^2.10.3",
96
- "@types/yazl": "^3.3.1",
97
- "@vitest/coverage-v8": "^4.1.4",
98
- "eslint": "^9.39.1",
99
- "eslint-config-prettier": "^10.1.8",
100
- "globals": "^16.4.0",
101
- "prettier": "^3.6.2",
102
- "rimraf": "^6.0.1",
103
- "tsup": "^8.5.0",
104
- "tsx": "^4.20.6",
105
- "typescript": "^5.9.3",
106
- "typescript-eslint": "^8.46.1",
107
- "vitest": "^4.1.4"
68
+ "wiki-graph-core": "0.4.0"
69
+ },
70
+ "peerDependencies": {
71
+ "wiki-graph-core": "^0.4.0"
72
+ },
73
+ "peerDependenciesMeta": {
74
+ "wiki-graph-core": {
75
+ "optional": true
76
+ }
77
+ },
78
+ "scripts": {
79
+ "build": "rimraf dist && tsup --config tsup.config.ts && node ../../scripts/copy-package-data.mjs ../core/data dist/data",
80
+ "dev": "tsx src/bin/dev-cli.ts"
108
81
  }
109
- }
82
+ }