@graphrefly/graphrefly 0.40.0 → 0.41.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.
Files changed (87) hide show
  1. package/dist/{chunk-6XVD5TZV.js → chunk-2W553JJC.js} +1 -1
  2. package/dist/{chunk-WL6LFPJB.js → chunk-33N4TU3X.js} +1 -1
  3. package/dist/{chunk-RZJDIV2G.js → chunk-4MKL6Q3K.js} +1 -1
  4. package/dist/chunk-5B3JDG5F.js +1 -0
  5. package/dist/{chunk-K2Z7UENB.js → chunk-5QSXEMXG.js} +1 -1
  6. package/dist/{chunk-ECQRP2UT.js → chunk-5TEFC2ZX.js} +1 -1
  7. package/dist/{chunk-SVFKHUCW.js → chunk-5TOPVRN6.js} +1 -1
  8. package/dist/{chunk-XJLYLLIJ.js → chunk-5VEZLQFN.js} +1 -1
  9. package/dist/{chunk-32N3JALT.js → chunk-7PQLZMOG.js} +1 -1
  10. package/dist/{chunk-2QXRYP7Q.js → chunk-AI7QC7J6.js} +1 -1
  11. package/dist/{chunk-FHRBBHJN.js → chunk-AK5RHMC5.js} +1 -1
  12. package/dist/{chunk-B7LCDQEV.js → chunk-CGNOWGV6.js} +1 -1
  13. package/dist/{chunk-LCGAVGGV.js → chunk-CYOSWFT2.js} +1 -1
  14. package/dist/{chunk-VMF23LGB.js → chunk-EC2WNSZ7.js} +1 -1
  15. package/dist/{chunk-UWA6D7UF.js → chunk-ELAASRBT.js} +1 -1
  16. package/dist/{chunk-Z4F3DOWS.js → chunk-F7VUYPP6.js} +1 -1
  17. package/dist/{chunk-LYM4PBMV.js → chunk-G3M3IMEV.js} +1 -1
  18. package/dist/{chunk-SSCGRYJ2.js → chunk-GI4Q7PNY.js} +1 -1
  19. package/dist/{chunk-7Q4ZD3YW.js → chunk-H5SCWHWP.js} +1 -1
  20. package/dist/{chunk-6I726LZU.js → chunk-KNVCCBIU.js} +1 -1
  21. package/dist/{chunk-CKFQS2CJ.js → chunk-L77I47VU.js} +1 -1
  22. package/dist/{chunk-I2DEVPMU.js → chunk-M3FQSXEW.js} +1 -1
  23. package/dist/{chunk-WUT362QV.js → chunk-OLIKJUKI.js} +1 -1
  24. package/dist/{chunk-QSK3RRII.js → chunk-OV5AA6HJ.js} +1 -1
  25. package/dist/{chunk-2BX4NB34.js → chunk-POXANAJ6.js} +1 -1
  26. package/dist/chunk-RSMEXK53.js +43 -0
  27. package/dist/{chunk-MNZIKXK4.js → chunk-SC27WTSG.js} +1 -1
  28. package/dist/{chunk-YXDRGKXP.js → chunk-TT4C7DXW.js} +1 -1
  29. package/dist/{chunk-2DMKW2AD.js → chunk-UISPDFJ3.js} +1 -1
  30. package/dist/{chunk-J63M5U46.js → chunk-URJ2VFNC.js} +1 -1
  31. package/dist/{chunk-XW4YDF6G.js → chunk-VV62MIG4.js} +1 -1
  32. package/dist/{chunk-756D5TFD.js → chunk-VXPLLA4P.js} +1 -1
  33. package/dist/{chunk-PPUYQ66A.js → chunk-WZYB3JQS.js} +1 -1
  34. package/dist/{chunk-6VWBPSSY.js → chunk-X7QKTXXC.js} +1 -1
  35. package/dist/{chunk-JKBOIJ22.js → chunk-YQRN4CIV.js} +1 -1
  36. package/dist/chunk-Z6X7B6A4.js +61 -0
  37. package/dist/{chunk-N43XM7BM.js → chunk-ZAJ7J7TO.js} +1 -1
  38. package/dist/compat/index.js +1 -1
  39. package/dist/compat/nestjs/index.js +1 -1
  40. package/dist/compat/zustand/index.js +1 -1
  41. package/dist/extra/index.js +1 -1
  42. package/dist/extra/node.js +1 -1
  43. package/dist/extra/operators.js +1 -1
  44. package/dist/extra/reactive.js +1 -1
  45. package/dist/extra/sources.js +1 -1
  46. package/dist/graph/index.js +1 -1
  47. package/dist/{index-IUCY0OFN.d.ts → index-CG33HeBW.d.ts} +17 -2
  48. package/dist/{index-BTHOTC0Q.d.cts → index-DGD4_fj6.d.cts} +17 -2
  49. package/dist/{index-D1IEZUsj.d.ts → index-DfOK_oL5.d.ts} +204 -199
  50. package/dist/{index-DJ_MPOJ5.d.cts → index-DuRsN9ae.d.cts} +204 -199
  51. package/dist/index.cjs +46 -46
  52. package/dist/index.d.cts +2 -2
  53. package/dist/index.d.ts +2 -2
  54. package/dist/index.js +1 -1
  55. package/dist/patterns/ai/browser.js +1 -1
  56. package/dist/patterns/ai/index.cjs +11 -11
  57. package/dist/patterns/ai/index.js +1 -1
  58. package/dist/patterns/ai/node.js +1 -1
  59. package/dist/patterns/audit/index.js +1 -1
  60. package/dist/patterns/cqrs/index.js +1 -1
  61. package/dist/patterns/demo-shell/index.js +1 -1
  62. package/dist/patterns/domain-templates/index.js +1 -1
  63. package/dist/patterns/graphspec/index.js +1 -1
  64. package/dist/patterns/guarded-execution/index.js +1 -1
  65. package/dist/patterns/harness/index.cjs +8 -8
  66. package/dist/patterns/harness/index.d.cts +4 -4
  67. package/dist/patterns/harness/index.d.ts +4 -4
  68. package/dist/patterns/harness/index.js +1 -1
  69. package/dist/patterns/job-queue/index.cjs +3 -3
  70. package/dist/patterns/job-queue/index.d.cts +1 -1
  71. package/dist/patterns/job-queue/index.d.ts +1 -1
  72. package/dist/patterns/job-queue/index.js +1 -1
  73. package/dist/patterns/lens/index.js +1 -1
  74. package/dist/patterns/memory/index.js +1 -1
  75. package/dist/patterns/messaging/index.js +1 -1
  76. package/dist/patterns/orchestration/index.js +1 -1
  77. package/dist/patterns/process/index.js +1 -1
  78. package/dist/patterns/reactive-layout/index.js +1 -1
  79. package/dist/patterns/reduction/index.js +1 -1
  80. package/dist/patterns/refine-loop/index.js +1 -1
  81. package/dist/patterns/resilient-pipeline/index.js +1 -1
  82. package/dist/patterns/surface/index.js +1 -1
  83. package/dist/{resilience-S33JV6XC.js → resilience-JISHQD2F.js} +1 -1
  84. package/package.json +1 -1
  85. package/dist/chunk-INQFTVZA.js +0 -61
  86. package/dist/chunk-OSZ22J7O.js +0 -1
  87. package/dist/chunk-YKD7WUYJ.js +0 -43
package/dist/index.d.cts CHANGED
@@ -10,8 +10,8 @@ import { i as index$4 } from './index-CtFNGe-m.cjs';
10
10
  import { i as index$5 } from './index-tV3AA9hI.cjs';
11
11
  import { C as CatalogFnEntry, a as CatalogSourceEntry, b as ConfigFieldSchema, F as FnFactory, G as GraphSpec, c as GraphSpecCatalog, d as GraphSpecFeedbackEdge, e as GraphSpecNode, f as GraphSpecTemplate, g as GraphSpecTemplateRef, h as GraphSpecValidation, S as SourceFactory, i as index$6 } from './index-C-dkXOpB.cjs';
12
12
  import { i as index$7 } from './index-CuPUehFa.cjs';
13
- import { i as index$8 } from './index-DJ_MPOJ5.cjs';
14
- import { i as index$9 } from './index-BTHOTC0Q.cjs';
13
+ import { i as index$8 } from './index-DuRsN9ae.cjs';
14
+ import { i as index$9 } from './index-DGD4_fj6.cjs';
15
15
  import { i as index$b } from './index-CGhMJNHb.cjs';
16
16
  import { i as index$c } from './index-DktLSZOc.cjs';
17
17
  import { i as index$d } from './index-Cnr1WrlX.cjs';
package/dist/index.d.ts CHANGED
@@ -10,8 +10,8 @@ import { i as index$4 } from './index-DH4fm2Ck.js';
10
10
  import { i as index$5 } from './index-B6iTqKtJ.js';
11
11
  import { C as CatalogFnEntry, a as CatalogSourceEntry, b as ConfigFieldSchema, F as FnFactory, G as GraphSpec, c as GraphSpecCatalog, d as GraphSpecFeedbackEdge, e as GraphSpecNode, f as GraphSpecTemplate, g as GraphSpecTemplateRef, h as GraphSpecValidation, S as SourceFactory, i as index$6 } from './index-DhLyOHYZ.js';
12
12
  import { i as index$7 } from './index-8s-Qm-gz.js';
13
- import { i as index$8 } from './index-D1IEZUsj.js';
14
- import { i as index$9 } from './index-IUCY0OFN.js';
13
+ import { i as index$8 } from './index-DfOK_oL5.js';
14
+ import { i as index$9 } from './index-CG33HeBW.js';
15
15
  import { i as index$b } from './index-N2MAxt7_.js';
16
16
  import { i as index$c } from './index-bXXLSvor.js';
17
17
  import { i as index$d } from './index-40ZT4MHj.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{c as g}from"./chunk-WUT362QV.js";import{p as u}from"./chunk-XJLYLLIJ.js";import{c as h}from"./chunk-SVFKHUCW.js";import{a as v,b as C,c as D,d as S,e as q,f as A,g as I,h as O,i as P,j as Q,k as L}from"./chunk-MNZIKXK4.js";import{c as n}from"./chunk-6XVD5TZV.js";import{G as c}from"./chunk-YKD7WUYJ.js";import{d as i}from"./chunk-UWA6D7UF.js";import{f as l}from"./chunk-OSZ22J7O.js";import{d}from"./chunk-K2Z7UENB.js";import{ba as p}from"./chunk-INQFTVZA.js";import{m as s}from"./chunk-Z4F3DOWS.js";import{e as t}from"./chunk-SSCGRYJ2.js";import{d as e}from"./chunk-32N3JALT.js";import"./chunk-XW4YDF6G.js";import"./chunk-2DMKW2AD.js";import{f as m}from"./chunk-VMF23LGB.js";import{j as r}from"./chunk-J63M5U46.js";import{b as f}from"./chunk-WL6LFPJB.js";import"./chunk-QSK3RRII.js";import"./chunk-D27JNOLZ.js";import{e as x}from"./chunk-JKBOIJ22.js";import{d as a}from"./chunk-LYM4PBMV.js";import{a as Le,b as j}from"./chunk-I2DEVPMU.js";import{b as Bo}from"./chunk-KRH66M4O.js";import{i as Eo}from"./chunk-CLD3F4R5.js";import{G as ue}from"./chunk-6VWBPSSY.js";import{f as o}from"./chunk-7Q4ZD3YW.js";import{d as he}from"./chunk-VJLMUKOI.js";import{d as ye}from"./chunk-VIMF6LGM.js";import{d as Me}from"./chunk-6QZNQS5B.js";import{d as Te}from"./chunk-GPW2V3RE.js";import{b as be}from"./chunk-B7LCDQEV.js";import{a as de,b as ge,c as b}from"./chunk-ECQRP2UT.js";import"./chunk-3G5U5QNE.js";import"./chunk-C72GO4IZ.js";import{a as T}from"./chunk-4I45FVQS.js";import{a as La,b as ya,c as Sa,d as qa,e as Za,f as _a,g as $a,h as os,i as rs,j as es,k as ts,l as k}from"./chunk-N43XM7BM.js";import{a as ba,b as ja}from"./chunk-PPUYQ66A.js";import{b as Ya}from"./chunk-TSOYJ743.js";import{$ as ua,A as Ht,B as Jt,C as Kt,D as Nt,E as Vt,F as Wt,G as Xt,H as Yt,I as Zt,J as _t,K as $t,L as oa,M as ra,N as ea,O as ta,P as aa,Q as sa,R as pa,S as ma,T as fa,U as xa,V as na,W as ia,X as la,Y as ca,Z as da,_ as ga,a as je,aa as ha,b as ke,ba as Da,c as yt,d as Mt,e as Tt,f as bt,g as jt,h as kt,i as vt,j as Ct,k as Dt,l as St,m as qt,n as At,o as It,p as Ot,q as Pt,r as Qt,s as Rt,t as Ut,u as wt,v as zt,w as Bt,x as Et,y as Ft,z as Gt}from"./chunk-LCGAVGGV.js";import{a as Ko,b as sr,c as pr,d as mr,e as fr,f as xr,g as nr,h as ir,i as lr,j as cr,k as dr,l as gr}from"./chunk-RZJDIV2G.js";import{b as ka,c as va,d as Ca,e as Qa,f as Ra}from"./chunk-6I726LZU.js";import{a as Xa}from"./chunk-2QXRYP7Q.js";import{a as Fo,b as Jr}from"./chunk-5QDBSZBV.js";import{a as se,b as pe,c as me,d as fe,e as xe,f as ne,g as ie,h as le,i as ce}from"./chunk-756D5TFD.js";import{a as Jo}from"./chunk-L6NSJVJZ.js";import{a as Kr,b as Nr,c as Vr,d as Wr,e as Xr,f as Yr,g as Zr,h as _r,i as $r,j as oe,k as re}from"./chunk-2BX4NB34.js";import"./chunk-SGS4OJGS.js";import{a as ar}from"./chunk-ESMPEKEV.js";import{a as za,b as Ba,c as Ea,d as Fa,e as Ga,f as Ha,g as Ja,h as Ka,i as Na,j as Va,k as Wa}from"./chunk-D5RFJOZ2.js";import{a as Ua,b as wa}from"./chunk-CE72X3WO.js";import{A as Ze,B as _e,C as $e,D as ot,E as rt,F as et,G as tt,I as at,J as st,K as pt,L as mt,M as ft,N as xt,O as nt,P as it,Q as lt,R as ct,S as dt,T as gt,U as ut,V as ht,W as Lt,a as ve,b as Ce,c as De,d as Se,e as qe,f as Ae,g as Ie,h as Oe,i as Pe,j as Qe,k as Re,l as Ue,m as we,n as ze,o as Be,p as Ee,q as Fe,r as Ge,s as He,t as Je,u as Ke,v as Ne,w as Ve,x as We,y as Xe,z as Ye}from"./chunk-FHRBBHJN.js";import{a as Xo,b as Yo,c as Zo,d as _o,e as $o,f as or,g as rr,h as er,i as tr}from"./chunk-4VVTGLXJ.js";import{a as No,b as Vo,c as Wo}from"./chunk-35JTVPOX.js";import{a as Aa,b as Ia}from"./chunk-NNKJUORL.js";import{a as Oa,b as Pa}from"./chunk-KGKJCHEK.js";import{a as Ma,b as Ta}from"./chunk-TZQPPQEQ.js";import{a as ee,b as te,c as ae}from"./chunk-YXDRGKXP.js";import{A as Er,B as Fr,C as Gr,D as Hr,a as Go,b as Ho,c as ur,d as hr,e as Lr,f as yr,g as Mr,h as Tr,i as br,j as jr,k as kr,l as vr,m as Cr,n as Dr,o as Sr,p as qr,q as Ar,r as Ir,s as Or,t as Pr,u as Qr,v as Rr,w as Ur,x as wr,y as zr,z as Br}from"./chunk-CKFQS2CJ.js";import{A as So,B as qo,C as Ao,D as Io,E as Oo,F as Po,G as Qo,H as Ro,I as Uo,J as wo,K as zo,a as eo,b as to,c as ao,d as so,e as po,f as mo,g as fo,h as xo,i as no,j as io,k as lo,m as co,n as go,o as uo,p as ho,q as Lo,r as yo,s as Mo,t as To,u as bo,v as jo,w as ko,x as vo,y as Co,z as Do}from"./chunk-LYCLF26R.js";import{a as R,b as U,c as w,d as z,e as B,f as E,g as F,h as G,i as H,j as J,k as K,l as N,m as V,n as W,o as X,p as Y,q as Z,r as _,s as $,t as oo,u as ro}from"./chunk-CK2E7BTU.js";import{b as M}from"./chunk-QYADASLV.js";var y={};M(y,{SNAPSHOT_WIRE_VERSION:()=>q,SurfaceError:()=>v,accountability:()=>m,ai:()=>p,asSurfaceError:()=>C,cqrs:()=>o,createGraph:()=>D,deleteSnapshot:()=>Q,demoShell:()=>f,diffSnapshots:()=>O,domainTemplates:()=>x,graphspec:()=>s,guarded:()=>n,harness:()=>c,jobQueue:()=>l,layout:()=>u,lens:()=>d,listSnapshots:()=>P,memory:()=>t,messaging:()=>r,orchestration:()=>e,process:()=>g,reduction:()=>a,refine:()=>i,resilientPipeline:()=>h,restoreSnapshot:()=>I,runReduction:()=>S,saveSnapshot:()=>A,surface:()=>L});var ss="0.0.0";export{H as COMPLETE,X as COMPLETE_MSG,oo as COMPLETE_ONLY_BATCH,pr as CircuitOpenError,ka as ContentAddressedMissError,U as DATA,no as DEFAULT_ACTOR,pe as DEFAULT_AUDIT_GUARD,w as DIRTY,K as DIRTY_MSG,Z as DIRTY_ONLY_BATCH,so as ENVELOPE_VERSION,J as ERROR,Zr as GRAPH_META_SEGMENT,$r as Graph,Lo as GraphReFlyConfig,Mo as GuardDenied,B as INVALIDATE,V as INVALIDATE_MSG,$ as INVALIDATE_ONLY_BATCH,eo as JsonCodec,Xo as NS_PER_MS,Yo as NS_PER_SEC,Aa as NativeIndexBackend,Oa as NativeListBackend,ee as NativeLogBackend,Ma as NativeMapBackend,Sa as NativePubSubBackend,Ao as NodeImpl,E as PAUSE,z as RESOLVED,N as RESOLVED_MSG,_ as RESOLVED_ONLY_BATCH,F as RESUME,nr as RateLimiterOverflowError,ar as ResettableTimer,Vr as SIZEOF_OVERHEAD,Wr as SIZEOF_SYMBOL,_r as SNAPSHOT_VERSION,q as SNAPSHOT_WIRE_VERSION,R as START,W as START_MSG,v as SurfaceError,G as TEARDOWN,Y as TEARDOWN_MSG,ro as TEARDOWN_ONLY_BATCH,cr as TimeoutError,jo as accessHintForGuard,m as accountability,Co as advanceVersion,p as ai,xe as appendAudit,Ga as appendLogStorage,C as asSurfaceError,tt as audit,wo as autoTrackNode,Br as awaitSettled,co as batch,Ko as budgetGate,at as buffer,st as bufferCount,mt as bufferTime,fe as bumpCursor,Ur as cached,va as canonicalJson,ya as cascadingCache,Lt as catchError,ia as checkpointToRedis,na as checkpointToS3,mr as circuitBreaker,Ge as combine,gt as combineLatest,j as compat,Ne as concat,Ye as concatMap,qo as configure,Zo as constant,Ca as contentAddressedStorage,T as core,o as cqrs,me as createAuditLog,to as createDagCborCodec,ao as createDagCborZstdCodec,D as createGraph,rs as createTransport,vo as createVersioning,Jr as createWatermarkController,Nt as csvRows,ot as debounce,ut as debounceTime,Ya as decay,mo as decodeEnvelope,rr as decorrelatedJitter,So as defaultConfig,ko as defaultHash,Ir as defer,$e as delay,Q as deleteSnapshot,f as demoShell,Qo as derived,os as deserializeError,Va as dictKv,Wa as dictSnapshot,oe as diffForWAL,O as diffSnapshots,ja as distill,Ee as distinctUntilChanged,Jo as domainMeta,x as domainTemplates,go as downWithBatch,Uo as dynamicNode,Ro as effect,Ue as elementAt,Sr as empty,po as encodeEnvelope,ur as escapeRegexChar,Xe as exhaustMap,Nr as explainPath,$o as exponential,ke as externalBundle,je as externalProducer,k as extra,Wo as factoryTag,dr as fallback,or as fibonacci,Ce as filter,Re as find,Pe as first,wr as firstValueFrom,zr as firstWhere,_e as flatMap,Or as forEach,Cr as fromAny,vr as fromAsyncIter,Kt as fromCSV,Xt as fromClickHouseWatch,Tr as fromCron,ua as fromDrizzle,br as fromEvent,bt as fromHTTP,At as fromHTTPPoll,qt as fromHTTPStream,jr as fromIter,Ft as fromKafka,ha as fromKysely,Pt as fromMCP,_t as fromNATS,Wt as fromNDJSON,Qt as fromOTel,ga as fromPrisma,Bt as fromPrometheus,kr as fromPromise,Yt as fromPulsar,oa as fromRabbitMQ,Mr as fromRaf,Ht as fromRedisStream,St as fromSSE,la as fromSqlite,ca as fromSqliteCursor,wt as fromStatsD,Rt as fromSyslog,yr as fromTimer,Mt as fromWebSocket,Ot as fromWebSocketReconnect,Tt as fromWebhook,hr as globToRegExp,b as graph,Yr as graphProfile,s as graphspec,n as guarded,c as harness,nt as interval,lo as isBatching,Do as isV1,l as jobQueue,Bo as jotai,za as jsonCodec,Ba as jsonCodecFor,Gr as keepalive,Ha as kvStorage,Qe as last,u as layout,d as lens,ne as lightMutation,_o as linear,P as listSnapshots,La as lru,Da as makeHttpError,ve as map,Lr as matchesAnyPattern,Ho as matchesCron,t as memory,Ka as memoryAppendLog,Ea as memoryBackend,Na as memoryKv,Ja as memorySnapshot,Je as merge,Ze as mergeMap,ae as mergeReactiveLogs,r as messaging,uo as monotonicNs,_a as nameToSignal,Eo as nanostores,Vt as ndjsonRows,ue as nestjs,qr as never,Io as node,Er as nodeSignal,io as normalizeActor,Dr as of,ze as onFirstData,e as orchestration,Fe as pairwise,Go as parseCron,Et as parsePrometheusText,Dt as parseSSEStream,zt as parseStatsD,Ut as parseSyslog,y as patterns,lt as pausable,zo as pipe,Vo as placeholderArgs,To as policy,bo as policyFromRules,g as process,Po as producer,qa as pubsub,Ve as race,ir as rateLimiter,re as reachable,he as react,Hr as reactiveCounter,Ia as reactiveIndex,Pa as reactiveList,te as reactiveLog,Ta as reactiveMap,yt as reactiveSink,Se as reduce,a as reduction,i as refine,fo as registerBuiltinCodecs,yo as registerBuiltins,le as registerCursor,ce as registerCursorMap,it as repeat,Rr as replay,xo as replayWAL,ct as rescue,h as resilientPipeline,tr as resolveBackoffPreset,No as resolveDescribeFields,I as restoreSnapshot,sr as retry,S as runReduction,et as sample,A as saveSnapshot,De as scan,$a as serializeError,Qr as share,Fr as shareReplay,Za as signalToName,Le as signals,Qa as singleFromAny,Ra as singleNodeFromAny,Xr as sizeof,Ae as skip,Fa as snapshotStorage,ye as solid,Ua as sortJsonValue,wa as stableJsonString,Oo as state,Xa as stratify,L as surface,Me as svelte,We as switchMap,qe as take,Oe as takeUntil,Ie as takeWhile,we as tap,Be as tapFirst,rt as throttle,ht as throttleTime,Ar as throwError,gr as timeout,Pr as toArray,ta as toCSV,aa as toClickHouse,ea as toFile,jt as toHTTP,Gt as toKafka,fa as toLoki,ma as toMongo,$t as toNATS,Fo as toObservable,pa as toPostgres,Zt as toPulsar,ra as toRabbitMQ,Ct as toReadableStream,Jt as toRedisStream,sa as toS3,kt as toSSE,vt as toSSEBytes,da as toSqlite,xa as toTempo,It as toWebSocket,xr as tokenBucket,Kr as topologyDiff,se as tryIncrementBounded,ge as validateGraphObservability,dt as valve,ba as verifiable,ss as version,Te as vue,ho as wallClockNs,de as watchTopologyTree,xt as window,pt as windowCount,ft as windowTime,fr as withBreaker,He as withLatestFrom,er as withMaxAttempts,lr as withStatus,es as workerBridge,ts as workerSelf,ie as wrapMutation,Ke as zip,be as zustand};
1
+ import{c as g}from"./chunk-OLIKJUKI.js";import{p as u}from"./chunk-5VEZLQFN.js";import{c as h}from"./chunk-5TOPVRN6.js";import{a as v,b as C,c as D,d as S,e as q,f as A,g as I,h as O,i as P,j as Q,k as L}from"./chunk-SC27WTSG.js";import{c as n}from"./chunk-2W553JJC.js";import{G as c}from"./chunk-RSMEXK53.js";import{d as i}from"./chunk-ELAASRBT.js";import{f as l}from"./chunk-5B3JDG5F.js";import{d}from"./chunk-5QSXEMXG.js";import{da as p}from"./chunk-Z6X7B6A4.js";import{m as s}from"./chunk-F7VUYPP6.js";import{e as t}from"./chunk-GI4Q7PNY.js";import{d as e}from"./chunk-7PQLZMOG.js";import"./chunk-VV62MIG4.js";import"./chunk-UISPDFJ3.js";import{f as m}from"./chunk-EC2WNSZ7.js";import{j as r}from"./chunk-URJ2VFNC.js";import{b as f}from"./chunk-33N4TU3X.js";import"./chunk-OV5AA6HJ.js";import"./chunk-D27JNOLZ.js";import{e as x}from"./chunk-YQRN4CIV.js";import{d as a}from"./chunk-G3M3IMEV.js";import{a as Le,b as j}from"./chunk-M3FQSXEW.js";import{b as Bo}from"./chunk-KRH66M4O.js";import{i as Eo}from"./chunk-CLD3F4R5.js";import{G as ue}from"./chunk-X7QKTXXC.js";import{f as o}from"./chunk-H5SCWHWP.js";import{d as he}from"./chunk-VJLMUKOI.js";import{d as ye}from"./chunk-VIMF6LGM.js";import{d as Me}from"./chunk-6QZNQS5B.js";import{d as Te}from"./chunk-GPW2V3RE.js";import{b as be}from"./chunk-CGNOWGV6.js";import{a as T}from"./chunk-4I45FVQS.js";import{a as de,b as ge,c as b}from"./chunk-5TEFC2ZX.js";import"./chunk-3G5U5QNE.js";import"./chunk-C72GO4IZ.js";import{a as La,b as ya,c as Sa,d as qa,e as Za,f as _a,g as $a,h as os,i as rs,j as es,k as ts,l as k}from"./chunk-ZAJ7J7TO.js";import{a as ba,b as ja}from"./chunk-WZYB3JQS.js";import{b as Ya}from"./chunk-TSOYJ743.js";import{$ as ua,A as Ht,B as Jt,C as Kt,D as Nt,E as Vt,F as Wt,G as Xt,H as Yt,I as Zt,J as _t,K as $t,L as oa,M as ra,N as ea,O as ta,P as aa,Q as sa,R as pa,S as ma,T as fa,U as xa,V as na,W as ia,X as la,Y as ca,Z as da,_ as ga,a as je,aa as ha,b as ke,ba as Da,c as yt,d as Mt,e as Tt,f as bt,g as jt,h as kt,i as vt,j as Ct,k as Dt,l as St,m as qt,n as At,o as It,p as Ot,q as Pt,r as Qt,s as Rt,t as Ut,u as wt,v as zt,w as Bt,x as Et,y as Ft,z as Gt}from"./chunk-CYOSWFT2.js";import{a as Ko,b as sr,c as pr,d as mr,e as fr,f as xr,g as nr,h as ir,i as lr,j as cr,k as dr,l as gr}from"./chunk-4MKL6Q3K.js";import{b as ka,c as va,d as Ca,e as Qa,f as Ra}from"./chunk-KNVCCBIU.js";import{a as Xa}from"./chunk-AI7QC7J6.js";import{a as Aa,b as Ia}from"./chunk-NNKJUORL.js";import{a as Oa,b as Pa}from"./chunk-KGKJCHEK.js";import{a as Ma,b as Ta}from"./chunk-TZQPPQEQ.js";import{a as Fo,b as Jr}from"./chunk-5QDBSZBV.js";import{a as se,b as pe,c as me,d as fe,e as xe,f as ne,g as ie,h as le,i as ce}from"./chunk-VXPLLA4P.js";import{a as Jo}from"./chunk-L6NSJVJZ.js";import{a as ee,b as te,c as ae}from"./chunk-TT4C7DXW.js";import{a as Kr,b as Nr,c as Vr,d as Wr,e as Xr,f as Yr,g as Zr,h as _r,i as $r,j as oe,k as re}from"./chunk-POXANAJ6.js";import"./chunk-SGS4OJGS.js";import{a as ar}from"./chunk-ESMPEKEV.js";import{a as za,b as Ba,c as Ea,d as Fa,e as Ga,f as Ha,g as Ja,h as Ka,i as Na,j as Va,k as Wa}from"./chunk-D5RFJOZ2.js";import{a as Ua,b as wa}from"./chunk-CE72X3WO.js";import{A as Ze,B as _e,C as $e,D as ot,E as rt,F as et,G as tt,I as at,J as st,K as pt,L as mt,M as ft,N as xt,O as nt,P as it,Q as lt,R as ct,S as dt,T as gt,U as ut,V as ht,W as Lt,a as ve,b as Ce,c as De,d as Se,e as qe,f as Ae,g as Ie,h as Oe,i as Pe,j as Qe,k as Re,l as Ue,m as we,n as ze,o as Be,p as Ee,q as Fe,r as Ge,s as He,t as Je,u as Ke,v as Ne,w as Ve,x as We,y as Xe,z as Ye}from"./chunk-AK5RHMC5.js";import{a as Xo,b as Yo,c as Zo,d as _o,e as $o,f as or,g as rr,h as er,i as tr}from"./chunk-4VVTGLXJ.js";import{A as Er,B as Fr,C as Gr,D as Hr,a as Go,b as Ho,c as ur,d as hr,e as Lr,f as yr,g as Mr,h as Tr,i as br,j as jr,k as kr,l as vr,m as Cr,n as Dr,o as Sr,p as qr,q as Ar,r as Ir,s as Or,t as Pr,u as Qr,v as Rr,w as Ur,x as wr,y as zr,z as Br}from"./chunk-L77I47VU.js";import{a as No,b as Vo,c as Wo}from"./chunk-35JTVPOX.js";import{A as So,B as qo,C as Ao,D as Io,E as Oo,F as Po,G as Qo,H as Ro,I as Uo,J as wo,K as zo,a as eo,b as to,c as ao,d as so,e as po,f as mo,g as fo,h as xo,i as no,j as io,k as lo,m as co,n as go,o as uo,p as ho,q as Lo,r as yo,s as Mo,t as To,u as bo,v as jo,w as ko,x as vo,y as Co,z as Do}from"./chunk-LYCLF26R.js";import{a as R,b as U,c as w,d as z,e as B,f as E,g as F,h as G,i as H,j as J,k as K,l as N,m as V,n as W,o as X,p as Y,q as Z,r as _,s as $,t as oo,u as ro}from"./chunk-CK2E7BTU.js";import{b as M}from"./chunk-QYADASLV.js";var y={};M(y,{SNAPSHOT_WIRE_VERSION:()=>q,SurfaceError:()=>v,accountability:()=>m,ai:()=>p,asSurfaceError:()=>C,cqrs:()=>o,createGraph:()=>D,deleteSnapshot:()=>Q,demoShell:()=>f,diffSnapshots:()=>O,domainTemplates:()=>x,graphspec:()=>s,guarded:()=>n,harness:()=>c,jobQueue:()=>l,layout:()=>u,lens:()=>d,listSnapshots:()=>P,memory:()=>t,messaging:()=>r,orchestration:()=>e,process:()=>g,reduction:()=>a,refine:()=>i,resilientPipeline:()=>h,restoreSnapshot:()=>I,runReduction:()=>S,saveSnapshot:()=>A,surface:()=>L});var ss="0.0.0";export{H as COMPLETE,X as COMPLETE_MSG,oo as COMPLETE_ONLY_BATCH,pr as CircuitOpenError,ka as ContentAddressedMissError,U as DATA,no as DEFAULT_ACTOR,pe as DEFAULT_AUDIT_GUARD,w as DIRTY,K as DIRTY_MSG,Z as DIRTY_ONLY_BATCH,so as ENVELOPE_VERSION,J as ERROR,Zr as GRAPH_META_SEGMENT,$r as Graph,Lo as GraphReFlyConfig,Mo as GuardDenied,B as INVALIDATE,V as INVALIDATE_MSG,$ as INVALIDATE_ONLY_BATCH,eo as JsonCodec,Xo as NS_PER_MS,Yo as NS_PER_SEC,Aa as NativeIndexBackend,Oa as NativeListBackend,ee as NativeLogBackend,Ma as NativeMapBackend,Sa as NativePubSubBackend,Ao as NodeImpl,E as PAUSE,z as RESOLVED,N as RESOLVED_MSG,_ as RESOLVED_ONLY_BATCH,F as RESUME,nr as RateLimiterOverflowError,ar as ResettableTimer,Vr as SIZEOF_OVERHEAD,Wr as SIZEOF_SYMBOL,_r as SNAPSHOT_VERSION,q as SNAPSHOT_WIRE_VERSION,R as START,W as START_MSG,v as SurfaceError,G as TEARDOWN,Y as TEARDOWN_MSG,ro as TEARDOWN_ONLY_BATCH,cr as TimeoutError,jo as accessHintForGuard,m as accountability,Co as advanceVersion,p as ai,xe as appendAudit,Ga as appendLogStorage,C as asSurfaceError,tt as audit,wo as autoTrackNode,Br as awaitSettled,co as batch,Ko as budgetGate,at as buffer,st as bufferCount,mt as bufferTime,fe as bumpCursor,Ur as cached,va as canonicalJson,ya as cascadingCache,Lt as catchError,ia as checkpointToRedis,na as checkpointToS3,mr as circuitBreaker,Ge as combine,gt as combineLatest,j as compat,Ne as concat,Ye as concatMap,qo as configure,Zo as constant,Ca as contentAddressedStorage,T as core,o as cqrs,me as createAuditLog,to as createDagCborCodec,ao as createDagCborZstdCodec,D as createGraph,rs as createTransport,vo as createVersioning,Jr as createWatermarkController,Nt as csvRows,ot as debounce,ut as debounceTime,Ya as decay,mo as decodeEnvelope,rr as decorrelatedJitter,So as defaultConfig,ko as defaultHash,Ir as defer,$e as delay,Q as deleteSnapshot,f as demoShell,Qo as derived,os as deserializeError,Va as dictKv,Wa as dictSnapshot,oe as diffForWAL,O as diffSnapshots,ja as distill,Ee as distinctUntilChanged,Jo as domainMeta,x as domainTemplates,go as downWithBatch,Uo as dynamicNode,Ro as effect,Ue as elementAt,Sr as empty,po as encodeEnvelope,ur as escapeRegexChar,Xe as exhaustMap,Nr as explainPath,$o as exponential,ke as externalBundle,je as externalProducer,k as extra,Wo as factoryTag,dr as fallback,or as fibonacci,Ce as filter,Re as find,Pe as first,wr as firstValueFrom,zr as firstWhere,_e as flatMap,Or as forEach,Cr as fromAny,vr as fromAsyncIter,Kt as fromCSV,Xt as fromClickHouseWatch,Tr as fromCron,ua as fromDrizzle,br as fromEvent,bt as fromHTTP,At as fromHTTPPoll,qt as fromHTTPStream,jr as fromIter,Ft as fromKafka,ha as fromKysely,Pt as fromMCP,_t as fromNATS,Wt as fromNDJSON,Qt as fromOTel,ga as fromPrisma,Bt as fromPrometheus,kr as fromPromise,Yt as fromPulsar,oa as fromRabbitMQ,Mr as fromRaf,Ht as fromRedisStream,St as fromSSE,la as fromSqlite,ca as fromSqliteCursor,wt as fromStatsD,Rt as fromSyslog,yr as fromTimer,Mt as fromWebSocket,Ot as fromWebSocketReconnect,Tt as fromWebhook,hr as globToRegExp,b as graph,Yr as graphProfile,s as graphspec,n as guarded,c as harness,nt as interval,lo as isBatching,Do as isV1,l as jobQueue,Bo as jotai,za as jsonCodec,Ba as jsonCodecFor,Gr as keepalive,Ha as kvStorage,Qe as last,u as layout,d as lens,ne as lightMutation,_o as linear,P as listSnapshots,La as lru,Da as makeHttpError,ve as map,Lr as matchesAnyPattern,Ho as matchesCron,t as memory,Ka as memoryAppendLog,Ea as memoryBackend,Na as memoryKv,Ja as memorySnapshot,Je as merge,Ze as mergeMap,ae as mergeReactiveLogs,r as messaging,uo as monotonicNs,_a as nameToSignal,Eo as nanostores,Vt as ndjsonRows,ue as nestjs,qr as never,Io as node,Er as nodeSignal,io as normalizeActor,Dr as of,ze as onFirstData,e as orchestration,Fe as pairwise,Go as parseCron,Et as parsePrometheusText,Dt as parseSSEStream,zt as parseStatsD,Ut as parseSyslog,y as patterns,lt as pausable,zo as pipe,Vo as placeholderArgs,To as policy,bo as policyFromRules,g as process,Po as producer,qa as pubsub,Ve as race,ir as rateLimiter,re as reachable,he as react,Hr as reactiveCounter,Ia as reactiveIndex,Pa as reactiveList,te as reactiveLog,Ta as reactiveMap,yt as reactiveSink,Se as reduce,a as reduction,i as refine,fo as registerBuiltinCodecs,yo as registerBuiltins,le as registerCursor,ce as registerCursorMap,it as repeat,Rr as replay,xo as replayWAL,ct as rescue,h as resilientPipeline,tr as resolveBackoffPreset,No as resolveDescribeFields,I as restoreSnapshot,sr as retry,S as runReduction,et as sample,A as saveSnapshot,De as scan,$a as serializeError,Qr as share,Fr as shareReplay,Za as signalToName,Le as signals,Qa as singleFromAny,Ra as singleNodeFromAny,Xr as sizeof,Ae as skip,Fa as snapshotStorage,ye as solid,Ua as sortJsonValue,wa as stableJsonString,Oo as state,Xa as stratify,L as surface,Me as svelte,We as switchMap,qe as take,Oe as takeUntil,Ie as takeWhile,we as tap,Be as tapFirst,rt as throttle,ht as throttleTime,Ar as throwError,gr as timeout,Pr as toArray,ta as toCSV,aa as toClickHouse,ea as toFile,jt as toHTTP,Gt as toKafka,fa as toLoki,ma as toMongo,$t as toNATS,Fo as toObservable,pa as toPostgres,Zt as toPulsar,ra as toRabbitMQ,Ct as toReadableStream,Jt as toRedisStream,sa as toS3,kt as toSSE,vt as toSSEBytes,da as toSqlite,xa as toTempo,It as toWebSocket,xr as tokenBucket,Kr as topologyDiff,se as tryIncrementBounded,ge as validateGraphObservability,dt as valve,ba as verifiable,ss as version,Te as vue,ho as wallClockNs,de as watchTopologyTree,xt as window,pt as windowCount,ft as windowTime,fr as withBreaker,He as withLatestFrom,er as withMaxAttempts,lr as withStatus,es as workerBridge,ts as workerSelf,ie as wrapMutation,Ke as zip,be as zustand};
@@ -1,3 +1,3 @@
1
- import{d as y,f}from"../../chunk-XW4YDF6G.js";import"../../chunk-2DMKW2AD.js";import"../../chunk-LCGAVGGV.js";import"../../chunk-RZJDIV2G.js";import"../../chunk-6I726LZU.js";import"../../chunk-L6NSJVJZ.js";import"../../chunk-SGS4OJGS.js";import"../../chunk-ESMPEKEV.js";import"../../chunk-D5RFJOZ2.js";import"../../chunk-CE72X3WO.js";import"../../chunk-FHRBBHJN.js";import"../../chunk-4VVTGLXJ.js";import"../../chunk-35JTVPOX.js";import"../../chunk-CKFQS2CJ.js";import{o as p}from"../../chunk-LYCLF26R.js";import"../../chunk-CK2E7BTU.js";import"../../chunk-QYADASLV.js";function L(){let e=new Error("aborted");return e.name="AbortError",e}function h(e={}){let r=e.streamMode??"accumulated",d=e.navigatorOverride??globalThis.navigator,i=()=>{let a=d?.ai;if(!a?.languageModel)throw new Error("chromeNanoAdapter: Chrome AI languageModel not available (requires Chrome 131+ with flag/OT).");return a},g=async a=>i().languageModel.create({systemPrompt:a?.systemPrompt??e.systemPrompt,temperature:a?.temperature??e.temperature,topK:e.topK,signal:a?.signal}),l=a=>{let n=[];for(let o of a)o.role!=="system"&&n.push(`${o.role}: ${o.content}`);return n.join(`
1
+ import{d as y,f}from"../../chunk-VV62MIG4.js";import"../../chunk-UISPDFJ3.js";import"../../chunk-CYOSWFT2.js";import"../../chunk-4MKL6Q3K.js";import"../../chunk-KNVCCBIU.js";import"../../chunk-L6NSJVJZ.js";import"../../chunk-SGS4OJGS.js";import"../../chunk-ESMPEKEV.js";import"../../chunk-D5RFJOZ2.js";import"../../chunk-CE72X3WO.js";import"../../chunk-AK5RHMC5.js";import"../../chunk-4VVTGLXJ.js";import"../../chunk-L77I47VU.js";import"../../chunk-35JTVPOX.js";import{o as p}from"../../chunk-LYCLF26R.js";import"../../chunk-CK2E7BTU.js";import"../../chunk-QYADASLV.js";function L(){let e=new Error("aborted");return e.name="AbortError",e}function h(e={}){let r=e.streamMode??"accumulated",d=e.navigatorOverride??globalThis.navigator,i=()=>{let a=d?.ai;if(!a?.languageModel)throw new Error("chromeNanoAdapter: Chrome AI languageModel not available (requires Chrome 131+ with flag/OT).");return a},g=async a=>i().languageModel.create({systemPrompt:a?.systemPrompt??e.systemPrompt,temperature:a?.temperature??e.temperature,topK:e.topK,signal:a?.signal}),l=a=>{let n=[];for(let o of a)o.role!=="system"&&n.push(`${o.role}: ${o.content}`);return n.join(`
2
2
 
3
3
  `)},t=()=>({input:{regular:0},output:{regular:0}});return{provider:"chrome-nano",model:"chrome-nano",async invoke(a,n){let o=await g(n);try{let c=l(a),s=p(),m=await o.prompt(c,{signal:n?.signal}),u=Math.max(0,(p()-s)/1e6);return{content:m,usage:t(),finishReason:"stop",latencyMs:u,model:"chrome-nano",provider:"chrome-nano"}}finally{o.destroy?.()}},async*stream(a,n){let o=await g(n);try{let c=l(a);if(r==="delta")for await(let s of o.promptStreaming(c,{signal:n?.signal})){if(n?.signal?.aborted)throw L();s&&(yield{type:"token",delta:s})}else{let s="";for await(let m of o.promptStreaming(c,{signal:n?.signal})){if(n?.signal?.aborted)throw L();let u=m.startsWith(s)?m.slice(s.length):m;s=m,u&&(yield{type:"token",delta:u})}}yield{type:"usage",usage:t()},yield{type:"finish",reason:"stop"}}finally{o.destroy?.()}}}}function A(){let e=new Error("aborted");return e.name="AbortError",e}function b(e){let r=e.engine,d=async()=>{if(r)return r;if(!w(e.navigatorOverride))throw new Error("webllmAdapter: WebGPU not available in this environment");let t=(await import("@mlc-ai/web-llm").catch(()=>{throw new Error("webllmAdapter: @mlc-ai/web-llm not installed. Add it as a peer dependency or pass opts.engine.")})).CreateMLCEngine;if(!t)throw new Error("webllmAdapter: @mlc-ai/web-llm missing CreateMLCEngine export");return r=await t(e.model,{initProgressCallback:e.initProgressCallback}),r},i=(l,t)=>{let a=[];t?.systemPrompt&&a.push({role:"system",content:t.systemPrompt});for(let n of l)a.push({role:n.role==="tool"?"user":n.role,content:n.content});return a},g=l=>({input:{regular:l?.prompt_tokens??0},output:{regular:l?.completion_tokens??0},raw:l});return{provider:"webllm",model:e.model,async invoke(l,t){let a=await d(),n=p(),o=await a.chat.completions.create({model:t?.model??e.model,messages:i(l,t),max_tokens:t?.maxTokens,temperature:t?.temperature},{signal:t?.signal}),c=Math.max(0,(p()-n)/1e6),s=o.choices?.[0];return{content:s?.message?.content??"",usage:g(o.usage),finishReason:s?.finish_reason,latencyMs:c,model:e.model,provider:"webllm"}},async*stream(l,t){let n=await(await d()).chat.completions.create({model:t?.model??e.model,messages:i(l,t),max_tokens:t?.maxTokens,temperature:t?.temperature,stream:!0},{signal:t?.signal}),o,c;for await(let s of n){if(t?.signal?.aborted)throw A();let m=s.choices?.[0];m?.delta?.content&&(yield{type:"token",delta:m.delta.content}),m?.finish_reason&&(c=m.finish_reason),s.usage&&(o=s.usage)}o&&(yield{type:"usage",usage:g(o)}),yield{type:"finish",reason:c??"stop"}}}}function w(e){let r=e??globalThis.navigator;return!!(r&&"gpu"in r&&r.gpu)}function N(e){let r=[{name:"cloud",adapter:y(e.cloud)}];return e.webllmModel&&r.push({name:"webllm",adapter:b({model:e.webllmModel})}),e.chromeNano!==!1&&r.push({name:"chrome-nano",adapter:h(),filter:(d,i)=>!i?.tools||i.tools.length===0}),f(r,e.cascade)}function S(e){let r=[{name:"ollama",adapter:y({provider:"ollama",model:e.ollamaModel,baseURL:e.ollamaBaseURL})}];return e.webllmModel&&r.push({name:"webllm",adapter:b({model:e.webllmModel})}),e.chromeNano!==!1&&r.push({name:"chrome-nano",adapter:h(),filter:(d,i)=>!i?.tools||i.tools.length===0}),f(r,e.cascade)}function R(e){let r=[{name:"webllm",adapter:b({model:e.webllmModel})}];return e.chromeNano!==!1&&r.push({name:"chrome-nano",adapter:h(),filter:(d,i)=>!i?.tools||i.tools.length===0}),f(r,e.cascade)}export{h as chromeNanoAdapter,N as cloudFirstPreset,S as localFirstPreset,R as offlinePreset,b as webllmAdapter};