@baselineos/protocol-core 1.0.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.
- package/.turbo/turbo-build.log +14 -0
- package/.turbo/turbo-test.log +15 -0
- package/CHANGELOG.md +49 -0
- package/LICENSE +17 -0
- package/README.md +18 -0
- package/dist/index.d.ts +1322 -0
- package/dist/index.js +2653 -0
- package/package.json +31 -0
- package/src/__tests__/functional.test.ts +269 -0
- package/src/__tests__/smoke.test.ts +23 -0
- package/src/chromadb.d.ts +9 -0
- package/src/index.ts +117 -0
- package/src/knowledge/knowledge-graph.ts +1441 -0
- package/src/knowledge/vector-store.ts +722 -0
- package/src/lang/lang.ts +278 -0
- package/src/lexicon/lexicon.ts +414 -0
- package/src/parser/grammar.ts +240 -0
- package/src/parser/parser.ts +420 -0
- package/src/types/index.ts +799 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
> @baselineos/protocol-core@1.0.0 build /home/runner/work/baseline/baseline/packages/protocol-core
|
|
3
|
+
> tsup src/index.ts --format esm --dts
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.5.1
|
|
8
|
+
[34mCLI[39m Target: es2022
|
|
9
|
+
[34mESM[39m Build start
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m85.99 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 65ms
|
|
12
|
+
[34mDTS[39m Build start
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 5391ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m35.10 KB[39m
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
> @baselineos/protocol-core@1.0.0 test /home/runner/work/baseline/baseline/packages/protocol-core
|
|
3
|
+
> vitest run
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[1m[7m[36m RUN [39m[27m[22m [36mv2.1.9 [39m[90m/home/runner/work/baseline/baseline/packages/protocol-core[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m src/__tests__/functional.test.ts [2m([22m[2m28 tests[22m[2m)[22m[90m 175[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/__tests__/smoke.test.ts [2m([22m[2m3 tests[22m[2m)[22m[90m 9[2mms[22m[39m
|
|
10
|
+
|
|
11
|
+
[2m Test Files [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
12
|
+
[2m Tests [22m [1m[32m31 passed[39m[22m[90m (31)[39m
|
|
13
|
+
[2m Start at [22m 14:02:29
|
|
14
|
+
[2m Duration [22m 5.08s[2m (transform 1.97s, setup 0ms, collect 2.33s, tests 184ms, environment 0ms, prepare 913ms)[22m
|
|
15
|
+
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog — @baselineos/protocol-core
|
|
2
|
+
|
|
3
|
+
All notable changes to this package will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.0.1] — 2026-09-17
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- JSON Schema for all protocol types — 48 types across 3 layers (Phase 11)
|
|
13
|
+
- Schema validation test suite — 27 tests with `$ref` pointer resolution (Phase 11)
|
|
14
|
+
- Functional tests for lang, parser, lexicon subsystems (Phase 7)
|
|
15
|
+
|
|
16
|
+
### Tests
|
|
17
|
+
|
|
18
|
+
- 31 protocol-core tests (up from initial smoke tests)
|
|
19
|
+
|
|
20
|
+
## [1.0.0] — 2026-06-04
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- `BaselineLangCore` — orchestrator for language, parser, and lexicon subsystems
|
|
25
|
+
- `BaselineLang` — language layer with parsing, compilation, execution, validation, and template generation
|
|
26
|
+
- `BaselineParser` — tokenizer and AST builder for Baseline Language syntax
|
|
27
|
+
- Three block types: `lang {}`, `frame {}`, `core {}`
|
|
28
|
+
- Token types: IDENTIFIER, STRING, NUMBER, OPERATOR, EOF
|
|
29
|
+
- `BaselineLexicon` — domain-specific vocabulary, templates, and pattern registry
|
|
30
|
+
- Default domain packs: core, AI/ML, business
|
|
31
|
+
- Vocabulary search with relevance ranking
|
|
32
|
+
- `GrammarValidator` — static PEG grammar validation with recursion detection
|
|
33
|
+
- 140+ grammar rules across 6 categories
|
|
34
|
+
- `KnowledgeGraphEngine` — knowledge graph with nodes, relationships, reasoning chains, and tool execution
|
|
35
|
+
- `ChromaVectorStore` — vector store interface for embeddings-based retrieval
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- Nothing — this is the initial stable release.
|
|
40
|
+
|
|
41
|
+
### Deprecated
|
|
42
|
+
|
|
43
|
+
- Nothing — see deprecation policy at `_sop/5-release/deprecation-policy.md`.
|
|
44
|
+
|
|
45
|
+
## [0.1.0] — 2026-03-01
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
- Initial alpha with BaselineLangCore, parser, and lexicon prototypes.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
Copyright 2026 Baseline Protocol Foundation
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
you may not use this file except in compliance with the License.
|
|
9
|
+
You may obtain a copy of the License at
|
|
10
|
+
|
|
11
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
See the License for the specific language governing permissions and
|
|
17
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @baselineos/protocol-core
|
|
2
|
+
|
|
3
|
+
Protocol-core primitives for Baseline.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Defines shared protocol contracts, types, parsers, and lexicon primitives used by all layer packages.
|
|
8
|
+
|
|
9
|
+
## Commands
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm --filter @baselineos/protocol-core build
|
|
13
|
+
pnpm --filter @baselineos/protocol-core test
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Integration
|
|
17
|
+
|
|
18
|
+
- Foundational dependency for all layer packages and `baselineos`
|