@loopstack/loopstack-studio 0.29.4 → 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.
Files changed (114) hide show
  1. package/dist/_virtual/rolldown_runtime.js +3 -1
  2. package/dist/api/config.js +5 -4
  3. package/dist/api/environments.js +5 -1
  4. package/dist/api/processor.js +4 -1
  5. package/dist/app/EnvironmentEmbedRoot.js +22 -30
  6. package/dist/components/ai-elements/code-block.js +4 -4
  7. package/dist/components/dynamic-form/CodeContent.js +1 -1
  8. package/dist/components/dynamic-form/Form.js +31 -51
  9. package/dist/components/dynamic-form/FormBody.js +1 -1
  10. package/dist/components/motion/FadeIn.js +72 -0
  11. package/dist/components/motion/StreamingText.js +49 -0
  12. package/dist/components/ui/accordion.js +2 -2
  13. package/dist/components/ui-widgets/UiWidget.js +11 -10
  14. package/dist/components/ui-widgets/widgets/AiPromptInput.js +31 -28
  15. package/dist/events/sse-client-events.js +7 -1
  16. package/dist/features/code-explorer/components/FileContentViewer.js +2 -2
  17. package/dist/features/debug/components/WorkflowFlowViewer.js +49 -51
  18. package/dist/features/documents/DocumentRenderer.js +18 -17
  19. package/dist/features/documents/components/DocumentItem.js +42 -20
  20. package/dist/features/documents/components/DocumentList.js +34 -36
  21. package/dist/features/documents/components/DocumentMetadataPills.js +102 -49
  22. package/dist/features/documents/document-details/DocumentDetails.js +577 -377
  23. package/dist/features/documents/document-details/PromptDetails.js +118 -130
  24. package/dist/features/documents/document-details/document-debug-utils.js +100 -0
  25. package/dist/features/documents/renderers/ChoicesRenderer.js +41 -38
  26. package/dist/features/documents/renderers/ConfirmPromptRenderer.js +31 -28
  27. package/dist/features/documents/renderers/DocumentFormRenderer.js +62 -70
  28. package/dist/features/documents/renderers/LlmMessage.js +52 -47
  29. package/dist/features/documents/renderers/TextPromptRenderer.js +32 -29
  30. package/dist/features/documents/renderers/useDocumentTransition.js +4 -4
  31. package/dist/features/feature-registry/FeatureRegistryProvider.js +32 -10
  32. package/dist/features/feature-registry/available-features.js +12 -0
  33. package/dist/features/feature-registry/index.js +2 -1
  34. package/dist/features/file-explorer/components/FileExplorerPanel.js +55 -51
  35. package/dist/features/git/components/GitBranchBadge.js +31 -0
  36. package/dist/features/git/components/GitCommitList.js +46 -0
  37. package/dist/features/git/components/GitRemoteStatus.js +84 -0
  38. package/dist/features/git/components/WorkbenchGitPanel.js +81 -0
  39. package/dist/features/git/git-feature.js +12 -0
  40. package/dist/features/git/hooks/useGit.js +78 -0
  41. package/dist/features/git/index.js +1 -0
  42. package/dist/features/oauth/OAuthPromptRenderer.js +137 -142
  43. package/dist/features/runs/Runs.js +4 -4
  44. package/dist/features/secrets/components/WorkbenchSecretsPanel.js +1 -1
  45. package/dist/features/secrets/renderers/SecretInputRenderer.js +30 -29
  46. package/dist/features/workbench/Workbench.js +25 -33
  47. package/dist/features/workbench/WorkflowItem.js +9 -9
  48. package/dist/features/workbench/WorkflowList.js +61 -62
  49. package/dist/features/workbench/components/NewRunDialog.js +237 -209
  50. package/dist/features/workbench/components/RecentRunItem.js +3 -3
  51. package/dist/features/workbench/components/WorkbenchEnvironmentPanel.js +8 -8
  52. package/dist/features/workbench/components/WorkbenchIconSidebar.js +1 -1
  53. package/dist/features/workbench/components/WorkbenchSidebarShell.js +3 -3
  54. package/dist/features/workbench/components/WorkflowForms.js +11 -10
  55. package/dist/features/workbench/components/WorkflowHistoryItem.js +16 -36
  56. package/dist/features/workbench/components/WorkflowHistoryList.js +19 -17
  57. package/dist/features/workbench/components/buttons/WorkflowButtons.js +3 -3
  58. package/dist/features/workbench/hooks/useLlmStreamingDocuments.js +159 -0
  59. package/dist/features/workbench/hooks/useWorkflowData.js +58 -31
  60. package/dist/features/workbench/index.js +2 -2
  61. package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +53 -53
  62. package/dist/features/workspaces/Workspaces.js +134 -125
  63. package/dist/features/workspaces/components/CreateWorkspace.js +115 -107
  64. package/dist/features/workspaces/components/ExecutionTimeline.js +2 -2
  65. package/dist/features/workspaces/components/WorkflowRunForm.js +127 -104
  66. package/dist/features/workspaces/components/WorkspaceHomePage.js +6 -89
  67. package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +1 -1
  68. package/dist/features/workspaces/components/workflow-form/SelectionView.js +15 -15
  69. package/dist/hooks/index.js +3 -2
  70. package/dist/hooks/query-keys.js +43 -30
  71. package/dist/hooks/useConfig.js +28 -22
  72. package/dist/hooks/useEnvironments.js +27 -2
  73. package/dist/hooks/useProcessor.js +14 -1
  74. package/dist/hooks/useWorkflows.js +4 -4
  75. package/dist/index.d.ts +116 -15
  76. package/dist/index.js +9 -8
  77. package/dist/node_modules/d3/src/index.js +13 -13
  78. package/dist/node_modules/d3-scale/src/continuous.js +16 -16
  79. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-3BPJPVTR.js +43 -43
  80. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.js +270 -270
  81. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-AAUBKEIU.js +90 -90
  82. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.js +458 -458
  83. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +3 -3
  84. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.js +37 -37
  85. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.js +208 -208
  86. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KSCS5N6A.js +145 -145
  87. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ND2GUHAM.js +7 -7
  88. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.js +41 -41
  89. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WU5MYG2G.js +3 -3
  90. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +6 -6
  91. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +30 -30
  92. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OG6HWLK6.js +82 -82
  93. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-TEJ5UH35.js +65 -65
  94. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-I6XJVG4X.js +227 -227
  95. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-6RSMTGT7.js +104 -104
  96. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.js +104 -104
  97. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-JHISSGLW.js +49 -49
  98. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.js +101 -101
  99. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-5OEKKPKP.js +20 -20
  100. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js +354 -354
  101. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-AJRCARHV.js +53 -53
  102. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-PNZ67QCA.js +113 -113
  103. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-CIIHVFJN.js +90 -90
  104. package/dist/node_modules/mermaid/dist/mermaid.core.js +156 -156
  105. package/dist/node_modules/motion/dist/es/react.js +9 -2
  106. package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
  107. package/dist/pages/DebugWorkflowsPage.js +76 -106
  108. package/dist/pages/EmbedWorkbenchPage.js +1 -1
  109. package/dist/pages/PreviewWorkbenchPage.js +6 -6
  110. package/dist/pages/WorkbenchPage.js +43 -47
  111. package/dist/pages/WorkflowDebugPage.js +6 -12
  112. package/dist/pages/WorkspacePage.js +40 -66
  113. package/dist/pages/WorkspaceRunsPage.js +24 -31
  114. 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 n = /* @__PURE__ */ __name(function(e, n, r, i) {
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
- n(i, [2, 4], {
110
+ e(i, [2, 4], {
111
111
  9: 13,
112
112
  5: [1, 14]
113
113
  }),
114
114
  { 12: [1, 15] },
115
- n(a, [2, 8]),
116
- n(a, [2, 9]),
115
+ e(a, [2, 8]),
116
+ e(a, [2, 9]),
117
117
  { 19: [1, 16] },
118
- n(a, [2, 11]),
118
+ e(a, [2, 11]),
119
119
  { 1: [2, 1] },
120
120
  { 1: [2, 5] },
121
- n(i, [2, 2]),
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
- n(i, [2, 3]),
139
+ e(i, [2, 3]),
140
140
  { 12: [1, 20] },
141
- n(a, [2, 10]),
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
- n([
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(n) {
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(n, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
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 n {
461
+ }, Uid = class e {
462
462
  static #e = __name(this, "Uid");
463
463
  static #t = this.count = 0;
464
- static next(e) {
465
- return new n(e + ++n.count);
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(n, r, a, o) {
486
- let { securityLevel: c, sankey: l } = getConfig2(), u = defaultConfig2.sankey, d;
487
- c === "sandbox" && (d = select_default("#i" + r));
488
- let g = select_default(c === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), _ = c === "sandbox" ? g.select(`[id="${r}"]`) : select_default(`[id="${r}"]`), v = l?.width ?? u.width, y = l?.height ?? u.width, S = l?.useMaxWidth ?? u.useMaxWidth, C = l?.nodeAlignment ?? u.nodeAlignment, w = l?.prefix ?? u.prefix, T = l?.suffix ?? u.suffix, E = l?.showValues ?? u.showValues, D = l?.nodeWidth ?? u.nodeWidth ?? 10, O = l?.nodePadding ?? u.nodePadding ?? 12, k = l?.labelStyle ?? u.labelStyle ?? "legacy", A = l?.nodeColors ?? {}, j = o.db.getGraph(), P = alignmentsMap[C];
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 = l?.linkColor ?? "gradient";
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));