@ucdjs/pipelines-server 0.0.1-beta.3 → 0.0.1-beta.6

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 (88) hide show
  1. package/dist/client/assets/badge-DpfYXzsc.js +1 -0
  2. package/dist/client/assets/button-D8TNeETo.js +1 -0
  3. package/dist/client/assets/card-4nTswg_n.js +1 -0
  4. package/dist/client/assets/{code.lazy-FGQTh0m_.js → code.lazy-Hk8YeOZq.js} +6 -6
  5. package/dist/client/assets/createBaseUIEventDetails-eG8mNZ45.js +1 -0
  6. package/dist/client/assets/createLucideIcon-DqT5FQwf.js +1 -0
  7. package/dist/client/assets/dist-DOhv2m1Z.js +1 -0
  8. package/dist/client/assets/file-code-sFotPMp6.js +1 -0
  9. package/dist/client/assets/graph.lazy-BSNr7S9S.js +1 -0
  10. package/dist/client/assets/graph.lazy-j3mLiSDD.js +1 -0
  11. package/dist/client/assets/graphs.lazy-BesTMfiu.js +1 -0
  12. package/dist/client/assets/index-9D_zdG_Y.css +2 -0
  13. package/dist/client/assets/index-DvzFBIUy.js +26 -0
  14. package/dist/client/assets/index.lazy-CYDCkmZn.js +1 -0
  15. package/dist/client/assets/index.lazy-Cyazp84x.js +1 -0
  16. package/dist/client/assets/index.lazy-DlzPp9kk.js +1 -0
  17. package/dist/client/assets/index.lazy-IFnMjMMx.js +1 -0
  18. package/dist/client/assets/inspect.lazy-CFnVtBAm.js +1 -0
  19. package/dist/client/assets/loader-circle-B23ONZKS.js +1 -0
  20. package/dist/client/assets/pipeline-command-palette-D5eOYOY2.js +1 -0
  21. package/dist/client/assets/pipeline-graph-CjR9n8rb.js +7 -0
  22. package/dist/client/assets/play-D_JVLdxR.js +1 -0
  23. package/dist/client/assets/react-dom-nSF78UiM.js +1 -0
  24. package/dist/client/assets/route.lazy-DFXW1vf2.js +1 -0
  25. package/dist/client/assets/route.lazy-IMrNfqZN.js +1 -0
  26. package/dist/client/assets/status-icon-DwAuzQ-Z.js +1 -0
  27. package/dist/client/assets/table-B_O6sE70.js +1 -0
  28. package/dist/client/assets/use-execute-BFp3EN62.js +1 -0
  29. package/dist/client/assets/use-pipeline-versions-B4Bj4BNC.js +1 -0
  30. package/dist/client/assets/useIsoLayoutEffect-Dm7lmL2S.js +1 -0
  31. package/dist/client/assets/x-DsbJUv53.js +12 -0
  32. package/dist/client/index.html +9 -2
  33. package/dist/server/app.d.ts +21 -0
  34. package/dist/server/app.js +196 -105
  35. package/dist/server/code.d.ts +5 -0
  36. package/dist/server/db/index.d.ts +10 -0
  37. package/dist/server/db/schema.d.ts +562 -0
  38. package/dist/server/lib/execution-logs.d.ts +27 -0
  39. package/dist/server/lib/files.d.ts +38 -0
  40. package/dist/server/lib/ids.d.ts +5 -0
  41. package/dist/server/lib/loader.d.ts +2 -0
  42. package/dist/server/lib/log-capture.d.ts +6 -0
  43. package/dist/server/lib/resolve.d.ts +1 -0
  44. package/dist/server/migrations/0000_amazing_kang.sql +20 -0
  45. package/dist/server/migrations/0001_wandering_wind_dancer.sql +10 -0
  46. package/dist/server/migrations/0002_lively_maestro.sql +18 -0
  47. package/dist/server/migrations/0003_common_scarlet_witch.sql +54 -0
  48. package/dist/server/migrations/meta/0000_snapshot.json +150 -0
  49. package/dist/server/migrations/meta/0001_snapshot.json +223 -0
  50. package/dist/server/migrations/meta/0002_snapshot.json +325 -0
  51. package/dist/server/migrations/meta/0003_snapshot.json +365 -0
  52. package/dist/server/migrations/meta/_journal.json +34 -0
  53. package/dist/server/routes/index.d.ts +7 -0
  54. package/dist/server/routes/pipelines.events.d.ts +2 -0
  55. package/dist/server/routes/pipelines.execution.d.ts +2 -0
  56. package/dist/server/routes/pipelines.file.d.ts +2 -0
  57. package/dist/server/routes/pipelines.graph.d.ts +2 -0
  58. package/dist/server/routes/pipelines.index.d.ts +2 -0
  59. package/dist/server/routes/pipelines.logs.d.ts +2 -0
  60. package/dist/server/routes/pipelines.pipeline.d.ts +2 -0
  61. package/dist/server/workspace.d.ts +17 -0
  62. package/package.json +25 -20
  63. package/dist/client/assets/badge-CiZ9XGQk.js +0 -1
  64. package/dist/client/assets/card-BlDtnoJE.js +0 -1
  65. package/dist/client/assets/file-code-5UzxVDjG.js +0 -1
  66. package/dist/client/assets/graph.lazy-BOYYfhw3.js +0 -1
  67. package/dist/client/assets/graph.lazy-DA9DvkOv.js +0 -1
  68. package/dist/client/assets/graphs.lazy-B126tNcm.js +0 -1
  69. package/dist/client/assets/index-CM5XQ164.js +0 -37
  70. package/dist/client/assets/index-DMk-WqWb.css +0 -2
  71. package/dist/client/assets/index.lazy-CU14Wam7.js +0 -1
  72. package/dist/client/assets/index.lazy-Cb2iPSue.js +0 -1
  73. package/dist/client/assets/index.lazy-wtKmX-2H.js +0 -1
  74. package/dist/client/assets/index.lazy-y07R4t6D.js +0 -1
  75. package/dist/client/assets/inspect.lazy-BYA5YEbr.js +0 -1
  76. package/dist/client/assets/loader-circle-BY1Dugig.js +0 -1
  77. package/dist/client/assets/pipeline-command-palette-CWHY1w53.js +0 -45
  78. package/dist/client/assets/pipeline-graph-CDObZuGJ.js +0 -7
  79. package/dist/client/assets/play-B6p-hHI7.js +0 -1
  80. package/dist/client/assets/route.lazy-D79_-rW6.js +0 -1
  81. package/dist/client/assets/route.lazy-eVSF2dsv.js +0 -1
  82. package/dist/client/assets/status-icon-NVeRT4ag.js +0 -1
  83. package/dist/client/assets/table-Cbx6lsBL.js +0 -1
  84. package/dist/client/assets/use-execute-CG1fzzQp.js +0 -1
  85. package/dist/client/assets/use-pipeline-versions-Dg2J_cPs.js +0 -1
  86. /package/dist/client/assets/{javascript-DKcGLuub.js → javascript-UW4R5q0N.js} +0 -0
  87. /package/dist/client/assets/{json-CgREIYS1.js → json-Bq05x4Q-.js} +0 -0
  88. /package/dist/client/assets/{typescript-xi0cSHCO.js → typescript-GFMdcsgQ.js} +0 -0
@@ -0,0 +1,34 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "sqlite",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "6",
8
+ "when": 1770386712312,
9
+ "tag": "0000_amazing_kang",
10
+ "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "6",
15
+ "when": 1770541450080,
16
+ "tag": "0001_wandering_wind_dancer",
17
+ "breakpoints": true
18
+ },
19
+ {
20
+ "idx": 2,
21
+ "version": "6",
22
+ "when": 1771259592145,
23
+ "tag": "0002_lively_maestro",
24
+ "breakpoints": true
25
+ },
26
+ {
27
+ "idx": 3,
28
+ "version": "6",
29
+ "when": 1771261678536,
30
+ "tag": "0003_common_scarlet_witch",
31
+ "breakpoints": true
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,7 @@
1
+ export { pipelinesEventsRouter } from "./pipelines.events";
2
+ export { pipelinesExecutionRouter } from "./pipelines.execution";
3
+ export { pipelinesFileRouter } from "./pipelines.file";
4
+ export { pipelinesGraphRouter } from "./pipelines.graph";
5
+ export { pipelinesIndexRouter } from "./pipelines.index";
6
+ export { pipelinesLogsRouter } from "./pipelines.logs";
7
+ export { pipelinesPipelineRouter } from "./pipelines.pipeline";
@@ -0,0 +1,2 @@
1
+ import { H3 } from "h3";
2
+ export declare const pipelinesEventsRouter: H3;
@@ -0,0 +1,2 @@
1
+ import { H3 } from "h3";
2
+ export declare const pipelinesExecutionRouter: H3;
@@ -0,0 +1,2 @@
1
+ import { H3 } from "h3";
2
+ export declare const pipelinesFileRouter: H3;
@@ -0,0 +1,2 @@
1
+ import { H3 } from "h3";
2
+ export declare const pipelinesGraphRouter: H3;
@@ -0,0 +1,2 @@
1
+ import { H3 } from "h3";
2
+ export declare const pipelinesIndexRouter: H3;
@@ -0,0 +1,2 @@
1
+ import { H3 } from "h3";
2
+ export declare const pipelinesLogsRouter: H3;
@@ -0,0 +1,2 @@
1
+ import { H3 } from "h3";
2
+ export declare const pipelinesPipelineRouter: H3;
@@ -0,0 +1,17 @@
1
+ import type { Database } from "#server/db";
2
+ import type { PipelineSource } from "@ucdjs/pipelines-loader";
3
+ export interface ResolveWorkspaceOptions {
4
+ rootPath?: string;
5
+ sources?: PipelineSource[];
6
+ }
7
+ export declare const WORKSPACE_CONFIG_FILENAME = "ucd-pipelines.config.json";
8
+ export interface WorkspaceConfigFile {
9
+ workspaceId?: string;
10
+ }
11
+ export declare function resolveWorkspaceRoot(options?: ResolveWorkspaceOptions): string;
12
+ export declare function resolveWorkspace(options?: ResolveWorkspaceOptions): {
13
+ workspaceId: string;
14
+ rootPath: string;
15
+ source: string;
16
+ };
17
+ export declare function ensureWorkspace(db: Database, workspaceId: string, rootPath: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucdjs/pipelines-server",
3
- "version": "0.0.1-beta.3",
3
+ "version": "0.0.1-beta.6",
4
4
  "type": "module",
5
5
  "author": {
6
6
  "name": "Lucas Nørgård",
@@ -28,14 +28,17 @@
28
28
  "#server/routes": "./src/server/routes/index.ts"
29
29
  },
30
30
  "exports": {
31
- ".": "./dist/server/app.js",
31
+ ".": {
32
+ "types": "./dist/server/app.d.ts",
33
+ "default": "./dist/server/app.js"
34
+ },
32
35
  "./package.json": "./package.json"
33
36
  },
34
37
  "files": [
35
38
  "dist"
36
39
  ],
37
40
  "engines": {
38
- "node": ">=22.18"
41
+ "node": ">=24.13"
39
42
  },
40
43
  "dependencies": {
41
44
  "@libsql/client": "0.17.0",
@@ -44,22 +47,23 @@
44
47
  "drizzle-orm": "0.45.1",
45
48
  "esrap": "2.2.3",
46
49
  "h3": "2.0.1-rc.14",
47
- "lucide-react": "0.563.0",
48
- "oxc-parser": "0.112.0",
50
+ "lucide-react": "0.574.0",
51
+ "oxc-parser": "0.114.0",
49
52
  "pathe": "2.0.3",
50
53
  "zod": "4.3.6",
51
- "@ucdjs-internal/shared-ui": "0.1.2",
52
- "@ucdjs/pipelines-core": "0.0.1-beta.3",
53
- "@ucdjs/pipelines-executor": "0.0.1-beta.3",
54
- "@ucdjs/pipelines-loader": "0.0.1-beta.3",
55
- "@ucdjs/pipelines-ui": "0.0.1-beta.3"
54
+ "@ucdjs-internal/shared": "0.1.1-beta.6",
55
+ "@ucdjs-internal/shared-ui": "0.1.5",
56
+ "@ucdjs/pipelines-core": "0.0.1-beta.6",
57
+ "@ucdjs/pipelines-loader": "0.0.1-beta.6",
58
+ "@ucdjs/pipelines-executor": "0.0.1-beta.6",
59
+ "@ucdjs/pipelines-ui": "0.0.1-beta.6"
56
60
  },
57
61
  "devDependencies": {
58
- "@eslint-react/eslint-plugin": "2.12.4",
62
+ "@eslint-react/eslint-plugin": "2.13.0",
59
63
  "@luxass/eslint-config": "7.2.0",
60
- "@tailwindcss/vite": "4.1.18",
61
- "@tanstack/react-router": "1.159.5",
62
- "@tanstack/router-plugin": "1.159.5",
64
+ "@tailwindcss/vite": "4.2.0",
65
+ "@tanstack/react-router": "1.161.1",
66
+ "@tanstack/router-plugin": "1.161.1",
63
67
  "@types/node": "22.19.9",
64
68
  "@types/react": "19.2.14",
65
69
  "@types/react-dom": "19.2.3",
@@ -72,23 +76,24 @@
72
76
  "publint": "0.3.17",
73
77
  "react": "19.2.4",
74
78
  "react-dom": "19.2.4",
75
- "tailwind-merge": "3.4.0",
76
- "tailwindcss": "4.1.18",
79
+ "tailwind-merge": "3.4.1",
80
+ "tailwindcss": "4.2.0",
77
81
  "tsdown": "0.20.3",
78
82
  "typescript": "5.9.3",
79
83
  "vite": "8.0.0-beta.14",
80
84
  "vite-plugin-inspect": "11.3.3",
81
85
  "vite-tsconfig-paths": "6.1.1",
82
- "vitest": "4.1.0-beta.1",
86
+ "vitest": "4.1.0-beta.4",
83
87
  "vitest-testdirs": "4.4.2",
84
- "@ucdjs-tooling/tsconfig": "1.0.0",
85
- "@ucdjs-tooling/tsdown-config": "1.0.0"
88
+ "@ucdjs-tooling/tsdown-config": "1.0.0",
89
+ "@ucdjs-tooling/tsconfig": "1.0.0"
86
90
  },
87
91
  "publishConfig": {
88
92
  "access": "public"
89
93
  },
90
94
  "scripts": {
91
- "build": "vite build",
95
+ "build": "vite build && pnpm build:dts",
96
+ "build:dts": "tsc --project tsconfig.dts.json",
92
97
  "dev": "vite dev --port 3031",
93
98
  "clean": "git clean -xdf dist node_modules",
94
99
  "lint": "eslint .",
@@ -1 +0,0 @@
1
- import{M as e,k as t,q as n,s as r}from"./index-CM5XQ164.js";var i=t(`h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden group/badge`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 [a]:hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 text-destructive dark:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function a({className:t,variant:a=`default`,render:o,...s}){return r({defaultTagName:`span`,props:e({className:n(i({className:t,variant:a}))},s),render:o,state:{slot:`badge`,variant:a}})}export{a as t};
@@ -1 +0,0 @@
1
- import{G as e,K as t,Y as n,q as r}from"./index-CM5XQ164.js";e();var i=t();function a({className:e,size:t=`default`,...n}){return(0,i.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:r(`ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,e),...n})}function o({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-header`,className:r(`gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,e),...t})}function s({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-title`,className:r(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function c({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-description`,className:r(`text-muted-foreground text-sm`,e),...t})}function l({className:e,...t}){return(0,i.jsx)(`div`,{"data-slot":`card-content`,className:r(`px-4 group-data-[size=sm]/card:px-3`,e),...t})}export{s as a,o as i,l as n,c as r,a as t};
@@ -1 +0,0 @@
1
- import{m as e}from"./index-CM5XQ164.js";var t=e(`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`}]]);export{t};
@@ -1 +0,0 @@
1
- import{t as e}from"./pipeline-graph-CDObZuGJ.js";import{I as t,K as n}from"./index-CM5XQ164.js";var r=n();const i=t(`/pipelines/$file/$id/executions/$executionId/graph`)({component:a});function a(){let t=i.useLoaderData().graph;return!t||t.nodes.length===0?(0,r.jsx)(`div`,{className:`p-6`,children:(0,r.jsx)(`section`,{className:`border border-dashed border-border rounded-lg p-6 text-sm text-muted-foreground`,role:`status`,"aria-live":`polite`,children:`No graph recorded for this execution.`})}):(0,r.jsx)(`section`,{className:`h-full min-h-125 bg-card border border-border rounded-lg overflow-hidden m-6`,role:`tabpanel`,id:`tabpanel-execution-graph`,"aria-labelledby":`tab-graphs`,children:(0,r.jsx)(e,{graph:t,showFilters:!0,showDetails:!0,showMinimap:!0,className:`bg-card`})})}export{i as Route};
@@ -1 +0,0 @@
1
- import{t as e}from"./pipeline-graph-CDObZuGJ.js";import{t}from"./use-execute-CG1fzzQp.js";import{I as n,K as r}from"./index-CM5XQ164.js";var i=r();const a=n(`/pipelines/$file/$id/graph`)({component:s});function o(){return(0,i.jsx)(`section`,{className:`border border-dashed border-border rounded-lg p-6 text-sm text-muted-foreground`,role:`status`,"aria-live":`polite`,children:`Run the pipeline to generate the execution graph.`})}function s(){let{result:n}=t(),r=n?.graph&&n.graph.nodes.length>0?n.graph:null;return r?(0,i.jsx)(`section`,{className:`h-full min-h-125 bg-card border border-border rounded-lg overflow-hidden m-6`,role:`tabpanel`,id:`tabpanel-graph`,"aria-labelledby":`tab-graph`,children:(0,i.jsx)(e,{graph:r,showFilters:!0,showDetails:!0,showMinimap:!0,className:`bg-card`})}):(0,i.jsx)(`div`,{className:`p-6`,children:(0,i.jsx)(o,{})})}export{a as Route};
@@ -1 +0,0 @@
1
- import{t as e}from"./badge-CiZ9XGQk.js";import{a as t,i as n,n as r,o as i,r as a,t as o}from"./table-Cbx6lsBL.js";import{I as s,K as c,L as l,n as u,r as d}from"./index-CM5XQ164.js";import{a as f,i as p,n as m,t as h}from"./card-BlDtnoJE.js";var g=c();const _=s(`/pipelines/$file/$id/graphs`)({component:v});function v(){let{file:s,id:c}=_.useParams(),{executions:v}=_.useLoaderData(),y=v.executions.filter(e=>e.hasGraph);return(0,g.jsx)(`div`,{className:`p-6`,children:(0,g.jsxs)(h,{children:[(0,g.jsxs)(p,{children:[(0,g.jsx)(f,{className:`text-lg`,children:`Execution Graphs`}),(0,g.jsxs)(`p`,{className:`text-sm text-muted-foreground mt-1`,children:[y.length,` `,`graphs available`]})]}),(0,g.jsx)(m,{children:y.length===0?(0,g.jsx)(`div`,{className:`text-center py-12 text-muted-foreground`,children:`No execution graphs available yet.`}):(0,g.jsxs)(o,{children:[(0,g.jsx)(t,{children:(0,g.jsxs)(i,{children:[(0,g.jsx)(n,{className:`w-75`,children:`Execution`}),(0,g.jsx)(n,{children:`When`}),(0,g.jsx)(n,{children:`Duration`}),(0,g.jsx)(n,{children:`Versions`}),(0,g.jsx)(n,{className:`text-right`,children:`Routes`}),(0,g.jsx)(n,{className:`w-20`})]})}),(0,g.jsx)(r,{children:y.map(t=>(0,g.jsxs)(i,{className:`group`,children:[(0,g.jsx)(a,{children:(0,g.jsx)(`code`,{className:`text-xs font-mono bg-muted px-1.5 py-0.5 rounded`,children:t.id})}),(0,g.jsx)(a,{className:`text-muted-foreground`,children:d(t.startedAt)}),(0,g.jsx)(a,{children:u(t.startedAt,t.completedAt)}),(0,g.jsx)(a,{children:t.versions?(0,g.jsx)(`div`,{className:`flex gap-1 flex-wrap`,children:t.versions.map(t=>(0,g.jsx)(e,{variant:`secondary`,className:`text-xs`,children:t},t))}):(0,g.jsx)(`span`,{className:`text-muted-foreground text-sm`,children:`-`})}),(0,g.jsx)(a,{className:`text-right`,children:t.summary&&`totalRoutes`in t.summary?(0,g.jsxs)(`span`,{className:`text-sm`,children:[t.summary.totalRoutes,(0,g.jsxs)(`span`,{className:`text-muted-foreground`,children:[` `,`(`,t.summary.cached,` `,`cached)`]})]}):(0,g.jsx)(`span`,{className:`text-muted-foreground text-sm`,children:`-`})}),(0,g.jsx)(a,{children:(0,g.jsx)(l,{to:`/pipelines/$file/$id/executions/$executionId/graph`,params:{file:s,id:c,executionId:t.id},search:{},className:`text-primary text-sm font-medium opacity-0 group-hover:opacity-100 transition-opacity hover:underline`,children:`View`})})]},t.id))})]})})]})})}export{_ as Route};