@cascadeflow/n8n-nodes-cascadeflow 1.1.0 → 1.3.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.
@@ -1 +1 @@
1
- "use strict";var s=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var m=(e,n)=>{for(var o in n)s(e,o,{get:n[o],enumerable:!0})},u=(e,n,o,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of i(n))!c.call(e,t)&&t!==o&&s(e,t,{get:()=>n[t],enumerable:!(a=d(n,t))||a.enumerable});return e};var l=e=>u(s({},"__esModule",{value:!0}),e);var f={};m(f,{buildCascadeMetadata:()=>b,calculateSavings:()=>r});module.exports=l(f);var r=(e,n)=>{let o=n??e,a=Math.max(0,o-e),t=o>0?a/o*100:0;return{usd:a,percent:t}},b=e=>({model_used:e.modelUsed,domain:e.domain,confidence:e.confidence,costs:e.costs,savings:r(e.costs.total,e.baselineCost)});0&&(module.exports={buildCascadeMetadata,calculateSavings});
1
+ "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var c=(e,n)=>{for(var o in n)a(e,o,{get:n[o],enumerable:!0})},u=(e,n,o,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of i(n))!m.call(e,t)&&t!==o&&a(e,t,{get:()=>n[t],enumerable:!(s=d(n,t))||s.enumerable});return e};var l=e=>u(a({},"__esModule",{value:!0}),e);var f={};c(f,{buildCascadeMetadata:()=>b,calculateSavings:()=>r});module.exports=l(f);var r=(e,n)=>{let o=n??e,s=Math.max(0,o-e),t=o>0?s/o*100:0;return{usd:s,percent:t}},b=e=>({model_used:e.modelUsed,domain:e.domain,confidence:e.confidence,costs:e.costs,savings:r(e.costs.total,e.baselineCost)});0&&(module.exports={buildCascadeMetadata,calculateSavings});
@@ -0,0 +1 @@
1
+ "use strict";var h=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var Y=(e,t)=>{for(var o in t)h(e,o,{get:t[o],enumerable:!0})},j=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of v(t))!H.call(e,s)&&s!==o&&h(e,s,{get:()=>t[s],enumerable:!(n=W(t,s))||n.enumerable});return e};var K=e=>j(h({},"__esModule",{value:!0}),e);var tt={};Y(tt,{COMPLIANCE_MODEL_ALLOWLISTS:()=>U,HarnessRunContext:()=>C,LATENCY_PRIORS:()=>f,QUALITY_PRIORS:()=>L,normalizeWeights:()=>A});module.exports=K(tt);var r={"gpt-4o":[2.5,10],"gpt-4o-mini":[.15,.6],"gpt-5":[1.25,10],"gpt-5-mini":[.2,.8],"gpt-4-turbo":[10,30],"gpt-4":[30,60],"gpt-3.5-turbo":[.5,1.5],o1:[15,60],"o1-mini":[3,12],"o3-mini":[1.1,4.4],"claude-sonnet-4":[3,15],"claude-haiku-3.5":[1,5],"claude-opus-4.5":[5,25],"gemini-2.5-flash":[.15,.6],"gemini-2.5-pro":[1.25,10],"gemini-2.0-flash":[.1,.4],"gemini-1.5-flash":[.075,.3],"gemini-1.5-pro":[1.25,5]},m=[2.5,10],u={"gpt-4o":1,"gpt-4o-mini":.3,"gpt-5":1.2,"gpt-5-mini":.35,"gpt-4-turbo":1.5,"gpt-4":1.5,"gpt-3.5-turbo":.2,o1:2,"o1-mini":.8,"o3-mini":.5,"claude-sonnet-4":1,"claude-haiku-3.5":.3,"claude-opus-4.5":1.8,"gemini-2.5-flash":.3,"gemini-2.5-pro":1.2,"gemini-2.0-flash":.25,"gemini-1.5-flash":.2,"gemini-1.5-pro":1},a=1,q=1.5,X=/(-preview(?:-\d{2,4}-\d{2})?|-\d{8,}|-latest|-exp(?:-\d+)?|-it)$/,l=new Map;function M(e){let t=l.get(e);if(t!==void 0)return t;if(e in r)return l.set(e,e),e;let o=e.replace(X,"");if(o!==e&&o in r)return l.set(e,o),o;let n=null,s=0;for(let i of Object.keys(r))e.startsWith(i)&&i.length>s&&(n=i,s=i.length);return n!==null?(l.set(e,n),n):(l.set(e,null),null)}function T(e,t,o){let n=M(e),[s,i]=n!==null?r[n]??m:m;return t/1e6*s+o/1e6*i}function O(e,t,o){let n=M(e);return(n!==null?u[n]??a:a)*(t+o*q)}function d(e){let t=M(e),[o,n]=t!==null?r[t]??m:m;return o+n}var U={gdpr:new Set(["gpt-4o","gpt-4o-mini","gpt-3.5-turbo"]),hipaa:new Set(["gpt-4o","gpt-4o-mini"]),pci:new Set(["gpt-4o-mini","gpt-3.5-turbo"]),strict:new Set(["gpt-4o"])},L={"gpt-4o":.9,"gpt-4o-mini":.75,"gpt-5-mini":.86,"gpt-4-turbo":.88,"gpt-4":.87,"gpt-3.5-turbo":.65,o1:.95,"o1-mini":.82,"o3-mini":.8},f={"gpt-4o":.72,"gpt-4o-mini":.93,"gpt-5-mini":.84,"gpt-4-turbo":.66,"gpt-4":.52,"gpt-3.5-turbo":1,o1:.4,"o1-mini":.6,"o3-mini":.78},x=Object.keys(r),g=new Map(x.map(e=>[e,d(e)])),w=Math.min(...g.values()),y=Math.max(...g.values()),E=new Map(x.map(e=>[e,u[e]??a])),I=Math.min(...E.values()),_=Math.max(...E.values());function A(e){let t={};for(let[s,i]of Object.entries(e))["cost","quality","latency","energy"].includes(s)&&typeof i=="number"&&i>0&&(t[s]=i);let o=Object.values(t).reduce((s,i)=>s+i,0);if(o<=0)return{};let n={};for(let[s,i]of Object.entries(t))n[s]=i/o;return n}function $(e){let t=g.get(e)??d(e);return y===w?1:(y-t)/(y-w)}function z(e){let t=u[e]??a;return _===I?1:(_-t)/(_-I)}function S(e,t){if(Object.keys(t).length===0)return 0;let o=L[e]??.7,n=f[e]??.7,s=$(e),i=z(e);return(t.quality??0)*o+(t.latency??0)*n+(t.cost??0)*s+(t.energy??0)*i}function B(e,t){let o=A(t);if(Object.keys(o).length===0)return e;let n=e,s=S(e,o);for(let i of x){let p=S(i,o);p>s&&(n=i,s=p)}return n}function Q(e){let t=e,o=g.get(e)??d(e);for(let[n,s]of g)s<o&&(t=n,o=s);return t}function V(e){let t=f[e]??.7,o=e,n=t;for(let[s,i]of Object.entries(f))i>n&&(o=s,n=i);return o}function J(e){let t=u[e]??a,o=e,n=t;for(let[s,i]of E)i<n&&(o=s,n=i);return o}var P=1e3;function b(e){return e==null||!Number.isFinite(e)||e<0?null:e}var N=0;function Z(){N+=1;let e=Date.now().toString(36),t=N.toString(36);return`${e}${t}`.slice(-8)}var C=class{constructor(t){this.stepCount=0;this.toolCalls=0;this.cost=0;this.latencyUsedMs=0;this.energyUsed=0;this.lastAction="allow";this.trace=[];this.runId=Z(),this.config={...t,budgetMax:b(t.budgetMax),toolCallsMax:b(t.toolCallsMax),latencyMaxMs:b(t.latencyMaxMs),energyMax:b(t.energyMax)},this.budgetRemaining=this.config.budgetMax,this.startedAt=Date.now()}evaluatePreCall(t,o){let n=this.config;if(n.budgetMax!==null&&this.cost>=n.budgetMax)return{action:"stop",reason:"budget_exceeded",targetModel:t};if(o&&n.toolCallsMax!==null&&this.toolCalls>=n.toolCallsMax)return{action:"deny_tool",reason:"max_tool_calls_reached",targetModel:t};if(n.compliance){let i=U[n.compliance.trim().toLowerCase()];if(i){if(!i.has(t))return{action:"stop",reason:"compliance_no_approved_model",targetModel:t};if(n.compliance.trim().toLowerCase()==="strict"&&o)return{action:"deny_tool",reason:"compliance_tool_restriction",targetModel:t}}}if(n.latencyMaxMs!==null&&this.latencyUsedMs>=n.latencyMaxMs){let i=V(t);return i!==t?{action:"switch_model",reason:"latency_limit_exceeded",targetModel:i}:{action:"stop",reason:"latency_limit_exceeded",targetModel:t}}if(n.energyMax!==null&&this.energyUsed>=n.energyMax){let i=J(t);return i!==t?{action:"switch_model",reason:"energy_limit_exceeded",targetModel:i}:{action:"stop",reason:"energy_limit_exceeded",targetModel:t}}if(n.budgetMax!==null&&n.budgetMax>0&&this.budgetRemaining!==null&&this.budgetRemaining/n.budgetMax<.2){let i=Q(t);if(i!==t)return{action:"switch_model",reason:"budget_pressure",targetModel:i}}let s=n.kpiWeights;if(s&&Object.values(s).some(i=>typeof i=="number"&&i>0)){let i=B(t,s);if(i!==t)return{action:"switch_model",reason:"kpi_weight_optimization",targetModel:i}}return{action:"allow",reason:n.mode,targetModel:t}}recordCall(t){let{model:o,inputTokens:n,outputTokens:s,toolCallCount:i,elapsedMs:p,decision:R}=t,k=T(o,n,s),F=O(o,n,s);this.cost+=k,this.stepCount+=1,this.latencyUsedMs+=p,this.energyUsed+=F,this.toolCalls+=i,this.config.budgetMax!==null&&(this.budgetRemaining=this.config.budgetMax-this.cost);let c=R?.action??"allow",D=R?.reason??this.config.mode,G=c==="allow"||this.config.mode==="enforce"&&(c==="stop"||c==="deny_tool");this.lastAction=c,this.trace.push({action:c,reason:D,model:o,step:this.stepCount,timestampMs:Date.now(),costTotal:this.cost,budgetState:{max:this.config.budgetMax,remaining:this.budgetRemaining},applied:G,decisionMode:this.config.mode}),this.trace.length>P&&(this.trace=this.trace.slice(-P))}isBudgetExhausted(){return this.config.budgetMax!==null&&this.cost>=this.config.budgetMax}isToolCapReached(){return this.config.toolCallsMax!==null&&this.toolCalls>=this.config.toolCallsMax}summary(){return{runId:this.runId,mode:this.config.mode,stepCount:this.stepCount,toolCalls:this.toolCalls,cost:this.cost,latencyUsedMs:this.latencyUsedMs,energyUsed:this.energyUsed,budgetMax:this.config.budgetMax,budgetRemaining:this.budgetRemaining,lastAction:this.lastAction,durationMs:Date.now()-this.startedAt,trace:[...this.trace]}}};0&&(module.exports={COMPLIANCE_MODEL_ALLOWLISTS,HarnessRunContext,LATENCY_PRIORS,QUALITY_PRIORS,normalizeWeights});
@@ -0,0 +1 @@
1
+ "use strict";var _=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var H=Object.prototype.hasOwnProperty;var W=(e,t)=>{for(var s in t)_(e,s,{get:t[s],enumerable:!0})},Y=(e,t,s,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of G(t))!H.call(e,o)&&o!==s&&_(e,o,{get:()=>t[o],enumerable:!(n=k(t,o))||n.enumerable});return e};var v=e=>Y(_({},"__esModule",{value:!0}),e);var tt={};W(tt,{DEFAULT_ENERGY_COEFFICIENT:()=>a,DEFAULT_PRICING_USD_PER_M:()=>l,ENERGY_COEFFICIENTS:()=>c,ENERGY_OUTPUT_WEIGHT:()=>C,HarnessRunContext:()=>y,PRICING_USD_PER_M:()=>r,estimateCost:()=>f,estimateEnergy:()=>h,modelTotalPrice:()=>u,resolvePricingKey:()=>m});module.exports=v(tt);var r={"gpt-4o":[2.5,10],"gpt-4o-mini":[.15,.6],"gpt-5":[1.25,10],"gpt-5-mini":[.2,.8],"gpt-4-turbo":[10,30],"gpt-4":[30,60],"gpt-3.5-turbo":[.5,1.5],o1:[15,60],"o1-mini":[3,12],"o3-mini":[1.1,4.4],"claude-sonnet-4":[3,15],"claude-haiku-3.5":[1,5],"claude-opus-4.5":[5,25],"gemini-2.5-flash":[.15,.6],"gemini-2.5-pro":[1.25,10],"gemini-2.0-flash":[.1,.4],"gemini-1.5-flash":[.075,.3],"gemini-1.5-pro":[1.25,5]},l=[2.5,10],c={"gpt-4o":1,"gpt-4o-mini":.3,"gpt-5":1.2,"gpt-5-mini":.35,"gpt-4-turbo":1.5,"gpt-4":1.5,"gpt-3.5-turbo":.2,o1:2,"o1-mini":.8,"o3-mini":.5,"claude-sonnet-4":1,"claude-haiku-3.5":.3,"claude-opus-4.5":1.8,"gemini-2.5-flash":.3,"gemini-2.5-pro":1.2,"gemini-2.0-flash":.25,"gemini-1.5-flash":.2,"gemini-1.5-pro":1},a=1,C=1.5,j=/(-preview(?:-\d{2,4}-\d{2})?|-\d{8,}|-latest|-exp(?:-\d+)?|-it)$/,p=new Map;function m(e){let t=p.get(e);if(t!==void 0)return t;if(e in r)return p.set(e,e),e;let s=e.replace(j,"");if(s!==e&&s in r)return p.set(e,s),s;let n=null,o=0;for(let i of Object.keys(r))e.startsWith(i)&&i.length>o&&(n=i,o=i.length);return n!==null?(p.set(e,n),n):(p.set(e,null),null)}function f(e,t,s){let n=m(e),[o,i]=n!==null?r[n]??l:l;return t/1e6*o+s/1e6*i}function h(e,t,s){let n=m(e);return(n!==null?c[n]??a:a)*(t+s*C)}function u(e){let t=m(e),[s,n]=t!==null?r[t]??l:l;return s+n}var K={gdpr:new Set(["gpt-4o","gpt-4o-mini","gpt-3.5-turbo"]),hipaa:new Set(["gpt-4o","gpt-4o-mini"]),pci:new Set(["gpt-4o-mini","gpt-3.5-turbo"]),strict:new Set(["gpt-4o"])},q={"gpt-4o":.9,"gpt-4o-mini":.75,"gpt-5-mini":.86,"gpt-4-turbo":.88,"gpt-4":.87,"gpt-3.5-turbo":.65,o1:.95,"o1-mini":.82,"o3-mini":.8},R={"gpt-4o":.72,"gpt-4o-mini":.93,"gpt-5-mini":.84,"gpt-4-turbo":.66,"gpt-4":.52,"gpt-3.5-turbo":1,o1:.4,"o1-mini":.6,"o3-mini":.78},T=Object.keys(r),d=new Map(T.map(e=>[e,u(e)])),P=Math.min(...d.values()),E=Math.max(...d.values()),I=new Map(T.map(e=>[e,c[e]??a])),S=Math.min(...I.values()),x=Math.max(...I.values());function X(e){let t={};for(let[o,i]of Object.entries(e))["cost","quality","latency","energy"].includes(o)&&typeof i=="number"&&i>0&&(t[o]=i);let s=Object.values(t).reduce((o,i)=>o+i,0);if(s<=0)return{};let n={};for(let[o,i]of Object.entries(t))n[o]=i/s;return n}function $(e){let t=d.get(e)??u(e);return E===P?1:(E-t)/(E-P)}function z(e){let t=c[e]??a;return x===S?1:(x-t)/(x-S)}function w(e,t){if(Object.keys(t).length===0)return 0;let s=q[e]??.7,n=R[e]??.7,o=$(e),i=z(e);return(t.quality??0)*s+(t.latency??0)*n+(t.cost??0)*o+(t.energy??0)*i}function B(e,t){let s=X(t);if(Object.keys(s).length===0)return e;let n=e,o=w(e,s);for(let i of T){let b=w(i,s);b>o&&(n=i,o=b)}return n}function Q(e){let t=e,s=d.get(e)??u(e);for(let[n,o]of d)o<s&&(t=n,s=o);return t}function V(e){let t=R[e]??.7,s=e,n=t;for(let[o,i]of Object.entries(R))i>n&&(s=o,n=i);return s}function J(e){let t=c[e]??a,s=e,n=t;for(let[o,i]of I)i<n&&(s=o,n=i);return s}var N=1e3;function M(e){return e==null||!Number.isFinite(e)||e<0?null:e}var U=0;function Z(){U+=1;let e=Date.now().toString(36),t=U.toString(36);return`${e}${t}`.slice(-8)}var y=class{constructor(t){this.stepCount=0;this.toolCalls=0;this.cost=0;this.latencyUsedMs=0;this.energyUsed=0;this.lastAction="allow";this.trace=[];this.runId=Z(),this.config={...t,budgetMax:M(t.budgetMax),toolCallsMax:M(t.toolCallsMax),latencyMaxMs:M(t.latencyMaxMs),energyMax:M(t.energyMax)},this.budgetRemaining=this.config.budgetMax,this.startedAt=Date.now()}evaluatePreCall(t,s){let n=this.config;if(n.budgetMax!==null&&this.cost>=n.budgetMax)return{action:"stop",reason:"budget_exceeded",targetModel:t};if(s&&n.toolCallsMax!==null&&this.toolCalls>=n.toolCallsMax)return{action:"deny_tool",reason:"max_tool_calls_reached",targetModel:t};if(n.compliance){let i=K[n.compliance.trim().toLowerCase()];if(i){if(!i.has(t))return{action:"stop",reason:"compliance_no_approved_model",targetModel:t};if(n.compliance.trim().toLowerCase()==="strict"&&s)return{action:"deny_tool",reason:"compliance_tool_restriction",targetModel:t}}}if(n.latencyMaxMs!==null&&this.latencyUsedMs>=n.latencyMaxMs){let i=V(t);return i!==t?{action:"switch_model",reason:"latency_limit_exceeded",targetModel:i}:{action:"stop",reason:"latency_limit_exceeded",targetModel:t}}if(n.energyMax!==null&&this.energyUsed>=n.energyMax){let i=J(t);return i!==t?{action:"switch_model",reason:"energy_limit_exceeded",targetModel:i}:{action:"stop",reason:"energy_limit_exceeded",targetModel:t}}if(n.budgetMax!==null&&n.budgetMax>0&&this.budgetRemaining!==null&&this.budgetRemaining/n.budgetMax<.2){let i=Q(t);if(i!==t)return{action:"switch_model",reason:"budget_pressure",targetModel:i}}let o=n.kpiWeights;if(o&&Object.values(o).some(i=>typeof i=="number"&&i>0)){let i=B(t,o);if(i!==t)return{action:"switch_model",reason:"kpi_weight_optimization",targetModel:i}}return{action:"allow",reason:n.mode,targetModel:t}}recordCall(t){let{model:s,inputTokens:n,outputTokens:o,toolCallCount:i,elapsedMs:b,decision:O}=t,F=f(s,n,o),L=h(s,n,o);this.cost+=F,this.stepCount+=1,this.latencyUsedMs+=b,this.energyUsed+=L,this.toolCalls+=i,this.config.budgetMax!==null&&(this.budgetRemaining=this.config.budgetMax-this.cost);let g=O?.action??"allow",A=O?.reason??this.config.mode,D=g==="allow"||this.config.mode==="enforce"&&(g==="stop"||g==="deny_tool");this.lastAction=g,this.trace.push({action:g,reason:A,model:s,step:this.stepCount,timestampMs:Date.now(),costTotal:this.cost,budgetState:{max:this.config.budgetMax,remaining:this.budgetRemaining},applied:D,decisionMode:this.config.mode}),this.trace.length>N&&(this.trace=this.trace.slice(-N))}isBudgetExhausted(){return this.config.budgetMax!==null&&this.cost>=this.config.budgetMax}isToolCapReached(){return this.config.toolCallsMax!==null&&this.toolCalls>=this.config.toolCallsMax}summary(){return{runId:this.runId,mode:this.config.mode,stepCount:this.stepCount,toolCalls:this.toolCalls,cost:this.cost,latencyUsedMs:this.latencyUsedMs,energyUsed:this.energyUsed,budgetMax:this.config.budgetMax,budgetRemaining:this.budgetRemaining,lastAction:this.lastAction,durationMs:Date.now()-this.startedAt,trace:[...this.trace]}}};0&&(module.exports={DEFAULT_ENERGY_COEFFICIENT,DEFAULT_PRICING_USD_PER_M,ENERGY_COEFFICIENTS,ENERGY_OUTPUT_WEIGHT,HarnessRunContext,PRICING_USD_PER_M,estimateCost,estimateEnergy,modelTotalPrice,resolvePricingKey});
@@ -0,0 +1 @@
1
+ "use strict";var p=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var _=(n,t)=>{for(var e in t)p(n,e,{get:t[e],enumerable:!0})},h=(n,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of b(t))!E.call(n,r)&&r!==e&&p(n,r,{get:()=>t[r],enumerable:!(i=f(t,r))||i.enumerable});return n};var I=n=>h(p({},"__esModule",{value:!0}),n);var F={};_(F,{DEFAULT_ENERGY_COEFFICIENT:()=>l,DEFAULT_PRICING_USD_PER_M:()=>c,ENERGY_COEFFICIENTS:()=>a,ENERGY_OUTPUT_WEIGHT:()=>m,PRICING_USD_PER_M:()=>s,estimateCost:()=>R,estimateEnergy:()=>x,modelTotalPrice:()=>C,resolvePricingKey:()=>g});module.exports=I(F);var s={"gpt-4o":[2.5,10],"gpt-4o-mini":[.15,.6],"gpt-5":[1.25,10],"gpt-5-mini":[.2,.8],"gpt-4-turbo":[10,30],"gpt-4":[30,60],"gpt-3.5-turbo":[.5,1.5],o1:[15,60],"o1-mini":[3,12],"o3-mini":[1.1,4.4],"claude-sonnet-4":[3,15],"claude-haiku-3.5":[1,5],"claude-opus-4.5":[5,25],"gemini-2.5-flash":[.15,.6],"gemini-2.5-pro":[1.25,10],"gemini-2.0-flash":[.1,.4],"gemini-1.5-flash":[.075,.3],"gemini-1.5-pro":[1.25,5]},c=[2.5,10],a={"gpt-4o":1,"gpt-4o-mini":.3,"gpt-5":1.2,"gpt-5-mini":.35,"gpt-4-turbo":1.5,"gpt-4":1.5,"gpt-3.5-turbo":.2,o1:2,"o1-mini":.8,"o3-mini":.5,"claude-sonnet-4":1,"claude-haiku-3.5":.3,"claude-opus-4.5":1.8,"gemini-2.5-flash":.3,"gemini-2.5-pro":1.2,"gemini-2.0-flash":.25,"gemini-1.5-flash":.2,"gemini-1.5-pro":1},l=1,m=1.5,P=/(-preview(?:-\d{2,4}-\d{2})?|-\d{8,}|-latest|-exp(?:-\d+)?|-it)$/,u=new Map;function g(n){let t=u.get(n);if(t!==void 0)return t;if(n in s)return u.set(n,n),n;let e=n.replace(P,"");if(e!==n&&e in s)return u.set(n,e),e;let i=null,r=0;for(let o of Object.keys(s))n.startsWith(o)&&o.length>r&&(i=o,r=o.length);return i!==null?(u.set(n,i),i):(u.set(n,null),null)}function R(n,t,e){let i=g(n),[r,o]=i!==null?s[i]??c:c;return t/1e6*r+e/1e6*o}function x(n,t,e){let i=g(n);return(i!==null?a[i]??l:l)*(t+e*m)}function C(n){let t=g(n),[e,i]=t!==null?s[t]??c:c;return e+i}0&&(module.exports={DEFAULT_ENERGY_COEFFICIENT,DEFAULT_PRICING_USD_PER_M,ENERGY_COEFFICIENTS,ENERGY_OUTPUT_WEIGHT,PRICING_USD_PER_M,estimateCost,estimateEnergy,modelTotalPrice,resolvePricingKey});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cascadeflow/n8n-nodes-cascadeflow",
3
- "version": "1.1.0",
4
- "description": "n8n node for cascadeflow - Smart AI model cascading with 40-85% cost savings",
3
+ "version": "1.3.0",
4
+ "description": "n8n community node for cascadeflow agent runtime intelligence layer with 40-85% cost savings",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
7
7
  "n8n",
@@ -45,7 +45,7 @@
45
45
  ]
46
46
  },
47
47
  "devDependencies": {
48
- "@cascadeflow/core": "^1.0.1",
48
+ "@cascadeflow/core": "^1.1.0",
49
49
  "@types/node": "^20.10.0",
50
50
  "@typescript-eslint/parser": "^6.0.0",
51
51
  "esbuild": "^0.24.0",
@@ -58,12 +58,10 @@
58
58
  "vitest": "^1.0.4"
59
59
  },
60
60
  "peerDependencies": {
61
- "n8n-workflow": "*"
61
+ "n8n-workflow": "*",
62
+ "@langchain/core": ">=0.3.0"
62
63
  },
63
64
  "publishConfig": {
64
65
  "access": "public"
65
- },
66
- "dependencies": {
67
- "@langchain/core": "^1.1.0"
68
66
  }
69
67
  }