@hivelore/core 0.30.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.
@@ -0,0 +1,18 @@
1
+ # Vendored tree-sitter grammars
2
+
3
+ These prebuilt WebAssembly grammars power the code-map AST parser (`src/ast-parser.ts`).
4
+ They are loaded by `web-tree-sitter` (pinned to an ABI-compatible version) and are vendored
5
+ here — rather than pulled as a transitive dependency — to keep the install lean (only the 9
6
+ languages Hivelore indexes, ~14 MB, vs. ~50 MB for the full grammar set) and to lock the grammar
7
+ ABI to the `web-tree-sitter` version this package depends on.
8
+
9
+ Languages: typescript, tsx, javascript, python, go, rust, java, ruby, c_sharp, php
10
+ (`.ts/.mts/.cts` and `.tsx` share the typescript/tsx grammars).
11
+
12
+ Source: prebuilt `.wasm` binaries from the `tree-sitter-wasms` project
13
+ (https://github.com/Gregoor/tree-sitter-wasms), which repackages the upstream tree-sitter
14
+ grammars. Each grammar retains the license of its upstream project (predominantly MIT). No
15
+ grammar source was modified.
16
+
17
+ If `web-tree-sitter` cannot initialize (or a grammar fails to load) the code-map parser falls
18
+ back to the legacy regex extractors, so indexing never hard-fails on an unsupported runtime.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@hivelore/core",
3
+ "version": "0.30.0",
4
+ "description": "Hivelore core - memory, anchors, lifecycle, and enforcement primitives for agent harnesses",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Doucs91/hivelore.git",
9
+ "directory": "packages/core"
10
+ },
11
+ "bugs": "https://github.com/Doucs91/hivelore/issues",
12
+ "homepage": "https://github.com/Doucs91/hivelore#readme",
13
+ "keywords": [
14
+ "ai",
15
+ "enforcement",
16
+ "policy",
17
+ "context",
18
+ "breadcrumbs",
19
+ "memory",
20
+ "mcp",
21
+ "haive",
22
+ "agent",
23
+ "team",
24
+ "harness",
25
+ "harness-engineering"
26
+ ],
27
+ "type": "module",
28
+ "main": "./dist/index.js",
29
+ "types": "./dist/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/index.js"
34
+ }
35
+ },
36
+ "files": [
37
+ "dist",
38
+ "grammars",
39
+ "LICENSE"
40
+ ],
41
+ "dependencies": {
42
+ "gray-matter": "^4.0.3",
43
+ "web-tree-sitter": "0.22.6",
44
+ "zod": "^3.23.8"
45
+ },
46
+ "scripts": {
47
+ "build": "tsup",
48
+ "test": "vitest run",
49
+ "test:watch": "vitest",
50
+ "typecheck": "tsc --noEmit",
51
+ "clean": "rm -rf dist .tsbuildinfo"
52
+ }
53
+ }