@truenine/memory-sync-cli 2026.10105.0 → 2026.10106.107

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 @@
1
+ import{t as e}from"./transformer-DWtwnW2T.mjs";export{e as processAst};
@@ -0,0 +1 @@
1
+ var e=class extends Error{constructor(e){super(`Circular dependency detected: ${e.join(` -> `)}`),this.cycle=e,this.name=`CircularDependencyError`}},t=class extends Error{constructor(e,t){super(`Plugin "${e}" depends on non-existent plugin "${t}"`),this.pluginName=e,this.missingDependency=t,this.name=`MissingDependencyError`}},n=class extends Error{constructor(e,t,n){super(e),this.expression=t,this.filePath=n,this.name=`ScopeError`}},r=class extends n{constructor(e,t,n){let r=n!=null&&n.length>0?`Undefined variable "${e}" in expression "${t}" (file: ${n})`:`Undefined variable "${e}" in expression "${t}"`;super(r,t,n),this.variableName=e,this.name=`UndefinedVariableError`}},i=class extends n{constructor(e,t,n){let r=n!=null&&n.length>0?`Undefined namespace "${e}" in expression "${t}" (file: ${n})`:`Undefined namespace "${e}" in expression "${t}"`;super(r,t,n),this.namespace=e,this.name=`UndefinedNamespaceError`}},a=class extends Error{constructor(e,t,n){let r=n!=null&&n.length>0,i=t!=null&&t.length>0,a=r?`${e} (export: ${t}, file: ${n})`:i?`${e} (export: ${t})`:e;super(a),this.exportName=t,this.filePath=n,this.name=`ExportParseError`}},o=class extends Error{constructor(e,t){let n=t!=null&&t.length>0?`Missing required metadata fields: ${e.join(`, `)} (file: ${t})`:`Missing required metadata fields: ${e.join(`, `)}`;super(n),this.missingFields=e,this.filePath=t,this.name=`MetadataValidationError`}},s=class extends Error{constructor(e,t,n){let r=n!=null&&n.length>0?`Invalid configuration field "${e}": ${t} (file: ${n})`:`Invalid configuration field "${e}": ${t}`;super(r),this.field=e,this.reason=t,this.filePath=n,this.name=`ConfigValidationError`}};const c=new Map;function l(e,t){c.set(e,t)}function u(){return new Map(c)}function d(e){return c.has(e)}function f(e,t,n){let r=e.trim();return r===``?``:/^[a-z_$][\w$]*(?:\.[a-z_$][\w$]*)*$/i.test(r)?p(r,t,n?.filePath):m(r,t,n?.filePath)}function p(e,t,n){let a=e.split(`.`),o=a[0];if(o==null||!(o in t))throw new i(o??``,e,n);let s=t[o];for(let t=1;t<a.length;t++){let i=a[t];if(i==null)continue;if(s==null)throw new r(i,e,n);if(typeof s!=`object`)throw TypeError(`Cannot read property "${i}" of ${typeof s} in expression "${e}"`);let o=s;if(!(i in o))throw new r(i,e,n);s=o[i]}return h(s)}function m(e,t,n){let r=Object.keys(t),a=r.map(e=>t[e]);try{return h(Function(...r,`return (${e})`)(...a))}catch(t){let r=t instanceof Error?t.message:String(t);if(r.includes(`is not defined`)){let t=/(\w+) is not defined/.exec(r);if(t?.[1]!=null)throw new i(t[1],e,n)}let a=n==null?``:` (file: ${n})`;throw Error(`Failed to evaluate expression: "${e}"${a}\nCause: ${r}`)}}function h(e){if(e==null)return``;if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);if(typeof e==`object`)try{return JSON.stringify(e)}catch{return String(e)}return String(e)}function g(e,t){return e===null?!1:t.components.has(e)||d(e)}async function _(e){return async(t,n)=>(await e({type:`root`,children:t},n)).children}async function v(e,t,n){let r=e.name;if(r==null||r===``)return[];let i=t.components.get(r);if(i==null)return[];if(t.processingStack.includes(r)){let e=[...t.processingStack,r].join(` → `);throw Error(`Circular dependency detected: ${e}`)}let a={scope:t.scope,components:t.components,processingStack:[...t.processingStack,r],...t.basePath==null?{}:{basePath:t.basePath}},o=await _(n);try{return await i(e,a,o)}catch(e){let n=e instanceof Error?e.message:String(e),i=t.processingStack.join(` → `);throw Error(`Failed to process component "${r}"${i===``?``:` (called from: ${i})`}:\n${n}`,{cause:e})}}function y(e,t){let n=e.name?.toLowerCase();if(n==null)return null;switch(n){case`pre`:return S(e,t);case`a`:return C(e,t);case`strong`:case`b`:return w(e,t);case`em`:case`i`:return T(e,t);case`img`:return E(e,t);case`blockquote`:return D(e,t);default:return null}}function b(e,t,n){let r=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);return r==null?null:typeof r.value==`string`?r.value:r.value!=null&&typeof r.value==`object`&&r.value.type===`mdxJsxAttributeValueExpression`?f(r.value.value,n.scope):r.value===null?``:null}function x(e,t){let n=``;for(let r of e.children)r.type===`text`?n+=r.value:r.type===`mdxTextExpression`?n+=f(r.value,t.scope):(r.type===`mdxJsxFlowElement`||r.type===`mdxJsxTextElement`)&&(n+=x(r,t));return n}function S(e,t){let n=null;for(let t of e.children){if((t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)&&t.name?.toLowerCase()===`code`){n=t;break}if(t.type===`paragraph`&&`children`in t){let e=t.children;for(let t of e)if((t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)&&t.name?.toLowerCase()===`code`){n=t;break}if(n!=null)break}}if(n==null)return null;let r=(b(n,`className`,t)??``).match(/language-(\w+)/)?.[1],i=x(n,t);return[{type:`code`,lang:r??null,value:i.trim()}]}function C(e,t){let n=b(e,`href`,t);if(n==null||n===``)return null;let r=x(e,t);return[{type:`paragraph`,children:[{type:`link`,url:n,title:b(e,`title`,t)??null,children:[{type:`text`,value:r}]}]}]}function w(e,t){let n={type:`strong`,children:[{type:`text`,value:x(e,t)}]};return e.type,[{type:`paragraph`,children:[n]}]}function T(e,t){let n={type:`emphasis`,children:[{type:`text`,value:x(e,t)}]};return e.type,[{type:`paragraph`,children:[n]}]}function E(e,t){let n=b(e,`src`,t);if(n==null||n===``)return null;let r={type:`image`,url:n,alt:b(e,`alt`,t)??``,title:b(e,`title`,t)??null};return e.type,[{type:`paragraph`,children:[r]}]}function D(e,t){return[{type:`blockquote`,children:[{type:`paragraph`,children:[{type:`text`,value:x(e,t)}]}]}]}function O(e){return e==null?!1:JSON.stringify(e).includes(`"JSX`)}async function k(e,t,n){let r=e.data?.estree;if(r==null||r.body.length===0)return[];let i=r.body[0];return i?.type===`ExpressionStatement`?A(i.expression,t,n):[]}async function A(e,t,n){return e.type===`JSXElement`?I(e,t,n):e.type===`JSXFragment`?L(e,t,n):e.type===`LogicalExpression`?j(e,t,n):e.type===`ConditionalExpression`?M(e,t,n):e.type===`SequenceExpression`?N(e,t,n):e.type===`ArrayExpression`?P(e,t,n):K(e,t)}async function j(e,t,n){let r=await F(e.left,t,n);return e.operator===`&&`?W(r)?A(e.right,t,n):[]:e.operator===`||`?W(r)?U(e.left)?A(e.left,t,n):G(r):A(e.right,t,n):e.operator===`??`?r==null?A(e.right,t,n):U(e.left)?A(e.left,t,n):G(r):[]}async function M(e,t,n){return W(await F(e.test,t,n))?A(e.consequent,t,n):A(e.alternate,t,n)}async function N(e,t,n){let r=[];for(let i of e.expressions){let e=await A(i,t,n);r.push(...e)}return r}async function P(e,t,n){let r=[];for(let i of e.elements)if(i!=null)if(i.type===`SpreadElement`){let e=await A(i.argument,t,n);r.push(...e)}else{let e=await A(i,t,n);r.push(...e)}return r}async function F(e,t,n){if(U(e))return!0;if(e.type===`Literal`)return e.value;if(e.type===`Identifier`)return e.name===`undefined`?void 0:e.name===`NaN`?NaN:e.name===`Infinity`?1/0:t.scope[e.name];if(e.type===`UnaryExpression`){let r=await F(e.argument,t,n);return e.operator===`!`?!W(r):e.operator===`-`?-r:e.operator===`+`?+r:e.operator===`typeof`?typeof r:void 0}if(e.type===`BinaryExpression`){let r=await F(e.left,t,n),i=await F(e.right,t,n);return e.operator===`===`?r===i:e.operator===`!==`?r!==i:e.operator===`==`?r===i:e.operator===`!=`?r!==i:e.operator===`<`?r<i:e.operator===`<=`?r<=i:e.operator===`>`?r>i:e.operator===`>=`?r>=i:e.operator===`+`?r+i:e.operator===`-`?r-i:e.operator===`*`?r*i:e.operator===`/`?r/i:e.operator===`%`?r%i:void 0}if(e.type===`LogicalExpression`){let r=await F(e.left,t,n);return e.operator===`&&`?W(r)?F(e.right,t,n):r:e.operator===`||`?W(r)?r:F(e.right,t,n):e.operator===`??`?r??F(e.right,t,n):void 0}if(e.type===`MemberExpression`){let r=await F(e.object,t,n);return r==null?void 0:e.computed?r[await F(e.property,t,n)]:r[e.property.name]}if(e.type===`ConditionalExpression`)return W(await F(e.test,t,n))?F(e.consequent,t,n):F(e.alternate,t,n);let r=H(e);if(r!==``)try{let e=f(r,t.scope);return e===`true`?!0:e===`false`?!1:e===`null`?null:e===`undefined`||e===``?void 0:/^-?\d+(?:\.\d+)?$/.test(e)?Number(e):e}catch{return}}async function I(e,t,n){let r=z(e,t);if(r.name!=null&&g(r.name,t)){let{processAst:e}=await import(`./transformer-C6dH3CdE.mjs`);return v(r,t,e)}return y(r,t)??(r.children.length>0?n(r.children,t):[])}async function L(e,t,n){let r=[];for(let i of e.children){let e=await R(i,t,n);r.push(...e)}return r}async function R(e,t,n){if(e.type===`JSXElement`)return I(e,t,n);if(e.type===`JSXFragment`)return L(e,t,n);if(e.type===`JSXText`){let t=e.value.trim();return t===``?[]:[{type:`paragraph`,children:[{type:`text`,value:t}]}]}return e.type===`JSXExpressionContainer`?e.expression.type===`JSXEmptyExpression`?[]:A(e.expression,t,n):e.type===`JSXSpreadChild`?A(e.expression,t,n):[]}function z(e,t){let n=e.openingElement,r=null;n.name.type===`JSXIdentifier`?r=n.name.name:n.name.type===`JSXMemberExpression`?r=B(n.name):n.name.type===`JSXNamespacedName`&&(r=`${n.name.namespace.name}:${n.name.name.name}`);let i=[];for(let e of n.attributes)if(e.type===`JSXAttribute`){let t=e.name.type===`JSXIdentifier`?e.name.name:`${e.name.namespace.name}:${e.name.name.name}`,n=null;e.value==null?n=null:e.value.type===`Literal`?n=String(e.value.value):e.value.type===`JSXExpressionContainer`&&e.value.expression.type!==`JSXEmptyExpression`&&(n={type:`mdxJsxAttributeValueExpression`,value:H(e.value.expression)}),i.push({type:`mdxJsxAttribute`,name:t,value:n})}else e.type===`JSXSpreadAttribute`&&i.push({type:`mdxJsxExpressionAttribute`,value:`...${H(e.argument)}`});let a=[];for(let n of e.children){let e=V(n,t);e!=null&&a.push(...e)}return{type:`mdxJsxFlowElement`,name:r,attributes:i,children:a}}function B(e){return e.object.type===`JSXIdentifier`?`${e.object.name}.${e.property.name}`:`${B(e.object)}.${e.property.name}`}function V(e,t){if(e.type===`JSXText`){let t=e.value;return t.trim()===``?null:[{type:`paragraph`,children:[{type:`text`,value:t}]}]}if(e.type===`JSXElement`)return[z(e,t)];if(e.type===`JSXFragment`){let n=[];for(let r of e.children){let e=V(r,t);e!=null&&n.push(...e)}return n}return e.type===`JSXExpressionContainer`?e.expression.type===`JSXEmptyExpression`?null:[{type:`paragraph`,children:[{type:`text`,value:H(e.expression)}]}]:e.type===`JSXSpreadChild`?[{type:`paragraph`,children:[{type:`text`,value:`...${H(e.expression)}`}]}]:null}function H(e){if(e.type===`Identifier`)return e.name;if(e.type===`Literal`)return typeof e.value==`string`?JSON.stringify(e.value):String(e.value);if(e.type===`MemberExpression`){let t=H(e.object);return e.computed?`${t}[${H(e.property)}]`:`${t}.${e.property.name}`}if(e.type===`CallExpression`)return`${H(e.callee)}(${e.arguments.map(e=>H(e)).join(`, `)})`;if(e.type===`BinaryExpression`||e.type===`LogicalExpression`){let t=H(e.left),n=H(e.right);return`(${t} ${e.operator} ${n})`}if(e.type===`UnaryExpression`){let t=H(e.argument);return`${e.operator}${t}`}if(e.type===`ConditionalExpression`)return`(${H(e.test)} ? ${H(e.consequent)} : ${H(e.alternate)})`;if(e.type===`ArrayExpression`)return`[${e.elements.filter(e=>e!=null&&e.type!==`SpreadElement`).map(e=>H(e)).join(`, `)}]`;if(e.type===`ObjectExpression`)return`{${e.properties.filter(e=>e.type===`Property`).map(e=>`${e.key.type===`Identifier`?e.key.name:H(e.key)}: ${H(e.value)}`).join(`, `)}}`;if(e.type===`TemplateLiteral`){let t="`";for(let n=0;n<e.quasis.length;n++)t+=e.quasis[n]?.value.raw??``,n<e.expressions.length&&(t+=`\${${H(e.expressions[n])}}`);return t+="`",t}return e.type===`SpreadElement`?`...${H(e.argument)}`:``}function U(e){return e.type===`JSXElement`||e.type===`JSXFragment`}function W(e){return!!e}function G(e){if(e==null)return[];let t=typeof e==`string`?e:String(e);return t===``||t===`undefined`||t===`null`?[]:[{type:`paragraph`,children:[{type:`text`,value:t}]}]}function K(e,t){let n=H(e);if(n===``)return[];try{return G(f(n,t.scope))}catch{return[]}}async function q(e,t){return J(e,t)}async function J(e,t){let n=[];for(let r of e.children){let e=await Y(r,t);n.push(...e)}return{type:`root`,children:n}}async function Y(e,t){if(e.type===`mdxjsEsm`)return[];if(e.type===`mdxFlowExpression`){let n=e,r=n.data?.estree,i=n.value.trim();if(i.startsWith(`/*`)&&i.endsWith(`*/`))return[];if(O(r))return k(n,t,async(e,t)=>(await q({type:`root`,children:e},t)).children);let a=f(n.value,t.scope);return a===``?[]:[{type:`paragraph`,children:[{type:`text`,value:a}]}]}if(e.type===`mdxJsxFlowElement`)return X(e,t);if(`children`in e&&Array.isArray(e.children)){let n=await Z(e.children,t);return[{...e,children:n}]}return[e]}async function X(e,t){return e.name!=null&&g(e.name,t)?v(e,t,q):y(e,t)??[]}async function Z(e,t){let n=[];for(let r of e){if(r.type===`mdxTextExpression`){let e=r,i=e.value.trim();if(i.startsWith(`/*`)&&i.endsWith(`*/`))continue;let a={type:`text`,value:f(e.value,t.scope)};n.push(a);continue}if(r.type===`mdxJsxTextElement`){let e=r;if(e.name!=null&&g(e.name,t)){let r=await v(e,t,q);for(let e of r)if(e.type===`paragraph`&&`children`in e){let t=e;n.push(...t.children)}else n.push(e);continue}let i=y(e,t);if(i!=null)for(let e of i)if(e.type===`paragraph`&&`children`in e){let t=e;n.push(...t.children)}else n.push(e);continue}if(`children`in r&&Array.isArray(r.children)){let e=await Z(r.children,t);n.push({...r,children:e});continue}n.push(r)}return n}export{e as a,o as c,i as d,r as f,l as i,t as l,f as n,s as o,u as r,a as s,q as t,n as u};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@truenine/memory-sync-cli",
3
3
  "type": "module",
4
- "version": "2026.10105.0",
4
+ "version": "2026.10106.107",
5
5
  "description": "TrueNine Life CLI Tools",
6
6
  "author": "TrueNine",
7
7
  "license": "UNLICENSED",
@@ -13,6 +13,9 @@
13
13
  },
14
14
  "exports": {
15
15
  ".": "./dist/index.mjs",
16
+ "./globals": {
17
+ "types": "./dist/globals/index.d.mts"
18
+ },
16
19
  "./package.json": "./package.json"
17
20
  },
18
21
  "main": "./dist/index.mjs",
@@ -47,7 +50,9 @@
47
50
  "yaml": "^2.8.2"
48
51
  },
49
52
  "devDependencies": {
50
- "@truenine/eslint9-config": "^1.0.20",
53
+ "@truenine/eslint9-config": "^2026.10106.0",
54
+ "@types/estree": "^1.0.8",
55
+ "@types/estree-jsx": "^1.0.5",
51
56
  "@types/fs-extra": "^11.0.4",
52
57
  "@types/mdast": "^4.0.4",
53
58
  "@types/node": "^25.0.3",
@@ -55,7 +60,7 @@
55
60
  "@vitest/coverage-v8": "4.0.16",
56
61
  "eslint": "^9.39.2",
57
62
  "fast-check": "^4.5.3",
58
- "tsdown": "0.19.0-beta.1",
63
+ "tsdown": "0.19.0-beta.3",
59
64
  "tsx": "^4.21.0",
60
65
  "typescript": "^5.9.3",
61
66
  "vite": "^7.3.0",