@malloy-publisher/server 0.0.248 → 0.0.250

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 (29) hide show
  1. package/README.docker.md +5 -0
  2. package/README.md +5 -0
  3. package/dist/app/api-doc.html +5 -0
  4. package/dist/app/api-doc.yaml +444 -31
  5. package/dist/app/assets/{EnvironmentPage-DrTRtRHz.js → EnvironmentPage-CiuWaYTk.js} +1 -1
  6. package/dist/app/assets/HomePage-ZXsmEAjw.js +1 -0
  7. package/dist/app/assets/{LightMode-4Y7DEWAD.js → LightMode-10iLdX5H.js} +1 -1
  8. package/dist/app/assets/{MainPage-DKNR-8Vr.js → MainPage-u-IAaBdE.js} +2 -2
  9. package/dist/app/assets/{MaterializationsPage-h3ONDcgJ.js → MaterializationsPage-AcoL_Rnx.js} +1 -1
  10. package/dist/app/assets/ModelPage-BjB-p4Qn.js +1 -0
  11. package/dist/app/assets/{PackagePage-D8mM4T37.js → PackagePage-le809jUO.js} +1 -1
  12. package/dist/app/assets/{RouteError-DzJ0TPOj.js → RouteError-DTlqmNQd.js} +1 -1
  13. package/dist/app/assets/{ThemeEditorPage-BYvxc5op.js → ThemeEditorPage-DrmSzweH.js} +1 -1
  14. package/dist/app/assets/{WorkbookPage-CYOpAw7I.js → WorkbookPage-CIRFZXlP.js} +1 -1
  15. package/dist/app/assets/{core-BuvlzSIX.es-cZHBIpH6.js → core-Cr-9Wkp3.es-YhIv13au.js} +10 -10
  16. package/dist/app/assets/{index-BgMR5Uuv.js → index-CM5d1afN.js} +113 -113
  17. package/dist/app/assets/{index-BgAa2J25.js → index-CSFSsus4.js} +1 -1
  18. package/dist/app/assets/index-DP4bilgp.js +615 -0
  19. package/dist/app/assets/index-DdUOWgW6.js +2 -0
  20. package/dist/app/index.html +6 -1
  21. package/dist/package_load_worker.mjs +342 -2
  22. package/dist/runtime/publisher.js +3 -0
  23. package/dist/server.mjs +4361 -257
  24. package/dist/sshcrypto-vd2k5hq9.node +0 -0
  25. package/package.json +4 -2
  26. package/dist/app/assets/HomePage-X_Wozguy.js +0 -1
  27. package/dist/app/assets/ModelPage-B8Qsrbxn.js +0 -1
  28. package/dist/app/assets/index-BwoU1Ko8.js +0 -529
  29. package/dist/app/assets/index-CuaX7xuf.js +0 -18
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@malloy-publisher/server",
3
3
  "description": "Malloy Publisher Server",
4
- "version": "0.0.248",
4
+ "version": "0.0.250",
5
5
  "main": "dist/server.mjs",
6
6
  "bin": {
7
7
  "malloy-publisher": "dist/server.mjs"
@@ -36,7 +36,7 @@
36
36
  "lint": "bunx eslint \"./src/**/*.ts\"",
37
37
  "format": "bunx prettier --write '**/*.{ts,tsx}'",
38
38
  "build:app": "cd ../app && NODE_ENV=production bunx vite build",
39
- "generate-api-types": "bunx openapi-typescript ../../api-doc.yaml --output src/api.ts"
39
+ "generate-api-types": "bunx openapi-typescript ../../api-doc.yaml --output src/api.ts && node ../../scripts/add-license-headers.mjs src/api.ts"
40
40
  },
41
41
  "dependencies": {
42
42
  "@aws-sdk/client-s3": "^3.958.0",
@@ -55,6 +55,7 @@
55
55
  "@malloydata/db-trino": "^0.0.427",
56
56
  "@malloydata/malloy": "^0.0.427",
57
57
  "@malloydata/malloy-sql": "^0.0.427",
58
+ "@malloydata/malloy-tag": "^0.0.427",
58
59
  "@malloydata/render-validator": "^0.0.427",
59
60
  "@modelcontextprotocol/sdk": "^1.13.2",
60
61
  "@opentelemetry/api": "^1.9.0",
@@ -69,6 +70,7 @@
69
70
  "cors": "^2.8.5",
70
71
  "cron-parser": "^5.6.2",
71
72
  "express": "^4.21.0",
73
+ "express-rate-limit": "^8",
72
74
  "extract-zip": "^2.0.1",
73
75
  "globals": "^15.9.0",
74
76
  "handlebars": "^4.7.8",
@@ -1 +0,0 @@
1
- import{$ as n,j as t,e as o}from"./index-BwoU1Ko8.js";function s(){const e=n();return t.jsx(o,{onClickEnvironment:e})}export{s as default};
@@ -1 +0,0 @@
1
- import{H as f,L as u,$ as v,O as k,j as e,a0 as W,a1 as p,a2 as $,J as s,a3 as b,a4 as F,a5 as R,T as o,a6 as t,a7 as d}from"./index-BwoU1Ko8.js";function O(){const a=f(),n=a["*"],{search:h,hash:x}=u(),g=v(),{server:j}=k();if(!a.environmentName)return e.jsx("div",{children:e.jsx("h2",{children:"Missing environment name"})});if(!a.packageName)return e.jsx("div",{children:e.jsx("h2",{children:"Missing package name"})});if(n?.startsWith("pages/")&&!n.endsWith(".malloy")&&!n.endsWith(".malloynb")){const r=`data-apps/${n.slice(6)}`,c=encodeURIComponent(a.environmentName),N=encodeURIComponent(a.packageName);return e.jsx(W,{to:`/${c}/${N}/${r}${h}${x}`,replace:!0})}const i={p:3,maxWidth:1200,mx:"auto"};if(n?.startsWith("data-apps/")&&!n.endsWith(".malloy")&&!n.endsWith(".malloynb")){const r=n.slice(10),c=p({environmentName:a.environmentName,packageName:a.packageName,modelPath:r});return e.jsx($,{resourceUri:c})}const m=p({environmentName:a.environmentName,packageName:a.packageName,modelPath:n});if(n?.endsWith(".malloy"))return e.jsx(s,{sx:i,children:e.jsx(b,{resourceUri:m,runOnDemand:!0,maxResultSize:512*1024})});if(n?.endsWith(".malloynb"))return e.jsx(s,{sx:i,children:e.jsx(F,{resourceUri:m,maxResultSize:1024*1024,onNavigate:g})});const y=/\.[^./]+$/.test(n??""),l=R({server:j,environmentName:a.environmentName,packageName:a.packageName,path:n??""});return e.jsxs(s,{sx:i,children:[e.jsx(o,{variant:"h6",sx:{fontWeight:600},children:"Nothing to open at this path"}),e.jsxs(o,{variant:"body2",color:"text.secondary",sx:{mt:1},children:[e.jsx(s,{component:"span",sx:{fontFamily:t},children:n})," ","does not name a"," ",e.jsx(s,{component:"span",sx:{fontFamily:t},children:".malloy"})," ","or"," ",e.jsx(s,{component:"span",sx:{fontFamily:t},children:".malloynb"})," ","file in package"," ",e.jsx(s,{component:"span",sx:{fontFamily:t},children:a.packageName}),". This address opens"," ",e.jsx(s,{component:"span",sx:{fontFamily:t},children:".malloy"})," ","and"," ",e.jsx(s,{component:"span",sx:{fontFamily:t},children:".malloynb"})," ","files."]}),y&&e.jsxs(o,{variant:"body2",color:"text.secondary",sx:{mt:1},children:["A file from the package's"," ",e.jsx(s,{component:"span",sx:{fontFamily:t},children:"public/"})," ","directory is served at ",e.jsx(d,{href:l,children:l}),"."]}),e.jsxs(o,{variant:"body2",color:"text.secondary",sx:{mt:1},children:[e.jsxs(d,{href:`/${encodeURIComponent(a.environmentName)}/${encodeURIComponent(a.packageName)}`,children:["Back to ",a.packageName]})," ","lists this package's models, notebooks, and data apps."]})]})}export{O as default};