@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.
@@ -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
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Target: es2022
9
+ ESM Build start
10
+ ESM dist/index.js 85.99 KB
11
+ ESM ⚡️ Build success in 65ms
12
+ DTS Build start
13
+ DTS ⚡️ Build success in 5391ms
14
+ DTS dist/index.d.ts 35.10 KB
@@ -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
+  RUN  v2.1.9 /home/runner/work/baseline/baseline/packages/protocol-core
7
+
8
+ ✓ src/__tests__/functional.test.ts (28 tests) 175ms
9
+ ✓ src/__tests__/smoke.test.ts (3 tests) 9ms
10
+
11
+  Test Files  2 passed (2)
12
+  Tests  31 passed (31)
13
+  Start at  14:02:29
14
+  Duration  5.08s (transform 1.97s, setup 0ms, collect 2.33s, tests 184ms, environment 0ms, prepare 913ms)
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`