@mindexec/cli 0.2.378 → 0.2.380

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 (23) hide show
  1. package/package.json +1 -1
  2. package/wwwroot/assets/{AdminDashboardPage-B3W0v-wJ.js → AdminDashboardPage-CS4O7czp.js} +1 -1
  3. package/wwwroot/assets/{AppSidebar-DGHPM2aY.js → AppSidebar-C39X2rK2.js} +2 -2
  4. package/wwwroot/assets/AuthPages-Cv8JGasI.js +1 -0
  5. package/wwwroot/assets/{CodePage-IDvgJ1g9.js → CodePage-CtcukAw7.js} +1 -1
  6. package/wwwroot/assets/{CompanyCorePage-C6x4Tlzj.js → CompanyCorePage-CVw3X796.js} +1 -1
  7. package/wwwroot/assets/{ExecutionModePage-FMQgV5xU.js → ExecutionModePage-BxZvRmyD.js} +5 -5
  8. package/wwwroot/assets/{LaunchLeadCapture-Btre_FaA.js → LaunchLeadCapture-Bx9LM0IX.js} +1 -1
  9. package/wwwroot/assets/{MarketingHome-BJI2zEYK.js → MarketingHome-BsyerRpe.js} +1 -1
  10. package/wwwroot/assets/MindCanvas-B21Tzcf1.js +49 -0
  11. package/wwwroot/assets/{PlanMasterPage-O3cMSoPj.js → PlanMasterPage-juSUgUYZ.js} +4 -4
  12. package/wwwroot/assets/PricingPage-_hfu-aoA.js +1 -0
  13. package/wwwroot/assets/{ToolPages-CYlA0nhA.js → ToolPages-n6d8tLbT.js} +9 -9
  14. package/wwwroot/assets/{YouTubeSearchPage-J-gy-4-m.js → YouTubeSearchPage-52qOcKbo.js} +2 -2
  15. package/wwwroot/assets/{canvas-runtime-D2W6Dpfc.js → canvas-runtime-D3amtMwe.js} +3 -3
  16. package/wwwroot/assets/{index-DLbrmSV7.js → index-CRFVvbLN.js} +2 -2
  17. package/wwwroot/assets/{storage-BMivmyrZ.js → storage-RP5Dyxmq.js} +1 -1
  18. package/wwwroot/assets/{supabaseAuthAdapter-D79LnMqE.js → supabaseAuthAdapter-CuJuASQT.js} +1 -1
  19. package/wwwroot/assets/{vendor-icons-678PAT8P.js → vendor-icons-DE3gIReG.js} +22 -32
  20. package/wwwroot/index.html +2 -2
  21. package/wwwroot/assets/AuthPages-DmvL8yac.js +0 -1
  22. package/wwwroot/assets/MindCanvas-CR358MC7.js +0 -48
  23. package/wwwroot/assets/PricingPage-BP4Otwwx.js +0 -1
@@ -1,8 +1,8 @@
1
- import{r as c,j as t}from"./vendor-react-BXzpOyCS.js";import{g as Ce,o as je,x as Me,aL as Qe,aM as ze,aN as Ge,aO as _e}from"./canvas-runtime-D2W6Dpfc.js";import{R as g}from"./app-runtime-xD2Z3NdN.js";import{l as Ve,s as Xe}from"./executionModeSettings-NJqurj-o.js";import{A as Ye,a8 as Ze,R as et,b9 as tt,b7 as nt}from"./vendor-icons-678PAT8P.js";import"./runtimeSettingsPersistenceProjection-BoNWmYjU.js";const Ee=["Concept.KernelHelp","Concept.Hash64","Concept.DefineComposite","Concept.Embed","Concept.Execute"],ot=0x0000000080000000n,F=11400714785074694791n,Z=14029467366897019727n,ve=1609587929392839161n,Ie=9650029242287828579n,we=2870177450012600261n;function m(e){return BigInt.asUintN(64,e)}function q(e,s){const o=BigInt(s);return m(m(e)<<o|m(e)>>64n-o)}function Y(e,s){let o=0n;for(let a=0;a<8;a+=1)o|=BigInt(e[s+a])<<BigInt(a*8);return m(o)}function st(e,s){return(e[s]|e[s+1]<<8|e[s+2]<<16|e[s+3]<<24)>>>0}function Q(e,s){let o=m(e+m(s*Z));return o=q(o,31),m(o*F)}function oe(e,s){let o=m(e^Q(0n,s));return o=m(o*F+Ie),o}function k(e){const s=e.trim();if(!s)throw new Error("signature is empty");const o=new TextEncoder().encode(s),a=o.length;let i=0,r;if(a>=32){let d=m(F+Z),w=m(Z),y=0n,N=m(-F);const u=a-32;for(;i<=u;)d=Q(d,Y(o,i)),i+=8,w=Q(w,Y(o,i)),i+=8,y=Q(y,Y(o,i)),i+=8,N=Q(N,Y(o,i)),i+=8;r=m(q(d,1)+q(w,7)+q(y,12)+q(N,18)),r=oe(r,d),r=oe(r,w),r=oe(r,y),r=oe(r,N)}else r=m(we);for(r=m(r+BigInt(a));i<=a-8;){const d=Q(0n,Y(o,i));r=m(r^d),r=m(q(r,27)*F+Ie),i+=8}for(i<=a-4&&(r=m(r^BigInt(st(o,i))*F),r=m(q(r,23)*Z+ve),i+=4);i<a;)r=m(r^BigInt(o[i])*we),r=m(q(r,11)*F),i+=1;return r=m(r^r>>33n),r=m(r*Z),r=m(r^r>>29n),r=m(r*ve),r=m(r^r>>32n),`0x${r.toString(16).padStart(16,"0")}`}const le=[{category:"Math.Double",signature:"MindExecution.Kernel.Add(System.Double,System.Double)",summary:"a+b",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Sub(System.Double,System.Double)",summary:"a-b",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Mul(System.Double,System.Double)",summary:"a*b",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Div(System.Double,System.Double)",summary:"a/b",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Min(System.Double,System.Double)",summary:"min(a,b)",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Max(System.Double,System.Double)",summary:"max(a,b)",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Round(System.Double)",summary:"round(x)",supported:!0},{category:"Math.Int64",signature:"MindExecution.Kernel.Add(System.Int64,System.Int64)",summary:"a+b",supported:!0},{category:"Math.Int64",signature:"MindExecution.Kernel.Sub(System.Int64,System.Int64)",summary:"a-b",supported:!0},{category:"Math.Int64",signature:"MindExecution.Kernel.Mul(System.Int64,System.Int64)",summary:"a*b",supported:!0},{category:"Compare.Double",signature:"MindExecution.Kernel.Gt(System.Double,System.Double)",summary:"a>b",supported:!0},{category:"Compare.Double",signature:"MindExecution.Kernel.Eq(System.Double,System.Double)",summary:"a==b",supported:!0},{category:"Logic",signature:"MindExecution.Kernel.IfElse(System.Boolean,System.Object,System.Object)",summary:"cond ? a : b",supported:!0},{category:"String",signature:"MindExecution.Kernel.Concat(System.String,System.String)",summary:"a+b",supported:!0},{category:"String",signature:"MindExecution.Kernel.Length(System.String)",summary:"len(s)",supported:!0},{category:"String",signature:"MindExecution.Kernel.ToString(System.Object)",summary:"x?.ToString()",supported:!0},{category:"Convert",signature:"MindExecution.Kernel.ToDouble(System.Object)",summary:"Convert.ToDouble",supported:!0},{category:"Convert",signature:"MindExecution.Kernel.ToInt64(System.Object)",summary:"Convert.ToInt64",supported:!0},{category:"Json",signature:"MindExecution.Kernel.Json.Parse(System.String)",summary:"parse JSON",supported:!0},{category:"Json",signature:"MindExecution.Kernel.Json.Stringify(System.Object)",summary:"serialize JSON",supported:!0},{category:"System",signature:"MindExecution.Kernel.System.GetManifest()",summary:"local manifest subset",supported:!0},{category:"System",signature:"MindExecution.Kernel.System.SignatureToId(System.String)",summary:"signature -> local 0x hash",supported:!0},{category:"Debug",signature:"MindExecution.Kernel.Print(System.Object)",summary:"ToString",supported:!0},{category:"Debug",signature:"MindExecution.Kernel.TypeOf(System.Object)",summary:"JavaScript type name",supported:!0},{category:"Time",signature:"MindExecution.Kernel.UtcNow()",summary:"UTC ISO timestamp",supported:!0},{category:"Hash",signature:"MindExecution.Kernel.Hash.Sha256(System.String)",summary:"adapter-gated in React shell",supported:!1}],Ke=new Map(le.map(e=>[k(e.signature),e]));function x(e){const s=typeof e=="number"?e:Number(e);if(!Number.isFinite(s))throw new Error(`Expected numeric value, got ${A(e)}.`);return s}function J(e){return Math.trunc(x(e))}function L(e,s){if(typeof e=="number"&&Number.isInteger(e)&&e>=0)return`0x${e.toString(16).padStart(16,"0")}`;if(typeof e!="string")throw new Error(`${s} must be a hex slot string or integer.`);const o=e.trim();if(/^0x[0-9a-f]{1,16}$/i.test(o))return`0x${o.slice(2).toLowerCase().padStart(16,"0")}`;if(/^\d+$/.test(o))return`0x${Number(o).toString(16).padStart(16,"0")}`;throw new Error(`${s} must be 0x[0-9a-f]{16}, short hex, or integer.`)}function rt(e){return`0x${(ot+BigInt(e)).toString(16).padStart(16,"0")}`}function Le(e){const s=JSON.parse(e),o=Array.isArray(s.literals)?s.literals:[],a=Array.isArray(s.instructions)?s.instructions:[];if(a.length===0)throw new Error("IR must include an instructions array.");return{literals:o,instructions:a}}function $e(e){var o;if(typeof e=="string"&&e.trim().startsWith("$")){const a=e.trim().slice(1).trim();if(!a)throw new Error("target signature cannot be empty.");return{id:k(a),signature:a}}const s=L(e,"target");return{id:s,signature:(o=Ke.get(s))==null?void 0:o.signature}}function A(e){if(e===void 0)return"<unset>";if(e===null)return"<null>";if(typeof e=="string")return JSON.stringify(e);if(typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}function it(e){if(!e||typeof e!="object")throw new Error("Literal entries must be objects.");const s=e,o=L(s.id??s.slot,"literal.id"),a=String(s.type??"json").toLowerCase(),i=s.value;return a==="null"?{slot:o,value:null}:a==="bool"?{slot:o,value:!!i}:a==="int"?{slot:o,value:J(i)}:a==="double"?{slot:o,value:x(i)}:a==="string"?{slot:o,value:String(i??"")}:{slot:o,value:i}}const at={"MindExecution.Kernel.Add(System.Double,System.Double)":e=>x(e[0])+x(e[1]),"MindExecution.Kernel.Sub(System.Double,System.Double)":e=>x(e[0])-x(e[1]),"MindExecution.Kernel.Mul(System.Double,System.Double)":e=>x(e[0])*x(e[1]),"MindExecution.Kernel.Div(System.Double,System.Double)":e=>x(e[1])===0?Number.NaN:x(e[0])/x(e[1]),"MindExecution.Kernel.Min(System.Double,System.Double)":e=>Math.min(x(e[0]),x(e[1])),"MindExecution.Kernel.Max(System.Double,System.Double)":e=>Math.max(x(e[0]),x(e[1])),"MindExecution.Kernel.Round(System.Double)":e=>Math.round(x(e[0])),"MindExecution.Kernel.Add(System.Int64,System.Int64)":e=>J(e[0])+J(e[1]),"MindExecution.Kernel.Sub(System.Int64,System.Int64)":e=>J(e[0])-J(e[1]),"MindExecution.Kernel.Mul(System.Int64,System.Int64)":e=>J(e[0])*J(e[1]),"MindExecution.Kernel.Gt(System.Double,System.Double)":e=>x(e[0])>x(e[1]),"MindExecution.Kernel.Eq(System.Double,System.Double)":e=>x(e[0])===x(e[1]),"MindExecution.Kernel.IfElse(System.Boolean,System.Object,System.Object)":e=>e[0]?e[1]:e[2],"MindExecution.Kernel.Concat(System.String,System.String)":e=>`${e[0]??""}${e[1]??""}`,"MindExecution.Kernel.Length(System.String)":e=>String(e[0]??"").length,"MindExecution.Kernel.ToString(System.Object)":e=>e[0]==null?"":String(e[0]),"MindExecution.Kernel.ToDouble(System.Object)":e=>x(e[0]),"MindExecution.Kernel.ToInt64(System.Object)":e=>J(e[0]),"MindExecution.Kernel.Json.Parse(System.String)":e=>JSON.parse(String(e[0]??"null")),"MindExecution.Kernel.Json.Stringify(System.Object)":e=>JSON.stringify(e[0]),"MindExecution.Kernel.System.GetManifest()":()=>le.map(e=>({...e,id:k(e.signature)})),"MindExecution.Kernel.System.SignatureToId(System.String)":e=>k(String(e[0]??"")),"MindExecution.Kernel.Print(System.Object)":e=>A(e[0]),"MindExecution.Kernel.TypeOf(System.Object)":e=>e[0]===null?"null":Array.isArray(e[0])?"array":typeof e[0],"MindExecution.Kernel.UtcNow()":()=>new Date().toISOString()};function Oe(e){const s=e.trim();if(!s)return[];if(s.startsWith("[")){const o=JSON.parse(s);if(!Array.isArray(o))throw new Error("Watch JSON must be an array of slots.");return o.map(a=>L(a,"watch"))}return s.split(/[\s,]+/).filter(Boolean).map(o=>L(o,"watch"))}function Re(e,s,o,a,i,r=0){var N;if(r>8)throw new Error("FLOW recursion limit exceeded.");const d=new Map;for(const[u,l]of a.entries())d.set(u,l);for(const u of e){const{slot:l,value:$}=it(u);d.set(l,$),i.push(`${" ".repeat(r)}literal ${l} = ${A($)}`)}let w,y=!1;for(const[u,l]of s.entries()){const $=String(l.op??"").trim().toUpperCase();if($==="SET"){const f=L(l.dstSlot,`instructions[${u}].dstSlot`),C=L(l.srcSlot,`instructions[${u}].srcSlot`),O=d.get(C);d.set(f,O),i.push(`${" ".repeat(r)}${u}: SET ${f} = ${A(O)} from ${C}`);continue}if($==="CALL"){const f=$e(l.target??l.targetId),C=f.signature??((N=Ke.get(f.id))==null?void 0:N.signature),O=C?at[C]:void 0;if(!C||!O)throw new Error(`CALL target ${f.id} is not supported by the React local kernel.`);const U=(Array.isArray(l.args)?l.args.map(P=>L(P,`instructions[${u}].args`)):[]).map(P=>d.get(P)),I=O(U),R=l.dstSlot==null?null:L(l.dstSlot,`instructions[${u}].dstSlot`);R&&d.set(R,I),i.push(`${" ".repeat(r)}${u}: CALL ${C} -> ${R??"<no dst>"} = ${A(I)}`);continue}if($==="FLOW"){const f=$e(l.target??l.targetId),C=o.get(f.id);if(!C)throw new Error(`FLOW target ${f.id} is not registered in the React local composite registry.`);const O=Array.isArray(l.args)?l.args.map(R=>L(R,`instructions[${u}].args`)):[],j=new Map;for(const[R,P]of O.entries())j.set(rt(R),d.get(P));i.push(`${" ".repeat(r)}${u}: FLOW ${C.signature} (${f.id}) args=${O.length}`);const U=Re(C.literals,C.instructions,o,j,i,r+1),I=l.dstSlot==null?null:L(l.dstSlot,`instructions[${u}].dstSlot`);I&&U.didReturn&&d.set(I,U.returned),i.push(`${" ".repeat(r)}${u}: FLOW return -> ${I??"<no dst>"} = ${A(U.returned)}`);continue}if($==="RETURN"||$==="RET"){const f=l.srcSlot==null?null:L(l.srcSlot,`instructions[${u}].srcSlot`);w=f?d.get(f):void 0,y=!0,i.push(`${" ".repeat(r)}${u}: RETURN ${f??"<void>"} = ${A(w)}`);break}throw new Error(`Unknown op at instructions[${u}]: ${$||"<empty>"}`)}return{memory:d,returned:w,didReturn:y}}function ct(e,s,o=new Map){const{literals:a,instructions:i}=Le(e),r=[],{memory:d,returned:w}=Re(a,i,o,new Map,r),y=Oe(s),u=(y.length>0?y:Array.from(d.keys()).sort().slice(0,64)).map(l=>`- ${l} = ${A(d.get(l))}`);return[`OK: executed locally (atoms=${i.length}, literals=${a.length})`,`return: ${A(w)}`,"","trace:",...r,"",y.length>0?"watch:":"root user-space slots:",...u.length>0?u:["(none)"],"","adapter: local-react-shell"].join(`
1
+ import{r as c,j as t}from"./vendor-react-BXzpOyCS.js";import{g as Ce,y as je,A as Me,aM as Qe,aN as ze,aO as Ge,aP as _e}from"./canvas-runtime-D3amtMwe.js";import{R as g}from"./app-runtime-xD2Z3NdN.js";import{l as Ve,s as Xe}from"./executionModeSettings-NJqurj-o.js";import{an as Ye,a3 as Ze,R as et,b7 as tt,b5 as nt}from"./vendor-icons-DE3gIReG.js";import"./runtimeSettingsPersistenceProjection-BoNWmYjU.js";const Ee=["Concept.KernelHelp","Concept.Hash64","Concept.DefineComposite","Concept.Embed","Concept.Execute"],ot=0x0000000080000000n,F=11400714785074694791n,Z=14029467366897019727n,ve=1609587929392839161n,Ie=9650029242287828579n,we=2870177450012600261n;function m(e){return BigInt.asUintN(64,e)}function q(e,s){const o=BigInt(s);return m(m(e)<<o|m(e)>>64n-o)}function Y(e,s){let o=0n;for(let a=0;a<8;a+=1)o|=BigInt(e[s+a])<<BigInt(a*8);return m(o)}function st(e,s){return(e[s]|e[s+1]<<8|e[s+2]<<16|e[s+3]<<24)>>>0}function Q(e,s){let o=m(e+m(s*Z));return o=q(o,31),m(o*F)}function oe(e,s){let o=m(e^Q(0n,s));return o=m(o*F+Ie),o}function k(e){const s=e.trim();if(!s)throw new Error("signature is empty");const o=new TextEncoder().encode(s),a=o.length;let i=0,r;if(a>=32){let d=m(F+Z),w=m(Z),y=0n,N=m(-F);const u=a-32;for(;i<=u;)d=Q(d,Y(o,i)),i+=8,w=Q(w,Y(o,i)),i+=8,y=Q(y,Y(o,i)),i+=8,N=Q(N,Y(o,i)),i+=8;r=m(q(d,1)+q(w,7)+q(y,12)+q(N,18)),r=oe(r,d),r=oe(r,w),r=oe(r,y),r=oe(r,N)}else r=m(we);for(r=m(r+BigInt(a));i<=a-8;){const d=Q(0n,Y(o,i));r=m(r^d),r=m(q(r,27)*F+Ie),i+=8}for(i<=a-4&&(r=m(r^BigInt(st(o,i))*F),r=m(q(r,23)*Z+ve),i+=4);i<a;)r=m(r^BigInt(o[i])*we),r=m(q(r,11)*F),i+=1;return r=m(r^r>>33n),r=m(r*Z),r=m(r^r>>29n),r=m(r*ve),r=m(r^r>>32n),`0x${r.toString(16).padStart(16,"0")}`}const le=[{category:"Math.Double",signature:"MindExecution.Kernel.Add(System.Double,System.Double)",summary:"a+b",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Sub(System.Double,System.Double)",summary:"a-b",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Mul(System.Double,System.Double)",summary:"a*b",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Div(System.Double,System.Double)",summary:"a/b",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Min(System.Double,System.Double)",summary:"min(a,b)",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Max(System.Double,System.Double)",summary:"max(a,b)",supported:!0},{category:"Math.Double",signature:"MindExecution.Kernel.Round(System.Double)",summary:"round(x)",supported:!0},{category:"Math.Int64",signature:"MindExecution.Kernel.Add(System.Int64,System.Int64)",summary:"a+b",supported:!0},{category:"Math.Int64",signature:"MindExecution.Kernel.Sub(System.Int64,System.Int64)",summary:"a-b",supported:!0},{category:"Math.Int64",signature:"MindExecution.Kernel.Mul(System.Int64,System.Int64)",summary:"a*b",supported:!0},{category:"Compare.Double",signature:"MindExecution.Kernel.Gt(System.Double,System.Double)",summary:"a>b",supported:!0},{category:"Compare.Double",signature:"MindExecution.Kernel.Eq(System.Double,System.Double)",summary:"a==b",supported:!0},{category:"Logic",signature:"MindExecution.Kernel.IfElse(System.Boolean,System.Object,System.Object)",summary:"cond ? a : b",supported:!0},{category:"String",signature:"MindExecution.Kernel.Concat(System.String,System.String)",summary:"a+b",supported:!0},{category:"String",signature:"MindExecution.Kernel.Length(System.String)",summary:"len(s)",supported:!0},{category:"String",signature:"MindExecution.Kernel.ToString(System.Object)",summary:"x?.ToString()",supported:!0},{category:"Convert",signature:"MindExecution.Kernel.ToDouble(System.Object)",summary:"Convert.ToDouble",supported:!0},{category:"Convert",signature:"MindExecution.Kernel.ToInt64(System.Object)",summary:"Convert.ToInt64",supported:!0},{category:"Json",signature:"MindExecution.Kernel.Json.Parse(System.String)",summary:"parse JSON",supported:!0},{category:"Json",signature:"MindExecution.Kernel.Json.Stringify(System.Object)",summary:"serialize JSON",supported:!0},{category:"System",signature:"MindExecution.Kernel.System.GetManifest()",summary:"local manifest subset",supported:!0},{category:"System",signature:"MindExecution.Kernel.System.SignatureToId(System.String)",summary:"signature -> local 0x hash",supported:!0},{category:"Debug",signature:"MindExecution.Kernel.Print(System.Object)",summary:"ToString",supported:!0},{category:"Debug",signature:"MindExecution.Kernel.TypeOf(System.Object)",summary:"JavaScript type name",supported:!0},{category:"Time",signature:"MindExecution.Kernel.UtcNow()",summary:"UTC ISO timestamp",supported:!0},{category:"Hash",signature:"MindExecution.Kernel.Hash.Sha256(System.String)",summary:"adapter-gated in React shell",supported:!1}],Ke=new Map(le.map(e=>[k(e.signature),e]));function x(e){const s=typeof e=="number"?e:Number(e);if(!Number.isFinite(s))throw new Error(`Expected numeric value, got ${A(e)}.`);return s}function J(e){return Math.trunc(x(e))}function O(e,s){if(typeof e=="number"&&Number.isInteger(e)&&e>=0)return`0x${e.toString(16).padStart(16,"0")}`;if(typeof e!="string")throw new Error(`${s} must be a hex slot string or integer.`);const o=e.trim();if(/^0x[0-9a-f]{1,16}$/i.test(o))return`0x${o.slice(2).toLowerCase().padStart(16,"0")}`;if(/^\d+$/.test(o))return`0x${Number(o).toString(16).padStart(16,"0")}`;throw new Error(`${s} must be 0x[0-9a-f]{16}, short hex, or integer.`)}function rt(e){return`0x${(ot+BigInt(e)).toString(16).padStart(16,"0")}`}function Oe(e){const s=JSON.parse(e),o=Array.isArray(s.literals)?s.literals:[],a=Array.isArray(s.instructions)?s.instructions:[];if(a.length===0)throw new Error("IR must include an instructions array.");return{literals:o,instructions:a}}function $e(e){var o;if(typeof e=="string"&&e.trim().startsWith("$")){const a=e.trim().slice(1).trim();if(!a)throw new Error("target signature cannot be empty.");return{id:k(a),signature:a}}const s=O(e,"target");return{id:s,signature:(o=Ke.get(s))==null?void 0:o.signature}}function A(e){if(e===void 0)return"<unset>";if(e===null)return"<null>";if(typeof e=="string")return JSON.stringify(e);if(typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}function it(e){if(!e||typeof e!="object")throw new Error("Literal entries must be objects.");const s=e,o=O(s.id??s.slot,"literal.id"),a=String(s.type??"json").toLowerCase(),i=s.value;return a==="null"?{slot:o,value:null}:a==="bool"?{slot:o,value:!!i}:a==="int"?{slot:o,value:J(i)}:a==="double"?{slot:o,value:x(i)}:a==="string"?{slot:o,value:String(i??"")}:{slot:o,value:i}}const at={"MindExecution.Kernel.Add(System.Double,System.Double)":e=>x(e[0])+x(e[1]),"MindExecution.Kernel.Sub(System.Double,System.Double)":e=>x(e[0])-x(e[1]),"MindExecution.Kernel.Mul(System.Double,System.Double)":e=>x(e[0])*x(e[1]),"MindExecution.Kernel.Div(System.Double,System.Double)":e=>x(e[1])===0?Number.NaN:x(e[0])/x(e[1]),"MindExecution.Kernel.Min(System.Double,System.Double)":e=>Math.min(x(e[0]),x(e[1])),"MindExecution.Kernel.Max(System.Double,System.Double)":e=>Math.max(x(e[0]),x(e[1])),"MindExecution.Kernel.Round(System.Double)":e=>Math.round(x(e[0])),"MindExecution.Kernel.Add(System.Int64,System.Int64)":e=>J(e[0])+J(e[1]),"MindExecution.Kernel.Sub(System.Int64,System.Int64)":e=>J(e[0])-J(e[1]),"MindExecution.Kernel.Mul(System.Int64,System.Int64)":e=>J(e[0])*J(e[1]),"MindExecution.Kernel.Gt(System.Double,System.Double)":e=>x(e[0])>x(e[1]),"MindExecution.Kernel.Eq(System.Double,System.Double)":e=>x(e[0])===x(e[1]),"MindExecution.Kernel.IfElse(System.Boolean,System.Object,System.Object)":e=>e[0]?e[1]:e[2],"MindExecution.Kernel.Concat(System.String,System.String)":e=>`${e[0]??""}${e[1]??""}`,"MindExecution.Kernel.Length(System.String)":e=>String(e[0]??"").length,"MindExecution.Kernel.ToString(System.Object)":e=>e[0]==null?"":String(e[0]),"MindExecution.Kernel.ToDouble(System.Object)":e=>x(e[0]),"MindExecution.Kernel.ToInt64(System.Object)":e=>J(e[0]),"MindExecution.Kernel.Json.Parse(System.String)":e=>JSON.parse(String(e[0]??"null")),"MindExecution.Kernel.Json.Stringify(System.Object)":e=>JSON.stringify(e[0]),"MindExecution.Kernel.System.GetManifest()":()=>le.map(e=>({...e,id:k(e.signature)})),"MindExecution.Kernel.System.SignatureToId(System.String)":e=>k(String(e[0]??"")),"MindExecution.Kernel.Print(System.Object)":e=>A(e[0]),"MindExecution.Kernel.TypeOf(System.Object)":e=>e[0]===null?"null":Array.isArray(e[0])?"array":typeof e[0],"MindExecution.Kernel.UtcNow()":()=>new Date().toISOString()};function Le(e){const s=e.trim();if(!s)return[];if(s.startsWith("[")){const o=JSON.parse(s);if(!Array.isArray(o))throw new Error("Watch JSON must be an array of slots.");return o.map(a=>O(a,"watch"))}return s.split(/[\s,]+/).filter(Boolean).map(o=>O(o,"watch"))}function Re(e,s,o,a,i,r=0){var N;if(r>8)throw new Error("FLOW recursion limit exceeded.");const d=new Map;for(const[u,l]of a.entries())d.set(u,l);for(const u of e){const{slot:l,value:$}=it(u);d.set(l,$),i.push(`${" ".repeat(r)}literal ${l} = ${A($)}`)}let w,y=!1;for(const[u,l]of s.entries()){const $=String(l.op??"").trim().toUpperCase();if($==="SET"){const f=O(l.dstSlot,`instructions[${u}].dstSlot`),C=O(l.srcSlot,`instructions[${u}].srcSlot`),L=d.get(C);d.set(f,L),i.push(`${" ".repeat(r)}${u}: SET ${f} = ${A(L)} from ${C}`);continue}if($==="CALL"){const f=$e(l.target??l.targetId),C=f.signature??((N=Ke.get(f.id))==null?void 0:N.signature),L=C?at[C]:void 0;if(!C||!L)throw new Error(`CALL target ${f.id} is not supported by the React local kernel.`);const U=(Array.isArray(l.args)?l.args.map(P=>O(P,`instructions[${u}].args`)):[]).map(P=>d.get(P)),I=L(U),R=l.dstSlot==null?null:O(l.dstSlot,`instructions[${u}].dstSlot`);R&&d.set(R,I),i.push(`${" ".repeat(r)}${u}: CALL ${C} -> ${R??"<no dst>"} = ${A(I)}`);continue}if($==="FLOW"){const f=$e(l.target??l.targetId),C=o.get(f.id);if(!C)throw new Error(`FLOW target ${f.id} is not registered in the React local composite registry.`);const L=Array.isArray(l.args)?l.args.map(R=>O(R,`instructions[${u}].args`)):[],j=new Map;for(const[R,P]of L.entries())j.set(rt(R),d.get(P));i.push(`${" ".repeat(r)}${u}: FLOW ${C.signature} (${f.id}) args=${L.length}`);const U=Re(C.literals,C.instructions,o,j,i,r+1),I=l.dstSlot==null?null:O(l.dstSlot,`instructions[${u}].dstSlot`);I&&U.didReturn&&d.set(I,U.returned),i.push(`${" ".repeat(r)}${u}: FLOW return -> ${I??"<no dst>"} = ${A(U.returned)}`);continue}if($==="RETURN"||$==="RET"){const f=l.srcSlot==null?null:O(l.srcSlot,`instructions[${u}].srcSlot`);w=f?d.get(f):void 0,y=!0,i.push(`${" ".repeat(r)}${u}: RETURN ${f??"<void>"} = ${A(w)}`);break}throw new Error(`Unknown op at instructions[${u}]: ${$||"<empty>"}`)}return{memory:d,returned:w,didReturn:y}}function ct(e,s,o=new Map){const{literals:a,instructions:i}=Oe(e),r=[],{memory:d,returned:w}=Re(a,i,o,new Map,r),y=Le(s),u=(y.length>0?y:Array.from(d.keys()).sort().slice(0,64)).map(l=>`- ${l} = ${A(d.get(l))}`);return[`OK: executed locally (atoms=${i.length}, literals=${a.length})`,`return: ${A(w)}`,"","trace:",...r,"",y.length>0?"watch:":"root user-space slots:",...u.length>0?u:["(none)"],"","adapter: local-react-shell"].join(`
2
2
  `)}function lt(e,s,o=16){const a=`${e}
3
3
 
4
- Description: ${s}`,i=Array.from({length:o},(d,w)=>{const y=BigInt(k(`${a}#${w}`)),N=Number(y&0xffffn)/32767.5-1;return Number(N.toFixed(6))}),r=a.trim().length===0?0:a.trim().split(/\s+/).length;return{input:a,vector:i,tokens:r}}const Ne=JSON.stringify({literals:[{id:"0x0000000000000000",type:"double",value:1},{id:"0x0000000000000001",type:"double",value:10}],instructions:[{op:"CALL",target:"$MindExecution.Kernel.Add(System.Double,System.Double)",args:["0x0000000000000000","0x0000000000000001"],dstSlot:"0x0000000000000002"},{op:"RETURN",srcSlot:"0x0000000000000002"}]},null,2),De=JSON.stringify({literals:[],instructions:[{op:"CALL",target:"$MindExecution.Kernel.Add(System.Double,System.Double)",args:["0x0000000080000000","0x0000000080000001"],dstSlot:"0x0000000000000000"},{op:"RETURN",srcSlot:"0x0000000000000000"}]},null,2);function dt(e,s){var a;const o=((a=e.latestRows)==null?void 0:a[0])||{};return{provider:e.provider||"LocalBridgeJsonConceptStore",adapterState:e.adapterState||"json-row-projection",nativeSqliteAdapterState:e.nativeSqliteAdapterState||"adapter-gated",paidEmbeddingAdapterState:e.paidEmbeddingAdapterState||"adapter-gated",originalTable:e.originalTable||"tbl_concepts",rowCount:Number(e.rowCount||0),indexPath:e.indexPath||"",latestRowId:(s==null?void 0:s.id)||o.id||"",latestRowSqlKey:(s==null?void 0:s.sqlKey)||o.sqlKey||"",latestRowSignature:(s==null?void 0:s.signature)||o.signature||"",sqliteReadyColumns:(e.sqliteReadyColumns||[]).slice(0,16)}}function ht(){const[e,s]=c.useState(Ne),[o,a]=c.useState(()=>Ve()),[i,r]=c.useState("MindExecution.Kernel.Add(System.Double,System.Double)"),[d,w]=c.useState("MindExecution.Dynamic.Sum(System.Double,System.Double)"),[y,N]=c.useState("Adds two double values through a browser-local FLOW composite."),[u,l]=c.useState(De),[$,f]=c.useState("MindExecution.Dynamic.Sum(System.Double,System.Double)"),[C,O]=c.useState("Adds two doubles through a Concept FLOW composite. Browser preview only."),[j,U]=c.useState([]),[I,R]=c.useState("0x0000000000000002"),[P,M]=c.useState(""),[z,de]=c.useState(!1),[H,se]=c.useState("idle"),[ue,pe]=c.useState(""),[Ae,me]=c.useState(""),[ke,ge]=c.useState(""),[h,xe]=c.useState(null),[p,Pe]=c.useState(null),[re,ie]=c.useState("idle"),[Se,he]=c.useState(""),G=c.useRef(0),_=c.useMemo(()=>le.map(n=>({...n,id:k(n.signature)})),[]),be=c.useMemo(()=>new Map(j.map(n=>[n.id,n])),[j]),T=o.executionMode,V=o.directInstructionQueueMode,ye=c.useCallback((n,S)=>{const v=Xe({...o,...n},S);a(v),g.emit("executionMode.settings.changed",{source:S,executionMode:v.executionMode,directInstructionQueueMode:v.directInstructionQueueMode})},[o]),Te=c.useCallback(()=>{de(!0),g.emit("executionMode.tool.run",{toolName:T==="PureLLM"?"PureLLM.AdapterGate":"Concept.Execute"}),g.emit("executionMode.run.local",{hasPrompt:!!e.trim(),mode:T,directInstructionQueueMode:V,adapterGated:T==="PureLLM"}),window.setTimeout(()=>{const n=e.trim();if(T==="PureLLM")M(["PureLLM mode selected.","","Live direct LLM execution is adapter-gated in this React shell.",`Queue mode: ${V}`,"","Use Concept mode for deterministic browser-local JSON IR testing until a verified Agent adapter is connected."].join(`
5
- `));else if(!n)M("ERROR: Enter a prompt or JSON IR before running.");else if(n.startsWith("{"))try{const S=ct(n,I,be);g.emit("executionMode.ir.executed",{watchSlots:Oe(I).length,compositeCount:j.length}),M(S)}catch(S){g.emit("executionMode.ir.failed",{message:S instanceof Error?S.message:String(S)}),M(`ERROR: Invalid JSON IR. ${String(S)}`)}else/1\s+to\s+10/i.test(n)?M(`Concept result: 55
4
+ Description: ${s}`,i=Array.from({length:o},(d,w)=>{const y=BigInt(k(`${a}#${w}`)),N=Number(y&0xffffn)/32767.5-1;return Number(N.toFixed(6))}),r=a.trim().length===0?0:a.trim().split(/\s+/).length;return{input:a,vector:i,tokens:r}}const Ne=JSON.stringify({literals:[{id:"0x0000000000000000",type:"double",value:1},{id:"0x0000000000000001",type:"double",value:10}],instructions:[{op:"CALL",target:"$MindExecution.Kernel.Add(System.Double,System.Double)",args:["0x0000000000000000","0x0000000000000001"],dstSlot:"0x0000000000000002"},{op:"RETURN",srcSlot:"0x0000000000000002"}]},null,2),De=JSON.stringify({literals:[],instructions:[{op:"CALL",target:"$MindExecution.Kernel.Add(System.Double,System.Double)",args:["0x0000000080000000","0x0000000080000001"],dstSlot:"0x0000000000000000"},{op:"RETURN",srcSlot:"0x0000000000000000"}]},null,2);function dt(e,s){var a;const o=((a=e.latestRows)==null?void 0:a[0])||{};return{provider:e.provider||"LocalBridgeJsonConceptStore",adapterState:e.adapterState||"json-row-projection",nativeSqliteAdapterState:e.nativeSqliteAdapterState||"adapter-gated",paidEmbeddingAdapterState:e.paidEmbeddingAdapterState||"adapter-gated",originalTable:e.originalTable||"tbl_concepts",rowCount:Number(e.rowCount||0),indexPath:e.indexPath||"",latestRowId:(s==null?void 0:s.id)||o.id||"",latestRowSqlKey:(s==null?void 0:s.sqlKey)||o.sqlKey||"",latestRowSignature:(s==null?void 0:s.signature)||o.signature||"",sqliteReadyColumns:(e.sqliteReadyColumns||[]).slice(0,16)}}function ht(){const[e,s]=c.useState(Ne),[o,a]=c.useState(()=>Ve()),[i,r]=c.useState("MindExecution.Kernel.Add(System.Double,System.Double)"),[d,w]=c.useState("MindExecution.Dynamic.Sum(System.Double,System.Double)"),[y,N]=c.useState("Adds two double values through a browser-local FLOW composite."),[u,l]=c.useState(De),[$,f]=c.useState("MindExecution.Dynamic.Sum(System.Double,System.Double)"),[C,L]=c.useState("Adds two doubles through a Concept FLOW composite. Browser preview only."),[j,U]=c.useState([]),[I,R]=c.useState("0x0000000000000002"),[P,M]=c.useState(""),[z,de]=c.useState(!1),[H,se]=c.useState("idle"),[ue,pe]=c.useState(""),[Ae,me]=c.useState(""),[ke,ge]=c.useState(""),[h,xe]=c.useState(null),[p,Pe]=c.useState(null),[re,ie]=c.useState("idle"),[Se,he]=c.useState(""),G=c.useRef(0),_=c.useMemo(()=>le.map(n=>({...n,id:k(n.signature)})),[]),be=c.useMemo(()=>new Map(j.map(n=>[n.id,n])),[j]),T=o.executionMode,V=o.directInstructionQueueMode,ye=c.useCallback((n,S)=>{const v=Xe({...o,...n},S);a(v),g.emit("executionMode.settings.changed",{source:S,executionMode:v.executionMode,directInstructionQueueMode:v.directInstructionQueueMode})},[o]),Te=c.useCallback(()=>{de(!0),g.emit("executionMode.tool.run",{toolName:T==="PureLLM"?"PureLLM.AdapterGate":"Concept.Execute"}),g.emit("executionMode.run.local",{hasPrompt:!!e.trim(),mode:T,directInstructionQueueMode:V,adapterGated:T==="PureLLM"}),window.setTimeout(()=>{const n=e.trim();if(T==="PureLLM")M(["PureLLM mode selected.","","Live direct LLM execution is adapter-gated in this React shell.",`Queue mode: ${V}`,"","Use Concept mode for deterministic browser-local JSON IR testing until a verified Agent adapter is connected."].join(`
5
+ `));else if(!n)M("ERROR: Enter a prompt or JSON IR before running.");else if(n.startsWith("{"))try{const S=ct(n,I,be);g.emit("executionMode.ir.executed",{watchSlots:Le(I).length,compositeCount:j.length}),M(S)}catch(S){g.emit("executionMode.ir.failed",{message:S instanceof Error?S.message:String(S)}),M(`ERROR: Invalid JSON IR. ${String(S)}`)}else/1\s+to\s+10/i.test(n)?M(`Concept result: 55
6
6
 
7
7
  This is a local React execution shell. Connect an Agent adapter before treating output as real external execution.`):M(`Concept result:
8
8
  - Parsed prompt: ${n}
@@ -11,8 +11,8 @@ This is a local React execution shell. Connect an Agent adapter before treating
11
11
  signature: ${i.trim()||"<empty>"}
12
12
  id: ${n}
13
13
 
14
- Note: React uses the original xxHash64(seed=0) signature hash for Concept ID parity.`)},[i]),Je=c.useCallback(async()=>{var S,v;g.emit("executionMode.tool.run",{toolName:"Concept.DefineComposite"});const n=d.trim();if(!n){M("ERROR: Concept.DefineComposite requires a non-empty signature.");return}try{const{literals:K,instructions:B}=Le(u),E=k(n),fe=j.some(D=>D.id===E),ee={id:E,signature:n,category:"Composite.Dynamic",description:y.trim(),ir:u,literals:K,instructions:B,createdAt:new Date().toISOString()};U(D=>[ee,...D.filter(W=>W.id!==E)].slice(0,16)),g.emit("executionMode.defineComposite",{id:E,atomCount:B.length,literalCount:K.length,replaced:fe});const ae=["Concept.DefineComposite",`OK: composite ${fe?"replaced":"defined"} ${E}`,`signature: ${n}`,`atoms: ${B.length}`,`literals: ${K.length}`,"","Store: saving bridge-backed Concept row projection..."].join(`
14
+ Note: React uses the original xxHash64(seed=0) signature hash for Concept ID parity.`)},[i]),Je=c.useCallback(async()=>{var S,v;g.emit("executionMode.tool.run",{toolName:"Concept.DefineComposite"});const n=d.trim();if(!n){M("ERROR: Concept.DefineComposite requires a non-empty signature.");return}try{const{literals:K,instructions:B}=Oe(u),E=k(n),fe=j.some(D=>D.id===E),ee={id:E,signature:n,category:"Composite.Dynamic",description:y.trim(),ir:u,literals:K,instructions:B,createdAt:new Date().toISOString()};U(D=>[ee,...D.filter(W=>W.id!==E)].slice(0,16)),g.emit("executionMode.defineComposite",{id:E,atomCount:B.length,literalCount:K.length,replaced:fe});const ae=["Concept.DefineComposite",`OK: composite ${fe?"replaced":"defined"} ${E}`,`signature: ${n}`,`atoms: ${B.length}`,`literals: ${K.length}`,"","Store: saving bridge-backed Concept row projection..."].join(`
15
15
  `);M(ae);const te=G.current+1;G.current=te,se("saving"),pe(""),me(""),ge(""),xe(null),g.emit("executionMode.defineComposite.persist.requested",{id:E,hashAlgorithm:"xxHash64(seed=0, utf8-trim)",atomCount:B.length,literalCount:K.length});try{const D=Ce(),W=await je(D),ce=Me(W.status),b=await Qe({id:E,signature:n,category:ee.category,conceptType:"Axiom",description:ee.description,ir:ee.ir,embeddingDimensions:16},ce,D);if(G.current!==te){g.emit("async.staleIgnored",{type:"executionMode.defineComposite.persist",id:E});return}if(!b.success||!b.path)throw new Error(b.error||"Concept store did not return a saved path.");se("saved"),pe(b.path),me(b.sha256||"");const[X,He]=await Promise.all([ze(ce,D),Ge(E,ce,D)]);if(G.current!==te){g.emit("async.staleIgnored",{type:"executionMode.defineComposite.readback",id:E});return}const ne=dt(X,He);xe(ne),g.emit("executionMode.defineComposite.persist.completed",{id:E,path:b.path,sha256:b.sha256,hashAlgorithm:b.hashAlgorithm,vectorDimensions:((S=b.embeddingVector)==null?void 0:S.length)??0,rowCount:ne.rowCount,nativeSqliteAdapterState:ne.nativeSqliteAdapterState,paidEmbeddingAdapterState:ne.paidEmbeddingAdapterState}),M([ae.replace("Store: saving bridge-backed Concept row projection...","Store: saved bridge-backed Concept row projection."),`path: ${b.path}`,b.indexPath?`index: ${b.indexPath}`:"",b.sqlKey?`sqlKey: ${b.sqlKey}`:"",b.sha256?`sha256: ${b.sha256}`:"",X.rowCount!==void 0?`rows: ${X.rowCount}`:"",X.adapterState?`adapter: ${X.adapterState}`:"",(v=b.embeddingVector)!=null&&v.length?`vector[0..3]: ${b.embeddingVector.slice(0,4).join(", ")}`:""].filter(Boolean).join(`
16
16
  `))}catch(D){if(G.current!==te){g.emit("async.staleIgnored",{type:"executionMode.defineComposite.persist.failed",id:E});return}const W=D instanceof Error?D.message:String(D);se("error"),ge(W),g.emit("executionMode.defineComposite.persist.failed",{id:E,message:W}),M([ae.replace("Store: saving bridge-backed Concept row projection...","Store: bridge-backed persistence failed."),`error: ${W}`,"","The composite remains registered in the browser-local registry for this session."].join(`
17
17
  `))}}catch(K){g.emit("executionMode.ir.failed",{stage:"DefineComposite",message:K instanceof Error?K.message:String(K)}),M(`ERROR: Concept.DefineComposite failed. ${String(K)}`)}},[y,u,d,j]),Ue=c.useCallback(()=>{g.emit("executionMode.tool.run",{toolName:"Concept.Embed"});const n=$.trim(),S=C.trim();if(!n||!S){M("ERROR: Concept.Embed requires signature and description.");return}const v=k(n),{input:K,vector:B,tokens:E}=lt(n,S);g.emit("executionMode.embed.local",{id:v,dimensions:B.length,tokens:E}),M(["Concept.Embed",`OK: local embedding preview ${v}`,`signature: ${n}`,`tokens: ${E}`,`dimensions: ${B.length}`,`vector[0..7]: ${B.slice(0,8).join(", ")}`,"","Input:",K,"","Note: the original tool requires approval because it can call paid embedding APIs and SQLite. React only produces a deterministic preview until an adapter is connected."].join(`
18
- `))},[C,$]),We=c.useCallback(async()=>{g.emit("executionMode.tool.run",{toolName:"Concept.Embed.Readiness"}),ie("checking"),he("");try{const n=Ce(),S=await je(n),v=await _e(Me(S.status),n);Pe(v),ie("ready"),g.emit("executionMode.embed.readiness",{adapterState:v.adapterState,confirmationState:v.confirmationState,apiKeyState:v.apiKeyState,model:v.model})}catch(n){const S=n instanceof Error?n.message:String(n);ie("error"),he(S),g.emit("executionMode.embed.readiness.failed",{message:S})}},[]),Fe=c.useCallback(()=>{const n=d.trim()||"MindExecution.Dynamic.Sum(System.Double,System.Double)";s(JSON.stringify({literals:[{id:"0x0000000000000000",type:"double",value:4},{id:"0x0000000000000001",type:"double",value:7}],instructions:[{op:"FLOW",target:`$${n}`,args:["0x0000000000000000","0x0000000000000001"],dstSlot:"0x0000000000000002"},{op:"RETURN",srcSlot:"0x0000000000000002"}]},null,2)),R("0x0000000000000002")},[d]);return t.jsx("div",{className:"page execution-mode-page",children:t.jsxs("div",{className:"execution-grid",children:[t.jsxs("section",{className:"execution-panel",children:[t.jsx("div",{className:"eyebrow",children:"Execution Mode"}),t.jsx("h1",{children:"Concept Kernel Test"}),t.jsxs("div",{className:"execution-mode-strip","aria-label":"Resolved execution settings",children:[t.jsxs("span",{"data-testid":"execution-mode-resolved-mode",children:["Mode: ",T]}),t.jsxs("span",{"data-testid":"execution-mode-queue-mode",children:["Queue: ",V]}),t.jsx("span",{children:"Agent: adapter-gated"})]}),t.jsxs("div",{className:"execution-settings-grid",children:[t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Execution mode"}),t.jsxs("select",{value:T,"data-testid":"execution-mode-selector",onChange:n=>ye({executionMode:n.target.value},"execution-mode.page.mode"),children:[t.jsx("option",{value:"Concept",children:"Concept"}),t.jsx("option",{value:"PureLLM",children:"PureLLM"})]})]}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Direct instruction queue"}),t.jsxs("select",{value:V,"data-testid":"execution-mode-queue-selector",onChange:n=>ye({directInstructionQueueMode:n.target.value},"execution-mode.page.queue"),children:[t.jsx("option",{value:"Append",children:"Append"}),t.jsx("option",{value:"Next",children:"Next"}),t.jsx("option",{value:"ReplacePending",children:"ReplacePending"})]})]})]}),t.jsx("p",{children:T==="Concept"?"Mode: Concept local shell. JSON IR can run through a deterministic browser kernel without invoking a live Agent.":"Mode: PureLLM adapter gate. This route shows the selected mode but blocks live direct execution until a verified Agent adapter exists."}),t.jsx("textarea",{"data-testid":"execution-mode-ir-input","aria-label":"Execution prompt",value:e,onChange:n=>s(n.target.value),placeholder:"Enter a prompt or IR (JSON)"}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Watch slots"}),t.jsx("input",{"data-testid":"execution-mode-watch-slots",value:I,onChange:n=>R(n.target.value),placeholder:"0x0000000000000002 or JSON array"})]}),t.jsxs("div",{className:"execution-actions",children:[t.jsxs("button",{className:"btn btn-primary",type:"button","data-testid":"execution-mode-run",onClick:Te,disabled:z,children:[z?t.jsx(Ye,{size:16,className:"spin-icon"}):t.jsx(Ze,{size:16}),"Run IR"]}),t.jsxs("button",{className:"btn btn-secondary",type:"button","data-testid":"execution-mode-sample",onClick:()=>s(Ne),disabled:z,children:[t.jsx(et,{size:16}),"Sample"]}),t.jsxs("button",{className:"btn btn-secondary",type:"button","data-testid":"execution-mode-flow-sample",onClick:Fe,disabled:z,children:[t.jsx(tt,{size:16}),"FLOW Sample"]}),t.jsx("button",{className:"btn btn-secondary",type:"button",onClick:()=>M(""),disabled:z,children:"Clear"})]}),P&&t.jsx("pre",{"data-testid":"execution-mode-output",children:P})]}),t.jsxs("aside",{className:"execution-side","aria-label":"Concept kernel local tools",children:[t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"Concept tools"}),t.jsx("p",{children:"Local replacements for the original Concept plugin test flow."}),t.jsx("div",{className:"execution-tool-chip-grid",children:Ee.map(n=>t.jsx("span",{"data-testid":"concept-tool-chip",children:n},n))}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Signature"}),t.jsx("input",{value:i,onChange:n=>r(n.target.value)})]}),t.jsxs("div",{className:"execution-actions",children:[t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-hash64-run",onClick:qe,children:"Hash64"}),t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-kernel-help-run",onClick:Be,children:"KernelHelp"})]})]}),t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"DefineComposite"}),t.jsx("p",{children:"Registers a browser-local FLOW target using the original P0/P1 parameter slot convention."}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Composite signature"}),t.jsx("input",{value:d,onChange:n=>w(n.target.value)})]}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Description"}),t.jsx("input",{value:y,onChange:n=>N(n.target.value)})]}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Composite IR"}),t.jsx("textarea",{value:u,onChange:n=>l(n.target.value)})]}),t.jsxs("div",{className:"execution-actions",children:[t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-define-composite-run",onClick:Je,disabled:H==="saving",children:H==="saving"?"Saving":"DefineComposite"}),t.jsx("button",{className:"btn btn-secondary",type:"button",onClick:()=>l(De),children:"Composite Sample"})]}),t.jsxs("div",{className:"execution-store-status","data-testid":"concept-store-status","data-concept-store-state":H,"data-concept-store-path":ue,"data-concept-store-sha256":Ae,children:[t.jsx(nt,{size:14}),t.jsx("span",{children:H==="saved"?`Saved ${ue}`:H==="saving"?"Saving Concept row projection":H==="error"?`Store error: ${ke}`:"Concept store ready"})]}),h&&t.jsxs("div",{className:"execution-store-readiness","data-testid":"concept-store-readiness","data-concept-store-provider":h.provider,"data-concept-store-adapter":h.adapterState,"data-concept-store-native-sqlite":h.nativeSqliteAdapterState,"data-concept-store-paid-embedding":h.paidEmbeddingAdapterState,"data-concept-store-row-count":h.rowCount,"data-concept-store-index-path":h.indexPath,children:[t.jsx("strong",{children:"Store readiness"}),t.jsx("span",{"data-testid":"concept-store-readiness-provider",children:h.provider}),t.jsx("span",{"data-testid":"concept-store-readiness-table",children:h.originalTable}),t.jsxs("span",{"data-testid":"concept-store-readiness-row-count",children:["Rows ",h.rowCount]}),t.jsxs("span",{"data-testid":"concept-store-readiness-native-sqlite",children:["SQLite ",h.nativeSqliteAdapterState]}),t.jsxs("span",{"data-testid":"concept-store-readiness-paid-embedding",children:["Embedding ",h.paidEmbeddingAdapterState]}),t.jsx("small",{"data-testid":"concept-store-readiness-index",children:h.indexPath||"Index pending"}),t.jsx("small",{"data-testid":"concept-store-readiness-latest",children:h.latestRowId?`${h.latestRowId} ${h.latestRowSqlKey} ${h.latestRowSignature}`:"No persisted rows yet"}),t.jsx("code",{"data-testid":"concept-store-readiness-columns",children:h.sqliteReadyColumns.join(", ")})]})]}),t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"Embed Preview"}),t.jsx("p",{children:"Deterministic local vector preview. No network call, no API key, no SQLite write."}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Embed signature"}),t.jsx("input",{value:$,onChange:n=>f(n.target.value)})]}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Embed description"}),t.jsx("textarea",{value:C,onChange:n=>O(n.target.value)})]}),t.jsxs("div",{className:"execution-actions",children:[t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-embed-run",onClick:Ue,children:"Embed"}),t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-embed-readiness-run",onClick:We,disabled:re==="checking",children:re==="checking"?"Checking":"Bridge Readiness"})]}),t.jsxs("div",{className:"execution-embed-readiness","data-testid":"concept-embed-readiness","data-concept-embed-readiness-state":re,"data-concept-embed-adapter-state":(p==null?void 0:p.adapterState)||"adapter-gated","data-concept-embed-api-key-state":(p==null?void 0:p.apiKeyState)||"unknown","data-concept-embed-confirmation-state":(p==null?void 0:p.confirmationState)||"unknown","data-concept-embed-model":(p==null?void 0:p.model)||"",children:[t.jsx("strong",{children:"Bridge embed adapter"}),t.jsx("span",{"data-testid":"concept-embed-readiness-adapter",children:(p==null?void 0:p.adapterState)||"adapter-gated"}),t.jsxs("span",{"data-testid":"concept-embed-readiness-key",children:["Key ",(p==null?void 0:p.apiKeyState)||"unknown"]}),t.jsxs("span",{"data-testid":"concept-embed-readiness-confirm",children:["Confirm ",(p==null?void 0:p.confirmationState)||"unknown"]}),t.jsx("small",{"data-testid":"concept-embed-readiness-model",children:(p==null?void 0:p.model)||"Model pending"}),t.jsx("small",{"data-testid":"concept-embed-readiness-policy",children:(p==null?void 0:p.inputPolicy)||"Provider call stays blocked until LocalBridge opt-in is confirmed."}),Se&&t.jsx("small",{"data-testid":"concept-embed-readiness-error",children:Se})]})]}),t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"Composite registry"}),t.jsx("div",{className:"execution-kernel-list",children:j.length>0?j.map(n=>t.jsxs("span",{title:`${n.signature} ${n.id}`,children:[n.signature," - atoms ",n.instructions.length]},n.id)):t.jsx("span",{children:"No browser-local composites yet."})})]}),t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"Supported subset"}),t.jsx("div",{className:"execution-kernel-list",children:_.slice(0,10).map(n=>t.jsxs("span",{title:n.signature,children:[n.category," · ",n.summary]},n.signature))})]})]})]})})}export{ht as ExecutionModePage};
18
+ `))},[C,$]),We=c.useCallback(async()=>{g.emit("executionMode.tool.run",{toolName:"Concept.Embed.Readiness"}),ie("checking"),he("");try{const n=Ce(),S=await je(n),v=await _e(Me(S.status),n);Pe(v),ie("ready"),g.emit("executionMode.embed.readiness",{adapterState:v.adapterState,confirmationState:v.confirmationState,apiKeyState:v.apiKeyState,model:v.model})}catch(n){const S=n instanceof Error?n.message:String(n);ie("error"),he(S),g.emit("executionMode.embed.readiness.failed",{message:S})}},[]),Fe=c.useCallback(()=>{const n=d.trim()||"MindExecution.Dynamic.Sum(System.Double,System.Double)";s(JSON.stringify({literals:[{id:"0x0000000000000000",type:"double",value:4},{id:"0x0000000000000001",type:"double",value:7}],instructions:[{op:"FLOW",target:`$${n}`,args:["0x0000000000000000","0x0000000000000001"],dstSlot:"0x0000000000000002"},{op:"RETURN",srcSlot:"0x0000000000000002"}]},null,2)),R("0x0000000000000002")},[d]);return t.jsx("div",{className:"page execution-mode-page",children:t.jsxs("div",{className:"execution-grid",children:[t.jsxs("section",{className:"execution-panel",children:[t.jsx("div",{className:"eyebrow",children:"Execution Mode"}),t.jsx("h1",{children:"Concept Kernel Test"}),t.jsxs("div",{className:"execution-mode-strip","aria-label":"Resolved execution settings",children:[t.jsxs("span",{"data-testid":"execution-mode-resolved-mode",children:["Mode: ",T]}),t.jsxs("span",{"data-testid":"execution-mode-queue-mode",children:["Queue: ",V]}),t.jsx("span",{children:"Agent: adapter-gated"})]}),t.jsxs("div",{className:"execution-settings-grid",children:[t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Execution mode"}),t.jsxs("select",{value:T,"data-testid":"execution-mode-selector",onChange:n=>ye({executionMode:n.target.value},"execution-mode.page.mode"),children:[t.jsx("option",{value:"Concept",children:"Concept"}),t.jsx("option",{value:"PureLLM",children:"PureLLM"})]})]}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Direct instruction queue"}),t.jsxs("select",{value:V,"data-testid":"execution-mode-queue-selector",onChange:n=>ye({directInstructionQueueMode:n.target.value},"execution-mode.page.queue"),children:[t.jsx("option",{value:"Append",children:"Append"}),t.jsx("option",{value:"Next",children:"Next"}),t.jsx("option",{value:"ReplacePending",children:"ReplacePending"})]})]})]}),t.jsx("p",{children:T==="Concept"?"Mode: Concept local shell. JSON IR can run through a deterministic browser kernel without invoking a live Agent.":"Mode: PureLLM adapter gate. This route shows the selected mode but blocks live direct execution until a verified Agent adapter exists."}),t.jsx("textarea",{"data-testid":"execution-mode-ir-input","aria-label":"Execution prompt",value:e,onChange:n=>s(n.target.value),placeholder:"Enter a prompt or IR (JSON)"}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Watch slots"}),t.jsx("input",{"data-testid":"execution-mode-watch-slots",value:I,onChange:n=>R(n.target.value),placeholder:"0x0000000000000002 or JSON array"})]}),t.jsxs("div",{className:"execution-actions",children:[t.jsxs("button",{className:"btn btn-primary",type:"button","data-testid":"execution-mode-run",onClick:Te,disabled:z,children:[z?t.jsx(Ye,{size:16,className:"spin-icon"}):t.jsx(Ze,{size:16}),"Run IR"]}),t.jsxs("button",{className:"btn btn-secondary",type:"button","data-testid":"execution-mode-sample",onClick:()=>s(Ne),disabled:z,children:[t.jsx(et,{size:16}),"Sample"]}),t.jsxs("button",{className:"btn btn-secondary",type:"button","data-testid":"execution-mode-flow-sample",onClick:Fe,disabled:z,children:[t.jsx(tt,{size:16}),"FLOW Sample"]}),t.jsx("button",{className:"btn btn-secondary",type:"button",onClick:()=>M(""),disabled:z,children:"Clear"})]}),P&&t.jsx("pre",{"data-testid":"execution-mode-output",children:P})]}),t.jsxs("aside",{className:"execution-side","aria-label":"Concept kernel local tools",children:[t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"Concept tools"}),t.jsx("p",{children:"Local replacements for the original Concept plugin test flow."}),t.jsx("div",{className:"execution-tool-chip-grid",children:Ee.map(n=>t.jsx("span",{"data-testid":"concept-tool-chip",children:n},n))}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Signature"}),t.jsx("input",{value:i,onChange:n=>r(n.target.value)})]}),t.jsxs("div",{className:"execution-actions",children:[t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-hash64-run",onClick:qe,children:"Hash64"}),t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-kernel-help-run",onClick:Be,children:"KernelHelp"})]})]}),t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"DefineComposite"}),t.jsx("p",{children:"Registers a browser-local FLOW target using the original P0/P1 parameter slot convention."}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Composite signature"}),t.jsx("input",{value:d,onChange:n=>w(n.target.value)})]}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Description"}),t.jsx("input",{value:y,onChange:n=>N(n.target.value)})]}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Composite IR"}),t.jsx("textarea",{value:u,onChange:n=>l(n.target.value)})]}),t.jsxs("div",{className:"execution-actions",children:[t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-define-composite-run",onClick:Je,disabled:H==="saving",children:H==="saving"?"Saving":"DefineComposite"}),t.jsx("button",{className:"btn btn-secondary",type:"button",onClick:()=>l(De),children:"Composite Sample"})]}),t.jsxs("div",{className:"execution-store-status","data-testid":"concept-store-status","data-concept-store-state":H,"data-concept-store-path":ue,"data-concept-store-sha256":Ae,children:[t.jsx(nt,{size:14}),t.jsx("span",{children:H==="saved"?`Saved ${ue}`:H==="saving"?"Saving Concept row projection":H==="error"?`Store error: ${ke}`:"Concept store ready"})]}),h&&t.jsxs("div",{className:"execution-store-readiness","data-testid":"concept-store-readiness","data-concept-store-provider":h.provider,"data-concept-store-adapter":h.adapterState,"data-concept-store-native-sqlite":h.nativeSqliteAdapterState,"data-concept-store-paid-embedding":h.paidEmbeddingAdapterState,"data-concept-store-row-count":h.rowCount,"data-concept-store-index-path":h.indexPath,children:[t.jsx("strong",{children:"Store readiness"}),t.jsx("span",{"data-testid":"concept-store-readiness-provider",children:h.provider}),t.jsx("span",{"data-testid":"concept-store-readiness-table",children:h.originalTable}),t.jsxs("span",{"data-testid":"concept-store-readiness-row-count",children:["Rows ",h.rowCount]}),t.jsxs("span",{"data-testid":"concept-store-readiness-native-sqlite",children:["SQLite ",h.nativeSqliteAdapterState]}),t.jsxs("span",{"data-testid":"concept-store-readiness-paid-embedding",children:["Embedding ",h.paidEmbeddingAdapterState]}),t.jsx("small",{"data-testid":"concept-store-readiness-index",children:h.indexPath||"Index pending"}),t.jsx("small",{"data-testid":"concept-store-readiness-latest",children:h.latestRowId?`${h.latestRowId} ${h.latestRowSqlKey} ${h.latestRowSignature}`:"No persisted rows yet"}),t.jsx("code",{"data-testid":"concept-store-readiness-columns",children:h.sqliteReadyColumns.join(", ")})]})]}),t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"Embed Preview"}),t.jsx("p",{children:"Deterministic local vector preview. No network call, no API key, no SQLite write."}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Embed signature"}),t.jsx("input",{value:$,onChange:n=>f(n.target.value)})]}),t.jsxs("label",{className:"execution-input-row",children:[t.jsx("span",{children:"Embed description"}),t.jsx("textarea",{value:C,onChange:n=>L(n.target.value)})]}),t.jsxs("div",{className:"execution-actions",children:[t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-embed-run",onClick:Ue,children:"Embed"}),t.jsx("button",{className:"btn btn-secondary",type:"button","data-testid":"concept-embed-readiness-run",onClick:We,disabled:re==="checking",children:re==="checking"?"Checking":"Bridge Readiness"})]}),t.jsxs("div",{className:"execution-embed-readiness","data-testid":"concept-embed-readiness","data-concept-embed-readiness-state":re,"data-concept-embed-adapter-state":(p==null?void 0:p.adapterState)||"adapter-gated","data-concept-embed-api-key-state":(p==null?void 0:p.apiKeyState)||"unknown","data-concept-embed-confirmation-state":(p==null?void 0:p.confirmationState)||"unknown","data-concept-embed-model":(p==null?void 0:p.model)||"",children:[t.jsx("strong",{children:"Bridge embed adapter"}),t.jsx("span",{"data-testid":"concept-embed-readiness-adapter",children:(p==null?void 0:p.adapterState)||"adapter-gated"}),t.jsxs("span",{"data-testid":"concept-embed-readiness-key",children:["Key ",(p==null?void 0:p.apiKeyState)||"unknown"]}),t.jsxs("span",{"data-testid":"concept-embed-readiness-confirm",children:["Confirm ",(p==null?void 0:p.confirmationState)||"unknown"]}),t.jsx("small",{"data-testid":"concept-embed-readiness-model",children:(p==null?void 0:p.model)||"Model pending"}),t.jsx("small",{"data-testid":"concept-embed-readiness-policy",children:(p==null?void 0:p.inputPolicy)||"Provider call stays blocked until LocalBridge opt-in is confirmed."}),Se&&t.jsx("small",{"data-testid":"concept-embed-readiness-error",children:Se})]})]}),t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"Composite registry"}),t.jsx("div",{className:"execution-kernel-list",children:j.length>0?j.map(n=>t.jsxs("span",{title:`${n.signature} ${n.id}`,children:[n.signature," - atoms ",n.instructions.length]},n.id)):t.jsx("span",{children:"No browser-local composites yet."})})]}),t.jsxs("div",{className:"execution-toolbox",children:[t.jsx("strong",{children:"Supported subset"}),t.jsx("div",{className:"execution-kernel-list",children:_.slice(0,10).map(n=>t.jsxs("span",{title:n.signature,children:[n.category," · ",n.summary]},n.signature))})]})]})]})})}export{ht as ExecutionModePage};
@@ -1 +1 @@
1
- import{r as s,j as e}from"./vendor-react-BXzpOyCS.js";import{R as b}from"./app-runtime-xD2Z3NdN.js";import{aT as A}from"./vendor-icons-678PAT8P.js";const u="mindexec-react-launch-leads-v1";function O(){const t=window.localStorage.getItem(u);if(!t)return[];const i=JSON.parse(t);return Array.isArray(i)?i.filter(r=>typeof r=="object"&&r!==null):[]}function R(){return navigator.language||"en"}function $({productKey:t="mindexec",eyebrow:i="Launch list",headline:r="Get the launch notes.",body:w="Short English updates for the product launch, payment rollout, and practical workflow examples.",buttonText:y="Join list",sourceTag:a="unknown",compact:L=!1}){const h=s.useId(),[m,p]=s.useState(""),[o,E]=s.useState("solo-builder"),[l,x]=s.useState(!1),[f,c]=s.useState(""),[N,j]=s.useState(!1),k=n=>{if(n.preventDefault(),l)return;const d=m.trim().toLowerCase();if(c(""),j(!1),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d)){c("Enter a valid email address.");return}x(!0),window.setTimeout(()=>{const g=window.location.pathname,v=R();try{const C={email:d,productKey:t,sourcePath:g,sourceTag:a,intent:o,locale:v,metadata:{source_tag:a,host:window.location.host},capturedAt:new Date().toISOString()},I=O();window.localStorage.setItem(u,JSON.stringify([C,...I.filter(S=>S.email!==d||S.sourceTag!==a).slice(0,49)]))}catch{}b.emit("launchLead.captured",{productKey:t,sourcePath:g,sourceTag:a,intent:o,locale:v}),a==="pricing"&&b.emit("pricing.lead.captured",{intent:o,sourceTag:a}),x(!1),j(!0),c("You're on the launch list."),p("")},450)};return e.jsxs("section",{className:`launch-lead ${L?"launch-lead--compact":""}`,"data-testid":"launch-lead","data-lead-storage-key":u,"data-product-key":t,"data-source-tag":a,children:[e.jsxs("div",{className:"launch-lead-copy",children:[e.jsx("div",{className:"eyebrow",children:i}),e.jsx("h2",{children:r}),e.jsx("p",{children:w})]}),e.jsxs("form",{className:"launch-lead-form",onSubmit:k,"data-testid":"launch-lead-form",children:[e.jsx("label",{htmlFor:h,children:"Email"}),e.jsxs("div",{className:"launch-lead-controls",children:[e.jsxs("div",{className:"launch-lead-input",children:[e.jsx(A,{size:17}),e.jsx("input",{id:h,value:m,onChange:n=>p(n.target.value),type:"email",autoComplete:"email",placeholder:"you@example.com",disabled:l,"data-testid":"launch-lead-email"})]}),e.jsxs("select",{value:o,onChange:n=>E(n.target.value),"aria-label":"Launch interest",disabled:l,"data-testid":"launch-lead-intent",children:[e.jsx("option",{value:"solo-builder",children:"Solo builder"}),e.jsx("option",{value:"researcher",children:"Researcher"}),e.jsx("option",{value:"developer",children:"Developer"}),e.jsx("option",{value:"creator",children:"Creator"})]}),e.jsx("button",{type:"submit",disabled:l,"data-testid":"launch-lead-submit",children:l?"Saving...":y})]}),f&&e.jsx("p",{className:`launch-lead-status ${N?"is-ok":""}`,role:"status","data-testid":"launch-lead-status",children:f})]})]})}export{$ as L};
1
+ import{r as s,j as e}from"./vendor-react-BXzpOyCS.js";import{R as b}from"./app-runtime-xD2Z3NdN.js";import{aR as A}from"./vendor-icons-DE3gIReG.js";const u="mindexec-react-launch-leads-v1";function R(){const t=window.localStorage.getItem(u);if(!t)return[];const i=JSON.parse(t);return Array.isArray(i)?i.filter(r=>typeof r=="object"&&r!==null):[]}function O(){return navigator.language||"en"}function $({productKey:t="mindexec",eyebrow:i="Launch list",headline:r="Get the launch notes.",body:w="Short English updates for the product launch, payment rollout, and practical workflow examples.",buttonText:y="Join list",sourceTag:a="unknown",compact:L=!1}){const h=s.useId(),[m,p]=s.useState(""),[o,E]=s.useState("solo-builder"),[l,x]=s.useState(!1),[f,c]=s.useState(""),[N,j]=s.useState(!1),k=n=>{if(n.preventDefault(),l)return;const d=m.trim().toLowerCase();if(c(""),j(!1),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d)){c("Enter a valid email address.");return}x(!0),window.setTimeout(()=>{const g=window.location.pathname,v=O();try{const C={email:d,productKey:t,sourcePath:g,sourceTag:a,intent:o,locale:v,metadata:{source_tag:a,host:window.location.host},capturedAt:new Date().toISOString()},I=R();window.localStorage.setItem(u,JSON.stringify([C,...I.filter(S=>S.email!==d||S.sourceTag!==a).slice(0,49)]))}catch{}b.emit("launchLead.captured",{productKey:t,sourcePath:g,sourceTag:a,intent:o,locale:v}),a==="pricing"&&b.emit("pricing.lead.captured",{intent:o,sourceTag:a}),x(!1),j(!0),c("You're on the launch list."),p("")},450)};return e.jsxs("section",{className:`launch-lead ${L?"launch-lead--compact":""}`,"data-testid":"launch-lead","data-lead-storage-key":u,"data-product-key":t,"data-source-tag":a,children:[e.jsxs("div",{className:"launch-lead-copy",children:[e.jsx("div",{className:"eyebrow",children:i}),e.jsx("h2",{children:r}),e.jsx("p",{children:w})]}),e.jsxs("form",{className:"launch-lead-form",onSubmit:k,"data-testid":"launch-lead-form",children:[e.jsx("label",{htmlFor:h,children:"Email"}),e.jsxs("div",{className:"launch-lead-controls",children:[e.jsxs("div",{className:"launch-lead-input",children:[e.jsx(A,{size:17}),e.jsx("input",{id:h,value:m,onChange:n=>p(n.target.value),type:"email",autoComplete:"email",placeholder:"you@example.com",disabled:l,"data-testid":"launch-lead-email"})]}),e.jsxs("select",{value:o,onChange:n=>E(n.target.value),"aria-label":"Launch interest",disabled:l,"data-testid":"launch-lead-intent",children:[e.jsx("option",{value:"solo-builder",children:"Solo builder"}),e.jsx("option",{value:"researcher",children:"Researcher"}),e.jsx("option",{value:"developer",children:"Developer"}),e.jsx("option",{value:"creator",children:"Creator"})]}),e.jsx("button",{type:"submit",disabled:l,"data-testid":"launch-lead-submit",children:l?"Saving...":y})]}),f&&e.jsx("p",{className:`launch-lead-status ${N?"is-ok":""}`,role:"status","data-testid":"launch-lead-status",children:f})]})]})}export{$ as L};
@@ -1 +1 @@
1
- import{r as f,j as e}from"./vendor-react-BXzpOyCS.js";import{L as v}from"./LaunchLeadCapture-Btre_FaA.js";import{m as b}from"./marketingTools-DN_rnHeB.js";import{g as j}from"./vendor-icons-678PAT8P.js";import"./app-runtime-xD2Z3NdN.js";const w=b.slice(0,6),k=[["Researchers","Move from reading notes and loose fragments into a board that can hold context and structure."],["Writers","Preview docs and README content quickly, then collect the related work in one saved project."],["Developers","Use local-first utility pages without upload friction, then expand into a canvas when the work becomes multi-file or collaborative."]];function g(r){switch(r.key){case"markdown-viewer":return"Markdown";case"bulk-markdown-viewer":return"Bulk";case"markdown-outline":return"Outline";case"markdown-table-formatter":return"Tables";case"markdown-link-checker":return"Links";case"readme-previewer":return"README";case"markdown-to-html":return"HTML";case"browser-notepad":return"Notes";case"clipboard-board":return"Clipboard";default:return r.chip||"Tool"}}function l(r,t,o){const a=document.head.querySelector(r),s=a??t(),i=s.getAttribute("content"),c=!a;return c&&document.head.appendChild(s),s.setAttribute("content",o),()=>{c?s.remove():i===null?s.removeAttribute("content"):s.setAttribute("content",i)}}function y(r){const t=document.createElement("meta");return t.setAttribute("name",r),t}function d(r){const t=document.createElement("meta");return t.setAttribute("property",r),t}function N(){const r=document.title,t="MindExec | Run your ideas as AI task graphs",o="MindExec is an AI execution canvas for solo builders, researchers, developers, and creators. Start with free browser tools, then move serious work into saved MindCanvas projects.",a="https://mindexec.pages.dev/",s=document.head.querySelector('link[rel="canonical"]')??document.createElement("link"),i=!s.parentElement,c=s.getAttribute("href");s.setAttribute("rel","canonical"),s.setAttribute("href",a),i&&document.head.appendChild(s);const h={"@context":"https://schema.org","@type":"SoftwareApplication",name:"MindExec",applicationCategory:"ProductivityApplication",operatingSystem:"Web",description:"AI execution canvas for markdown, notes, research, and technical planning.",url:a,offers:{"@type":"Offer",price:"9",priceCurrency:"USD"}},n=document.head.querySelector("#platform-home-structured-data")??document.createElement("script"),p=!n.parentElement,u=n.textContent;n.id="platform-home-structured-data",n.type="application/ld+json",n.setAttribute("data-testid","platform-home-structured-data"),n.textContent=JSON.stringify(h),p&&document.head.appendChild(n),document.title=t;const m=[l('meta[name="description"]',()=>y("description"),o),l('meta[property="og:title"]',()=>d("og:title"),t),l('meta[property="og:description"]',()=>d("og:description"),"Use free markdown, notes, and clipboard tools instantly, then move larger work into MindCanvas for saved projects, AI task graphs, and visual organization."),l('meta[property="og:type"]',()=>d("og:type"),"website"),l('meta[property="og:url"]',()=>d("og:url"),a)];return()=>{document.title=r,m.forEach(x=>x()),i?s.remove():c===null?s.removeAttribute("href"):s.setAttribute("href",c),p?n.remove():n.textContent=u}}function I({navigate:r}){return f.useEffect(()=>N(),[]),e.jsxs("div",{className:"page platform-page","data-testid":"platform-home",children:[e.jsxs("section",{className:"platform-hero",children:[e.jsx("div",{className:"eyebrow",children:"AI business execution canvas"}),e.jsxs("div",{className:"platform-hero-grid",children:[e.jsxs("div",{className:"platform-copy",children:[e.jsx("h1",{children:"MindExec"}),e.jsx("p",{children:"Run your ideas as AI task graphs. Start with quick browser tools, then keep serious work in MindCanvas where notes, assets, AI runs, and execution evidence stay visible."}),e.jsxs("div",{className:"action-row",children:[e.jsx("button",{className:"btn btn-primary",type:"button",onClick:()=>r("/mindcanvas"),children:"Open MindCanvas"}),e.jsx("button",{className:"btn btn-secondary",type:"button",onClick:()=>r("/tools"),children:"Browse free tools"}),e.jsx("button",{className:"btn btn-ghost",type:"button",onClick:()=>r("/pricing"),children:"See pricing"})]}),e.jsxs("div",{className:"trust-row",children:[e.jsx("span",{children:"English-first global launch"}),e.jsx("span",{children:"Local-first by default"}),e.jsx("span",{children:"USD paid path"}),e.jsx("span",{children:"Built for solo builders"})]})]}),e.jsxs("div",{className:"hero-product-panel","aria-label":"MindExec workflow preview",children:[e.jsxs("div",{className:"preview-toolbar",children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]}),e.jsxs("div",{className:"preview-canvas",children:[e.jsxs("article",{className:"preview-node preview-node--note",children:[e.jsx("strong",{children:"Context"}),e.jsx("p",{children:"Audience, offer, proof, and reusable launch notes."})]}),e.jsxs("article",{className:"preview-node preview-node--task",children:[e.jsx(j,{size:16}),e.jsx("strong",{children:"AI Task"}),e.jsx("p",{children:"Create launch plan"})]}),e.jsx("svg",{className:"preview-edge",viewBox:"0 0 360 210","aria-hidden":"true",children:e.jsx("path",{d:"M130 92 C180 70 205 70 250 100"})})]})]})]})]}),e.jsx(v,{eyebrow:"Global launch list",headline:"Get the English launch notes before the paid rollout.",body:"Short product updates, practical MindCanvas examples, and launch pricing notices for builders who want a durable visual workspace.",sourceTag:"home"}),e.jsxs("section",{className:"page-section",children:[e.jsxs("div",{className:"section-head",children:[e.jsx("div",{className:"eyebrow",children:"How it fits"}),e.jsx("h2",{children:"Use the light tool first. Keep the bigger work in one place."}),e.jsx("p",{children:"The React port keeps MindExec canvas-first: fast utility work stays quick, and durable project work moves into a saved board."})]}),e.jsx("div",{className:"step-grid",children:[["01","Open a tool instantly","Markdown, notes, snippets, and quick review without login friction."],["02","Find the point where it matters","When work needs structure, compare, evidence, or repeatability."],["03","Continue in MindCanvas","Connect context, run AI tasks, and keep the output reusable."]].map(([t,o,a])=>e.jsxs("article",{className:"step-card",children:[e.jsx("span",{children:t}),e.jsx("h3",{children:o}),e.jsx("p",{children:a})]},t))})]}),e.jsxs("section",{className:"page-section","data-testid":"platform-featured-tools",children:[e.jsxs("div",{className:"section-head",children:[e.jsx("div",{className:"eyebrow",children:"Free entry points"}),e.jsx("h2",{children:"Start with the tool that matches the job"}),e.jsx("p",{children:"Each tool is meant to solve one narrow problem quickly, then hand larger work off to MindCanvas at the right moment."})]}),e.jsx("div",{className:"platform-tool-grid",children:w.map(t=>e.jsxs("article",{className:"platform-tool-card","data-testid":"platform-featured-tool-card","data-tool-key":t.key,children:[e.jsx("div",{className:"platform-tool-chip",children:g(t)}),e.jsx("h3",{children:t.title}),e.jsx("p",{children:t.description}),e.jsx("a",{href:t.liveUrl,target:"_blank",rel:"noreferrer","data-live-url":t.liveUrl,children:"Open tool"})]},t.key))}),e.jsx("div",{className:"platform-section-link",children:e.jsx("button",{className:"btn btn-ghost",type:"button",onClick:()=>r("/tools"),children:"See the full tools directory"})})]}),e.jsxs("section",{className:"page-section","data-testid":"platform-audience",children:[e.jsxs("div",{className:"section-head",children:[e.jsx("div",{className:"eyebrow",children:"Best fit"}),e.jsx("h2",{children:"Built for researchers, writers, developers, and solo builders"}),e.jsx("p",{children:"If your work begins as markdown, snippets, notes, links, or loose planning artifacts, MindExec gives you a cleaner path into a persistent AI execution canvas."})]}),e.jsx("div",{className:"platform-audience-grid",children:k.map(([t,o])=>e.jsxs("article",{children:[e.jsx("h3",{children:t}),e.jsx("p",{children:o})]},t))})]}),e.jsxs("section",{className:"platform-closing","data-testid":"platform-closing",children:[e.jsxs("div",{children:[e.jsx("div",{className:"eyebrow",children:"Next step"}),e.jsx("h2",{children:"Start free. Upgrade when the work becomes worth keeping."}),e.jsx("p",{children:"Use the free entry points first, then keep the work that deserves persistence, cloud access, and AI support."})]}),e.jsxs("div",{className:"action-row",children:[e.jsx("button",{className:"btn btn-primary",type:"button",onClick:()=>r("/mindcanvas"),children:"Open MindCanvas"}),e.jsx("button",{className:"btn btn-ghost",type:"button",onClick:()=>r("/pricing"),children:"See pricing"})]})]})]})}export{I as MarketingHome};
1
+ import{r as f,j as e}from"./vendor-react-BXzpOyCS.js";import{L as v}from"./LaunchLeadCapture-Bx9LM0IX.js";import{m as b}from"./marketingTools-DN_rnHeB.js";import{g as j}from"./vendor-icons-DE3gIReG.js";import"./app-runtime-xD2Z3NdN.js";const w=b.slice(0,6),k=[["Researchers","Move from reading notes and loose fragments into a board that can hold context and structure."],["Writers","Preview docs and README content quickly, then collect the related work in one saved project."],["Developers","Use local-first utility pages without upload friction, then expand into a canvas when the work becomes multi-file or collaborative."]];function g(r){switch(r.key){case"markdown-viewer":return"Markdown";case"bulk-markdown-viewer":return"Bulk";case"markdown-outline":return"Outline";case"markdown-table-formatter":return"Tables";case"markdown-link-checker":return"Links";case"readme-previewer":return"README";case"markdown-to-html":return"HTML";case"browser-notepad":return"Notes";case"clipboard-board":return"Clipboard";default:return r.chip||"Tool"}}function l(r,t,o){const a=document.head.querySelector(r),s=a??t(),i=s.getAttribute("content"),c=!a;return c&&document.head.appendChild(s),s.setAttribute("content",o),()=>{c?s.remove():i===null?s.removeAttribute("content"):s.setAttribute("content",i)}}function y(r){const t=document.createElement("meta");return t.setAttribute("name",r),t}function d(r){const t=document.createElement("meta");return t.setAttribute("property",r),t}function N(){const r=document.title,t="MindExec | Run your ideas as AI task graphs",o="MindExec is an AI execution canvas for solo builders, researchers, developers, and creators. Start with free browser tools, then move serious work into saved MindCanvas projects.",a="https://mindexec.pages.dev/",s=document.head.querySelector('link[rel="canonical"]')??document.createElement("link"),i=!s.parentElement,c=s.getAttribute("href");s.setAttribute("rel","canonical"),s.setAttribute("href",a),i&&document.head.appendChild(s);const h={"@context":"https://schema.org","@type":"SoftwareApplication",name:"MindExec",applicationCategory:"ProductivityApplication",operatingSystem:"Web",description:"AI execution canvas for markdown, notes, research, and technical planning.",url:a,offers:{"@type":"Offer",price:"9",priceCurrency:"USD"}},n=document.head.querySelector("#platform-home-structured-data")??document.createElement("script"),p=!n.parentElement,u=n.textContent;n.id="platform-home-structured-data",n.type="application/ld+json",n.setAttribute("data-testid","platform-home-structured-data"),n.textContent=JSON.stringify(h),p&&document.head.appendChild(n),document.title=t;const m=[l('meta[name="description"]',()=>y("description"),o),l('meta[property="og:title"]',()=>d("og:title"),t),l('meta[property="og:description"]',()=>d("og:description"),"Use free markdown, notes, and clipboard tools instantly, then move larger work into MindCanvas for saved projects, AI task graphs, and visual organization."),l('meta[property="og:type"]',()=>d("og:type"),"website"),l('meta[property="og:url"]',()=>d("og:url"),a)];return()=>{document.title=r,m.forEach(x=>x()),i?s.remove():c===null?s.removeAttribute("href"):s.setAttribute("href",c),p?n.remove():n.textContent=u}}function I({navigate:r}){return f.useEffect(()=>N(),[]),e.jsxs("div",{className:"page platform-page","data-testid":"platform-home",children:[e.jsxs("section",{className:"platform-hero",children:[e.jsx("div",{className:"eyebrow",children:"AI business execution canvas"}),e.jsxs("div",{className:"platform-hero-grid",children:[e.jsxs("div",{className:"platform-copy",children:[e.jsx("h1",{children:"MindExec"}),e.jsx("p",{children:"Run your ideas as AI task graphs. Start with quick browser tools, then keep serious work in MindCanvas where notes, assets, AI runs, and execution evidence stay visible."}),e.jsxs("div",{className:"action-row",children:[e.jsx("button",{className:"btn btn-primary",type:"button",onClick:()=>r("/mindcanvas"),children:"Open MindCanvas"}),e.jsx("button",{className:"btn btn-secondary",type:"button",onClick:()=>r("/tools"),children:"Browse free tools"}),e.jsx("button",{className:"btn btn-ghost",type:"button",onClick:()=>r("/pricing"),children:"See pricing"})]}),e.jsxs("div",{className:"trust-row",children:[e.jsx("span",{children:"English-first global launch"}),e.jsx("span",{children:"Local-first by default"}),e.jsx("span",{children:"USD paid path"}),e.jsx("span",{children:"Built for solo builders"})]})]}),e.jsxs("div",{className:"hero-product-panel","aria-label":"MindExec workflow preview",children:[e.jsxs("div",{className:"preview-toolbar",children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]}),e.jsxs("div",{className:"preview-canvas",children:[e.jsxs("article",{className:"preview-node preview-node--note",children:[e.jsx("strong",{children:"Context"}),e.jsx("p",{children:"Audience, offer, proof, and reusable launch notes."})]}),e.jsxs("article",{className:"preview-node preview-node--task",children:[e.jsx(j,{size:16}),e.jsx("strong",{children:"AI Task"}),e.jsx("p",{children:"Create launch plan"})]}),e.jsx("svg",{className:"preview-edge",viewBox:"0 0 360 210","aria-hidden":"true",children:e.jsx("path",{d:"M130 92 C180 70 205 70 250 100"})})]})]})]})]}),e.jsx(v,{eyebrow:"Global launch list",headline:"Get the English launch notes before the paid rollout.",body:"Short product updates, practical MindCanvas examples, and launch pricing notices for builders who want a durable visual workspace.",sourceTag:"home"}),e.jsxs("section",{className:"page-section",children:[e.jsxs("div",{className:"section-head",children:[e.jsx("div",{className:"eyebrow",children:"How it fits"}),e.jsx("h2",{children:"Use the light tool first. Keep the bigger work in one place."}),e.jsx("p",{children:"The React port keeps MindExec canvas-first: fast utility work stays quick, and durable project work moves into a saved board."})]}),e.jsx("div",{className:"step-grid",children:[["01","Open a tool instantly","Markdown, notes, snippets, and quick review without login friction."],["02","Find the point where it matters","When work needs structure, compare, evidence, or repeatability."],["03","Continue in MindCanvas","Connect context, run AI tasks, and keep the output reusable."]].map(([t,o,a])=>e.jsxs("article",{className:"step-card",children:[e.jsx("span",{children:t}),e.jsx("h3",{children:o}),e.jsx("p",{children:a})]},t))})]}),e.jsxs("section",{className:"page-section","data-testid":"platform-featured-tools",children:[e.jsxs("div",{className:"section-head",children:[e.jsx("div",{className:"eyebrow",children:"Free entry points"}),e.jsx("h2",{children:"Start with the tool that matches the job"}),e.jsx("p",{children:"Each tool is meant to solve one narrow problem quickly, then hand larger work off to MindCanvas at the right moment."})]}),e.jsx("div",{className:"platform-tool-grid",children:w.map(t=>e.jsxs("article",{className:"platform-tool-card","data-testid":"platform-featured-tool-card","data-tool-key":t.key,children:[e.jsx("div",{className:"platform-tool-chip",children:g(t)}),e.jsx("h3",{children:t.title}),e.jsx("p",{children:t.description}),e.jsx("a",{href:t.liveUrl,target:"_blank",rel:"noreferrer","data-live-url":t.liveUrl,children:"Open tool"})]},t.key))}),e.jsx("div",{className:"platform-section-link",children:e.jsx("button",{className:"btn btn-ghost",type:"button",onClick:()=>r("/tools"),children:"See the full tools directory"})})]}),e.jsxs("section",{className:"page-section","data-testid":"platform-audience",children:[e.jsxs("div",{className:"section-head",children:[e.jsx("div",{className:"eyebrow",children:"Best fit"}),e.jsx("h2",{children:"Built for researchers, writers, developers, and solo builders"}),e.jsx("p",{children:"If your work begins as markdown, snippets, notes, links, or loose planning artifacts, MindExec gives you a cleaner path into a persistent AI execution canvas."})]}),e.jsx("div",{className:"platform-audience-grid",children:k.map(([t,o])=>e.jsxs("article",{children:[e.jsx("h3",{children:t}),e.jsx("p",{children:o})]},t))})]}),e.jsxs("section",{className:"platform-closing","data-testid":"platform-closing",children:[e.jsxs("div",{children:[e.jsx("div",{className:"eyebrow",children:"Next step"}),e.jsx("h2",{children:"Start free. Upgrade when the work becomes worth keeping."}),e.jsx("p",{children:"Use the free entry points first, then keep the work that deserves persistence, cloud access, and AI support."})]}),e.jsxs("div",{className:"action-row",children:[e.jsx("button",{className:"btn btn-primary",type:"button",onClick:()=>r("/mindcanvas"),children:"Open MindCanvas"}),e.jsx("button",{className:"btn btn-ghost",type:"button",onClick:()=>r("/pricing"),children:"See pricing"})]})]})]})}export{I as MarketingHome};