ltcai 12.3.0 → 12.4.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/README.md +39 -39
- package/docs/CHANGELOG.md +31 -0
- package/docs/COMMUNITY_AND_PLUGINS.md +1 -1
- package/docs/DEVELOPMENT.md +11 -11
- package/docs/ONBOARDING.md +1 -1
- package/docs/OPERATIONS.md +1 -1
- package/docs/ROADMAP.md +1 -1
- package/docs/TRUST_MODEL.md +1 -1
- package/docs/WHY_LATTICE.md +1 -1
- package/docs/kg-schema.md +1 -1
- package/lattice_brain/__init__.py +1 -1
- package/latticeai/__init__.py +1 -1
- package/latticeai/models/model_providers.py +2 -0
- package/latticeai/services/architecture_readiness.py +1 -1
- package/latticeai/services/model_capability_registry.py +77 -0
- package/latticeai/services/model_catalog.py +18 -0
- package/latticeai/services/model_engines.py +3 -1
- package/latticeai/services/product_readiness.py +1 -1
- package/package.json +3 -3
- package/requirements.txt +3 -1
- package/scripts/check_current_release_docs.mjs +1 -1
- package/scripts/release_screen_claims.json +11 -0
- package/src-tauri/Cargo.lock +10 -10
- package/src-tauri/Cargo.toml +1 -1
- package/src-tauri/tauri.conf.json +1 -1
- package/static/app/asset-manifest.json +46 -47
- package/static/app/assets/Act-inLiZfDE.js +2 -0
- package/static/app/assets/AdminConsole-iLFwSJSg.js +1 -0
- package/static/app/assets/Brain-Cb7noiNc.js +2 -0
- package/static/app/assets/BrainHome-CfiJ4tau.js +2 -0
- package/static/app/assets/BrainSignals-ShxKNNqr.js +1 -0
- package/static/app/assets/Capture-Cajj1Trf.js +1 -0
- package/static/app/assets/Chronicle-CPd8GP_O.js +1 -0
- package/static/app/assets/CommandPalette-Cb_GWoYC.js +1 -0
- package/static/app/assets/DigitalBrainExplorer-Df6KVrBz.js +321 -0
- package/static/app/assets/Library-Dk5Mefl_.js +1 -0
- package/static/app/assets/LivingBrain-u9X_XGC2.js +1 -0
- package/static/app/assets/{ProductFlow-DccERGr3.js → ProductFlow-CpX0BMr9.js} +1 -1
- package/static/app/assets/{QueryClientProvider-B3OjqSyJ.js → QueryClientProvider-CTiSBeU6.js} +1 -1
- package/static/app/assets/ReviewCard-C64YFHOR.js +3 -0
- package/static/app/assets/RunsListPanel-DKZEJcxF.js +1 -0
- package/static/app/assets/System-Dretrknf.js +1 -0
- package/static/app/assets/WorkflowGraph-CE6XgWjJ.js +1 -0
- package/static/app/assets/WorkflowsPanel-MKU05J7_.js +2 -0
- package/static/app/assets/actHelpers-BjMnKMCI.js +1 -0
- package/static/app/assets/arrow-left-Cbck4Ig2.js +1 -0
- package/static/app/assets/{bot-CAfN5QD1.js → bot-Qgvc2PGU.js} +1 -1
- package/static/app/assets/{brain-DNNLFQgq.js → brain-BwGnubn8.js} +1 -1
- package/static/app/assets/{button-D0k7_k6e.js → button-DEloiIsj.js} +1 -1
- package/static/app/assets/circle-check-CDygnRMn.js +1 -0
- package/static/app/assets/{circle-pause-Dxw6SJuA.js → circle-pause-CkkmXxA9.js} +1 -1
- package/static/app/assets/{circle-play-DuoLDLEg.js → circle-play-rnb6A1zq.js} +1 -1
- package/static/app/assets/{cpu-BGOpEdGX.js → cpu-CzcGFQQq.js} +1 -1
- package/static/app/assets/{download-wXD9L5vN.js → download-BTQigJvp.js} +1 -1
- package/static/app/assets/{folder-open-CittV8Ey.js → folder-open-CIXPPhhm.js} +1 -1
- package/static/app/assets/{hard-drive-CLQPYYBF.js → hard-drive-CZXxdIcT.js} +1 -1
- package/static/app/assets/index-CHQbWj9a.js +13 -0
- package/static/app/assets/index-C_dThdD6.css +2 -0
- package/static/app/assets/{input-RZ8aKj6d.js → input-CTZHuOXe.js} +1 -1
- package/static/app/assets/jsx-runtime-CU_pEDDh.js +1 -0
- package/static/app/assets/{link-2-B7QYeNdJ.js → link-2-BsG1NQUA.js} +1 -1
- package/static/app/assets/{permissionCopy-DFGEuU2d.js → permissionCopy-klyWL3ai.js} +1 -1
- package/static/app/assets/primitives-ZmN4jzq-.js +1 -0
- package/static/app/assets/search-xjKVb4Nh.js +1 -0
- package/static/app/assets/{share-2-Drg0MPgx.js → share-2-Cuv9rj7A.js} +1 -1
- package/static/app/assets/{shield-alert-CFKdCGM8.js → shield-alert-KKySFd03.js} +1 -1
- package/static/app/assets/{textarea-n_69mQP_.js → textarea-CBwqgGSA.js} +1 -1
- package/static/app/assets/useFocusTrap-D93vds_Z.js +1 -0
- package/static/app/assets/{useMutation-Dvcq6J6b.js → useMutation-B9hHPD0p.js} +1 -1
- package/static/app/assets/{workspace-BgBHikYl.js → workspace-JGzrc0D8.js} +1 -1
- package/static/app/index.html +4 -4
- package/static/sw.js +1 -1
- package/static/app/assets/Act-CZXyMcfJ.js +0 -2
- package/static/app/assets/AdminConsole-CAkZk0BI.js +0 -1
- package/static/app/assets/Brain-DN_7_HSV.js +0 -2
- package/static/app/assets/BrainHome-BBP0ouU-.js +0 -2
- package/static/app/assets/BrainSignals-nyRNxvQ3.js +0 -1
- package/static/app/assets/Capture-DBvFoZKL.js +0 -1
- package/static/app/assets/Chronicle-BC5zmR44.js +0 -1
- package/static/app/assets/CommandPalette-Bs-Fk6HT.js +0 -1
- package/static/app/assets/DigitalBrainExplorer-CNcCktPP.js +0 -321
- package/static/app/assets/Library-CxUA4xai.js +0 -1
- package/static/app/assets/LivingBrain-CiyjvwKy.js +0 -1
- package/static/app/assets/ReviewCard-lawM1khV.js +0 -3
- package/static/app/assets/RunsListPanel-DQC-zQ7m.js +0 -1
- package/static/app/assets/System-DwqYJQaj.js +0 -1
- package/static/app/assets/WorkflowGraph-pJ2eFrhy.js +0 -1
- package/static/app/assets/WorkflowsPanel-BIGjfM7h.js +0 -2
- package/static/app/assets/actHelpers-DfIqS92u.js +0 -1
- package/static/app/assets/arrow-left-DvwQxqcD.js +0 -1
- package/static/app/assets/circle-check-hH6updC-.js +0 -1
- package/static/app/assets/index-C0VEkbAp.js +0 -13
- package/static/app/assets/index-C8gwOf0C.css +0 -2
- package/static/app/assets/jsx-runtime-bzQ4Vb5N.js +0 -1
- package/static/app/assets/primitives-EKxh12KR.js +0 -1
- package/static/app/assets/search-BA5Ge197.js +0 -1
- package/static/app/assets/sourceMeta-BzqJiEPI.js +0 -1
- package/static/app/assets/useFocusTrap-B0w4AxK1.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,n as t,t as n}from"./jsx-runtime-
|
|
1
|
+
import{i as e,n as t,t as n}from"./jsx-runtime-CU_pEDDh.js";import{u as r}from"./index-CHQbWj9a.js";var i=e(t()),a=n(),o=i.forwardRef(({className:e,...t},n)=>(0,a.jsx)(`input`,{ref:n,className:r(`h-10 w-full rounded-md border border-input bg-background/70 px-3 text-sm outline-none transition placeholder:text-muted-foreground focus:border-ring focus:ring-2 focus:ring-ring/35 disabled:cursor-not-allowed disabled:opacity-50`,e),...t}));o.displayName=`Input`;export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),l=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.7`})),u=o(((e,t)=>{t.exports=l()})),d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),f=o(((e,t)=>{t.exports=d()}));export{c as i,u as n,o as r,f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as e}from"./index-
|
|
1
|
+
import{R as e}from"./index-CHQbWj9a.js";var t=e(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as e,S as t}from"./index-
|
|
1
|
+
import{R as e,S as t}from"./index-CHQbWj9a.js";var n=e(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]);function r(e,n,r,i){let a=`system.permission.mode.${n}${r}`,o=t(e,a);return o===a?i:o}function i(e,t){return t===`ko`&&e.label_ko||e.label||``}function a(e,t){return r(t,e.id,``,i(e,t))}function o(e,t){let n=t===`ko`&&e.summary_ko||e.summary||``;return r(t,e.id,`.summary`,n)}function s(e,t){let n=t===`ko`&&e.warning_ko||e.warning||``;return r(t,e.id,`.warning`,n)}function c(e,t){return e?r(t,String(e.mode||``),``,i({label:e.label||``,label_ko:e.label_ko},t)):``}export{n as a,s as i,a as n,o as r,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t,t as n}from"./jsx-runtime-CU_pEDDh.js";import{t as r}from"./useMutation-B9hHPD0p.js";import{n as i}from"./QueryClientProvider-CTiSBeU6.js";import{R as a,S as o,c as s,d as c,f as l,g as u,h as d,m as f,p,u as m,z as h}from"./index-CHQbWj9a.js";import{t as g}from"./circle-check-CDygnRMn.js";import{t as _}from"./button-DEloiIsj.js";var v=a(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),y=a(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),b=a(`lock-keyhole`,[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]),x=a(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),S=e(t()),C=n(),ee={default:`border-primary/25 bg-primary/12 text-primary`,success:`border-success/30 bg-success/12 text-success`,warning:`border-warning/30 bg-warning/12 text-warning`,muted:`border-border bg-muted/70 text-muted-foreground`,danger:`border-destructive/30 bg-destructive/12 text-destructive`};function w({className:e,variant:t=`default`,...n}){return(0,C.jsx)(`span`,{className:m(`inline-flex min-h-6 max-w-full items-center whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-semibold leading-none`,ee[t],e),...n})}function T({className:e,...t}){return(0,C.jsx)(`section`,{className:m(`premium-surface rounded-lg text-card-foreground`,e),...t})}function E({className:e,...t}){return(0,C.jsx)(`div`,{className:m(`flex flex-col gap-1.5 p-5`,e),...t})}function D({className:e,...t}){return(0,C.jsx)(`h2`,{className:m(`text-base font-semibold tracking-normal`,e),...t})}function O({className:e,...t}){return(0,C.jsx)(`p`,{className:m(`text-sm leading-6 text-muted-foreground`,e),...t})}function k({className:e,...t}){return(0,C.jsx)(`div`,{className:m(`p-5 pt-0`,e),...t})}function A({result:e}){let t=h(e=>e.mode),n=h(e=>e.language);return e?e.source===`live`&&e.ok?(0,C.jsx)(w,{variant:`success`,children:t===`basic`?o(n,`ui.status.ready`):o(n,`ui.status.connected`)}):(0,C.jsx)(w,{variant:`warning`,children:t===`basic`?o(n,`ui.status.needsSetup`):o(n,`ui.status.unavailable`)}):(0,C.jsx)(w,{variant:`muted`,children:o(n,`ui.status.notLoaded`)})}function j({title:e,detail:t}){let n=h(e=>e.language);return(0,C.jsxs)(`div`,{className:`product-empty-state`,children:[(0,C.jsx)(`div`,{className:`product-empty-mark`,children:(0,C.jsx)(x,{className:`h-5 w-5`})}),(0,C.jsx)(`div`,{className:`product-empty-title`,children:e||o(n,`ui.empty.title`)}),t?(0,C.jsx)(`div`,{className:`product-empty-detail`,children:t}):null]})}function te({title:e,description:t,result:n,children:r,className:i}){let a=h(e=>e.mode),s=h(e=>e.language);return(0,C.jsxs)(T,{className:m(`data-panel overflow-hidden`,i),children:[(0,C.jsxs)(E,{className:`flex-row items-start justify-between gap-3`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(D,{children:e}),t?(0,C.jsx)(O,{children:t}):null]}),a===`basic`?null:(0,C.jsx)(A,{result:n})]}),(0,C.jsx)(k,{children:n?.ok?r(n.data):(0,C.jsx)(j,{detail:a===`basic`?o(s,`ui.empty.basicDetail`):n?.error||o(s,`ui.empty.advancedDetail`)})})]})}function M({title:e}){let t=h(e=>e.language);return(0,C.jsxs)(T,{children:[(0,C.jsx)(E,{children:(0,C.jsx)(D,{children:e})}),(0,C.jsx)(k,{children:(0,C.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,C.jsx)(y,{className:`h-4 w-4 animate-spin`}),` `,o(t,`ui.loading`)]})})]})}function N({stats:e}){return(0,C.jsx)(`div`,{className:`data-stat-grid grid gap-3 sm:grid-cols-2 xl:grid-cols-4`,children:e.map(e=>(0,C.jsxs)(`div`,{className:`rounded-lg border border-border bg-background/55 p-4`,children:[(0,C.jsx)(`div`,{className:`text-xs uppercase text-muted-foreground`,children:e.label}),(0,C.jsx)(`div`,{className:`mt-2 text-2xl font-semibold leading-tight`,children:typeof e.value==`number`?c(e.value):String(e.value??`-`)}),e.hint?(0,C.jsx)(`div`,{className:`mt-2 text-xs leading-5 text-muted-foreground`,children:e.hint}):null]},e.label))})}function P(e){return e==null||e===``?`-`:typeof e==`number`?Number.isFinite(e)?c(e):`-`:typeof e==`boolean`?e?`Enabled`:`Disabled`:String(e)}var F=/(^id$|_id$|token|secret|passphrase|fingerprint|public_key|private_key|dsn|schema|endpoint|base_url|localhost|127\.0\.0\.1|stack|trace|raw|runtime|engine|module|port|host|api|internal)/i;function I(e){return F.test(e)}var L=[`status`,`state`,`name`,`title`,`label`,`summary`,`version`,`ready`];function R(e){for(let t of L){let n=e[t];if(n==null||n===``||typeof n==`object`)continue;let r=P(n);if(r!==`-`)return r.length>96?d(r,96):r}return``}function z(e){let t=P(e);return t===`-`||t.includes(`/`)||t.includes(`@`)||/\.[a-z0-9]{2,5}$/i.test(t)?t:u(t.replace(/^agent:/i,``).replace(/^tool:/i,``))}function B(e){for(let t of[`documents`,`sources`,`items`,`agents`,`workflows`,`runs`,`events`,`permissions`,`models`,`peers`,`invitations`,`roles`,`policies`,`hooks`,`tools`,`templates`,`plugins`,`recent_events`]){let n=s(e[t]);if(n.length)return n}return[]}function V({value:e}){let t=h(e=>e.language);if(typeof e==`boolean`)return(0,C.jsx)(w,{variant:e?`success`:`muted`,children:o(t,e?`ui.value.enabled`:`ui.value.disabled`)});if(Array.isArray(e))return e.length?e.every(e=>e===null||[`string`,`number`,`boolean`].includes(typeof e))?(0,C.jsxs)(`span`,{className:`flex flex-wrap gap-1`,children:[e.slice(0,5).map((e,t)=>(0,C.jsx)(w,{variant:`muted`,children:P(e)},`${String(e)}-${t}`)),e.length>5?(0,C.jsxs)(w,{variant:`muted`,children:[`+`,e.length-5]}):null]}):(0,C.jsx)(`span`,{className:`text-muted-foreground`,children:o(t,`ui.value.records`,{count:c(e.length)})}):(0,C.jsx)(`span`,{className:`text-muted-foreground`,children:o(t,`ui.value.none`)});if(p(e)){let n=Object.keys(e);if(!n.length)return(0,C.jsx)(`span`,{className:`text-muted-foreground`,children:o(t,`ui.value.noFields`)});let r=R(e);return r?(0,C.jsx)(`span`,{className:`break-words`,children:r}):(0,C.jsx)(`span`,{className:`text-muted-foreground`,children:o(t,`ui.value.fields`,{count:c(n.length)})})}let n=P(e);return(0,C.jsx)(`span`,{className:`break-words`,children:n.length>96?d(n,96):n})}function H({data:e,limit:t=8}){let n=h(e=>e.mode),r=h(e=>e.language),i=Object.entries(e||{}).filter(([e])=>n!==`basic`||!I(e)).slice(0,t);return i.length?(0,C.jsx)(`div`,{className:`divide-y divide-border rounded-md border border-border`,children:i.map(([e,t])=>(0,C.jsxs)(`div`,{className:`grid grid-cols-[minmax(9rem,0.5fr)_1fr] gap-3 p-3 text-sm`,children:[(0,C.jsx)(`span`,{className:`font-medium text-muted-foreground`,children:K(e,r)}),(0,C.jsx)(`span`,{className:`min-w-0 break-words`,children:(0,C.jsx)(V,{value:q(e,t)})})]},e))}):(0,C.jsx)(j,{title:o(r,`ui.noValues`)})}function U({value:e,titleKey:t=`title`,metaKey:n=`status`,limit:r=8}){let i=h(e=>e.mode),a=h(e=>e.language);return i===`basic`?(0,C.jsx)(W,{value:e,titleKey:t,metaKey:n,limit:r}):Array.isArray(e)?e.length?e.every(e=>p(e))?(0,C.jsx)(Q,{items:e,titleKey:t,metaKey:n,limit:r}):(0,C.jsxs)(`div`,{className:`flex flex-wrap gap-1 rounded-md border border-border bg-background p-3`,children:[e.slice(0,r).map((e,t)=>(0,C.jsx)(w,{variant:`muted`,children:P(e)},`${String(e)}-${t}`)),e.length>r?(0,C.jsxs)(w,{variant:`muted`,children:[`+`,e.length-r]}):null]}):(0,C.jsx)(j,{detail:o(a,`ui.empty.listDetail`)}):p(e)?(0,C.jsx)(H,{data:e,limit:r}):(0,C.jsx)(`div`,{className:`rounded-md border border-border bg-background p-3 text-sm`,children:(0,C.jsx)(V,{value:e})})}function W({value:e,titleKey:t=`title`,metaKey:n=`status`,limit:r=6}){let i=h(e=>e.language);if(Array.isArray(e))return e.length?e.every(e=>p(e))?(0,C.jsx)(Q,{items:e,titleKey:t,metaKey:n,limit:r}):(0,C.jsxs)(`div`,{className:`flex flex-wrap gap-1 rounded-md border border-border bg-background/55 p-3`,children:[e.slice(0,r).map((e,t)=>(0,C.jsx)(w,{variant:`muted`,children:z(e)},`${String(e)}-${t}`)),e.length>r?(0,C.jsxs)(w,{variant:`muted`,children:[`+`,e.length-r]}):null]}):(0,C.jsx)(j,{detail:o(i,`ui.empty.listDetail`)});if(p(e)){let i=B(e);if(i.length)return(0,C.jsx)(Q,{items:i,titleKey:t,metaKey:n,limit:r});let a=Object.fromEntries(Object.entries(e).filter(([e])=>!I(e)).map(([e,t])=>[e,Array.isArray(t)?`${c(t.length)} items`:p(t)?`available`:t]));return(0,C.jsx)(H,{data:a,limit:r})}return(0,C.jsx)(`div`,{className:`rounded-md border border-border bg-background/55 p-3 text-sm`,children:z(e)})}function G({result:e,successLabel:t}){let n=h(e=>e.mode),r=h(e=>e.language);return e?e.ok?(0,C.jsxs)(`div`,{className:`space-y-2 rounded-md border border-border bg-background p-3`,children:[(0,C.jsx)(w,{variant:`success`,children:t||o(r,`ui.requestCompleted`)}),n===`basic`?(0,C.jsx)(W,{value:e.data}):(0,C.jsx)(U,{value:e.data})]}):(0,C.jsx)(j,{title:o(r,`ui.requestUnavailable`),detail:e.error||(0,C.jsx)(V,{value:e.data})}):null}function K(e,t){let n=`ui.field.${e.toLowerCase()}`,r=o(t,n);return r===n?u(e):r}function q(e,t){return/model/i.test(e)?typeof t==`string`&&t.includes(`/`)?l(t):Array.isArray(t)?t.map(e=>typeof e==`string`&&e.includes(`/`)?l(e):e):t:t}function J(e,t){let n=P(e),r=n.charAt(0).toUpperCase()+n.slice(1).toLowerCase();for(let e of[n,r]){let n=`ui.entity.${e}`,r=o(t,n);if(r!==n)return r}return z(n)}function Y(e,t,n,r){if(!e)return``;let i=[t.type,t.id,t.name].map(e=>String(e||``).toLowerCase().split(`:`).pop()||``).filter(Boolean);for(let t of i){let i=`${e}.${t}${n}`,a=o(r,i);if(a!==i)return a}return``}function X(e,t,n,r){for(let n of[e[t],e.name,e.label,r===`basic`?``:e.id]){let e=f(n);if(e)return e}return`#${n+1}`}function Z(e,t,n,r){let i=X(e,t,n,r);for(let t of[e.summary,e.description,e.path]){let e=f(t);if(e&&e!==i)return e}return``}function Q({items:e,titleKey:t=`title`,metaKey:n=`type`,limit:r=8,labelPrefix:i}){let a=h(e=>e.mode),c=h(e=>e.language),l=s(e).slice(0,r);return l.length?(0,C.jsx)(`div`,{className:`entity-list grid gap-2`,children:l.map((e,r)=>{let o=Y(i,e,``,c),s=o||X(e,t,r,a),l=o?``:J(e[n]||e.status||e.state||`ready`,c);return(0,C.jsxs)(`div`,{className:`entity-list-row rounded-lg border border-border bg-background/55 p-3`,children:[(0,C.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,C.jsx)(`div`,{className:`font-medium`,children:s}),l&&l.toLowerCase()!==s.toLowerCase()?(0,C.jsx)(w,{variant:`muted`,children:l}):null]}),Y(i,e,`.detail`,c)||Z(e,t,r,a)?(0,C.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Y(i,e,`.detail`,c)||Z(e,t,r,a)}):null,a!==`basic`&&e.id&&e[t]!==e.id?(0,C.jsx)(`div`,{className:`mt-1 text-xs text-muted-foreground`,children:d(e.id,48)}):null]},String(e.id||e.name||r))})}):(0,C.jsx)(j,{detail:o(c,`ui.empty.listDetail`)})}function ne({title:e,detail:t,target:n=`advanced`}){let r=h(e=>e.setMode),i=h(e=>e.language);return(0,C.jsx)(T,{children:(0,C.jsxs)(k,{className:`flex flex-col items-start gap-3 p-6`,children:[(0,C.jsx)(`div`,{className:`grid h-10 w-10 place-items-center rounded-md border border-border bg-background/70`,children:(0,C.jsx)(b,{className:`h-5 w-5 text-primary`})}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`div`,{className:`text-lg font-semibold`,children:e||o(i,`ui.modeGate.title`)}),(0,C.jsx)(`p`,{className:`mt-1 max-w-2xl text-sm leading-6 text-muted-foreground`,children:t||o(i,`ui.modeGate.detail`)})]}),(0,C.jsx)(_,{onClick:()=>r(n),children:n===`admin`?o(i,`ui.modeGate.admin`):o(i,`ui.modeGate.advanced`)})]})})}function re({label:e,successLabel:t,action:n,onSuccess:a,invalidate:s,variant:c=`outline`,disabled:l}){let u=i(),d=h(e=>e.language),f=t||o(d,`ui.done`),[p,b]=S.useState(null),x=r({mutationFn:n,onSuccess:async e=>{b(e.ok?f:e.error||o(d,`ui.status.unavailable`)),e.ok&&(await a?.(e),s&&await Promise.all(s.map(e=>u.invalidateQueries({queryKey:[e]}))))}});return(0,C.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,C.jsxs)(_,{variant:c,disabled:l||x.isPending,onClick:()=>x.mutate(),children:[x.isPending?(0,C.jsx)(y,{className:`h-4 w-4 animate-spin`}):null,e]}),p?(0,C.jsxs)(`span`,{className:m(`inline-flex items-center gap-1 text-xs`,p===f?`text-success`:`text-warning`),children:[p===f?(0,C.jsx)(g,{className:`h-3.5 w-3.5`}):(0,C.jsx)(v,{className:`h-3.5 w-3.5`}),p]}):null]})}function $(e){e?.focus()}function ie({tabs:e,value:t,onChange:n,ariaLabel:r,ariaLabelledBy:i}){let a=S.useRef([]),o=(t,r)=>{let i=(t+r+e.length)%e.length;$(a.current[i]),n(e[i].id)},s=e.findIndex(e=>e.id===t),c=s>=0?s:0;return(0,C.jsx)(`div`,{className:`product-tabs inline-flex max-w-full flex-wrap gap-1 rounded-lg border border-border bg-muted/28 p-1`,role:`tablist`,"aria-label":r,"aria-labelledby":i,children:e.map((r,i)=>(0,C.jsx)(`button`,{ref:e=>{a.current[i]=e},type:`button`,role:`tab`,"aria-selected":t===r.id,tabIndex:i===c?0:-1,onClick:()=>n(r.id),onKeyDown:t=>{t.key===`ArrowRight`||t.key===`ArrowDown`?(t.preventDefault(),o(i,1)):t.key===`ArrowLeft`||t.key===`ArrowUp`?(t.preventDefault(),o(i,-1)):t.key===`Home`?(t.preventDefault(),$(a.current[0]),n(e[0].id)):t.key===`End`&&(t.preventDefault(),$(a.current[e.length-1]),n(e[e.length-1].id))},className:m(`h-9 rounded-md px-3.5 text-sm font-semibold transition`,t===r.id?`bg-card text-foreground shadow-sm`:`text-muted-foreground hover:bg-card/60 hover:text-foreground`),children:r.label},r.id))})}export{D as _,H as a,y as b,G as c,ie as d,V as f,E as g,O as h,Q as i,N as l,k as m,te as n,M as o,T as p,j as r,ne as s,re as t,U as u,w as v,v as x,x as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{R as e}from"./index-CHQbWj9a.js";var t=e(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as e}from"./index-
|
|
1
|
+
import{R as e}from"./index-CHQbWj9a.js";var t=e(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as e}from"./index-
|
|
1
|
+
import{R as e}from"./index-CHQbWj9a.js";var t=e(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,n as t,t as n}from"./jsx-runtime-
|
|
1
|
+
import{i as e,n as t,t as n}from"./jsx-runtime-CU_pEDDh.js";import{u as r}from"./index-CHQbWj9a.js";var i=e(t()),a=n(),o=i.forwardRef(({className:e,...t},n)=>(0,a.jsx)(`textarea`,{ref:n,className:r(`min-h-28 w-full resize-y rounded-md border border-input bg-background/70 px-3 py-3 text-sm leading-6 outline-none transition placeholder:text-muted-foreground focus:border-ring focus:ring-2 focus:ring-ring/35 disabled:cursor-not-allowed disabled:opacity-50`,e),...t}));o.displayName=`Textarea`;export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t}from"./jsx-runtime-CU_pEDDh.js";import{R as n}from"./index-CHQbWj9a.js";var r=n(`sunrise`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m4.93 10.93 1.41 1.41`,key:`2a7f42`}],[`path`,{d:`M2 18h2`,key:`j10viu`}],[`path`,{d:`M20 18h2`,key:`wocana`}],[`path`,{d:`m19.07 10.93-1.41 1.41`,key:`15zs5n`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`,key:`1lzouq`}]]),i=e(t()),a=`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), iframe, [tabindex]:not([tabindex="-1"])`;function o(e){return Array.from(e.querySelectorAll(a)).filter(e=>!e.closest(`[hidden]`)&&e.getAttribute(`aria-hidden`)!==`true`)}function s(e,t=!0){let n=i.useRef(null),r=i.useRef(e);return r.current=e,i.useEffect(()=>{if(!t)return;let e=n.current;if(!e)return;let i=document.activeElement instanceof HTMLElement?document.activeElement:null;e.hasAttribute(`tabindex`)||e.setAttribute(`tabindex`,`-1`),(o(e)[0]||e).focus();let a=t=>{if(t.key===`Escape`&&r.current){t.preventDefault(),t.stopPropagation(),r.current();return}if(t.key!==`Tab`)return;let n=o(e);if(!n.length){t.preventDefault(),e.focus();return}let i=n[0],a=n[n.length-1],s=document.activeElement;t.shiftKey?s!==i&&s!==e&&e.contains(s)||(t.preventDefault(),a.focus()):s!==a&&e.contains(s)||(t.preventDefault(),i.focus())};return e.addEventListener(`keydown`,a),()=>{e.removeEventListener(`keydown`,a),i?.focus?.()}},[t]),n}export{r as n,s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,n as t}from"./jsx-runtime-
|
|
1
|
+
import{i as e,n as t}from"./jsx-runtime-CU_pEDDh.js";import{U as n}from"./index-CHQbWj9a.js";import{D as r,E as i,M as a,c as o,g as s,n as c,x as l}from"./QueryClientProvider-CTiSBeU6.js";var u=class extends a{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),i(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&s(t.mutationKey)!==s(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??n();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){o.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},d=e(t(),1);function f(e,t){let n=c(t),[i]=d.useState(()=>new u(n,e));d.useEffect(()=>{i.setOptions(e)},[i,e]);let a=d.useSyncExternalStore(d.useCallback(e=>i.subscribe(o.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=d.useCallback((e,t)=>{i.mutate(e,t).catch(l)},[i]);if(a.error&&r(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}export{f as t};
|