@coreason-ai/sensory-core 1.1.0 → 1.3.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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.2.0](https://github.com/CoReason-AI/coreason-sensory-core/compare/v1.1.0...v1.2.0) (2026-05-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add root custom theme variables and fallback support ([db505ed](https://github.com/CoReason-AI/coreason-sensory-core/commit/db505ed541123139d43bd16b1a35817cc8543dde))
|
|
14
|
+
* **release:** transition package to fully dynamic runtime versioning ([fa7b58e](https://github.com/CoReason-AI/coreason-sensory-core/commit/fa7b58ef42eee853e90ded1ba577ba462feb504f))
|
|
15
|
+
* **release:** transition python packages to fully dynamic runtime versioning ([7eef046](https://github.com/CoReason-AI/coreason-sensory-core/commit/7eef046b0cef6fcd2cf19df950002dffe52b6745))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **release:** authenticate npm publish with registry-url and NODE_AUTH_TOKEN ([4f1eb21](https://github.com/CoReason-AI/coreason-sensory-core/commit/4f1eb210431dbbb303af373ece8a9db0e9ef1c5b))
|
|
21
|
+
* **release:** remove failing global npm upgrade step from publish workflow ([10b2ddc](https://github.com/CoReason-AI/coreason-sensory-core/commit/10b2ddcbb84fb37b105e53366dfad2cce10676e5))
|
|
22
|
+
* **release:** use OIDC trusted publishing for npm registry ([340e9c2](https://github.com/CoReason-AI/coreason-sensory-core/commit/340e9c215dca1b60f0c83423297f6df9477bce35))
|
|
23
|
+
|
|
8
24
|
## [1.0.0] - 2026-05-18
|
|
9
25
|
|
|
10
26
|
### Added
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { motion } from 'framer-motion';
|
|
12
12
|
import { cn } from './GlassBox';
|
|
13
|
-
export const StatusPulse = ({ status, vfeValue, label, className }) => {
|
|
13
|
+
export const StatusPulse = ({ status, vfeValue, label, className, tokensPerSecond }) => {
|
|
14
14
|
const isError = status === 'suspended_vfe_breach' || status === 'suspended_security_violation';
|
|
15
15
|
const isExecuting = status === 'executing';
|
|
16
16
|
const isCompleted = status === 'completed';
|
|
@@ -29,6 +29,12 @@ export const StatusPulse = ({ status, vfeValue, label, className }) => {
|
|
|
29
29
|
: isError
|
|
30
30
|
? 0.5 // Rapid flashing on error
|
|
31
31
|
: 1.8; // Calmer breathing under normal load
|
|
32
|
+
const dynamicDuration = tokensPerSecond !== undefined && tokensPerSecond > 0
|
|
33
|
+
? Math.max(0.1, 1.5 / Math.log2(tokensPerSecond + 2))
|
|
34
|
+
: pulseDuration;
|
|
35
|
+
const maxGlow = tokensPerSecond !== undefined && tokensPerSecond > 0
|
|
36
|
+
? Math.min(40, 16 + tokensPerSecond * 0.2)
|
|
37
|
+
: 16;
|
|
32
38
|
return (React.createElement("div", { className: cn("flex items-center gap-2", className) },
|
|
33
39
|
React.createElement(motion.div, { animate: isExecuting || isError
|
|
34
40
|
? {
|
|
@@ -36,7 +42,7 @@ export const StatusPulse = ({ status, vfeValue, label, className }) => {
|
|
|
36
42
|
opacity: [0.6, 1, 0.6],
|
|
37
43
|
boxShadow: [
|
|
38
44
|
`0 0 4px ${baseColor}`,
|
|
39
|
-
`0 0
|
|
45
|
+
`0 0 ${maxGlow}px ${baseColor}`,
|
|
40
46
|
`0 0 4px ${baseColor}`,
|
|
41
47
|
],
|
|
42
48
|
}
|
|
@@ -46,7 +52,7 @@ export const StatusPulse = ({ status, vfeValue, label, className }) => {
|
|
|
46
52
|
boxShadow: `0 0 2px ${baseColor}`,
|
|
47
53
|
}, transition: {
|
|
48
54
|
repeat: isExecuting || isError ? Infinity : 0,
|
|
49
|
-
duration:
|
|
55
|
+
duration: dynamicDuration,
|
|
50
56
|
ease: 'easeInOut',
|
|
51
57
|
}, className: cn('w-3 h-3 rounded-full'), style: {
|
|
52
58
|
backgroundColor: baseColor,
|
|
@@ -54,5 +60,7 @@ export const StatusPulse = ({ status, vfeValue, label, className }) => {
|
|
|
54
60
|
React.createElement("span", { className: "font-mono text-xs font-semibold", style: { color: baseColor } },
|
|
55
61
|
label || status.toUpperCase(),
|
|
56
62
|
" ",
|
|
57
|
-
vfeValue !== undefined && `(VFE: ${vfeValue.toFixed(2)})
|
|
63
|
+
vfeValue !== undefined && `(VFE: ${vfeValue.toFixed(2)})`,
|
|
64
|
+
" ",
|
|
65
|
+
tokensPerSecond !== undefined && `(${tokensPerSecond.toFixed(1)} T/s)`)));
|
|
58
66
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// For details, see the LICENSE file
|
|
7
7
|
// Commercial use beyond a 30-day trial requires a separate license
|
|
8
8
|
//
|
|
9
|
-
// Source Code: <https://github.com/CoReason-AI/coreason-
|
|
9
|
+
// Source Code: <https://github.com/CoReason-AI/coreason-runtime>
|
|
10
10
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
11
11
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
12
12
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -27,18 +27,34 @@ import { ConformanceGuillotine } from './ConformanceGuillotine';
|
|
|
27
27
|
const SwarmNode = ({ data }) => {
|
|
28
28
|
var _a;
|
|
29
29
|
const isBreached = data.status === 'suspended_security_violation' || data.isSecurityViolation;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
const isCompact = data.density === 'compact';
|
|
31
|
+
let borderColorClass = 'border-gray-800';
|
|
32
|
+
if (data.isPanicked) {
|
|
33
|
+
borderColorClass = 'border-red-600/80 shadow-[0_0_15px_rgba(220,38,38,0.3)]';
|
|
34
|
+
}
|
|
35
|
+
else if (isBreached) {
|
|
36
|
+
borderColorClass = 'border-orange-500/80 shadow-[0_0_15px_rgba(249,115,22,0.3)]';
|
|
37
|
+
}
|
|
38
|
+
else if (data.causalRole === 'confounder') {
|
|
39
|
+
borderColorClass = 'border-dashed border-yellow-500/80 shadow-[0_0_10px_rgba(234,179,8,0.2)]';
|
|
40
|
+
}
|
|
41
|
+
else if (data.causalRole === 'collider') {
|
|
42
|
+
borderColorClass = 'border-solid border-red-500 shadow-[0_0_15px_rgba(239,68,68,0.4)]';
|
|
43
|
+
}
|
|
44
|
+
else if (data.isAnomalous) {
|
|
45
|
+
borderColorClass = 'border-[var(--cr-accent-orange)]';
|
|
46
|
+
}
|
|
47
|
+
return (React.createElement(GlassBox, { density: isCompact ? 'dense' : 'dense', className: `border relative overflow-hidden ${borderColorClass} min-w-[150px]` },
|
|
37
48
|
React.createElement("div", { className: "flex flex-col" },
|
|
38
49
|
React.createElement("div", { className: "flex justify-between items-center mb-2" },
|
|
39
50
|
React.createElement("span", { className: "text-[10px] uppercase tracking-widest text-gray-500" }, data.typeLabel || 'AGENT'),
|
|
40
|
-
React.createElement(StatusPulse, { status: data.status || 'idle' })),
|
|
41
|
-
React.createElement("span", { className: "text-sm font-mono text-white truncate max-w-[120px]", title: data.urn }, ((_a = data.urn) === null || _a === void 0 ? void 0 : _a.split(':').slice(-2).join(':')) || 'urn:unknown')),
|
|
51
|
+
!isCompact && React.createElement(StatusPulse, { status: data.status || 'idle' })),
|
|
52
|
+
!isCompact && (React.createElement("span", { className: "text-sm font-mono text-white truncate max-w-[120px]", title: data.urn }, ((_a = data.urn) === null || _a === void 0 ? void 0 : _a.split(':').slice(-2).join(':')) || 'urn:unknown')),
|
|
53
|
+
data.causalRole && (React.createElement("div", { className: `mt-2 text-[8px] font-bold uppercase tracking-wider px-1 py-0.5 rounded text-center ${data.causalRole === 'confounder'
|
|
54
|
+
? 'bg-yellow-500/20 text-yellow-400 border border-yellow-500/30'
|
|
55
|
+
: data.causalRole === 'collider'
|
|
56
|
+
? 'bg-red-500/20 text-red-400 border border-red-500/30'
|
|
57
|
+
: 'bg-blue-500/20 text-blue-400 border border-blue-500/30'}` }, data.causalRole))),
|
|
42
58
|
data.isPanicked && (React.createElement("div", { className: "absolute inset-0 pointer-events-none overflow-hidden rounded-xl border border-red-500/50 bg-red-950/20" },
|
|
43
59
|
React.createElement("svg", { className: "absolute inset-0 w-full h-full opacity-60 stroke-red-500", strokeWidth: "1", strokeLinecap: "round" },
|
|
44
60
|
React.createElement("line", { x1: "0", y1: "0", x2: "60", y2: "40" }),
|
|
@@ -57,7 +73,8 @@ const SwarmNode = ({ data }) => {
|
|
|
57
73
|
const SandboxNode = ({ id, data }) => {
|
|
58
74
|
const fuelPercentage = data.cpuFuel && data.maxFuel ? (data.cpuFuel / data.maxFuel) * 100 : 100;
|
|
59
75
|
const memoryPercentage = data.memoryUsage && data.maxMemory ? (data.memoryUsage / data.maxMemory) * 100 : 0;
|
|
60
|
-
|
|
76
|
+
const isCompact = data.density === 'compact';
|
|
77
|
+
return (React.createElement("div", { className: `bg-[rgba(20,20,20,0.8)] border relative rounded-lg p-4 min-w-[300px] ${isCompact ? 'min-h-[50px]' : 'min-h-[200px]'} shadow-[0_0_15px_rgba(255,100,0,0.2)] ${data.isPanicked
|
|
61
78
|
? 'border-red-600/80 shadow-[0_0_20px_rgba(220,38,38,0.4)]'
|
|
62
79
|
: 'border-[var(--cr-accent-orange)]'}` },
|
|
63
80
|
React.createElement("div", { className: `absolute top-0 left-0 right-0 text-[10px] font-bold uppercase tracking-wider px-2 py-1 rounded-t-sm flex justify-between items-center ${data.isPanicked ? 'bg-red-600 text-white' : 'bg-[var(--cr-accent-orange)] text-black'}` },
|
|
@@ -66,7 +83,7 @@ const SandboxNode = ({ id, data }) => {
|
|
|
66
83
|
data.sandboxType || 'WASM ENCLAVE',
|
|
67
84
|
" ISOLATION BOUNDARY"),
|
|
68
85
|
React.createElement("span", { className: "font-mono" }, data.id || id)),
|
|
69
|
-
React.createElement("div", { className: "mt-6 mb-2 flex flex-col gap-2" },
|
|
86
|
+
!isCompact && (React.createElement("div", { className: "mt-6 mb-2 flex flex-col gap-2" },
|
|
70
87
|
React.createElement("div", { className: "flex items-center justify-between text-[10px] font-mono text-gray-400" },
|
|
71
88
|
React.createElement("span", null, "CPU FUEL"),
|
|
72
89
|
React.createElement("span", null,
|
|
@@ -83,7 +100,7 @@ const SandboxNode = ({ id, data }) => {
|
|
|
83
100
|
data.maxMemory || 10,
|
|
84
101
|
"MB")),
|
|
85
102
|
React.createElement("div", { className: "h-1 bg-gray-800 rounded-full overflow-hidden" },
|
|
86
|
-
React.createElement("div", { className: "h-full bg-blue-400 transition-all", style: { width: `${memoryPercentage}%` } }))),
|
|
103
|
+
React.createElement("div", { className: "h-full bg-blue-400 transition-all", style: { width: `${memoryPercentage}%` } })))),
|
|
87
104
|
data.isPanicked && (React.createElement("div", { className: "absolute inset-0 pointer-events-none overflow-hidden rounded-lg border border-red-500/50 bg-red-950/20" },
|
|
88
105
|
React.createElement("svg", { className: "absolute inset-0 w-full h-full opacity-60 stroke-red-500", strokeWidth: "1", strokeLinecap: "round" },
|
|
89
106
|
React.createElement("line", { x1: "0", y1: "0", x2: "100", y2: "80" }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreason-ai/sensory-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Topos-Theoretic UI primitive library for the CoReason Cybernetic Manifold. Stateless, hollow React components that project coreason-manifest Pydantic ASTs into the DOM.",
|
|
5
5
|
"license": "Prosperity-3.0",
|
|
6
6
|
"author": "CoReason, Inc. <info@coreason.ai>",
|