Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Thomas G. Lopes
commited on
Commit
·
b44b325
1
Parent(s):
a792a8e
improve branch tree focus
Browse files
package.json
CHANGED
|
@@ -53,7 +53,7 @@
|
|
| 53 |
"highlight.js": "^11.10.0",
|
| 54 |
"jiti": "^2.4.2",
|
| 55 |
"jsdom": "^26.0.0",
|
| 56 |
-
"melt": "^0.
|
| 57 |
"openai": "^4.90.0",
|
| 58 |
"playwright": "^1.52.0",
|
| 59 |
"postcss": "^8.4.38",
|
|
|
|
| 53 |
"highlight.js": "^11.10.0",
|
| 54 |
"jiti": "^2.4.2",
|
| 55 |
"jsdom": "^26.0.0",
|
| 56 |
+
"melt": "^0.42.0",
|
| 57 |
"openai": "^4.90.0",
|
| 58 |
"playwright": "^1.52.0",
|
| 59 |
"postcss": "^8.4.38",
|
pnpm-lock.yaml
CHANGED
|
@@ -139,8 +139,8 @@ importers:
|
|
| 139 |
specifier: ^26.0.0
|
| 140 |
version: 26.1.0
|
| 141 |
melt:
|
| 142 |
-
specifier: ^0.
|
| 143 |
-
version: 0.
|
| 144 |
openai:
|
| 145 |
specifier: ^4.90.0
|
| 146 |
version: 4.90.0(ws@8.18.3)(zod@3.25.76)
|
|
@@ -2404,8 +2404,8 @@ packages:
|
|
| 2404 |
resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==}
|
| 2405 |
engines: {node: '>= 0.8'}
|
| 2406 |
|
| 2407 |
-
melt@0.
|
| 2408 |
-
resolution: {integrity: sha512-
|
| 2409 |
peerDependencies:
|
| 2410 |
'@floating-ui/dom': ^1.6.0
|
| 2411 |
svelte: ^5.30.1
|
|
@@ -5631,7 +5631,7 @@ snapshots:
|
|
| 5631 |
|
| 5632 |
media-typer@1.1.0: {}
|
| 5633 |
|
| 5634 |
-
melt@0.
|
| 5635 |
dependencies:
|
| 5636 |
'@floating-ui/dom': 1.6.13
|
| 5637 |
dequal: 2.0.3
|
|
|
|
| 139 |
specifier: ^26.0.0
|
| 140 |
version: 26.1.0
|
| 141 |
melt:
|
| 142 |
+
specifier: ^0.42.0
|
| 143 |
+
version: 0.42.0(@floating-ui/dom@1.6.13)(svelte@5.43.10)
|
| 144 |
openai:
|
| 145 |
specifier: ^4.90.0
|
| 146 |
version: 4.90.0(ws@8.18.3)(zod@3.25.76)
|
|
|
|
| 2404 |
resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==}
|
| 2405 |
engines: {node: '>= 0.8'}
|
| 2406 |
|
| 2407 |
+
melt@0.42.0:
|
| 2408 |
+
resolution: {integrity: sha512-ye5bE6J0bcNsWRCrSwp4pI9V2M5SB908g6VwqD2zAuTOiIXDNAMZ2S7OLmSKuecJ6sY1bFgQUhji8W4Y9u6GXA==}
|
| 2409 |
peerDependencies:
|
| 2410 |
'@floating-ui/dom': ^1.6.0
|
| 2411 |
svelte: ^5.30.1
|
|
|
|
| 5631 |
|
| 5632 |
media-typer@1.1.0: {}
|
| 5633 |
|
| 5634 |
+
melt@0.42.0(@floating-ui/dom@1.6.13)(svelte@5.43.10):
|
| 5635 |
dependencies:
|
| 5636 |
'@floating-ui/dom': 1.6.13
|
| 5637 |
dequal: 2.0.3
|
src/lib/components/inference-playground/branch-tree-modal.svelte
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
import { conversations } from "$lib/state/conversations.svelte";
|
| 3 |
import { projects } from "$lib/state/projects.svelte";
|
| 4 |
import { Popover, Tree, type TreeItem } from "melt/builders";
|
|
|
|
| 5 |
import { SvelteMap } from "svelte/reactivity";
|
| 6 |
import IconBranch from "~icons/carbon/branch";
|
| 7 |
import IconChevronDown from "~icons/carbon/chevron-down";
|
|
@@ -78,6 +79,17 @@
|
|
| 78 |
expandOnClick: false,
|
| 79 |
});
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
const popover = new Popover({
|
| 82 |
floatingConfig: {
|
| 83 |
offset: { crossAxis: -12 },
|
|
|
|
| 2 |
import { conversations } from "$lib/state/conversations.svelte";
|
| 3 |
import { projects } from "$lib/state/projects.svelte";
|
| 4 |
import { Popover, Tree, type TreeItem } from "melt/builders";
|
| 5 |
+
import { watch } from "runed";
|
| 6 |
import { SvelteMap } from "svelte/reactivity";
|
| 7 |
import IconBranch from "~icons/carbon/branch";
|
| 8 |
import IconChevronDown from "~icons/carbon/chevron-down";
|
|
|
|
| 79 |
expandOnClick: false,
|
| 80 |
});
|
| 81 |
|
| 82 |
+
let initExpanded = false;
|
| 83 |
+
watch(
|
| 84 |
+
() => treeItems,
|
| 85 |
+
() => {
|
| 86 |
+
if (treeItems.length === 0 || initExpanded) return;
|
| 87 |
+
console.log("init expanded");
|
| 88 |
+
tree.expandAll();
|
| 89 |
+
initExpanded = true;
|
| 90 |
+
},
|
| 91 |
+
);
|
| 92 |
+
|
| 93 |
const popover = new Popover({
|
| 94 |
floatingConfig: {
|
| 95 |
offset: { crossAxis: -12 },
|