@code0-tech/triangulum 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/triangulum.cjs.js +10 -10
- package/dist/triangulum.es.js +105 -106
- package/dist/utils.d.ts +1 -8
- package/package.json +3 -3
package/dist/triangulum.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("typescript");function R(){return R=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},R.apply(null,arguments)}var Y=!1;try{Y=typeof localStorage<"u"}catch{}var X=typeof process<"u",ee=Y&&typeof localStorage.getItem=="function"&&localStorage.getItem("DEBUG")||X&&process.env.DEBUG,J=ee?console.log:function(t){return""};function te(t,n,i,a,c){a===void 0&&(a={});var g=R({},q(i),a),f=re(t,n,g,i,c),p=f.languageServiceHost,u=f.updateFile,m=f.deleteFile,r=i.createLanguageService(p),d=r.getCompilerOptionsDiagnostics();if(d.length){var o=G(t,a,i);throw new Error(i.formatDiagnostics(d,o.compilerHost))}return{name:"vfs",sys:t,languageService:r,getSourceFile:function(e){var s;return(s=r.getProgram())==null?void 0:s.getSourceFile(e)},createFile:function(e,s){u(i.createSourceFile(e,s,g.target,!1))},updateFile:function(e,s,l){var T=r.getProgram().getSourceFile(e);if(!T)throw new Error("Did not find a source file for "+e);var h=T.text,v=l??i.createTextSpan(0,h.length),N=h.slice(0,v.start)+s+h.slice(v.start+v.length),
|
|
2
|
-
`,useCaseSensitiveFileNames:!0,write:function(){return O("write")},writeFile:function(i,a){t.set(i,a)},deleteFile:function(i){t.delete(i)}}}function G(t,n,i){var a=new Map,c=function(p){return a.set(p.fileName,p),p},g={compilerHost:R({},t,{getCanonicalFileName:function(p){return p},getDefaultLibFileName:function(){return"/"+i.getDefaultLibFileName(n)},getNewLine:function(){return t.newLine},getSourceFile:function(p,u){var m;return a.get(p)||c(i.createSourceFile(p,t.readFile(p),(m=u??n.target)!=null?m:q(i).target,!1))},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames}}),updateFile:function(p){var u=a.has(p.fileName);return t.writeFile(p.fileName,p.text),a.set(p.fileName,p),u},deleteFile:function(p){var u=a.has(p.fileName);return a.delete(p.fileName),t.deleteFile(p.fileName),u}};return g}function re(t,n,i,a,c){var g=[].concat(n),f=G(t,i,a),p=f.compilerHost,u=f.updateFile,m=f.deleteFile,r=new Map,d=0,o=R({},p,{getProjectVersion:function(){return d.toString()},getCompilationSettings:function(){return i},getCustomTransformers:function(){return c},getScriptFileNames:function(){return g.slice()},getScriptSnapshot:function(s){var l=t.readFile(s);if(l&&typeof l=="string")return a.ScriptSnapshot.fromString(l)},getScriptVersion:function(s){return r.get(s)||"0"},writeFile:t.writeFile}),y={languageServiceHost:o,updateFile:function(s){d++,r.set(s.fileName,d.toString()),g.includes(s.fileName)||g.push(s.fileName),u(s)},deleteFile:function(s){d++,r.set(s.fileName,d.toString());var l=g.indexOf(s.fileName);l!==-1&&g.splice(l,1),m(s)}};return y}
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("typescript");function R(){return R=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},R.apply(null,arguments)}var Y=!1;try{Y=typeof localStorage<"u"}catch{}var X=typeof process<"u",ee=Y&&typeof localStorage.getItem=="function"&&localStorage.getItem("DEBUG")||X&&process.env.DEBUG,J=ee?console.log:function(t){return""};function te(t,n,i,a,c){a===void 0&&(a={});var g=R({},q(i),a),f=re(t,n,g,i,c),p=f.languageServiceHost,u=f.updateFile,m=f.deleteFile,r=i.createLanguageService(p),d=r.getCompilerOptionsDiagnostics();if(d.length){var o=G(t,a,i);throw new Error(i.formatDiagnostics(d,o.compilerHost))}return{name:"vfs",sys:t,languageService:r,getSourceFile:function(e){var s;return(s=r.getProgram())==null?void 0:s.getSourceFile(e)},createFile:function(e,s){u(i.createSourceFile(e,s,g.target,!1))},updateFile:function(e,s,l){var T=r.getProgram().getSourceFile(e);if(!T)throw new Error("Did not find a source file for "+e);var h=T.text,v=l??i.createTextSpan(0,h.length),N=h.slice(0,v.start)+s+h.slice(v.start+v.length),E=i.updateSourceFile(T,N,{span:v,newLength:s.length});u(E)},deleteFile:function(e){var s=r.getProgram().getSourceFile(e);s&&m(s)}}}function O(t){throw new Error("Method '"+t+"' is not implemented.")}function I(t,n){return function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var g=n.apply(void 0,a),f=typeof g=="string"?g.slice(0,80)+"...":g;return J.apply(void 0,["> "+t].concat(a)),J("< "+f),g}}var q=function(n){return R({},n.getDefaultCompilerOptions(),{jsx:n.JsxEmit.React,strict:!0,esModuleInterop:!0,module:n.ModuleKind.ESNext,suppressOutputPathCheck:!0,skipLibCheck:!0,skipDefaultLibCheck:!0},n.versionMajorMinor&&Number(n.versionMajorMinor.split(".")[0])>=6?{ignoreDeprecations:"6.0"}:{moduleResolution:n.ModuleResolutionKind.NodeJs})},K=function(n){return n.replace("/","/lib.").toLowerCase()};function ne(t){return{args:[],createDirectory:function(){return O("createDirectory")},directoryExists:I("directoryExists",function(n){return Array.from(t.keys()).some(function(i){return i.startsWith(n)})}),exit:function(){return O("exit")},fileExists:I("fileExists",function(n){return t.has(n)||t.has(K(n))}),getCurrentDirectory:function(){return"/"},getDirectories:function(){return[]},getExecutingFilePath:function(){return O("getExecutingFilePath")},readDirectory:I("readDirectory",function(n){return n==="/"?Array.from(t.keys()):[]}),readFile:I("readFile",function(n){var i;return(i=t.get(n))!=null?i:t.get(K(n))}),resolvePath:function(i){return i},newLine:`
|
|
2
|
+
`,useCaseSensitiveFileNames:!0,write:function(){return O("write")},writeFile:function(i,a){t.set(i,a)},deleteFile:function(i){t.delete(i)}}}function G(t,n,i){var a=new Map,c=function(p){return a.set(p.fileName,p),p},g={compilerHost:R({},t,{getCanonicalFileName:function(p){return p},getDefaultLibFileName:function(){return"/"+i.getDefaultLibFileName(n)},getNewLine:function(){return t.newLine},getSourceFile:function(p,u){var m;return a.get(p)||c(i.createSourceFile(p,t.readFile(p),(m=u??n.target)!=null?m:q(i).target,!1))},useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames}}),updateFile:function(p){var u=a.has(p.fileName);return t.writeFile(p.fileName,p.text),a.set(p.fileName,p),u},deleteFile:function(p){var u=a.has(p.fileName);return a.delete(p.fileName),t.deleteFile(p.fileName),u}};return g}function re(t,n,i,a,c){var g=[].concat(n),f=G(t,i,a),p=f.compilerHost,u=f.updateFile,m=f.deleteFile,r=new Map,d=0,o=R({},p,{getProjectVersion:function(){return d.toString()},getCompilationSettings:function(){return i},getCustomTransformers:function(){return c},getScriptFileNames:function(){return g.slice()},getScriptSnapshot:function(s){var l=t.readFile(s);if(l&&typeof l=="string")return a.ScriptSnapshot.fromString(l)},getScriptVersion:function(s){return r.get(s)||"0"},writeFile:t.writeFile}),y={languageServiceHost:o,updateFile:function(s){d++,r.set(s.fileName,d.toString()),g.includes(s.fileName)||g.push(s.fileName),u(s)},deleteFile:function(s){d++,r.set(s.fileName,d.toString());var l=g.indexOf(s.fileName);l!==-1&&g.splice(l,1),m(s)}};return y}var j=(t=>(t[t.PRIMITIVE=0]="PRIMITIVE",t[t.TYPE=1]="TYPE",t[t.ARRAY=2]="ARRAY",t[t.OBJECT=3]="OBJECT",t[t.NODE=4]="NODE",t))(j||{});const H=(t,n)=>{const a=`
|
|
3
3
|
${k(n)}
|
|
4
4
|
type TargetType = ${t};
|
|
5
5
|
const val: TargetType = {} as any;
|
|
6
|
-
|
|
6
|
+
`,c="index.ts",g=L(c,a),f=g.getSourceFile(c),u=g.languageService.getProgram().getTypeChecker();let m=1;const r=d=>{if(F.isVariableDeclaration(d)&&d.name.getText()==="val"){const o=u.getTypeAtLocation(d);o.getCallSignatures().length>0?m=4:u.isArrayType(o)?m=2:o.isStringLiteral()||o.isNumberLiteral()||(o.getFlags()&(F.TypeFlags.String|F.TypeFlags.Number|F.TypeFlags.Boolean|F.TypeFlags.EnumLiteral|F.TypeFlags.BigInt|F.TypeFlags.ESSymbol))!==0?m=0:o.isClassOrInterface()||(o.getFlags()&F.TypeFlags.Object)!==0?m=3:m=1}F.forEachChild(d,r)};return r(f),m},Q=t=>{const n=t.signature;if(!n)return{parameters:[],returnType:"any"};let i=0;if(n.trim().startsWith("<")){let r=0;for(let d=0;d<n.length;d++){const o=n[d];if(o==="<")r++;else if(o===">"&&(r--,r===0)){i=d+1;break}}}const a=n.indexOf("(",i);if(a===-1)return{parameters:[],returnType:"any"};let c=-1,g=0;for(let r=a;r<n.length;r++){const d=n[r];if(d==="(")g++;else if(d===")"&&(g--,g===0)){c=r;break}}if(c===-1)return{parameters:[],returnType:"any"};const f=n.substring(a+1,c);let p=n.substring(c+1).trim();p.startsWith(":")&&(p=p.substring(1).trim());const u=p||"void",m=[];if(f.trim()){let r="",d=0,o=0,y=0,e=0;const s=l=>{let T=-1,h=0,v=0,N=0,E=0;for(let D=0;D<l.length;D++){const S=l[D];if(S==="{")h++;else if(S==="}")h--;else if(S==="[")v++;else if(S==="]")v--;else if(S==="(")N++;else if(S===")")N--;else if(S==="<")E++;else if(S===">")E--;else if(S===":"&&h===0&&v===0&&N===0&&E===0){T=D;break}}T!==-1?m.push(l.substring(T+1).trim()):m.push("any")};for(const l of f){if(l==="(")d++;else if(l===")")d--;else if(l==="<")o++;else if(l===">")o--;else if(l==="{")y++;else if(l==="}")y--;else if(l==="[")e++;else if(l==="]")e--;else if(l===","&&d===0&&o===0&&y===0&&e===0){s(r.trim()),r="";continue}r+=l}r.trim()&&s(r.trim())}return{parameters:m,returnType:u}},ie=`
|
|
7
7
|
interface Array<T> {
|
|
8
8
|
[n: number]: T;
|
|
9
9
|
length: number;
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
`;function L(t,n){const i=new Map;i.set(t,n),i.set("lib.codezero.d.ts",ie);const a=ne(i);return te(a,[t,"lib.codezero.d.ts"],F,ae)}const ae={target:F.ScriptTarget.Latest,lib:["lib.codezero.d.ts"],noEmit:!0,strictNullChecks:!0};function k(t,n="any"){const i=Array.from(new Set(t?.flatMap(c=>c.genericKeys||[]))).map(c=>`type ${c} = ${n};`).join(`
|
|
23
23
|
`),a=t?.map(c=>`type ${c.identifier}${(c.genericKeys?.length??0)>0?`<${c.genericKeys?.join(",")}>`:""} = ${c.type};`).join(`
|
|
24
24
|
`);return`${i}
|
|
25
|
-
${a}`}const A=t=>t.replace(/[^a-zA-Z0-9]/g,"_");function U(t,n,i,a=!1){const c=t?.nodes?.nodes||[],g=new Map(n?.map(e=>[e.identifier,e])),f=new Set,p=(e,s,l)=>{const T=c.find(
|
|
26
|
-
`;let h={parameters:[]};a||(h=Q(
|
|
25
|
+
${a}`}const A=t=>t.replace(/[^a-zA-Z0-9]/g,"_");function U(t,n,i,a=!1){const c=t?.nodes?.nodes||[],g=new Map(n?.map(e=>[e.identifier,e])),f=new Set,p=(e,s,l)=>{const T=c.find(D=>D?.id===e);if(!T||!T.functionDefinition?.identifier)return"undefined";const v=(T.parameters?.nodes||[]).map((D,S)=>{const w=D.value;if(!w)return a?`/* @pos ${e} ${S} */ {}`:`/* @pos ${e} ${S} */ undefined`;if(w.__typename==="ReferenceValue"){const _=w;if(!_.nodeFunctionId)return`/* @pos ${e} ${S} */ undefined`;let C=_.inputIndex!==void 0?`p_${A(_.nodeFunctionId)}_${_.parameterIndex}[${_.inputIndex}]`:`node_${A(_.nodeFunctionId)}`;return _.referencePath?.forEach($=>{C+=`?.${$.path}`}),`/* @pos ${e} ${S} */ ${C}`}return w.__typename==="LiteralValue"?`/* @pos ${e} ${S} */ ${JSON.stringify(w.value)}`:w.__typename==="NodeFunctionIdWrapper"?p(w.id,e,S):a?`/* @pos ${e} ${S} */ ({} as any)`:`/* @pos ${e} ${S} */ undefined`}).join(", "),E=`${`fn_${T.functionDefinition.identifier.replace(/::/g,"_")}`}(${v})`;return s!==void 0&&l!==void 0?`${E}`:E},u=(e,s="")=>{if(f.has(e))return"";const l=c.find(C=>C?.id===e);if(!l||!l.functionDefinition)return"";f.add(e);const T=g.get(l.functionDefinition.identifier);if(!T)return`${s}// Error: Function ${l.functionDefinition.identifier} not found
|
|
26
|
+
`;let h={parameters:[]};a||(h=Q(T));const N=(l.parameters?.nodes||[]).map((C,$)=>{const x=C.value;if(!x)return a?`/* @pos ${e} ${$} */ {}`:`/* @pos ${e} ${$} */ undefined`;if(x.__typename==="ReferenceValue"){const b=x;if(!b.nodeFunctionId)return`/* @pos ${e} ${$} */ undefined`;let P=b.inputIndex!==void 0?`p_${A(b.nodeFunctionId)}_${b.parameterIndex}[${b.inputIndex}]`:`node_${A(b.nodeFunctionId)}`;return b.referencePath?.forEach(V=>{P+=`?.${V.path}`}),`/* @pos ${e} ${$} */ ${P}`}if(x.__typename==="LiteralValue")return`/* @pos ${e} ${$} */ ${JSON.stringify(x.value)}`;if(x.__typename==="NodeFunctionIdWrapper"){const b=x;if(a){const P=`p_${A(e)}_${$}`,V=u(b.id,s+" ");return`/* @pos ${e} ${$} */ (...${P}) => {
|
|
27
27
|
${V}${s}}`}else{const P=h.parameters[$];if(P?H(P,i)===j.NODE:!1){const M=`p_${A(e)}_${$}`,B=u(b.id,s+" ");return`/* @pos ${e} ${$} */ (...${M}) => {
|
|
28
|
-
${B}${s}}`}else{const M=p(b.id,e,$);return`/* @pos ${e} ${$} */ ${M}`}}}return a?`/* @pos ${e} ${$} */ {}`:`/* @pos ${e} ${$} */ undefined`}).join(", "),
|
|
28
|
+
${B}${s}}`}else{const M=p(b.id,e,$);return`/* @pos ${e} ${$} */ ${M}`}}}return a?`/* @pos ${e} ${$} */ {}`:`/* @pos ${e} ${$} */ undefined`}).join(", "),E=`node_${A(l.id)}`,D=`fn_${l?.functionDefinition?.identifier?.replace(/::/g,"_")}`,S=N.includes("undefined"),w=l.functionDefinition.identifier==="std::control::return";let _=`${s}${w?"return ":`const ${E} = `}${D}(${N}) ;
|
|
29
29
|
`;return l.nextNodeId&&(_+=u(l.nextNodeId,s)),_},m=k(i),r=n?.map(e=>`declare function fn_${e.identifier?.replace(/::/g,"_")}${e.signature}`).join(`
|
|
30
30
|
`),d=new Set(c.map(e=>e?.nextNodeId).filter(e=>!!e)),o=new Set;c.forEach(e=>e?.parameters?.nodes?.forEach(s=>{s?.value?.__typename==="NodeFunctionIdWrapper"&&s.value.id&&o.add(s.value.id)}));const y=c.filter(e=>e?.id&&!d.has(e.id)&&!o.has(e.id)).map(e=>u(e.id)).join(`
|
|
31
31
|
`);return`${m}
|
|
@@ -35,7 +35,7 @@ ${r}
|
|
|
35
35
|
${y}`}function oe(t,n,i){const a=U(t,n,i,!0),c="index.ts",g=L(c,a),f=g.getSourceFile(c),u=g.languageService.getProgram().getTypeChecker(),m=new Map,r=new Map,d=new Map;(t?.nodes?.nodes||[]).forEach(e=>{e?.id&&d.set(A(e.id),e)});const y=e=>{if(F.isVariableDeclaration(e)&&e.name.getText().startsWith("node_")){const s=e.name.getText().replace("node_",""),l=u.getTypeAtLocation(e);if(m.set(s,u.typeToString(l,e,F.TypeFormatFlags.NoTruncation)),e.initializer&&F.isCallExpression(e.initializer)){const T=u.getResolvedSignature(e.initializer);if(T){const h=T.getParameters().map(v=>{const N=u.getTypeOfSymbolAtLocation(v,e.initializer);return u.typeToString(N,e.initializer,F.TypeFormatFlags.NoTruncation)});r.set(s,h)}}}if(F.isReturnStatement(e)&&e.expression&&F.isCallExpression(e.expression)){const s=e.expression;u.getResolvedSignature(s)}F.forEachChild(e,y)};return y(f),{nodes:m,parameters:r}}const se=t=>{const i=`const tempValue = ${JSON.stringify(t?.value)??"any"};`,a="index.ts",c=L(a,i),g=c.getSourceFile(a),p=c.languageService.getProgram().getTypeChecker();let u="any";const m=r=>{if(F.isVariableDeclaration(r)&&r.name.getText()==="tempValue"){const d=p.getTypeAtLocation(r);u=p.typeToString(d,r,F.TypeFormatFlags.NoTruncation|F.TypeFormatFlags.UseFullyQualifiedType)}F.forEachChild(r,m)};return m(g),u},ce=(t,n)=>{const i=`
|
|
36
36
|
${k(n)}
|
|
37
37
|
type Target = ${t};
|
|
38
|
-
`,a="index.ts",c=L(a,i),g=c.getSourceFile(a),p=c.languageService.getProgram().getTypeChecker(),u=g.statements.find(o=>F.isTypeAliasDeclaration(o)&&o.name.text==="Target");if(!u)return{__typename:"LiteralValue",value:null};const m=p.getTypeAtLocation(u.type),r=(o,y,e=new Set)=>{if(e.has(o))return null;e.add(o);const s=o.getFlags();if(o.isUnion()){if(y.type,F.isTypeAliasDeclaration(y)&&y.type&&F.isUnionTypeNode(y.type)){const h=p.getTypeFromTypeNode(y.type.types[0]);return r(h,y,e)}const l=o.types.filter(h=>{const v=h.getFlags();return!(v&F.TypeFlags.Undefined)&&!(v&F.TypeFlags.Null)}),T=l.length>0?l[0]:o.types[0];return r(T,y,e)}if(s&F.TypeFlags.StringLiteral)return o.value;if(s&F.TypeFlags.String)return"";if(s&F.TypeFlags.NumberLiteral)return o.value;if(s&F.TypeFlags.Number)return 0;if(s&F.TypeFlags.BooleanLiteral)return o.intrinsicName==="true";if(s&F.TypeFlags.Boolean)return!1;if(p.isArrayType(o)){const T=o.typeArguments?.[0]||p.getAnyType(),h=r(T,y,e);return h!==null?[h]:[]}if(o.isClassOrInterface()||s&F.TypeFlags.Object||o.getProperties().length>0){const l={};return o.getProperties().forEach(h=>{const v=p.getTypeOfSymbolAtLocation(h,y);v&&(l[h.getName()]=r(v,y,e))}),l}return null};return{__typename:"LiteralValue",value:r(m,u)}},le=t=>{
|
|
38
|
+
`,a="index.ts",c=L(a,i),g=c.getSourceFile(a),p=c.languageService.getProgram().getTypeChecker(),u=g.statements.find(o=>F.isTypeAliasDeclaration(o)&&o.name.text==="Target");if(!u)return{__typename:"LiteralValue",value:null};const m=p.getTypeAtLocation(u.type),r=(o,y,e=new Set)=>{if(e.has(o))return null;e.add(o);const s=o.getFlags();if(o.isUnion()){if(y.type,F.isTypeAliasDeclaration(y)&&y.type&&F.isUnionTypeNode(y.type)){const h=p.getTypeFromTypeNode(y.type.types[0]);return r(h,y,e)}const l=o.types.filter(h=>{const v=h.getFlags();return!(v&F.TypeFlags.Undefined)&&!(v&F.TypeFlags.Null)}),T=l.length>0?l[0]:o.types[0];return r(T,y,e)}if(s&F.TypeFlags.StringLiteral)return o.value;if(s&F.TypeFlags.String)return"";if(s&F.TypeFlags.NumberLiteral)return o.value;if(s&F.TypeFlags.Number)return 0;if(s&F.TypeFlags.BooleanLiteral)return o.intrinsicName==="true";if(s&F.TypeFlags.Boolean)return!1;if(p.isArrayType(o)){const T=o.typeArguments?.[0]||p.getAnyType(),h=r(T,y,e);return h!==null?[h]:[]}if(o.isClassOrInterface()||s&F.TypeFlags.Object||o.getProperties().length>0){const l={};return o.getProperties().forEach(h=>{const v=p.getTypeOfSymbolAtLocation(h,y);v&&(l[h.getName()]=r(v,y,e))}),l}return null};return{__typename:"LiteralValue",value:r(m,u)}},le=(t,n,i)=>{if(!t)return{parameters:[],returnType:"any"};const a=t.id||"temp_node_id",c={...t,id:a,parameters:{...t.parameters,nodes:t.parameters?.nodes?.map(e=>e?.value?e:{...e,value:null})||[]}},g=a+"_params",f={...c,id:g,parameters:{...c.parameters,nodes:c.parameters.nodes.map(e=>e.value?.__typename==="LiteralValue"&&e.value.value!==null&&typeof e.value.value!="object"?{...e,value:null}:e)}},u=oe({nodes:{__typename:"NodeFunctionConnection",nodes:[c,f]}},n,i),m=A(a),r=A(g),d=u.parameters.get(m)||[],o=u.parameters.get(r)||[];return{parameters:d.map((e,s)=>{const l=o[s];return l&&l!=="any"&&l!=="unknown"?l:e}),returnType:u.nodes.get(m)||"any"}},ue=(t,n,i)=>{let a=n;const c=t?H(t,i):null;if(t&&n&&c!==j.NODE){let g=function(y){const e=y.trim().match(/^<([^>]+)>/);return e?e[1].split(",").map(s=>s.trim()).filter(Boolean).length:0};const f=`
|
|
39
39
|
${k(i)}
|
|
40
40
|
type TargetType = ${t};
|
|
41
41
|
${n?.map((y,e)=>`
|
|
@@ -46,12 +46,12 @@ ${y}`}function oe(t,n,i){const a=U(t,n,i,!0),c="index.ts",g=L(c,a),f=g.getSource
|
|
|
46
46
|
${n?.map((y,e)=>`const check${e}: TargetType = {} as F${e};`).join(`
|
|
47
47
|
`)}
|
|
48
48
|
`,p="index.ts",u=L(p,f),m=u.getSourceFile(p),d=u.languageService.getProgram().getSemanticDiagnostics(),o=new Set;d.forEach(y=>{y.file===m&&y.start!==void 0&&o.add(m.getLineAndCharacterOfPosition(y.start).line)}),a=n.filter((y,e)=>{const s=`const check${e}: TargetType = {} as F${e};`,T=f.split(`
|
|
49
|
-
`).findIndex(h=>h.includes(s));return T!==-1&&!o.has(T)})}return a?.map(g=>({__typename:"NodeFunction",id:"gid://sagittarius/NodeFunction/1",functionDefinition:{__typename:"FunctionDefinition",id:g.id,identifier:g.identifier},parameters:{__typename:"NodeParameterConnection",nodes:(g.parameterDefinitions?.nodes||[]).map(f=>({__typename:"NodeParameter",parameterDefinition:{__typename:"ParameterDefinition",id:f?.id,identifier:f?.identifier},value:null}))}})).filter(g=>g!==null)??[]},ge=(t,n,i,a,c)=>{const g=U(t,a,c,!0),f="index.ts",p=L(f,g),u=p.getSourceFile(f),r=p.languageService.getProgram().getTypeChecker(),d=u.getFullText(),o=`/* @pos ${n} ${i} */`,e=d.indexOf(o)+o.length;function s(_,C){let $=_;return F.forEachChild(_,x=>{x.getStart(u,!0)<=C&&x.getEnd()>=C&&($=s(x,C))}),$}const T=s(u,e);let h;if(F.isCallExpression(T)&&(h=T),!h)return[];const v=r.getResolvedSignature(h);if(!v)return[];const N=v.getParameters(),
|
|
49
|
+
`).findIndex(h=>h.includes(s));return T!==-1&&!o.has(T)})}return a?.map(g=>({__typename:"NodeFunction",id:"gid://sagittarius/NodeFunction/1",functionDefinition:{__typename:"FunctionDefinition",id:g.id,identifier:g.identifier},parameters:{__typename:"NodeParameterConnection",nodes:(g.parameterDefinitions?.nodes||[]).map(f=>({__typename:"NodeParameter",parameterDefinition:{__typename:"ParameterDefinition",id:f?.id,identifier:f?.identifier},value:null}))}})).filter(g=>g!==null)??[]},ge=(t,n,i,a,c)=>{const g=U(t,a,c,!0),f="index.ts",p=L(f,g),u=p.getSourceFile(f),r=p.languageService.getProgram().getTypeChecker(),d=u.getFullText(),o=`/* @pos ${n} ${i} */`,e=d.indexOf(o)+o.length;function s(_,C){let $=_;return F.forEachChild(_,x=>{x.getStart(u,!0)<=C&&x.getEnd()>=C&&($=s(x,C))}),$}const T=s(u,e);let h;if(F.isCallExpression(T)&&(h=T),!h)return[];const v=r.getResolvedSignature(h);if(!v)return[];const N=v.getParameters(),E=N[i]||N[N.length-1],D=r.getTypeOfSymbolAtLocation(E,T),S=r.getSymbolsInScope(T,F.SymbolFlags.Variable),w=[];return S.forEach(_=>{const C=_.getName();if(!C.startsWith("node_")&&!C.startsWith("p_"))return;const $=_.valueDeclaration||_.declarations?.[0];if(!$||$.getEnd()>=e)return;const x=r.getTypeOfSymbolAtLocation(_,T);if(C.startsWith("node_")){if((x.flags&F.TypeFlags.Void)===0&&r.isTypeAssignableTo(x,D)){const b=C.replace("node_","").replace(/___/g,"://").replace(/__/g,"/").replace(/_/g,"/");w.push({__typename:"ReferenceValue",nodeFunctionId:b})}}else if(C.startsWith("p_")){const b=C.replace("p_",""),P=b.lastIndexOf("_"),V=b.substring(0,P),M=parseInt(b.substring(P+1),10),B=V.replace("p_","").replace(/___/g,"://").replace(/__/g,"/").replace(/_/g,"/");if(r.isTupleType(x)){const z=x;r.getTypeArguments(z).forEach((Z,W)=>{r.isTypeAssignableTo(Z,D)&&w.push({__typename:"ReferenceValue",nodeFunctionId:B,parameterIndex:isNaN(M)?0:M,inputIndex:W,inputTypeIdentifier:z.target.labeledElementDeclarations?.[W].name.getText()})})}}}),w},pe=(t,n)=>{if(!t)return[];const i=`
|
|
50
50
|
${k(n)}
|
|
51
51
|
type VALUE = ${t}; const val: VALUE = {} as any;
|
|
52
52
|
`,a="index.ts",c=L(a,i),g=c.getSourceFile(a),p=c.languageService.getProgram().getTypeChecker(),u=g.statements.find(o=>F.isTypeAliasDeclaration(o)&&o.name.text==="VALUE");if(!u||!F.isTypeAliasDeclaration(u))return[];const m=p.getTypeAtLocation(u),r=o=>o.isUnion()?o.types.flatMap(r):o.isStringLiteral()?[o.value]:o.isNumberLiteral()?[o.value.toString()]:o.intrinsicName==="true"?["true"]:o.intrinsicName==="false"?["false"]:[];return Array.from(new Set(r(m))).map(o=>({__typename:"LiteralValue",value:o}))},fe=(t,n,i)=>{const a=U(t,n,i),c="index.ts",g=L(c,a),f=g.getSourceFile(c),m=g.languageService.getProgram().getSemanticDiagnostics(f).map(r=>{const d=F.flattenDiagnosticMessageText(r.messageText,`
|
|
53
|
-
`);let o,y;if(r.start!==void 0){const e=f.getFullText(),s=Math.max(0,r.start-300),l=Math.min(e.length,r.start),T=e.substring(s,l),h=/\/\* @pos ([^ ]+) (\d+) \*\//g;let v,N=null,
|
|
53
|
+
`);let o,y;if(r.start!==void 0){const e=f.getFullText(),s=Math.max(0,r.start-300),l=Math.min(e.length,r.start),T=e.substring(s,l),h=/\/\* @pos ([^ ]+) (\d+) \*\//g;let v,N=null,E=-1;for(;(v=h.exec(T))!==null;){const S=s+v.index+v[0].length;S<=r.start&&S>E&&(E=S,N=v)}N&&(o=N[1],y=parseInt(N[2],10))}return{message:d,code:r.code,severity:"error",nodeId:o,parameterIndex:y}}).filter(r=>r!==null);return{isValid:!m.some(r=>r?.severity==="error"),returnType:"void",diagnostics:m}},me=(t,n,i)=>{const a=JSON.stringify(n?.value),c=`
|
|
54
54
|
${k(i)}
|
|
55
55
|
const testValue: ${t} = ${a};
|
|
56
56
|
`,g="index.ts",u=L(g,c).languageService.getSemanticDiagnostics(g).map(m=>{const r=F.flattenDiagnosticMessageText(m.messageText,`
|
|
57
|
-
`),d=r.includes("not assignable to parameter of type")&&(r.includes("'{}'")||r.includes("undefined"))||r.includes("not assignable to type 'undefined'")||r.includes("not assignable to type 'void'")||r.includes("may be a mistake because neither type sufficiently overlaps");return{message:r,code:m.code,severity:d?"warning":"error"}});return{isValid:!u.some(m=>m.severity==="error"),returnType:"void",diagnostics:u}};exports.DataTypeVariant=j;exports.getFlowValidation=fe;exports.getNodeSuggestions=ue;exports.getReferenceSuggestions=ge;exports.getTypeFromValue=se;exports.getTypeVariant=H;exports.getTypesFromFunction=
|
|
57
|
+
`),d=r.includes("not assignable to parameter of type")&&(r.includes("'{}'")||r.includes("undefined"))||r.includes("not assignable to type 'undefined'")||r.includes("not assignable to type 'void'")||r.includes("may be a mistake because neither type sufficiently overlaps");return{message:r,code:m.code,severity:d?"warning":"error"}});return{isValid:!u.some(m=>m.severity==="error"),returnType:"void",diagnostics:u}};exports.DataTypeVariant=j;exports.getFlowValidation=fe;exports.getNodeSuggestions=ue;exports.getReferenceSuggestions=ge;exports.getTypeFromValue=se;exports.getTypeVariant=H;exports.getTypesFromFunction=Q;exports.getTypesFromNode=le;exports.getValueFromType=ce;exports.getValueSuggestions=pe;exports.getValueValidation=me;
|
package/dist/triangulum.es.js
CHANGED
|
@@ -209,42 +209,13 @@ function re(t, n, i, a, c) {
|
|
|
209
209
|
};
|
|
210
210
|
return y;
|
|
211
211
|
}
|
|
212
|
-
const ie = (t, n, i) => {
|
|
213
|
-
if (!t) return { parameters: [], returnType: "any" };
|
|
214
|
-
const a = t.id || "temp_node_id", c = {
|
|
215
|
-
...t,
|
|
216
|
-
id: a,
|
|
217
|
-
parameters: {
|
|
218
|
-
...t.parameters,
|
|
219
|
-
nodes: t.parameters?.nodes?.map((e) => e?.value ? e : { ...e, value: null }) || []
|
|
220
|
-
}
|
|
221
|
-
}, g = a + "_params", f = {
|
|
222
|
-
...c,
|
|
223
|
-
id: g,
|
|
224
|
-
parameters: {
|
|
225
|
-
...c.parameters,
|
|
226
|
-
nodes: c.parameters.nodes.map((e) => e.value?.__typename === "LiteralValue" && e.value.value !== null && typeof e.value.value != "object" ? { ...e, value: null } : e)
|
|
227
|
-
}
|
|
228
|
-
}, u = se({
|
|
229
|
-
nodes: { __typename: "NodeFunctionConnection", nodes: [c, f] }
|
|
230
|
-
}, n, i), m = A(a), r = A(g), d = u.parameters.get(m) || [], o = u.parameters.get(r) || [];
|
|
231
|
-
return {
|
|
232
|
-
parameters: d.map((e, s) => {
|
|
233
|
-
const l = o[s];
|
|
234
|
-
return l && l !== "any" && l !== "unknown" ? l : e;
|
|
235
|
-
}),
|
|
236
|
-
returnType: u.nodes.get(m) || "any"
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
212
|
var B = /* @__PURE__ */ ((t) => (t[t.PRIMITIVE = 0] = "PRIMITIVE", t[t.TYPE = 1] = "TYPE", t[t.ARRAY = 2] = "ARRAY", t[t.OBJECT = 3] = "OBJECT", t[t.NODE = 4] = "NODE", t))(B || {});
|
|
240
213
|
const q = (t, n) => {
|
|
241
214
|
const a = `
|
|
242
215
|
${R(n)}
|
|
243
216
|
type TargetType = ${t};
|
|
244
217
|
const val: TargetType = {} as any;
|
|
245
|
-
|
|
246
|
-
console.log(a);
|
|
247
|
-
const c = "index.ts", g = L(c, a), f = g.getSourceFile(c), u = g.languageService.getProgram().getTypeChecker();
|
|
218
|
+
`, c = "index.ts", g = L(c, a), f = g.getSourceFile(c), u = g.languageService.getProgram().getTypeChecker();
|
|
248
219
|
let m = 1;
|
|
249
220
|
const r = (d) => {
|
|
250
221
|
if (F.isVariableDeclaration(d) && d.name.getText() === "val") {
|
|
@@ -254,6 +225,82 @@ const q = (t, n) => {
|
|
|
254
225
|
F.forEachChild(d, r);
|
|
255
226
|
};
|
|
256
227
|
return r(f), m;
|
|
228
|
+
}, ie = (t) => {
|
|
229
|
+
const n = t.signature;
|
|
230
|
+
if (!n)
|
|
231
|
+
return { parameters: [], returnType: "any" };
|
|
232
|
+
let i = 0;
|
|
233
|
+
if (n.trim().startsWith("<")) {
|
|
234
|
+
let r = 0;
|
|
235
|
+
for (let d = 0; d < n.length; d++) {
|
|
236
|
+
const o = n[d];
|
|
237
|
+
if (o === "<") r++;
|
|
238
|
+
else if (o === ">" && (r--, r === 0)) {
|
|
239
|
+
i = d + 1;
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
const a = n.indexOf("(", i);
|
|
245
|
+
if (a === -1)
|
|
246
|
+
return { parameters: [], returnType: "any" };
|
|
247
|
+
let c = -1, g = 0;
|
|
248
|
+
for (let r = a; r < n.length; r++) {
|
|
249
|
+
const d = n[r];
|
|
250
|
+
if (d === "(") g++;
|
|
251
|
+
else if (d === ")" && (g--, g === 0)) {
|
|
252
|
+
c = r;
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if (c === -1)
|
|
257
|
+
return { parameters: [], returnType: "any" };
|
|
258
|
+
const f = n.substring(a + 1, c);
|
|
259
|
+
let p = n.substring(c + 1).trim();
|
|
260
|
+
p.startsWith(":") && (p = p.substring(1).trim());
|
|
261
|
+
const u = p || "void", m = [];
|
|
262
|
+
if (f.trim()) {
|
|
263
|
+
let r = "", d = 0, o = 0, y = 0, e = 0;
|
|
264
|
+
const s = (l) => {
|
|
265
|
+
let h = -1, T = 0, v = 0, _ = 0, E = 0;
|
|
266
|
+
for (let D = 0; D < l.length; D++) {
|
|
267
|
+
const S = l[D];
|
|
268
|
+
if (S === "{") T++;
|
|
269
|
+
else if (S === "}") T--;
|
|
270
|
+
else if (S === "[") v++;
|
|
271
|
+
else if (S === "]") v--;
|
|
272
|
+
else if (S === "(") _++;
|
|
273
|
+
else if (S === ")") _--;
|
|
274
|
+
else if (S === "<") E++;
|
|
275
|
+
else if (S === ">") E--;
|
|
276
|
+
else if (S === ":" && T === 0 && v === 0 && _ === 0 && E === 0) {
|
|
277
|
+
h = D;
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
h !== -1 ? m.push(l.substring(h + 1).trim()) : m.push("any");
|
|
282
|
+
};
|
|
283
|
+
for (const l of f) {
|
|
284
|
+
if (l === "(") d++;
|
|
285
|
+
else if (l === ")") d--;
|
|
286
|
+
else if (l === "<") o++;
|
|
287
|
+
else if (l === ">") o--;
|
|
288
|
+
else if (l === "{") y++;
|
|
289
|
+
else if (l === "}") y--;
|
|
290
|
+
else if (l === "[") e++;
|
|
291
|
+
else if (l === "]") e--;
|
|
292
|
+
else if (l === "," && d === 0 && o === 0 && y === 0 && e === 0) {
|
|
293
|
+
s(r.trim()), r = "";
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
r += l;
|
|
297
|
+
}
|
|
298
|
+
r.trim() && s(r.trim());
|
|
299
|
+
}
|
|
300
|
+
return {
|
|
301
|
+
parameters: m,
|
|
302
|
+
returnType: u
|
|
303
|
+
};
|
|
257
304
|
}, ae = `
|
|
258
305
|
interface Array<T> {
|
|
259
306
|
[n: number]: T;
|
|
@@ -315,10 +362,12 @@ function H(t, n, i, a = !1) {
|
|
|
315
362
|
if (f.has(e)) return "";
|
|
316
363
|
const l = c.find((C) => C?.id === e);
|
|
317
364
|
if (!l || !l.functionDefinition) return "";
|
|
318
|
-
|
|
365
|
+
f.add(e);
|
|
366
|
+
const h = g.get(l.functionDefinition.identifier);
|
|
367
|
+
if (!h) return `${s}// Error: Function ${l.functionDefinition.identifier} not found
|
|
319
368
|
`;
|
|
320
369
|
let T = { parameters: [] };
|
|
321
|
-
a || (T = ie(
|
|
370
|
+
a || (T = ie(h));
|
|
322
371
|
const _ = (l.parameters?.nodes || []).map((C, $) => {
|
|
323
372
|
const b = C.value;
|
|
324
373
|
if (!b) return a ? `/* @pos ${e} ${$} */ {}` : `/* @pos ${e} ${$} */ undefined`;
|
|
@@ -456,81 +505,31 @@ const ue = (t) => {
|
|
|
456
505
|
__typename: "LiteralValue",
|
|
457
506
|
value: r(m, u)
|
|
458
507
|
};
|
|
459
|
-
}, pe = (t) => {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
const o = n[d];
|
|
468
|
-
if (o === "<") r++;
|
|
469
|
-
else if (o === ">" && (r--, r === 0)) {
|
|
470
|
-
i = d + 1;
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
const a = n.indexOf("(", i);
|
|
476
|
-
if (a === -1)
|
|
477
|
-
return { parameters: [], returnType: "any" };
|
|
478
|
-
let c = -1, g = 0;
|
|
479
|
-
for (let r = a; r < n.length; r++) {
|
|
480
|
-
const d = n[r];
|
|
481
|
-
if (d === "(") g++;
|
|
482
|
-
else if (d === ")" && (g--, g === 0)) {
|
|
483
|
-
c = r;
|
|
484
|
-
break;
|
|
508
|
+
}, pe = (t, n, i) => {
|
|
509
|
+
if (!t) return { parameters: [], returnType: "any" };
|
|
510
|
+
const a = t.id || "temp_node_id", c = {
|
|
511
|
+
...t,
|
|
512
|
+
id: a,
|
|
513
|
+
parameters: {
|
|
514
|
+
...t.parameters,
|
|
515
|
+
nodes: t.parameters?.nodes?.map((e) => e?.value ? e : { ...e, value: null }) || []
|
|
485
516
|
}
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
const u = p || "void", m = [];
|
|
493
|
-
if (f.trim()) {
|
|
494
|
-
let r = "", d = 0, o = 0, y = 0, e = 0;
|
|
495
|
-
const s = (l) => {
|
|
496
|
-
let h = -1, T = 0, v = 0, _ = 0, E = 0;
|
|
497
|
-
for (let D = 0; D < l.length; D++) {
|
|
498
|
-
const S = l[D];
|
|
499
|
-
if (S === "{") T++;
|
|
500
|
-
else if (S === "}") T--;
|
|
501
|
-
else if (S === "[") v++;
|
|
502
|
-
else if (S === "]") v--;
|
|
503
|
-
else if (S === "(") _++;
|
|
504
|
-
else if (S === ")") _--;
|
|
505
|
-
else if (S === "<") E++;
|
|
506
|
-
else if (S === ">") E--;
|
|
507
|
-
else if (S === ":" && T === 0 && v === 0 && _ === 0 && E === 0) {
|
|
508
|
-
h = D;
|
|
509
|
-
break;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
h !== -1 ? m.push(l.substring(h + 1).trim()) : m.push("any");
|
|
513
|
-
};
|
|
514
|
-
for (const l of f) {
|
|
515
|
-
if (l === "(") d++;
|
|
516
|
-
else if (l === ")") d--;
|
|
517
|
-
else if (l === "<") o++;
|
|
518
|
-
else if (l === ">") o--;
|
|
519
|
-
else if (l === "{") y++;
|
|
520
|
-
else if (l === "}") y--;
|
|
521
|
-
else if (l === "[") e++;
|
|
522
|
-
else if (l === "]") e--;
|
|
523
|
-
else if (l === "," && d === 0 && o === 0 && y === 0 && e === 0) {
|
|
524
|
-
s(r.trim()), r = "";
|
|
525
|
-
continue;
|
|
526
|
-
}
|
|
527
|
-
r += l;
|
|
517
|
+
}, g = a + "_params", f = {
|
|
518
|
+
...c,
|
|
519
|
+
id: g,
|
|
520
|
+
parameters: {
|
|
521
|
+
...c.parameters,
|
|
522
|
+
nodes: c.parameters.nodes.map((e) => e.value?.__typename === "LiteralValue" && e.value.value !== null && typeof e.value.value != "object" ? { ...e, value: null } : e)
|
|
528
523
|
}
|
|
529
|
-
|
|
530
|
-
|
|
524
|
+
}, u = se({
|
|
525
|
+
nodes: { __typename: "NodeFunctionConnection", nodes: [c, f] }
|
|
526
|
+
}, n, i), m = A(a), r = A(g), d = u.parameters.get(m) || [], o = u.parameters.get(r) || [];
|
|
531
527
|
return {
|
|
532
|
-
parameters:
|
|
533
|
-
|
|
528
|
+
parameters: d.map((e, s) => {
|
|
529
|
+
const l = o[s];
|
|
530
|
+
return l && l !== "any" && l !== "unknown" ? l : e;
|
|
531
|
+
}),
|
|
532
|
+
returnType: u.nodes.get(m) || "any"
|
|
534
533
|
};
|
|
535
534
|
}, fe = (t, n, i) => {
|
|
536
535
|
let a = n;
|
|
@@ -695,8 +694,8 @@ export {
|
|
|
695
694
|
me as getReferenceSuggestions,
|
|
696
695
|
ue as getTypeFromValue,
|
|
697
696
|
q as getTypeVariant,
|
|
698
|
-
|
|
699
|
-
|
|
697
|
+
ie as getTypesFromFunction,
|
|
698
|
+
pe as getTypesFromNode,
|
|
700
699
|
ge as getValueFromType,
|
|
701
700
|
de as getValueSuggestions,
|
|
702
701
|
Fe as getValueValidation
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataType, Flow, FunctionDefinition, NodeFunction
|
|
1
|
+
import { DataType, Flow, FunctionDefinition, NodeFunction } from '@code0-tech/sagittarius-graphql-types';
|
|
2
2
|
import { default as ts } from 'typescript';
|
|
3
3
|
import { VirtualTypeScriptEnvironment } from '@typescript/vfs';
|
|
4
4
|
/**
|
|
@@ -31,13 +31,6 @@ export declare const DEFAULT_COMPILER_OPTIONS: ts.CompilerOptions;
|
|
|
31
31
|
* Extracts and returns common type and generic declarations from DATA_TYPES.
|
|
32
32
|
*/
|
|
33
33
|
export declare function getSharedTypeDeclarations(dataTypes?: DataType[], genericType?: string): string;
|
|
34
|
-
/**
|
|
35
|
-
* Determines the type along a reference path for objects.
|
|
36
|
-
* @param value The base value to traverse.
|
|
37
|
-
* @param referencePath The path of properties to follow.
|
|
38
|
-
* @returns The typeof the final value or 'unknown' if path is broken.
|
|
39
|
-
*/
|
|
40
|
-
export declare function getTypeFromReferencePath(value: any, referencePath: ReferencePath[]): string;
|
|
41
34
|
/**
|
|
42
35
|
* Sanitizes an ID for use as a TypeScript variable name.
|
|
43
36
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code0-tech/triangulum",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://github.com/code0-tech/triangulum#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"build": "vite build"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@code0-tech/sagittarius-graphql-types": "0.0.0-experimental-
|
|
33
|
+
"@code0-tech/sagittarius-graphql-types": "0.0.0-experimental-2414125487-fbc8a5ec8a2dd07cc76957d4315281c246e98d57",
|
|
34
34
|
"@types/node": "^25.3.2",
|
|
35
35
|
"typescript": "^5.9.3",
|
|
36
36
|
"vite": "^7.3.1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@typescript/vfs": "^1.6.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@code0-tech/sagittarius-graphql-types": "0.0.0-experimental-
|
|
42
|
+
"@code0-tech/sagittarius-graphql-types": "0.0.0-experimental-2414125487-fbc8a5ec8a2dd07cc76957d4315281c246e98d57",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
44
|
"@typescript/vfs": "^1.6.4"
|
|
45
45
|
}
|