@weftlet/toolkit 0.0.0-stage → 0.1.1

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 (157) hide show
  1. package/LICENSE +176 -0
  2. package/NOTICE +6 -0
  3. package/README.md +162 -2
  4. package/THIRD_PARTY_NOTICES.md +610 -0
  5. package/dist/application/agent-context.d.ts +23 -0
  6. package/dist/application/agent-context.js +94 -0
  7. package/dist/application/application.d.ts +23 -0
  8. package/dist/application/application.js +91 -0
  9. package/dist/application/hydrator.d.ts +49 -0
  10. package/dist/application/hydrator.js +275 -0
  11. package/dist/application/overlay.d.ts +6 -0
  12. package/dist/application/overlay.js +110 -0
  13. package/dist/application/saved-evidence.d.ts +38 -0
  14. package/dist/application/saved-evidence.js +59 -0
  15. package/dist/application/snapshot-checks.d.ts +16 -0
  16. package/dist/application/snapshot-checks.js +51 -0
  17. package/dist/cli.d.ts +3 -0
  18. package/dist/cli.js +4 -0
  19. package/dist/configuration/cache.d.ts +2 -0
  20. package/dist/configuration/cache.js +10 -0
  21. package/dist/configuration/config.d.ts +79 -0
  22. package/dist/configuration/config.js +165 -0
  23. package/dist/core.d.ts +1 -0
  24. package/dist/core.js +2 -0
  25. package/dist/extraction/codex-auth.d.ts +12 -0
  26. package/dist/extraction/codex-auth.js +74 -0
  27. package/dist/extraction/document.d.ts +5 -0
  28. package/dist/extraction/document.js +54 -0
  29. package/dist/extraction/ontology.d.ts +32 -0
  30. package/dist/extraction/ontology.js +164 -0
  31. package/dist/extraction/providers.d.ts +8 -0
  32. package/dist/extraction/providers.js +58 -0
  33. package/dist/extraction/runtime-evidence.d.ts +2 -0
  34. package/dist/extraction/runtime-evidence.js +84 -0
  35. package/dist/extraction/semantic-citations.d.ts +7 -0
  36. package/dist/extraction/semantic-citations.js +27 -0
  37. package/dist/extraction/semantic-process.d.ts +11 -0
  38. package/dist/extraction/semantic-process.js +68 -0
  39. package/dist/extraction/semantic.d.ts +73 -0
  40. package/dist/extraction/semantic.js +414 -0
  41. package/dist/extraction/static.d.ts +52 -0
  42. package/dist/extraction/static.js +322 -0
  43. package/dist/extraction/telemetry.d.ts +19 -0
  44. package/dist/extraction/telemetry.js +259 -0
  45. package/dist/governance/governance.d.ts +60 -0
  46. package/dist/governance/governance.js +209 -0
  47. package/dist/graph/authority.d.ts +2 -0
  48. package/dist/graph/authority.js +13 -0
  49. package/dist/graph/diagnostics.d.ts +5 -0
  50. package/dist/graph/diagnostics.js +61 -0
  51. package/dist/graph/query.d.ts +16 -0
  52. package/dist/graph/query.js +373 -0
  53. package/dist/graph/rdf.d.ts +26 -0
  54. package/dist/graph/rdf.js +144 -0
  55. package/dist/index.d.ts +11 -0
  56. package/dist/index.js +12 -0
  57. package/dist/infrastructure/module-resolution.d.ts +2 -0
  58. package/dist/infrastructure/module-resolution.js +10 -0
  59. package/dist/infrastructure/process.d.ts +5 -0
  60. package/dist/infrastructure/process.js +27 -0
  61. package/dist/infrastructure/util.d.ts +1 -0
  62. package/dist/infrastructure/util.js +2 -0
  63. package/dist/interfaces/cli.d.ts +4 -0
  64. package/dist/interfaces/cli.js +197 -0
  65. package/dist/interfaces/doctor.d.ts +25 -0
  66. package/dist/interfaces/doctor.js +49 -0
  67. package/dist/interfaces/init.d.ts +24 -0
  68. package/dist/interfaces/init.js +154 -0
  69. package/dist/interfaces/mcp-facade.d.ts +3 -0
  70. package/dist/interfaces/mcp-facade.js +4 -0
  71. package/dist/interfaces/mcp.d.ts +2 -0
  72. package/dist/interfaces/mcp.js +81 -0
  73. package/dist/interfaces/request.d.ts +2 -0
  74. package/dist/interfaces/request.js +59 -0
  75. package/dist/mcp.d.ts +3 -0
  76. package/dist/mcp.js +4 -0
  77. package/dist/repository/committed-tree.d.ts +2 -0
  78. package/dist/repository/committed-tree.js +35 -0
  79. package/dist/repository/git.d.ts +26 -0
  80. package/dist/repository/git.js +163 -0
  81. package/dist/repository/glob.d.ts +2 -0
  82. package/dist/repository/glob.js +46 -0
  83. package/dist/repository/working-content.d.ts +3 -0
  84. package/dist/repository/working-content.js +34 -0
  85. package/dist/storage/atomic-rename.d.ts +2 -0
  86. package/dist/storage/atomic-rename.js +22 -0
  87. package/dist/storage/storage.d.ts +15 -0
  88. package/dist/storage/storage.js +115 -0
  89. package/dist/telemetry.d.ts +1 -0
  90. package/dist/telemetry.js +2 -0
  91. package/dist/visualization/viewer-interaction.d.ts +12 -0
  92. package/dist/visualization/viewer-interaction.js +123 -0
  93. package/dist/visualization/visualization.d.ts +26 -0
  94. package/dist/visualization/visualization.js +491 -0
  95. package/docs/ADR-001-standalone-baseline.md +16 -0
  96. package/docs/ADR-002-saved-evidence.md +21 -0
  97. package/docs/ADR-003-draft-overlays.md +23 -0
  98. package/docs/ADR-004-rdf-query-path.md +37 -0
  99. package/docs/ADR-005-governance-and-optional-oml.md +37 -0
  100. package/docs/ADR-006-provider-boundaries.md +15 -0
  101. package/docs/ADR-007-toolkit-modules.md +53 -0
  102. package/docs/ADR-008-weftlet-packages.md +32 -0
  103. package/docs/CLOUD-ENVIRONMENT.md +56 -0
  104. package/docs/ENVIRONMENT-VALIDATION.md +83 -0
  105. package/docs/MIGRATING-TO-WEFTLET.md +54 -0
  106. package/docs/PROVIDERS.md +121 -0
  107. package/docs/RELEASING.md +146 -0
  108. package/docs/ROADMAP.md +55 -0
  109. package/docs/SOURCE-INVENTORY.md +48 -0
  110. package/docs/VALIDATION.md +530 -0
  111. package/docs/VIEWER.md +36 -0
  112. package/docs/architecture-baseline.json +57 -0
  113. package/docs/architecture-policy.md +41 -0
  114. package/docs/extraction-manifest.json +721 -0
  115. package/docs/licenses/REVIEW.md +16 -0
  116. package/docs/licenses/lru-cache-11.5.3-BlueOak.md +55 -0
  117. package/docs/licenses/negotiate-1.0.1-BSD.txt +22 -0
  118. package/docs/licenses/spark-md5-3.0.2-MIT.txt +7 -0
  119. package/examples/generic-typescript/context-graph.config.json +47 -0
  120. package/examples/generic-typescript/context-graph.oml.config.json +49 -0
  121. package/examples/generic-typescript/docs/search-capability.md +14 -0
  122. package/examples/generic-typescript/ontology/build.gradle +38 -0
  123. package/examples/generic-typescript/ontology/catalog.xml +5 -0
  124. package/examples/generic-typescript/ontology/settings.gradle +1 -0
  125. package/examples/generic-typescript/ontology/src/oml/context-graph.dev/core.oml +99 -0
  126. package/examples/generic-typescript/package.json +6 -0
  127. package/examples/generic-typescript/src/search.ts +11 -0
  128. package/examples/generic-typescript/test/search.test.ts +8 -0
  129. package/examples/generic-typescript/tsconfig.json +10 -0
  130. package/examples/pipeline/context-graph.config.json +49 -0
  131. package/examples/pipeline/docs/admission.md +6 -0
  132. package/examples/pipeline/docs/analysis.md +6 -0
  133. package/examples/pipeline/docs/discovery.md +6 -0
  134. package/examples/pipeline/docs/execution.md +6 -0
  135. package/examples/pipeline/docs/outcomes.md +6 -0
  136. package/examples/pipeline/docs/planning.md +6 -0
  137. package/examples/pipeline/package.json +6 -0
  138. package/examples/pipeline/src/admission.ts +9 -0
  139. package/examples/pipeline/src/analysis.ts +9 -0
  140. package/examples/pipeline/src/contracts/admission.ts +1 -0
  141. package/examples/pipeline/src/contracts/analysis.ts +1 -0
  142. package/examples/pipeline/src/contracts/discovery.ts +1 -0
  143. package/examples/pipeline/src/contracts/execution.ts +1 -0
  144. package/examples/pipeline/src/contracts/outcomes.ts +1 -0
  145. package/examples/pipeline/src/contracts/planning.ts +1 -0
  146. package/examples/pipeline/src/discovery.ts +9 -0
  147. package/examples/pipeline/src/execution.ts +9 -0
  148. package/examples/pipeline/src/outcomes.ts +9 -0
  149. package/examples/pipeline/src/planning.ts +9 -0
  150. package/examples/pipeline/src/queue.ts +12 -0
  151. package/examples/pipeline/test/pipeline.test.ts +17 -0
  152. package/examples/pipeline/tsconfig.json +12 -0
  153. package/package.json +116 -3
  154. package/runtime-check.d.mts +2 -0
  155. package/runtime-check.mjs +12 -0
  156. package/templates/context-graph-development/SKILL.md +37 -0
  157. package/third-party-tools.json +34 -0
package/LICENSE ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
package/NOTICE ADDED
@@ -0,0 +1,6 @@
1
+ LaunchEcho Context Graph
2
+ Copyright 2026 LaunchEcho contributors
3
+
4
+ This product includes software developed by third parties. The generated package inventories are in
5
+ THIRD_PARTY_NOTICES.md. Referenced build/runtime tools that are not redistributed are listed there
6
+ separately from bundled Node production dependencies.
package/README.md CHANGED
@@ -1,3 +1,163 @@
1
- # Temporary Holding Version
1
+ # Weftlet — Context Graph Toolkit
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Weftlet is an open-source context-graph toolkit that helps AI development agents understand
4
+ how a local change affects the broader product. It connects approved product intent, shared
5
+ contracts, implementing code, downstream consumers, tests and observed runtime evidence.
6
+
7
+ Agents can query cited evidence and explore dependencies across module and asynchronous
8
+ boundaries. See the [roadmap](docs/ROADMAP.md) and [validation](docs/VALIDATION.md) for
9
+ supported capabilities and limitations.
10
+
11
+ ## Set up a project
12
+
13
+ Weftlet uses `@weftlet/toolkit`; its neutral `@weftlet/core` dependency is installed
14
+ automatically. Both packages are available on npm at `0.1.0`; source now prepares `0.1.1`.
15
+ See [release status](docs/RELEASING.md). Existing Tently users should follow
16
+ the [migration guide](docs/MIGRATING-TO-WEFTLET.md).
17
+
18
+ From your TypeScript project's directory (Node 24+):
19
+
20
+ ```sh
21
+ npx @weftlet/toolkit init
22
+ npx @weftlet/toolkit config validate
23
+ npx @weftlet/toolkit doctor
24
+ ```
25
+
26
+ `init` asks for the repository ID, code roots, selected document paths and model, then writes
27
+ `context-graph.config.json` and adds `.context-graph/` to `.gitignore`. It fills in the internal
28
+ version fields, requires no Git commit or Codex login to run, and refuses to overwrite existing
29
+ configuration. Setup makes no model requests. For automation:
30
+
31
+ ```sh
32
+ npx @weftlet/toolkit init --yes --repository-id your-org/your-project --code-root src --semantic-source docs/product --evidence-root tests
33
+ ```
34
+
35
+ Source flags may be repeated. Without `--semantic-source`, non-interactive setup selects no
36
+ documents. Owner-approved sources always start empty; explicitly review and set
37
+ `approvedIntentSources` in the JSON file. Select contracts using `contractPatterns`.
38
+ Use `--config .config/context-graph.json` for another configuration location,
39
+ `--directory /path/to/project` to initialize another project, or `--no-gitignore` to leave
40
+ ignore rules alone. Configuration remains JSON; `config show` displays the validated settings.
41
+
42
+ Review the selected sources, configure Codex authentication when using semantic documents,
43
+ and commit the inputs you want indexed before hydrating:
44
+
45
+ In Weftlet, `semantic.auth.mode` defaults to `chatgpt`, using your existing Codex
46
+ ChatGPT login. API billing requires explicitly selecting `api-key`; credentials stay in an
47
+ environment variable. See [authentication configuration](docs/PROVIDERS.md#codex-authentication)
48
+ for both modes and their tentative validation status. The earlier `@launch-echo/tently@0.1.0` release predates this option.
49
+
50
+ ```sh
51
+ npx @weftlet/toolkit hydrate --ref HEAD
52
+ npx @weftlet/toolkit impact scan --changed-file src/search.ts --json
53
+ ```
54
+
55
+ Hydration with selected documents may incur model charges. Saved queries do not call a model.
56
+ Docker is optional for openCAESAR; the default RDF backend needs no Docker.
57
+ For a project-local dependency, install `npm install --save-dev @weftlet/toolkit` and use
58
+ `npx weftlet` or the compatible `npx context-graph` alias. MCP clients can launch
59
+ `npx --yes --package @weftlet/toolkit weftlet-mcp` with `CONTEXT_GRAPH_CONFIG` set to
60
+ the project's absolute configuration path. Pin a reviewed version for reproducible agent setup.
61
+
62
+ Linux/WSL is the validated full-suite path. Native Windows has a recorded live Codex pass;
63
+ the archive-byte, snapshot replacement and MCP startup regression suite also passes hosted
64
+ Windows CI. Full native Windows release preparation remains separately unvalidated.
65
+ See the [validation record](docs/VALIDATION.md).
66
+
67
+ ## Development
68
+
69
+ The development source is organized by responsibility; see
70
+ [toolkit modules and boundaries](docs/ADR-007-toolkit-modules.md). The two npm packages and
71
+ their public library entry points retain the same API under the new package names.
72
+ The module refactor was not part of the earlier Tently 0.1.0 release.
73
+
74
+ The toolkit requires Node.js 24 or newer; Node 24 is the validated runtime.
75
+ Use pnpm 10.18.2 for development. The neutral core package has no toolkit runtime dependencies
76
+ and retains its separate Node.js 20.11+ declaration.
77
+
78
+ ```sh
79
+ git clone https://github.com/jchewitt/weftlet.git
80
+ cd weftlet
81
+ nvm install
82
+ nvm use
83
+ pnpm install --frozen-lockfile
84
+ pnpm build
85
+ pnpm test
86
+ pnpm context-graph:publication-check
87
+ ```
88
+
89
+ The `.nvmrc` selects Node 24. If you do not use nvm, install Node 24 through your usual
90
+ version manager. The project rejects unsupported Node versions during installation, and
91
+ CLI/MCP startup reports a version error before loading runtime dependencies.
92
+
93
+ The publication check packs and installs into a disposable consumer, indexes actual TypeScript
94
+ and exercises the installed toolkit. It does not publish. Core and toolkit retain separate
95
+ package boundaries; no product adapter is required.
96
+
97
+ ## Independent repository
98
+
99
+ Copy `examples/generic-typescript` into a separate repository, or adapt its
100
+ `context-graph.config.json` beside your own sources. Paths resolve relative to that configuration.
101
+ Configure semantic source selection, TypeScript roots/indexer arguments, contract aliases,
102
+ evidence roots, runtime evidence, storage and optional adapter explicitly.
103
+
104
+ Install the locally packed core and toolkit tarballs together. The installed commands are
105
+ `weftlet`, `weftlet-mcp`, and the compatible `context-graph` / `context-graph-mcp` aliases. For example, after preparing a release:
106
+
107
+ ```sh
108
+ npm install --save-dev /path/to/weftlet/.release/weftlet-core-0.1.1.tgz /path/to/weftlet/.release/weftlet-toolkit-0.1.1.tgz
109
+ npx weftlet init
110
+ ```
111
+
112
+ Pass `--config /absolute/path/context-graph.config.json`
113
+ to the CLI or set `CONTEXT_GRAPH_CONFIG` for MCP. No launcher rebuild is required for installed
114
+ packages. `node mcp-launcher.mjs` is for development in this repository.
115
+
116
+ ```sh
117
+ context-graph hydrate --config context-graph.config.json --ref HEAD
118
+ context-graph impact scan --config context-graph.config.json --capability search --json
119
+ context-graph visualize --config context-graph.config.json --capability search --output graph.html
120
+ ```
121
+
122
+ Semantic hydration requires a working configured provider. Direct RDF is the default;
123
+ Docker/openCAESAR is an optional explicit backend. Run `context-graph doctor` for setup diagnostics.
124
+ Committed indexing and ontology input use disposable archives, preserving the active checkout.
125
+ Saved-snapshot queries do not invoke either dependency or refresh automatically. Responses report
126
+ commit, configuration, source scope and excluded working changes. Use `hydrate` explicitly to
127
+ refresh evidence; `--snapshot` selects historical evidence. Working-change overlays are a separate
128
+ operation. `context-graph overlay --base-snapshot <id> --agent <name>` captures a bounded draft
129
+ implementation overlay; query its returned ID with `--snapshot`. Changed prose is invalidated
130
+ pending re-extraction. Queries compare captured file digests with current working bytes and
131
+ report subsequent edits separately from captured and excluded changes. Older overlays without
132
+ capture metadata have unknown freshness. Historical or draft evidence cannot validate a current diff.
133
+
134
+ ## Evidence limits
135
+
136
+ Approved owner documents govern intent. Code describes implementation; tests describe what
137
+ was checked; traces describe observed behavior for their deployment. Model assertions require
138
+ valid citations and remain inferred/unreviewed even when their source is explicitly approved.
139
+ Source approval is recorded separately from assertion review. Missing coverage is not a pass.
140
+
141
+ The current implementation supports TypeScript SCIP indexing, immutable JSON snapshot envelopes,
142
+ a lossless RDF/SPARQL query path, SHACL integrity checks, paginated `impact.scan` traversal and
143
+ HTML/DOT/SVG output. Active OWL reasoning and a complete interactive explorer are not claimed.
144
+ See `examples/pipeline` for a six-stage asynchronous flow and `docs/ADR-004-rdf-query-path.md`
145
+ for query bounds and authority configuration.
146
+
147
+ Never submit credentials, account data or private runtime payloads as semantic sources.
148
+ Live provider tests are separate from deterministic CI. The maintainer authorized the GitHub
149
+ export and migration from the published `@launch-echo` names to `@weftlet`. Registry publication requires
150
+ an authorized npm identity. Repository visibility changes require separate authorization.
151
+
152
+ See [npm release instructions](docs/RELEASING.md) for prepared archives, integrity checks and
153
+ the core-before-toolkit publication sequence.
154
+
155
+ See [provider contract](docs/PROVIDERS.md) for bounded extraction and adapters, and
156
+ [architecture policy](docs/architecture-policy.md) for deterministic governance.
157
+
158
+ See the [bounded viewer guide](docs/VIEWER.md) and [cloud setup](docs/CLOUD-ENVIRONMENT.md).
159
+
160
+ ## License and provenance
161
+
162
+ Apache-2.0. See [LICENSE](LICENSE), [NOTICE](NOTICE), and the
163
+ [source inventory](docs/SOURCE-INVENTORY.md) for attribution and extraction history.