nao-core 0.0.16__py3-none-any.whl → 0.0.18__py3-none-any.whl
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.
- nao_core/__init__.py +1 -1
- nao_core/bin/chats/588bbb8a-dcbc-42dc-b0d8-b6b9ed13e2fb.json +45 -0
- nao_core/bin/fastapi/main.py +19 -2
- nao_core/bin/migrations-postgres/{0000_supreme_cable.sql → 0000_user_auth_and_chat_tables.sql} +35 -22
- nao_core/bin/migrations-postgres/meta/0000_snapshot.json +208 -111
- nao_core/bin/migrations-postgres/meta/_journal.json +2 -2
- nao_core/bin/migrations-sqlite/{0000_cloudy_squirrel_girl.sql → 0000_user_auth_and_chat_tables.sql} +35 -22
- nao_core/bin/migrations-sqlite/meta/0000_snapshot.json +189 -105
- nao_core/bin/migrations-sqlite/meta/_journal.json +2 -2
- nao_core/bin/nao-chat-server +0 -0
- nao_core/bin/public/assets/_chat-layout-Do0mWziW.js +1 -0
- nao_core/bin/public/assets/_chat-layout.index-mxrV7qZY.js +1 -0
- nao_core/bin/public/assets/agentProvider-cEZoyU1e.js +1 -0
- nao_core/bin/public/assets/code-block-F6WJLWQG-oIWcWPcR.js +153 -0
- nao_core/bin/public/assets/createLucideIcon-BGNfPWE_.js +1 -0
- nao_core/bin/public/assets/index-B-_pu_22.js +59 -0
- nao_core/bin/public/assets/index-CWAm1NQa.css +1 -0
- nao_core/bin/public/assets/login-CF4uOXFH.js +1 -0
- nao_core/bin/public/assets/mermaid-FSSLJTFX-BzFakw7W.js +380 -0
- nao_core/bin/public/assets/signinForm-D98dwmLQ.js +1 -0
- nao_core/bin/public/assets/signup-CQSmDpcH.js +1 -0
- nao_core/bin/public/assets/utils-DzJYey0s.js +1 -0
- nao_core/bin/public/index.html +2 -2
- nao_core/bin/public/nao-logo-greyscale.svg +25 -0
- nao_core/commands/init.py +111 -0
- nao_core/commands/sync/__init__.py +59 -0
- nao_core/commands/sync/accessors.py +212 -0
- nao_core/commands/sync/databases.py +132 -0
- nao_core/commands/sync/registry.py +23 -0
- nao_core/commands/sync/repositories.py +103 -0
- nao_core/config/base.py +2 -0
- nao_core/config/repos/__init__.py +3 -0
- nao_core/config/repos/base.py +11 -0
- {nao_core-0.0.16.dist-info → nao_core-0.0.18.dist-info}/METADATA +1 -1
- nao_core-0.0.18.dist-info/RECORD +51 -0
- nao_core/bin/public/assets/_chatId-z5gRlor1.js +0 -1
- nao_core/bin/public/assets/chat-messages-DUR3D342.js +0 -1
- nao_core/bin/public/assets/index-BDlcD_HE.js +0 -1
- nao_core/bin/public/assets/index-Bc7icYyJ.css +0 -1
- nao_core/bin/public/assets/index-CGg3ZQH6.js +0 -49
- nao_core/bin/public/assets/login-D87n9R5V.js +0 -1
- nao_core/bin/public/assets/signinForm-9PY1Lvqj.js +0 -1
- nao_core/bin/public/assets/signup-B7NC1g08.js +0 -1
- nao_core/commands/sync.py +0 -380
- nao_core-0.0.16.dist-info/RECORD +0 -39
- {nao_core-0.0.16.dist-info → nao_core-0.0.18.dist-info}/WHEEL +0 -0
- {nao_core-0.0.16.dist-info → nao_core-0.0.18.dist-info}/entry_points.txt +0 -0
- {nao_core-0.0.16.dist-info → nao_core-0.0.18.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,R,j as g}from"./index-B-_pu_22.js";import{b as A,a as S}from"./utils-DzJYey0s.js";function b(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function k(...e){return t=>{let n=!1;const i=e.map(r=>{const o=b(r,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let r=0;r<i.length;r++){const o=i[r];typeof o=="function"?o():b(e[r],null)}}}}function q(...e){return a.useCallback(k(...e),e)}var V=Symbol.for("react.lazy"),v=R[" use ".trim().toString()];function N(e){return typeof e=="object"&&e!==null&&"then"in e}function w(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===V&&"_payload"in e&&N(e._payload)}function P(e){const t=L(e),n=a.forwardRef((i,r)=>{let{children:o,...u}=i;w(o)&&typeof v=="function"&&(o=v(o._payload));const l=a.Children.toArray(o),d=l.find(z);if(d){const s=d.props.children,c=l.map(f=>f===d?a.Children.count(s)>1?a.Children.only(null):a.isValidElement(s)?s.props.children:null:f);return g.jsx(t,{...u,ref:r,children:a.isValidElement(s)?a.cloneElement(s,void 0,c):null})}return g.jsx(t,{...u,ref:r,children:o})});return n.displayName=`${e}.Slot`,n}var $=P("Slot");function L(e){const t=a.forwardRef((n,i)=>{let{children:r,...o}=n;if(w(r)&&typeof v=="function"&&(r=v(r._payload)),a.isValidElement(r)){const u=I(r),l=W(o,r.props);return r.type!==a.Fragment&&(l.ref=i?k(i,u):u),a.cloneElement(r,l)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var O=Symbol("radix.slottable");function z(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===O}function W(e,t){const n={...t};for(const i in t){const r=e[i],o=t[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...l)=>{const d=o(...l);return r(...l),d}:r&&(n[i]=r):i==="style"?n[i]={...r,...o}:i==="className"&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...e,...n}}function I(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const h=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,C=A,B=(e,t)=>n=>{var i;if(t?.variants==null)return C(e,n?.class,n?.className);const{variants:r,defaultVariants:o}=t,u=Object.keys(r).map(s=>{const c=n?.[s],f=o?.[s];if(c===null)return null;const p=h(c)||h(f);return r[s][p]}),l=n&&Object.entries(n).reduce((s,c)=>{let[f,p]=c;return p===void 0||(s[f]=p),s},{}),d=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((s,c)=>{let{class:f,className:p,..._}=c;return Object.entries(_).every(j=>{let[y,m]=j;return Array.isArray(m)?m.includes({...o,...l}[y]):{...o,...l}[y]===m})?[...s,f,p]:s},[]);return C(e,u,d,n?.class,n?.className)},T=B("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer disabled:cursor-default",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function G({className:e,variant:t="default",size:n="default",asChild:i=!1,...r}){const o=i?$:"button";return g.jsx(o,{"data-slot":"button","data-variant":t,"data-size":n,className:S(T({variant:t,size:n,className:e})),...r})}const Z=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),x=e=>{const t=D(e);return t.charAt(0).toUpperCase()+t.slice(1)},E=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),U=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var F={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const H=a.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:r="",children:o,iconNode:u,...l},d)=>a.createElement("svg",{ref:d,...F,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:E("lucide",r),...!o&&!U(l)&&{"aria-hidden":"true"},...l},[...u.map(([s,c])=>a.createElement(s,c)),...Array.isArray(o)?o:[o]]));const J=(e,t)=>{const n=a.forwardRef(({className:i,...r},o)=>a.createElement(H,{ref:o,iconNode:t,className:E(`lucide-${Z(x(e))}`,`lucide-${e}`,i),...r}));return n.displayName=x(e),n};export{G as B,B as a,k as b,J as c,q as u};
|