@hotdocx/endash-kernel 0.1.0-preview.0 → 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 (74) hide show
  1. package/LICENSE +9 -1
  2. package/README.md +24 -2
  3. package/bin/endash-cli.cjs +4 -0
  4. package/bin/endash-mcp.cjs +7 -0
  5. package/browser.d.ts +44 -0
  6. package/endash-browser.js +698 -0
  7. package/index.cjs +704 -14
  8. package/index.d.ts +19 -11
  9. package/index.mjs +704 -14
  10. package/node.cjs +116606 -0
  11. package/node.d.ts +8 -0
  12. package/node.mjs +53 -0
  13. package/package.json +51 -7
  14. package/types/ast.d.ts +964 -0
  15. package/types/book/book_compiler.d.ts +57 -0
  16. package/types/book/html_renderer.d.ts +27 -0
  17. package/types/book/literate_en.d.ts +40 -0
  18. package/types/book/schema.d.ts +279 -0
  19. package/types/browser.d.ts +44 -0
  20. package/types/builders.d.ts +191 -0
  21. package/types/cache/core_snapshot.d.ts +259 -0
  22. package/types/cas/bar_hochschild.d.ts +106 -0
  23. package/types/cas/cotangent_deformation.d.ts +100 -0
  24. package/types/cas/cyclic_homology.d.ts +100 -0
  25. package/types/cas/derham_hkr.d.ts +117 -0
  26. package/types/cas/ext_algebra.d.ts +112 -0
  27. package/types/cas/groebner_syzygy.d.ts +43 -0
  28. package/types/cas/hilbert_proj_ag.d.ts +97 -0
  29. package/types/cas/hnf_snf.d.ts +49 -0
  30. package/types/cas/lefschetz_weil.d.ts +114 -0
  31. package/types/cas/localization_cech.d.ts +201 -0
  32. package/types/cas/matrix.d.ts +45 -0
  33. package/types/cas/modules_complexes.d.ts +141 -0
  34. package/types/cas/perm_coset_cgt.d.ts +166 -0
  35. package/types/cas/poly.d.ts +66 -0
  36. package/types/cas/reify_proofs.d.ts +104 -0
  37. package/types/cas/resolutions_spectral_seq.d.ts +193 -0
  38. package/types/cas/rings.d.ts +70 -0
  39. package/types/cas/smith_resultant_gauss.d.ts +164 -0
  40. package/types/cas/theta_stepanov.d.ts +182 -0
  41. package/types/check.d.ts +65 -0
  42. package/types/cli/endash_cli.d.ts +19 -0
  43. package/types/context.d.ts +110 -0
  44. package/types/duality.d.ts +76 -0
  45. package/types/elab/elab_ast.d.ts +274 -0
  46. package/types/elab/elaborate.d.ts +106 -0
  47. package/types/elab/env.d.ts +170 -0
  48. package/types/elab/match.d.ts +123 -0
  49. package/types/elab/pretty.d.ts +14 -0
  50. package/types/elab/structure.d.ts +46 -0
  51. package/types/elab/tactics.d.ts +238 -0
  52. package/types/elab/typeclass.d.ts +31 -0
  53. package/types/elab/unify.d.ts +166 -0
  54. package/types/eval.d.ts +28 -0
  55. package/types/index.d.ts +98 -0
  56. package/types/kernel_ops.d.ts +196 -0
  57. package/types/mcp/endash_mcp_server.d.ts +63 -0
  58. package/types/module/comparator.d.ts +86 -0
  59. package/types/module/desugar.d.ts +94 -0
  60. package/types/module/goal_inspector.d.ts +104 -0
  61. package/types/module/loader.d.ts +105 -0
  62. package/types/module/node_fs_provider.d.ts +26 -0
  63. package/types/module/package_builder.d.ts +83 -0
  64. package/types/module/proof_graph.d.ts +80 -0
  65. package/types/module/quasiquote.d.ts +37 -0
  66. package/types/module/stdlib_fresh_builders.d.ts +10 -0
  67. package/types/module/stdlib_tactic_hooks.d.ts +20 -0
  68. package/types/parser/lexer.d.ts +12 -0
  69. package/types/parser/parser.d.ts +78 -0
  70. package/types/parser/pratt.d.ts +17 -0
  71. package/types/parser/span.d.ts +26 -0
  72. package/types/parser/surface_ast.d.ts +501 -0
  73. package/types/stdlib_types.d.ts +113 -0
  74. package/types/value.d.ts +942 -0
package/node.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export * from './index';
2
+ export { NodeFsModuleProvider, NodeEnDiskCacheStats, clearNodeEnDiskCache, clearNodeEnDiskCacheStats, getNodeEnDiskCacheDir, getNodeEnDiskCacheStats, setNodeEnDiskCacheDir } from './types/module/node_fs_provider';
3
+ export { PackageBuildOptions, PackageBuildResult, buildEnLibraryEnsnapBundle, buildEnPackage, computeKernelPinSha256 } from './types/module/package_builder';
4
+ export { CheckBookSeriesOptions, FullCheckedSeriesBundle, checkBookSeries, compileAndCheckBookSeries, queryBookSeries } from './types/book/book_compiler';
5
+ export { BuildBookSeriesOptions, buildBookSeriesSite, findExternalAssetUrlsInHtml } from './types/book/html_renderer';
6
+ export { ProofGraphAtlas, buildProofGraphAtlas } from './types/module/proof_graph';
7
+ export { CliIo, runEndashCli } from './types/cli/endash_cli';
8
+ export { ENDASH_MCP_TOOLS, EndashMcpServer, McpToolDefinition, startStdioMcpServer } from './types/mcp/endash_mcp_server';
package/node.mjs ADDED
@@ -0,0 +1,53 @@
1
+ import { createRequire } from 'node:module';
2
+ const req = createRequire(import.meta.url);
3
+ const mod = req('./node.cjs');
4
+ export const {
5
+ ALL_BUILTIN_STDLIB_MODULES,
6
+ BUILTIN_SHOWCASES,
7
+ ENDASH_MCP_TOOLS,
8
+ EndashMcpServer,
9
+ F2FieldReifySpec,
10
+ IntReifySpec,
11
+ KERNEL_TCB_PIN_SHA256,
12
+ MemoryModuleProvider,
13
+ ModuleLoader,
14
+ NodeFsModuleProvider,
15
+ RatFieldReifySpec,
16
+ VerifiedEnEnsnapBundleCache,
17
+ VerifiedStdlibBundleCache,
18
+ buildBookSeriesSite,
19
+ buildEnLibraryEnsnapBundle,
20
+ buildEnPackage,
21
+ buildProofGraphAtlas,
22
+ certifySnfInKernel,
23
+ checkBookSeries,
24
+ checkShowcaseOrSource,
25
+ clearNodeEnDiskCache,
26
+ clearNodeEnDiskCacheStats,
27
+ compareChallengeAndSolution,
28
+ compileAndCheckBookSeries,
29
+ computeAndCertifyP1TwistingCohomologyF2,
30
+ computeAndCertifyP1TwistingCohomologyQ,
31
+ computeKernelPinSha256,
32
+ createVerifier,
33
+ findExternalAssetUrlsInHtml,
34
+ formatCursorGoalReport,
35
+ getNodeEnDiskCacheDir,
36
+ getNodeEnDiskCacheStats,
37
+ getSharedBrowserLoader,
38
+ inspectGoalsAt,
39
+ inspectModuleSource,
40
+ loadBrowserEnEnsnapBundle,
41
+ loadBrowserStdlibSnapshot,
42
+ mkMatrix,
43
+ mkRat,
44
+ parseEnExpr,
45
+ parseEnModule,
46
+ queryBookSeries,
47
+ queryCursorGoals,
48
+ runEndashCli,
49
+ runTacticProbe,
50
+ setNodeEnDiskCacheDir,
51
+ startStdioMcpServer,
52
+ } = mod;
53
+ export default mod;
package/package.json CHANGED
@@ -1,27 +1,71 @@
1
1
  {
2
2
  "name": "@hotdocx/endash-kernel",
3
- "version": "0.1.0-preview.0",
3
+ "version": "0.1.1",
4
4
  "license": "ISC",
5
- "description": "Endash proof verifier for Node.js and browsers",
5
+ "description": "Standalone direct Glued-NbE Functorial Type Theory proof verifier, .en elaborator, certified BigInt CAS, CLI, MCP server, and browser engine",
6
+ "keywords": [
7
+ "proof-assistant",
8
+ "functorial-type-theory",
9
+ "directed-type-theory",
10
+ "homotopy-type-theory",
11
+ "higher-algebra",
12
+ "algebraic-geometry",
13
+ "endash",
14
+ "mcp"
15
+ ],
6
16
  "engines": {
7
17
  "node": ">=22.13"
8
18
  },
9
19
  "main": "./index.cjs",
20
+ "module": "./index.mjs",
10
21
  "types": "./index.d.ts",
22
+ "bin": {
23
+ "endash": "bin/endash-cli.cjs",
24
+ "endash-mcp": "bin/endash-mcp.cjs"
25
+ },
11
26
  "exports": {
12
27
  ".": {
13
28
  "types": "./index.d.ts",
14
29
  "import": "./index.mjs",
15
- "require": "./index.cjs"
16
- }
30
+ "require": "./index.cjs",
31
+ "default": "./index.mjs"
32
+ },
33
+ "./node": {
34
+ "types": "./node.d.ts",
35
+ "import": "./node.mjs",
36
+ "require": "./node.cjs",
37
+ "default": "./node.mjs"
38
+ },
39
+ "./browser": {
40
+ "types": "./browser.d.ts",
41
+ "default": "./endash-browser.js"
42
+ },
43
+ "./sdk-types/*": {
44
+ "types": "./types/*.d.ts",
45
+ "default": "./index.cjs"
46
+ },
47
+ "./package.json": "./package.json"
17
48
  },
18
49
  "files": [
19
50
  "index.mjs",
20
51
  "index.cjs",
21
- "index.d.ts"
52
+ "index.d.ts",
53
+ "node.mjs",
54
+ "node.cjs",
55
+ "node.d.ts",
56
+ "endash-browser.js",
57
+ "browser.d.ts",
58
+ "bin",
59
+ "types",
60
+ "README.md",
61
+ "LICENSE"
22
62
  ],
63
+ "homepage": "https://github.com/hotdocx/endash",
64
+ "repository": {
65
+ "type": "git",
66
+ "url": "git+https://github.com/hotdocx/endash.git"
67
+ },
23
68
  "publishConfig": {
24
- "access": "public",
25
- "tag": "preview"
69
+ "access": "public"
26
70
  }
27
71
  }