@unson/brainbase-mcp 0.6.0 → 0.7.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.
Files changed (80) hide show
  1. package/dist/canonical-task-contract.d.ts +9 -0
  2. package/dist/canonical-task-contract.js +39 -0
  3. package/dist/canonical-task-principal.d.ts +16 -0
  4. package/dist/canonical-task-principal.js +36 -0
  5. package/dist/canonical-task-service.d.ts +251 -0
  6. package/dist/canonical-task-service.js +809 -0
  7. package/dist/company-os-evaluation.d.ts +193 -0
  8. package/dist/company-os-evaluation.js +1150 -0
  9. package/dist/company-os-impact-review.d.ts +248 -0
  10. package/dist/company-os-impact-review.js +663 -0
  11. package/dist/company-os-learning-adoption.d.ts +288 -0
  12. package/dist/company-os-learning-adoption.js +944 -0
  13. package/dist/company-os-objectives.d.ts +52 -0
  14. package/dist/company-os-objectives.js +197 -0
  15. package/dist/company-os-receipt-adapter.d.ts +109 -0
  16. package/dist/company-os-receipt-adapter.js +636 -0
  17. package/dist/constraint-exception-store.d.ts +23 -0
  18. package/dist/constraint-exception-store.js +108 -0
  19. package/dist/constraint-resolution.d.ts +175 -0
  20. package/dist/constraint-resolution.js +922 -0
  21. package/dist/decision-adapter.d.ts +145 -0
  22. package/dist/decision-adapter.js +586 -0
  23. package/dist/durable-wait-http.d.ts +51 -0
  24. package/dist/durable-wait-http.js +497 -0
  25. package/dist/durable-waits.d.ts +234 -0
  26. package/dist/durable-waits.js +944 -0
  27. package/dist/execution-authority-http.d.ts +28 -0
  28. package/dist/execution-authority-http.js +359 -0
  29. package/dist/execution-authority.d.ts +201 -0
  30. package/dist/execution-authority.js +634 -0
  31. package/dist/foundation-catalog.d.ts +26 -0
  32. package/dist/foundation-catalog.js +206 -0
  33. package/dist/foundation-constraint-store.d.ts +50 -0
  34. package/dist/foundation-constraint-store.js +215 -0
  35. package/dist/foundation-http.d.ts +90 -0
  36. package/dist/foundation-http.js +439 -0
  37. package/dist/foundation-store.d.ts +132 -0
  38. package/dist/foundation-store.js +654 -0
  39. package/dist/judgment-dag-composition.d.ts +224 -0
  40. package/dist/judgment-dag-composition.js +731 -0
  41. package/dist/judgment-dag.d.ts +2 -0
  42. package/dist/judgment-dag.js +1 -0
  43. package/dist/judgment-problem-snapshot.d.ts +185 -0
  44. package/dist/judgment-problem-snapshot.js +777 -0
  45. package/dist/judgment-view-http.d.ts +22 -0
  46. package/dist/judgment-view-http.js +128 -0
  47. package/dist/judgment-view.d.ts +222 -0
  48. package/dist/judgment-view.js +627 -0
  49. package/dist/knowledge-adapter.d.ts +112 -0
  50. package/dist/knowledge-adapter.js +691 -0
  51. package/dist/ontology-foundation.d.ts +209 -0
  52. package/dist/ontology-foundation.js +1000 -0
  53. package/dist/ontology.d.ts +13 -0
  54. package/dist/ontology.js +14 -0
  55. package/dist/organization-connection.d.ts +164 -0
  56. package/dist/organization-connection.js +428 -0
  57. package/dist/personal-knowledge.d.ts +120 -0
  58. package/dist/personal-knowledge.js +750 -0
  59. package/dist/problem-candidates.d.ts +149 -0
  60. package/dist/problem-candidates.js +898 -0
  61. package/dist/problem-selection.d.ts +238 -0
  62. package/dist/problem-selection.js +995 -0
  63. package/dist/resource-reservation-http.d.ts +31 -0
  64. package/dist/resource-reservation-http.js +371 -0
  65. package/dist/resource-reservations.d.ts +221 -0
  66. package/dist/resource-reservations.js +577 -0
  67. package/dist/server.d.ts +97 -0
  68. package/dist/server.js +180 -1
  69. package/dist/ssot.d.ts +6 -1
  70. package/dist/ssot.js +63 -5
  71. package/dist/streamable-http.d.ts +42 -0
  72. package/dist/streamable-http.js +288 -0
  73. package/dist/types.d.ts +20 -0
  74. package/dist/world-model.d.ts +181 -0
  75. package/dist/world-model.js +873 -0
  76. package/package.json +139 -3
  77. package/ui/judgment-view.css +238 -0
  78. package/ui/judgment-view.js +508 -0
  79. package/ui/objective-editor.css +180 -0
  80. package/ui/objective-editor.js +1139 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unson/brainbase-mcp",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Local-first Brainbase judgment OS that lets supported AI agents reuse a user's approved goals, priorities, decisions, and judgment criteria.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -19,6 +19,14 @@
19
19
  "types": "./dist/judgment-dag.d.ts",
20
20
  "import": "./dist/judgment-dag.js"
21
21
  },
22
+ "./ontology-foundation": {
23
+ "types": "./dist/ontology-foundation.d.ts",
24
+ "import": "./dist/ontology-foundation.js"
25
+ },
26
+ "./judgment-dag-composition": {
27
+ "types": "./dist/judgment-dag-composition.d.ts",
28
+ "import": "./dist/judgment-dag-composition.js"
29
+ },
22
30
  "./judgment-value-proof": {
23
31
  "types": "./dist/judgment-value-proof.d.ts",
24
32
  "import": "./dist/judgment-value-proof.js"
@@ -27,10 +35,126 @@
27
35
  "types": "./dist/portable-graph.d.ts",
28
36
  "import": "./dist/portable-graph.js"
29
37
  },
38
+ "./canonical-task-principal": {
39
+ "types": "./dist/canonical-task-principal.d.ts",
40
+ "import": "./dist/canonical-task-principal.js"
41
+ },
42
+ "./canonical-task-contract": {
43
+ "types": "./dist/canonical-task-contract.d.ts",
44
+ "import": "./dist/canonical-task-contract.js"
45
+ },
46
+ "./canonical-task-service": {
47
+ "types": "./dist/canonical-task-service.d.ts",
48
+ "import": "./dist/canonical-task-service.js"
49
+ },
50
+ "./foundation-catalog": {
51
+ "types": "./dist/foundation-catalog.d.ts",
52
+ "import": "./dist/foundation-catalog.js"
53
+ },
54
+ "./foundation-store": {
55
+ "types": "./dist/foundation-store.d.ts",
56
+ "import": "./dist/foundation-store.js"
57
+ },
58
+ "./company-os-objectives": {
59
+ "types": "./dist/company-os-objectives.d.ts",
60
+ "import": "./dist/company-os-objectives.js"
61
+ },
62
+ "./company-os-evaluation": {
63
+ "types": "./dist/company-os-evaluation.d.ts",
64
+ "import": "./dist/company-os-evaluation.js"
65
+ },
66
+ "./company-os-receipt-adapter": {
67
+ "types": "./dist/company-os-receipt-adapter.d.ts",
68
+ "import": "./dist/company-os-receipt-adapter.js"
69
+ },
70
+ "./company-os-learning-adoption": {
71
+ "types": "./dist/company-os-learning-adoption.d.ts",
72
+ "import": "./dist/company-os-learning-adoption.js"
73
+ },
74
+ "./constraint-resolution": {
75
+ "types": "./dist/constraint-resolution.d.ts",
76
+ "import": "./dist/constraint-resolution.js"
77
+ },
78
+ "./foundation-constraint-store": {
79
+ "types": "./dist/foundation-constraint-store.d.ts",
80
+ "import": "./dist/foundation-constraint-store.js"
81
+ },
82
+ "./foundation-http": {
83
+ "types": "./dist/foundation-http.d.ts",
84
+ "import": "./dist/foundation-http.js"
85
+ },
86
+ "./constraint-exception-store": {
87
+ "types": "./dist/constraint-exception-store.d.ts",
88
+ "import": "./dist/constraint-exception-store.js"
89
+ },
90
+ "./decision-adapter": {
91
+ "types": "./dist/decision-adapter.d.ts",
92
+ "import": "./dist/decision-adapter.js"
93
+ },
94
+ "./knowledge-adapter": {
95
+ "types": "./dist/knowledge-adapter.d.ts",
96
+ "import": "./dist/knowledge-adapter.js"
97
+ },
98
+ "./world-model": {
99
+ "types": "./dist/world-model.d.ts",
100
+ "import": "./dist/world-model.js"
101
+ },
102
+ "./problem-selection": {
103
+ "types": "./dist/problem-selection.d.ts",
104
+ "import": "./dist/problem-selection.js"
105
+ },
106
+ "./judgment-problem-snapshot": {
107
+ "types": "./dist/judgment-problem-snapshot.d.ts",
108
+ "import": "./dist/judgment-problem-snapshot.js"
109
+ },
110
+ "./personal-knowledge": {
111
+ "types": "./dist/personal-knowledge.d.ts",
112
+ "import": "./dist/personal-knowledge.js"
113
+ },
114
+ "./organization-connection": {
115
+ "types": "./dist/organization-connection.d.ts",
116
+ "import": "./dist/organization-connection.js"
117
+ },
118
+ "./resource-reservations": {
119
+ "types": "./dist/resource-reservations.d.ts",
120
+ "import": "./dist/resource-reservations.js"
121
+ },
122
+ "./durable-waits": {
123
+ "types": "./dist/durable-waits.d.ts",
124
+ "import": "./dist/durable-waits.js"
125
+ },
126
+ "./durable-wait-http": {
127
+ "types": "./dist/durable-wait-http.d.ts",
128
+ "import": "./dist/durable-wait-http.js"
129
+ },
130
+ "./judgment-view": {
131
+ "types": "./dist/judgment-view.d.ts",
132
+ "import": "./dist/judgment-view.js"
133
+ },
134
+ "./judgment-view-http": {
135
+ "types": "./dist/judgment-view-http.d.ts",
136
+ "import": "./dist/judgment-view-http.js"
137
+ },
138
+ "./execution-authority-http": {
139
+ "types": "./dist/execution-authority-http.d.ts",
140
+ "import": "./dist/execution-authority-http.js"
141
+ },
142
+ "./company-os-impact-review": {
143
+ "types": "./dist/company-os-impact-review.d.ts",
144
+ "import": "./dist/company-os-impact-review.js"
145
+ },
146
+ "./streamable-http": {
147
+ "types": "./dist/streamable-http.d.ts",
148
+ "import": "./dist/streamable-http.js"
149
+ },
30
150
  "./ui/outcome-knowledge": "./ui/outcome-knowledge.js",
31
151
  "./ui/outcome-knowledge.css": "./ui/outcome-knowledge.css",
32
152
  "./ui/outcome-mana": "./ui/outcome-mana.js",
33
153
  "./ui/outcome-mana.css": "./ui/outcome-mana.css",
154
+ "./ui/judgment-view": "./ui/judgment-view.js",
155
+ "./ui/judgment-view.css": "./ui/judgment-view.css",
156
+ "./ui/objective-editor": "./ui/objective-editor.js",
157
+ "./ui/objective-editor.css": "./ui/objective-editor.css",
34
158
  "./ui/icons/*": "./ui/icons/*",
35
159
  "./dist/*": "./dist/*",
36
160
  "./contracts/judgment-dag/schema.json": "./contracts/judgment-dag/schema.json",
@@ -39,7 +163,19 @@
39
163
  "./contracts/judgment-dag/digest.json": "./contracts/judgment-dag/digest.json",
40
164
  "./contracts/judgment-value-proof/schema.json": "./contracts/judgment-value-proof/schema.json",
41
165
  "./contracts/judgment-value-proof/fixture.json": "./contracts/judgment-value-proof/fixture.json",
42
- "./package.json": "./package.json"
166
+ "./package.json": "./package.json",
167
+ "./problem-candidates": {
168
+ "types": "./dist/problem-candidates.d.ts",
169
+ "import": "./dist/problem-candidates.js"
170
+ },
171
+ "./resource-reservation-http": {
172
+ "types": "./dist/resource-reservation-http.d.ts",
173
+ "import": "./dist/resource-reservation-http.js"
174
+ },
175
+ "./execution-authority": {
176
+ "types": "./dist/execution-authority.d.ts",
177
+ "import": "./dist/execution-authority.js"
178
+ }
43
179
  },
44
180
  "bin": {
45
181
  "brainbase-mcp": "dist/index.js",
@@ -104,5 +240,5 @@
104
240
  "engines": {
105
241
  "node": ">=20"
106
242
  },
107
- "gitHead": "bb89a4a28af112943449b37f61d5eb59fca8d72f"
243
+ "gitHead": "38ce235f75694101c64bb32c0ea830f187ae5d1e"
108
244
  }
@@ -0,0 +1,238 @@
1
+ .judgment-view {
2
+ --judgment-ink: #172033;
3
+ --judgment-muted: #667085;
4
+ --judgment-border: #d8dee9;
5
+ --judgment-panel: #ffffff;
6
+ --judgment-surface: #f5f7fb;
7
+ --judgment-accent: #3157d5;
8
+ --judgment-success: #18794e;
9
+ --judgment-warning: #9a6700;
10
+ --judgment-danger: #b42318;
11
+ box-sizing: border-box;
12
+ max-width: 920px;
13
+ margin: 0 auto;
14
+ padding: 28px;
15
+ color: var(--judgment-ink);
16
+ background: var(--judgment-surface);
17
+ font: 15px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
18
+ }
19
+
20
+ .judgment-view *,
21
+ .judgment-view *::before,
22
+ .judgment-view *::after {
23
+ box-sizing: inherit;
24
+ }
25
+
26
+ .judgment-view-header {
27
+ display: grid;
28
+ gap: 8px;
29
+ margin-bottom: 20px;
30
+ }
31
+
32
+ .judgment-view-kicker {
33
+ color: var(--judgment-accent);
34
+ font-size: 11px;
35
+ font-weight: 700;
36
+ letter-spacing: .12em;
37
+ }
38
+
39
+ .judgment-view h1,
40
+ .judgment-view h2,
41
+ .judgment-view h3,
42
+ .judgment-view p {
43
+ margin-top: 0;
44
+ }
45
+
46
+ .judgment-view h1 {
47
+ margin-bottom: 0;
48
+ font-size: clamp(24px, 4vw, 34px);
49
+ letter-spacing: -.02em;
50
+ }
51
+
52
+ .judgment-view h2 {
53
+ margin-bottom: 14px;
54
+ font-size: 18px;
55
+ }
56
+
57
+ .judgment-view h3 {
58
+ margin: 18px 0 8px;
59
+ font-size: 14px;
60
+ }
61
+
62
+ .judgment-view-mode,
63
+ .judgment-view-muted {
64
+ color: var(--judgment-muted);
65
+ }
66
+
67
+ .judgment-view-mode {
68
+ margin-bottom: 0;
69
+ }
70
+
71
+ .judgment-view-status {
72
+ justify-self: start;
73
+ border: 1px solid currentColor;
74
+ border-radius: 999px;
75
+ padding: 2px 10px;
76
+ font-size: 12px;
77
+ font-weight: 700;
78
+ }
79
+
80
+ .judgment-view-panel {
81
+ margin-top: 14px;
82
+ padding: 20px;
83
+ border: 1px solid var(--judgment-border);
84
+ border-radius: 12px;
85
+ background: var(--judgment-panel);
86
+ box-shadow: 0 2px 10px rgb(22 32 55 / 4%);
87
+ }
88
+
89
+ .judgment-view-conclusion {
90
+ border-color: color-mix(in srgb, var(--judgment-accent) 45%, var(--judgment-border));
91
+ }
92
+
93
+ .judgment-view-conclusion-value {
94
+ overflow: auto;
95
+ margin: 0;
96
+ padding: 14px;
97
+ border-radius: 8px;
98
+ background: #eef2ff;
99
+ color: #1d2d68;
100
+ white-space: pre-wrap;
101
+ overflow-wrap: anywhere;
102
+ }
103
+
104
+ .judgment-view-link-row {
105
+ margin: 12px 0 0;
106
+ }
107
+
108
+ .judgment-view a {
109
+ color: var(--judgment-accent);
110
+ font-weight: 600;
111
+ }
112
+
113
+ .judgment-view-notice {
114
+ margin: 0;
115
+ padding: 10px 12px;
116
+ border-left: 3px solid currentColor;
117
+ border-radius: 4px;
118
+ background: #f8fafc;
119
+ }
120
+
121
+ .judgment-view-notice.is-unknown,
122
+ .judgment-view-status.is-unknown,
123
+ .judgment-view-status.is-undecidable {
124
+ color: var(--judgment-warning);
125
+ }
126
+
127
+ .judgment-view-notice.is-permission_denied,
128
+ .judgment-view-status.is-permission_denied {
129
+ color: var(--judgment-danger);
130
+ }
131
+
132
+ .judgment-view-notice.is-unavailable,
133
+ .judgment-view-status.is-unavailable {
134
+ color: #995c00;
135
+ }
136
+
137
+ .judgment-view-notice.is-invalid,
138
+ .judgment-view-status.is-invalid {
139
+ color: #8e2a2a;
140
+ }
141
+
142
+ .judgment-view-notice.is-resolved,
143
+ .judgment-view-status.is-resolved {
144
+ color: var(--judgment-success);
145
+ }
146
+
147
+ .judgment-view-run-meta,
148
+ .judgment-view-question,
149
+ .judgment-view-objective-state {
150
+ margin-bottom: 10px;
151
+ }
152
+
153
+ .judgment-view-objective-state {
154
+ font-size: 18px;
155
+ font-weight: 700;
156
+ }
157
+
158
+ .judgment-view-meta {
159
+ display: grid;
160
+ grid-template-columns: minmax(110px, 0.35fr) 1fr;
161
+ margin: 0;
162
+ border-top: 1px solid var(--judgment-border);
163
+ }
164
+
165
+ .judgment-view-meta dt,
166
+ .judgment-view-meta dd {
167
+ margin: 0;
168
+ padding: 8px 0;
169
+ border-bottom: 1px solid var(--judgment-border);
170
+ }
171
+
172
+ .judgment-view-meta dt {
173
+ color: var(--judgment-muted);
174
+ font-size: 13px;
175
+ }
176
+
177
+ .judgment-view-reference-list,
178
+ .judgment-view-evidence-list,
179
+ .judgment-view-criteria,
180
+ .judgment-view-child-list {
181
+ display: grid;
182
+ gap: 7px;
183
+ margin: 0;
184
+ padding-left: 20px;
185
+ }
186
+
187
+ .judgment-view-reference-list li,
188
+ .judgment-view-evidence-list li,
189
+ .judgment-view-criteria li {
190
+ overflow-wrap: anywhere;
191
+ }
192
+
193
+ .judgment-view-child {
194
+ display: grid;
195
+ gap: 2px;
196
+ padding: 9px 11px;
197
+ border-left: 3px solid var(--judgment-border);
198
+ border-radius: 4px;
199
+ background: #f8fafc;
200
+ }
201
+
202
+ .judgment-view-child.is-completed {
203
+ border-left-color: var(--judgment-success);
204
+ }
205
+
206
+ .judgment-view-child.is-failed,
207
+ .judgment-view-child.is-held {
208
+ border-left-color: var(--judgment-warning);
209
+ }
210
+
211
+ .judgment-view-evaluation-block + .judgment-view-evaluation-block {
212
+ margin-top: 18px;
213
+ padding-top: 18px;
214
+ border-top: 1px solid var(--judgment-border);
215
+ }
216
+
217
+ .judgment-view-evaluation-block h3 {
218
+ margin-top: 0;
219
+ }
220
+
221
+ @media (max-width: 640px) {
222
+ .judgment-view {
223
+ padding: 18px;
224
+ }
225
+
226
+ .judgment-view-panel {
227
+ padding: 16px;
228
+ }
229
+
230
+ .judgment-view-meta {
231
+ grid-template-columns: 1fr;
232
+ }
233
+
234
+ .judgment-view-meta dt {
235
+ padding-bottom: 0;
236
+ border-bottom: 0;
237
+ }
238
+ }