@baselineos/cli 0.1.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,61 @@
1
+ [
2
+ {
3
+ "id": "audit-1775397759564-86",
4
+ "type": "policy_created",
5
+ "actor": "system",
6
+ "policyId": "policy-1775397759564",
7
+ "details": {
8
+ "policyId": "policy-1775397759564",
9
+ "name": "baseline-default"
10
+ },
11
+ "timestamp": "2026-04-05T14:02:39.564Z"
12
+ },
13
+ {
14
+ "id": "audit-1775397759564-700",
15
+ "type": "policy_approved",
16
+ "actor": "baseline-cli",
17
+ "policyId": "policy-1775397759564",
18
+ "details": {
19
+ "policyId": "policy-1775397759564"
20
+ },
21
+ "timestamp": "2026-04-05T14:02:39.564Z"
22
+ },
23
+ {
24
+ "id": "audit-1775397759564-83",
25
+ "type": "policy_evaluated",
26
+ "actor": "system",
27
+ "policyId": "policy-1775397759564",
28
+ "details": {
29
+ "policyId": "policy-1775397759564",
30
+ "passed": true,
31
+ "enforcementAction": "allow",
32
+ "violationCount": 0
33
+ },
34
+ "timestamp": "2026-04-05T14:02:39.564Z"
35
+ },
36
+ {
37
+ "id": "audit-1775397759565-444",
38
+ "type": "policy_enforced",
39
+ "actor": "system",
40
+ "policyId": "policy-1775397759564",
41
+ "resourceId": "/home/runner/work/baseline/baseline/packages/cli",
42
+ "details": {
43
+ "policyId": "policy-1775397759564",
44
+ "resourceId": "/home/runner/work/baseline/baseline/packages/cli",
45
+ "enforcementAction": "allow"
46
+ },
47
+ "timestamp": "2026-04-05T14:02:39.565Z"
48
+ },
49
+ {
50
+ "id": "audit-1775397759566-838",
51
+ "type": "compliance_checked",
52
+ "actor": "system",
53
+ "details": {
54
+ "complianceId": "compliance-1775397759566",
55
+ "standard": "ISO27001",
56
+ "compliant": true,
57
+ "violationCount": 0
58
+ },
59
+ "timestamp": "2026-04-05T14:02:39.566Z"
60
+ }
61
+ ]
@@ -0,0 +1,23 @@
1
+
2
+ > @baselineos/cli@0.1.0 build /home/runner/work/baseline/baseline/packages/cli
3
+ > tsup src/index.ts src/cli.ts --format esm,cjs --dts
4
+
5
+ CLI Building entry: src/cli.ts, src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.5.1
8
+ CLI Target: es2022
9
+ ESM Build start
10
+ CJS Build start
11
+ CJS dist/cli.cjs 89.59 KB
12
+ CJS dist/index.cjs 122.91 KB
13
+ CJS ⚡️ Build success in 95ms
14
+ ESM dist/cli.js 19.06 KB
15
+ ESM dist/index.js 52.51 KB
16
+ ESM dist/chunk-CCIHFLKI.js 67.88 KB
17
+ ESM ⚡️ Build success in 96ms
18
+ DTS Build start
19
+ DTS ⚡️ Build success in 5548ms
20
+ DTS dist/cli.d.ts 185.00 B
21
+ DTS dist/index.d.ts 19.33 KB
22
+ DTS dist/cli.d.cts 185.00 B
23
+ DTS dist/index.d.cts 19.33 KB
@@ -0,0 +1,80 @@
1
+
2
+ > @baselineos/cli@0.1.0 test /home/runner/work/baseline/baseline/packages/cli
3
+ > vitest run
4
+
5
+
6
+  RUN  v2.1.9 /home/runner/work/baseline/baseline/packages/cli
7
+
8
+ ✓ src/__tests__/commands.test.ts (7 tests) 72ms
9
+ ✓ src/__tests__/verify.test.ts (11 tests) 33ms
10
+ ✓ src/__tests__/schema.test.ts (27 tests) 49ms
11
+ ✓ src/__tests__/badge.test.ts (11 tests) 22ms
12
+ stdout | src/__tests__/cli.test.ts
13
+ 
14
+ ██████╗ █████╗ ███████╗███████╗██╗ ██╗███╗ ██╗███████╗
15
+ ██╔══██╗██╔══██╗██╔════╝██╔════╝██║ ██║████╗ ██║██╔════╝
16
+ ██████╔╝███████║███████╗█████╗ ██║ ██║██╔██╗ ██║█████╗
17
+ ██╔══██╗██╔══██║╚════██║██╔══╝ ██║ ██║██║╚██╗██║██╔══╝
18
+ ██████╔╝██║ ██║███████║███████╗███████╗██║██║ ╚████║███████╗
19
+ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝╚══════╝
20
+
21
+ Baseline Protocol • Guided Onboarding
22
+
23
+
24
+ Baseline Protocol CLI v0.1.0
25
+
26
+ Usage: baseline <command> [options]
27
+
28
+ Commands:
29
+ help Show this help message
30
+ status Show status of all protocol layers
31
+ onboard Run the guided onboarding flow
32
+ experience Run immersive onboarding experiences
33
+ init Initialize Baseline and write config
34
+ run Run the full Baseline workflow
35
+ index Index docs or context for retrieval
36
+ verify Verify policy compliance and evidence integrity
37
+ serve Start the Baseline MCP server
38
+ agents Show agent registry status
39
+ config Configure Baseline preferences
40
+ doctor Run diagnostics for Baseline readiness
41
+ version Show version information
42
+
43
+ Layer Commands:
44
+ --baseline Run full Baseline Protocol workflow
45
+ --baseline-lang Run Language layer only
46
+ --baseline-frame Run Frame layer only
47
+ --baseline-studio Run Studio layer only
48
+ --baseline-govern Run Governance layer only
49
+ --init Initialize a new Baseline project
50
+ --run Run the full workflow
51
+ --status Show system status
52
+ --help Show help information
53
+
54
+
55
+ ✓ src/__tests__/cli.test.ts (4 tests) 13ms
56
+ stdout | src/__tests__/smoke.test.ts > cli > should report status
57
+ [Baseline:Status]
58
+ Mode: inactive
59
+ Context: none
60
+ Queue: 0 commands
61
+ History: 0 executions
62
+ MEGAGEM: disconnected
63
+ Context Engine: disconnected
64
+
65
+ Governance Layers:
66
+ ◌ lang armed last check: none
67
+ ◌ frame armed last check: none
68
+ ◌ studio armed last check: none
69
+ ◌ govern armed last check: none
70
+ ◌ experience armed last check: none
71
+ ◌ autonomy armed last check: none
72
+ ◌ persona armed last check: none
73
+
74
+ ✓ src/__tests__/smoke.test.ts (2 tests) 13ms
75
+
76
+  Test Files  6 passed (6)
77
+  Tests  62 passed (62)
78
+  Start at  14:02:38
79
+  Duration  4.66s (transform 1.06s, setup 0ms, collect 1.53s, tests 203ms, environment 1ms, prepare 1.02s)
80
+
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,19 @@
1
+ # @baselineos/cli
2
+
3
+ Baseline command-line interface package (`baseline` command).
4
+
5
+ ## Purpose
6
+
7
+ Provides the operator/developer command surface for guided runs, full workflow execution, API/MCP serving, and quality-oriented commands.
8
+
9
+ ## Commands
10
+
11
+ ```bash
12
+ pnpm --filter @baselineos/cli build
13
+ pnpm --filter @baselineos/cli test
14
+ ```
15
+
16
+ ## Integration
17
+
18
+ - Depends on all layer packages + `baselineos`
19
+ - Binary entrypoint: `dist/cli.js`