@rubytech/create-realagent 1.0.670 → 1.0.673

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,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-CCUSwZB_.js","assets/preload-helper-qlgyTAkD.js","assets/dist-CrzV1W3-.js","assets/chunk-DD-I1_y5.js","assets/chunk-U2HBQHQK-BZnA7c4T.js","assets/src-Bo15iQ7w.js","assets/chunk-5PVQY5BW-RhIfPCRB.js","assets/chunk-ICPOFSXX-Di63NBur.js","assets/_baseFor-Dn4GSmI6.js","assets/isEmpty-h-wRi_o9.js","assets/chunk-336JU56O-BpATJiGl.js","assets/chunk-5FUZZQ4R-BoTfWHuW.js","assets/chunk-X2U36JSP-DpQ2OA_c.js","assets/chunk-ZZ45TVLE-DBSm41oP.js","assets/rough.esm-NLRoWnq-.js","assets/chunk-ENJZ2VHE-CNHjq5xK.js","assets/line-DlKKhwkO.js","assets/path-7vUsG-o2.js","assets/array-DJN9YAVf.js","assets/chunk-BSJP7CBP-CTsYuARh.js","assets/chunk-426QAEUC-Wz6Bpsil.js","assets/chunk-XPW4576I-BccP1mlQ.js"])))=>i.map(i=>d[i]);
2
- import{o as e,r as t,t as n}from"./chunk-DD-I1_y5.js";import{n as r,o as i,r as a,t as o}from"./jsx-runtime-BPzLmqnP.js";import{t as s}from"./preload-helper-qlgyTAkD.js";var c=a(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),l=a(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),u=a(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),d=a(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),f=a(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),p=a(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),m=a(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),h=a(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),g=a(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),_=a(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),v=a(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),y=a(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),b=e(i(),1);async function x(e){if(navigator.clipboard)try{return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}}function S(){let[e,t]=(0,b.useState)(!1),[n,r]=(0,b.useState)(new Set),[i,a]=(0,b.useState)(!1),o=(0,b.useRef)(null);(0,b.useEffect)(()=>()=>{o.current!==null&&clearTimeout(o.current)},[]);let s=(0,b.useCallback)(()=>{t(!0),r(new Set)},[]),c=(0,b.useCallback)(()=>{t(!1),r(new Set)},[]),l=(0,b.useCallback)(e=>{r(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),u=(0,b.useCallback)(()=>{o.current!==null&&(clearTimeout(o.current),o.current=null)},[]),d=(0,b.useCallback)(e=>({onPointerDown:()=>{o.current=setTimeout(()=>{t(!0),r(new Set([e])),o.current=null},500)},onPointerUp:u,onPointerLeave:u,onPointerCancel:u}),[u]),f=(0,b.useCallback)(e=>{a(e?`copied`:`failed`),setTimeout(()=>a(!1),1500)},[]);return{selectionMode:e,selectedItems:n,copyToast:i,longPressProps:d,enterSelection:s,exitSelection:c,toggleSelectItem:l,copySelected:(0,b.useCallback)(async(e,t)=>{let r=[...n].sort(t).map(t=>e(t)).filter(Boolean);r.length>0&&f(await x(r.join(`
2
+ import{o as e,r as t,t as n}from"./chunk-DD-I1_y5.js";import{n as r,o as i,r as a,t as o}from"./jsx-runtime-DYU20lw9.js";import{t as s}from"./preload-helper-qlgyTAkD.js";var c=a(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),l=a(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),u=a(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),d=a(`file-code`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12.5 8 15l2 2.5`,key:`1tg20x`}],[`path`,{d:`m14 12.5 2 2.5-2 2.5`,key:`yinavb`}]]),f=a(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),p=a(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),m=a(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),h=a(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),g=a(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),_=a(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),v=a(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),y=a(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),b=e(i(),1);async function x(e){if(navigator.clipboard)try{return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.appendChild(t),t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n}catch{return!1}}function S(){let[e,t]=(0,b.useState)(!1),[n,r]=(0,b.useState)(new Set),[i,a]=(0,b.useState)(!1),o=(0,b.useRef)(null);(0,b.useEffect)(()=>()=>{o.current!==null&&clearTimeout(o.current)},[]);let s=(0,b.useCallback)(()=>{t(!0),r(new Set)},[]),c=(0,b.useCallback)(()=>{t(!1),r(new Set)},[]),l=(0,b.useCallback)(e=>{r(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),u=(0,b.useCallback)(()=>{o.current!==null&&(clearTimeout(o.current),o.current=null)},[]),d=(0,b.useCallback)(e=>({onPointerDown:()=>{o.current=setTimeout(()=>{t(!0),r(new Set([e])),o.current=null},500)},onPointerUp:u,onPointerLeave:u,onPointerCancel:u}),[u]),f=(0,b.useCallback)(e=>{a(e?`copied`:`failed`),setTimeout(()=>a(!1),1500)},[]);return{selectionMode:e,selectedItems:n,copyToast:i,longPressProps:d,enterSelection:s,exitSelection:c,toggleSelectItem:l,copySelected:(0,b.useCallback)(async(e,t)=>{let r=[...n].sort(t).map(t=>e(t)).filter(Boolean);r.length>0&&f(await x(r.join(`
3
3
 
4
4
  ---
5
5
 
@@ -1 +1 @@
1
- import{r as e}from"./jsx-runtime-BPzLmqnP.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),n=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t as n,n as t};
1
+ import{r as e}from"./jsx-runtime-DYU20lw9.js";var t=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),n=e(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);export{t as n,n as t};
@@ -5,13 +5,13 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Data — Maxy</title>
7
7
  <link rel="icon" href="/favicon.ico">
8
- <script type="module" crossorigin src="/assets/data-CNSW6fWU.js"></script>
8
+ <script type="module" crossorigin src="/assets/data-BffoLFjh.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
10
- <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-BPzLmqnP.js">
11
- <link rel="modulepreload" crossorigin href="/assets/share-2-DfQskeTu.js">
12
- <link rel="modulepreload" crossorigin href="/assets/file-BOrQXRZl.js">
13
- <link rel="modulepreload" crossorigin href="/assets/house-sBJRwZUg.js">
14
- <link rel="stylesheet" crossorigin href="/assets/jsx-runtime-ZtLisuuZ.css">
10
+ <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-DYU20lw9.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/share-2-Bcn7Fo6t.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/file-CFwYpr7V.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/house-DL5e4lPb.js">
14
+ <link rel="stylesheet" crossorigin href="/assets/jsx-runtime-DsAwO6-r.css">
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
@@ -5,13 +5,13 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Graph — Maxy</title>
7
7
  <link rel="icon" href="/favicon.ico">
8
- <script type="module" crossorigin src="/assets/graph-BFLumOll.js"></script>
8
+ <script type="module" crossorigin src="/assets/graph-BTqqR6HN.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
10
- <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-BPzLmqnP.js">
11
- <link rel="modulepreload" crossorigin href="/assets/share-2-DfQskeTu.js">
12
- <link rel="modulepreload" crossorigin href="/assets/house-sBJRwZUg.js">
13
- <link rel="modulepreload" crossorigin href="/assets/x-BpzGzquU.js">
14
- <link rel="stylesheet" crossorigin href="/assets/jsx-runtime-ZtLisuuZ.css">
10
+ <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-DYU20lw9.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/share-2-Bcn7Fo6t.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/house-DL5e4lPb.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/x-Dv8-a-IC.js">
14
+ <link rel="stylesheet" crossorigin href="/assets/jsx-runtime-DsAwO6-r.css">
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
@@ -5,15 +5,15 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Real Agent</title>
7
7
  <link rel="icon" href="/favicon.ico">
8
- <script type="module" crossorigin src="/assets/admin-tBhWa-8P.js"></script>
8
+ <script type="module" crossorigin src="/assets/admin-CJCz3YFE.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
10
- <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-BPzLmqnP.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-DYU20lw9.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/preload-helper-qlgyTAkD.js">
12
- <link rel="modulepreload" crossorigin href="/assets/useVoiceRecorder-C2dkRb9r.js">
13
- <link rel="modulepreload" crossorigin href="/assets/share-2-DfQskeTu.js">
14
- <link rel="modulepreload" crossorigin href="/assets/file-BOrQXRZl.js">
15
- <link rel="modulepreload" crossorigin href="/assets/x-BpzGzquU.js">
16
- <link rel="stylesheet" crossorigin href="/assets/jsx-runtime-ZtLisuuZ.css">
12
+ <link rel="modulepreload" crossorigin href="/assets/useVoiceRecorder-BqzlICMx.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/share-2-Bcn7Fo6t.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/file-CFwYpr7V.js">
15
+ <link rel="modulepreload" crossorigin href="/assets/x-Dv8-a-IC.js">
16
+ <link rel="stylesheet" crossorigin href="/assets/jsx-runtime-DsAwO6-r.css">
17
17
  <link rel="stylesheet" crossorigin href="/assets/admin-kHJ-D0s7.css">
18
18
  <link rel="stylesheet" href="/brand-defaults.css">
19
19
  </head>
@@ -5,12 +5,12 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Real Agent</title>
7
7
  <link rel="icon" href="/favicon.ico">
8
- <script type="module" crossorigin src="/assets/public-BSWCSR50.js"></script>
8
+ <script type="module" crossorigin src="/assets/public-BJJlVuMu.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/chunk-DD-I1_y5.js">
10
- <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-BPzLmqnP.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-DYU20lw9.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/preload-helper-qlgyTAkD.js">
12
- <link rel="modulepreload" crossorigin href="/assets/useVoiceRecorder-C2dkRb9r.js">
13
- <link rel="stylesheet" crossorigin href="/assets/jsx-runtime-ZtLisuuZ.css">
12
+ <link rel="modulepreload" crossorigin href="/assets/useVoiceRecorder-BqzlICMx.js">
13
+ <link rel="stylesheet" crossorigin href="/assets/jsx-runtime-DsAwO6-r.css">
14
14
  <link rel="stylesheet" href="/brand-defaults.css">
15
15
  </head>
16
16
  <body>
@@ -18607,7 +18607,8 @@ app9.post("/", async (c) => {
18607
18607
  "test",
18608
18608
  "unknown",
18609
18609
  "graph-labels-in-graph",
18610
- "graph-default-view"
18610
+ "graph-default-view",
18611
+ "graph-nav"
18611
18612
  ]);
18612
18613
  const kind = allowedKinds.has(kindRaw) ? kindRaw : "unknown";
18613
18614
  const msg = truncate2(body.msg, MAX_MSG_LEN);
@@ -21147,7 +21148,19 @@ var HIDDEN_BY_DEFAULT_LABELS = Object.freeze(
21147
21148
  /* @__PURE__ */ new Set(["Chunk", "GraphPreference"])
21148
21149
  );
21149
21150
  var FILTER_EXCLUDED_LABELS = Object.freeze(
21150
- /* @__PURE__ */ new Set(["ToolCall", "WorkflowRun", "WorkflowStep", "ReviewAlert"])
21151
+ /* @__PURE__ */ new Set([
21152
+ "Message",
21153
+ "UserMessage",
21154
+ "AssistantMessage",
21155
+ "AdminConversation",
21156
+ "PublicConversation",
21157
+ "Section",
21158
+ "ToolCall",
21159
+ "WorkflowRun",
21160
+ "WorkflowStep",
21161
+ "StepResult",
21162
+ "ReviewAlert"
21163
+ ])
21151
21164
  );
21152
21165
  function isKnownLabel(label) {
21153
21166
  return Object.prototype.hasOwnProperty.call(GRAPH_LABEL_COLOURS, label);
@@ -21607,14 +21620,13 @@ app30.get("/", requireAdminSession, async (c) => {
21607
21620
  const labels = result.records.map((r) => ({
21608
21621
  label: String(r.get("label")),
21609
21622
  nodeCount: toNumber(r.get("nodeCount")),
21610
- relDegree: toNumber(r.get("relDegree")),
21611
- childOnly: toBool(r.get("childOnly"))
21623
+ relDegree: toNumber(r.get("relDegree"))
21612
21624
  })).filter((row) => row.nodeCount > 0).sort((a, b) => {
21613
21625
  if (b.relDegree !== a.relDegree) return b.relDegree - a.relDegree;
21614
21626
  return a.label.localeCompare(b.label);
21615
21627
  });
21616
21628
  const elapsed = Date.now() - started;
21617
- const summary = labels.map((l) => `${l.label}:${l.nodeCount}:${l.relDegree}:${l.childOnly ? 1 : 0}`).join(",");
21629
+ const summary = labels.map((l) => `${l.label}:${l.nodeCount}:${l.relDegree}`).join(",");
21618
21630
  console.error(
21619
21631
  `[graph-page] labels-in-graph account=${accountId} labels=${summary} ms=${elapsed}`
21620
21632
  );
@@ -21638,9 +21650,6 @@ function toNumber(v) {
21638
21650
  if (typeof v === "number") return v;
21639
21651
  return Number(v ?? 0);
21640
21652
  }
21641
- function toBool(v) {
21642
- return v === true;
21643
- }
21644
21653
  var LABELS_IN_GRAPH_CYPHER = `
21645
21654
  MATCH (n)
21646
21655
  WHERE n.accountId = $accountId
@@ -21650,21 +21659,10 @@ var LABELS_IN_GRAPH_CYPHER = `
21650
21659
  [l IN labels(n) WHERE NOT l IN $excluded] AS keptLabels,
21651
21660
  size([(n)--() | 1]) AS halfEdges
21652
21661
  UNWIND keptLabels AS label
21653
- WITH label, n, halfEdges,
21654
- EXISTS {
21655
- MATCH (other)-[]-(n)
21656
- WHERE NOT other:Trashed
21657
- AND other.deletedAt IS NULL
21658
- AND NONE(ol IN labels(other) WHERE ol = label)
21659
- } AS hasNonSelfNeighbour
21660
21662
  WITH label,
21661
21663
  count(DISTINCT n) AS nodeCount,
21662
- sum(halfEdges) AS relDegree,
21663
- count(DISTINCT CASE WHEN hasNonSelfNeighbour THEN n END) AS qualifyingCount
21664
- RETURN label,
21665
- nodeCount,
21666
- relDegree,
21667
- (nodeCount > 0 AND qualifyingCount = nodeCount) AS childOnly
21664
+ sum(halfEdges) AS relDegree
21665
+ RETURN label, nodeCount, relDegree
21668
21666
  `;
21669
21667
  var graph_labels_in_graph_default = app30;
21670
21668