@loopstack/loopstack-studio 0.29.5 → 0.30.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/_virtual/rolldown_runtime.js +3 -1
- package/dist/api/config.js +5 -4
- package/dist/api/environments.js +5 -1
- package/dist/api/processor.js +4 -1
- package/dist/app/EnvironmentEmbedRoot.js +22 -30
- package/dist/components/ai-elements/code-block.js +4 -4
- package/dist/components/dynamic-form/CodeContent.js +1 -1
- package/dist/components/dynamic-form/FormBody.js +1 -1
- package/dist/components/motion/FadeIn.js +72 -0
- package/dist/components/motion/StreamingText.js +49 -0
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui-widgets/UiWidget.js +11 -10
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +31 -28
- package/dist/events/sse-client-events.js +7 -1
- package/dist/features/code-explorer/components/FileContentViewer.js +2 -2
- package/dist/features/debug/components/WorkflowFlowViewer.js +49 -51
- package/dist/features/documents/DocumentRenderer.js +18 -17
- package/dist/features/documents/components/DocumentItem.js +42 -20
- package/dist/features/documents/components/DocumentList.js +34 -36
- package/dist/features/documents/components/DocumentMetadataPills.js +102 -49
- package/dist/features/documents/document-details/DocumentDetails.js +577 -377
- package/dist/features/documents/document-details/PromptDetails.js +118 -130
- package/dist/features/documents/document-details/document-debug-utils.js +100 -0
- package/dist/features/documents/renderers/ChoicesRenderer.js +41 -38
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +31 -28
- package/dist/features/documents/renderers/DocumentFormRenderer.js +62 -70
- package/dist/features/documents/renderers/LlmMessage.js +52 -47
- package/dist/features/documents/renderers/TextPromptRenderer.js +32 -29
- package/dist/features/documents/renderers/useDocumentTransition.js +4 -4
- package/dist/features/feature-registry/FeatureRegistryProvider.js +32 -10
- package/dist/features/feature-registry/available-features.js +12 -0
- package/dist/features/feature-registry/index.js +2 -1
- package/dist/features/file-explorer/components/FileExplorerPanel.js +55 -51
- package/dist/features/git/components/GitBranchBadge.js +31 -0
- package/dist/features/git/components/GitCommitList.js +46 -0
- package/dist/features/git/components/GitRemoteStatus.js +84 -0
- package/dist/features/git/components/WorkbenchGitPanel.js +81 -0
- package/dist/features/git/git-feature.js +12 -0
- package/dist/features/git/hooks/useGit.js +78 -0
- package/dist/features/git/index.js +1 -0
- package/dist/features/oauth/OAuthPromptRenderer.js +137 -142
- package/dist/features/runs/Runs.js +4 -4
- package/dist/features/secrets/components/WorkbenchSecretsPanel.js +1 -1
- package/dist/features/secrets/renderers/SecretInputRenderer.js +30 -29
- package/dist/features/workbench/Workbench.js +25 -33
- package/dist/features/workbench/WorkflowItem.js +9 -9
- package/dist/features/workbench/WorkflowList.js +61 -62
- package/dist/features/workbench/components/NewRunDialog.js +237 -209
- package/dist/features/workbench/components/RecentRunItem.js +3 -3
- package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +8 -8
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +1 -1
- package/dist/features/workbench/components/WorkbenchSidebarShell.js +3 -3
- package/dist/features/workbench/components/WorkflowForms.js +11 -10
- package/dist/features/workbench/components/WorkflowHistoryItem.js +16 -36
- package/dist/features/workbench/components/WorkflowHistoryList.js +19 -17
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +3 -3
- package/dist/features/workbench/hooks/useLlmStreamingDocuments.js +159 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +58 -31
- package/dist/features/workbench/index.js +2 -2
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +53 -53
- package/dist/features/workspaces/Workspaces.js +134 -125
- package/dist/features/workspaces/components/CreateWorkspace.js +115 -107
- package/dist/features/workspaces/components/ExecutionTimeline.js +2 -2
- package/dist/features/workspaces/components/WorkflowRunForm.js +127 -104
- package/dist/features/workspaces/components/WorkspaceHomePage.js +6 -89
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +1 -1
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +15 -15
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/query-keys.js +43 -30
- package/dist/hooks/useConfig.js +28 -22
- package/dist/hooks/useEnvironments.js +27 -2
- package/dist/hooks/useProcessor.js +14 -1
- package/dist/hooks/useWorkflows.js +4 -4
- package/dist/index.d.ts +116 -15
- package/dist/index.js +9 -8
- package/dist/node_modules/d3/src/index.js +13 -13
- package/dist/node_modules/d3-scale/src/continuous.js +16 -16
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-3BPJPVTR.js +43 -43
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.js +270 -270
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.js +90 -90
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.js +458 -458
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.js +37 -37
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.js +208 -208
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KSCS5N6A.js +145 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ND2GUHAM.js +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.js +41 -41
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WU5MYG2G.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +6 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +30 -30
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OG6HWLK6.js +82 -82
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-TEJ5UH35.js +65 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-I6XJVG4X.js +227 -227
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-6RSMTGT7.js +104 -104
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.js +104 -104
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-JHISSGLW.js +49 -49
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.js +101 -101
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-5OEKKPKP.js +20 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js +354 -354
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-AJRCARHV.js +53 -53
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-PNZ67QCA.js +113 -113
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.js +90 -90
- package/dist/node_modules/mermaid/dist/mermaid.core.js +156 -156
- package/dist/node_modules/motion/dist/es/react.js +9 -2
- package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
- package/dist/pages/DebugWorkflowsPage.js +76 -106
- package/dist/pages/EmbedWorkbenchPage.js +1 -1
- package/dist/pages/PreviewWorkbenchPage.js +6 -6
- package/dist/pages/WorkbenchPage.js +43 -47
- package/dist/pages/WorkflowDebugPage.js +6 -12
- package/dist/pages/WorkspacePage.js +40 -66
- package/dist/pages/WorkspaceRunsPage.js +24 -31
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import select_default from "../../../../d3-selection/src/select.js";
|
|
1
2
|
import { __name } from "./chunk-AGHRB4JF.js";
|
|
2
3
|
import { clear, common_default, defaultConfig2, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, setAccDescription, setAccTitle, setDiagramTitle, setupGraphViewbox } from "./chunk-CSCIHK7Q.js";
|
|
3
|
-
import select_default from "../../../../d3-selection/src/select.js";
|
|
4
4
|
import ordinal from "../../../../d3-scale/src/ordinal.js";
|
|
5
5
|
import Tableau10_default from "../../../../d3-scale-chromatic/src/categorical/Tableau10.js";
|
|
6
6
|
import "../../../../d3/src/index.js";
|
|
@@ -8,7 +8,7 @@ import { center, justify, left, right } from "../../../../d3-sankey/src/align.js
|
|
|
8
8
|
import Sankey from "../../../../d3-sankey/src/sankey.js";
|
|
9
9
|
import sankeyLinkHorizontal_default from "../../../../d3-sankey/src/sankeyLinkHorizontal.js";
|
|
10
10
|
var parser = (function() {
|
|
11
|
-
var
|
|
11
|
+
var e = /* @__PURE__ */ __name(function(e, n, r, i) {
|
|
12
12
|
for (r ||= {}, i = e.length; i--; r[e[i]] = n);
|
|
13
13
|
return r;
|
|
14
14
|
}, "o"), r = [1, 9], i = [1, 10], a = [
|
|
@@ -107,18 +107,18 @@ var parser = (function() {
|
|
|
107
107
|
7: 11,
|
|
108
108
|
10: [1, 12]
|
|
109
109
|
},
|
|
110
|
-
|
|
110
|
+
e(i, [2, 4], {
|
|
111
111
|
9: 13,
|
|
112
112
|
5: [1, 14]
|
|
113
113
|
}),
|
|
114
114
|
{ 12: [1, 15] },
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
e(a, [2, 8]),
|
|
116
|
+
e(a, [2, 9]),
|
|
117
117
|
{ 19: [1, 16] },
|
|
118
|
-
|
|
118
|
+
e(a, [2, 11]),
|
|
119
119
|
{ 1: [2, 1] },
|
|
120
120
|
{ 1: [2, 5] },
|
|
121
|
-
|
|
121
|
+
e(i, [2, 2]),
|
|
122
122
|
{
|
|
123
123
|
6: 17,
|
|
124
124
|
8: 5,
|
|
@@ -136,9 +136,9 @@ var parser = (function() {
|
|
|
136
136
|
20: i
|
|
137
137
|
},
|
|
138
138
|
{ 18: [1, 19] },
|
|
139
|
-
|
|
139
|
+
e(i, [2, 3]),
|
|
140
140
|
{ 12: [1, 20] },
|
|
141
|
-
|
|
141
|
+
e(a, [2, 10]),
|
|
142
142
|
{
|
|
143
143
|
15: 21,
|
|
144
144
|
16: 7,
|
|
@@ -146,7 +146,7 @@ var parser = (function() {
|
|
|
146
146
|
18: r,
|
|
147
147
|
20: i
|
|
148
148
|
},
|
|
149
|
-
|
|
149
|
+
e([
|
|
150
150
|
1,
|
|
151
151
|
5,
|
|
152
152
|
10
|
|
@@ -163,10 +163,10 @@ var parser = (function() {
|
|
|
163
163
|
throw r.hash = n, r;
|
|
164
164
|
}
|
|
165
165
|
}, "parseError"),
|
|
166
|
-
parse: /* @__PURE__ */ __name(function(
|
|
166
|
+
parse: /* @__PURE__ */ __name(function(e) {
|
|
167
167
|
var r = this, i = [0], a = [], o = [null], s = [], c = this.table, l = "", u = 0, d = 0, f = 0, p = 2, m = 1, h = s.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
|
|
168
168
|
for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
|
|
169
|
-
g.setInput(
|
|
169
|
+
g.setInput(e, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
|
|
170
170
|
var y = g.yylloc;
|
|
171
171
|
s.push(y);
|
|
172
172
|
var b = g.options && g.options.ranges;
|
|
@@ -458,11 +458,11 @@ var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */
|
|
|
458
458
|
getDiagramTitle,
|
|
459
459
|
setDiagramTitle,
|
|
460
460
|
clear: clear2
|
|
461
|
-
}, Uid = class
|
|
461
|
+
}, Uid = class e {
|
|
462
462
|
static #e = __name(this, "Uid");
|
|
463
463
|
static #t = this.count = 0;
|
|
464
|
-
static next(
|
|
465
|
-
return new n
|
|
464
|
+
static next(n) {
|
|
465
|
+
return new e(n + ++e.count);
|
|
466
466
|
}
|
|
467
467
|
constructor(e) {
|
|
468
468
|
this.id = e, this.href = `#${e}`;
|
|
@@ -482,10 +482,10 @@ var sankey_default = parser, links = [], nodes = [], nodesMap = /* @__PURE__ */
|
|
|
482
482
|
e > n && (n = e, r = i.layer ?? 0);
|
|
483
483
|
}
|
|
484
484
|
return r;
|
|
485
|
-
}, "findCentralNodeLayer"), sankeyRenderer_default = { draw: /* @__PURE__ */ __name(function(
|
|
486
|
-
let { securityLevel:
|
|
487
|
-
|
|
488
|
-
let g = select_default(
|
|
485
|
+
}, "findCentralNodeLayer"), sankeyRenderer_default = { draw: /* @__PURE__ */ __name(function(r, i, o, s) {
|
|
486
|
+
let { securityLevel: l, sankey: u } = getConfig2(), d = defaultConfig2.sankey, f;
|
|
487
|
+
l === "sandbox" && (f = select_default("#i" + i));
|
|
488
|
+
let g = select_default(l === "sandbox" ? f.nodes()[0].contentDocument.body : "body"), _ = l === "sandbox" ? g.select(`[id="${i}"]`) : select_default(`[id="${i}"]`), v = u?.width ?? d.width, y = u?.height ?? d.width, S = u?.useMaxWidth ?? d.useMaxWidth, C = u?.nodeAlignment ?? d.nodeAlignment, w = u?.prefix ?? d.prefix, T = u?.suffix ?? d.suffix, E = u?.showValues ?? d.showValues, D = u?.nodeWidth ?? d.nodeWidth ?? 10, O = u?.nodePadding ?? d.nodePadding ?? 12, k = u?.labelStyle ?? d.labelStyle ?? "legacy", A = u?.nodeColors ?? {}, j = s.db.getGraph(), P = alignmentsMap[C];
|
|
489
489
|
Sankey().nodeId((e) => e.id).nodeWidth(D).nodePadding(O + (E ? 15 : 0)).nodeAlign(P).extent([[0, 0], [v, y]])(j);
|
|
490
490
|
let F = findCentralNodeLayer(j.nodes), I = ordinal(Tableau10_default), L = /* @__PURE__ */ __name((e) => A[e] ?? I(e), "getNodeColor");
|
|
491
491
|
_.append("g").attr("class", "nodes").selectAll(".node").data(j.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = Uid.next("node-")).id).attr("transform", function(e) {
|
|
@@ -506,7 +506,7 @@ ${w}${Math.round(n * 100) / 100}${T}` : e, "getText"), z = /* @__PURE__ */ __nam
|
|
|
506
506
|
anchor: "end"
|
|
507
507
|
}, "getLabelPosition"), B = _.append("g").attr("class", "node-labels").attr("font-size", 14), V = /* @__PURE__ */ __name((e) => B.selectAll(e ? `.${e}` : "text").data(j.nodes).join("text").attr("class", e ?? null).attr("x", (e) => z(e).x).attr("y", (e) => (e.y1 + e.y0) / 2).attr("dy", `${E ? "0" : "0.35"}em`).attr("text-anchor", (e) => z(e).anchor).text(R), "appendLabel");
|
|
508
508
|
k === "outlined" ? (V("sankey-label-bg"), V("sankey-label-fg")) : V();
|
|
509
|
-
let H = _.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", .5).selectAll(".link").data(j.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), U =
|
|
509
|
+
let H = _.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", .5).selectAll(".link").data(j.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), U = u?.linkColor ?? "gradient";
|
|
510
510
|
if (U === "gradient") {
|
|
511
511
|
let e = H.append("linearGradient").attr("id", (e) => (e.uid = Uid.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (e) => e.source.x1).attr("x2", (e) => e.target.x0);
|
|
512
512
|
e.append("stop").attr("offset", "0%").attr("stop-color", (e) => L(e.source.id)), e.append("stop").attr("offset", "100%").attr("stop-color", (e) => L(e.target.id));
|