@malloy-publisher/server 0.17.3 → 0.18.1
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/admin-api-doc.yaml +757 -22
- package/dist/app/api-doc.yaml +160 -28
- package/dist/app/assets/{EnvironmentPage-Cpetyfj1.js → EnvironmentPage-CsFUI8IX.js} +1 -1
- package/dist/app/assets/{HomePage-RlrpQRV8.js → HomePage-B_FVtnN-.js} +1 -1
- package/dist/app/assets/{MainPage-C1559_mQ.js → MainPage-wFF9nPEr.js} +1 -1
- package/dist/app/assets/{ModelPage-D8T03Bd7.js → ModelPage-CxenqDcz.js} +2 -2
- package/dist/app/assets/PackagePage-dcF6vrvw.js +1 -0
- package/dist/app/assets/PackageSplatRoute-CASBZk0k.js +2 -0
- package/dist/app/assets/{RenderedResult-Cm0Wwtek.es-CfBPkvGU.js → RenderedResult--fYcsY1h.es-DzOt5Lwv.js} +3 -3
- package/dist/app/assets/{RouteError-DRuMstfb.js → RouteError-CUIolYwb.js} +1 -1
- package/dist/app/assets/{ThemeEditorPage-ss_tmVWo.js → ThemeEditorPage-DgU2YYq6.js} +1 -1
- package/dist/app/assets/{ToggleButtonGroup-DA9EfQQB.js → ToggleButtonGroup-Dmr-hVlD.js} +1 -1
- package/dist/app/assets/{documentRoutes-_ma0jaCp.js → documentRoutes-Drv-WDwO.js} +1 -1
- package/dist/app/assets/{editPageMounted-DxNTqmFg.js → editPageMounted-C5yJiIVi.js} +2 -2
- package/dist/app/assets/{index-w1w5RvZI.js → index-BIoSdsU9.js} +1 -1
- package/dist/app/assets/{index-BL_7q21Q.js → index-BSyL0zds.js} +97 -97
- package/dist/app/assets/{index-BZA1HAyp.js → index-Dtw4eTxH.js} +1 -1
- package/dist/app/assets/{index-DrkXqbpl.js → index-DxF3kMLJ.js} +1 -1
- package/dist/app/assets/{index.es-XV_AUlWO.js → index.es-CX9m4CBD.js} +10 -10
- package/dist/app/assets/usePackageLinkNavigate-qNjcXPcY.js +1 -0
- package/dist/app/assets/{usePackageRoute-ev5b1KRn.js → usePackageRoute-wJGaZEiY.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/instrumentation.mjs +31 -17
- package/dist/package_load_worker.mjs +528 -377
- package/dist/runtime/publisher.colorScheme.spec.ts +167 -0
- package/dist/runtime/publisher.js +173 -3
- package/dist/runtime/publisher_embed.spec.ts +108 -0
- package/dist/server.mjs +10361 -4009
- package/package.json +2 -1
- package/dist/app/assets/PackagePage-BIl1r9eP.js +0 -1
- package/dist/app/assets/PackageSplatRoute-DJlJXk6p.js +0 -2
- package/dist/app/assets/usePackageLinkNavigate-BKkPNdJ4.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as u,r as c}from"./index-BSyL0zds.js";import{w as e}from"./usePackageRoute-wJGaZEiY.js";function p(t,a,r){const s=u();return c.useCallback((o,i)=>s(e(o,t,a,r),i),[s,t,a,r])}export{p as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as f,a9 as p}from"./index-
|
|
1
|
+
import{C as f,a9 as p}from"./index-BSyL0zds.js";const $=/^(latest|[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?)$/,m="latest",l=e=>$.test(e),g=e=>{const n=e.indexOf("/"),o=n===-1?e:e.slice(0,n);if(l(o))return{segment:o,rest:n===-1?"":e.slice(n+1)}},h=e=>e===void 0||e===m?void 0:e,I=(e,n,o)=>`/${encodeURIComponent(e)}/${encodeURIComponent(n)}${o===void 0?"":`/${encodeURIComponent(o)}`}`,E=(e,n,o,t)=>{if(t===void 0)return e;const i=[`/${encodeURIComponent(n)}/${encodeURIComponent(o)}`,`/${n}/${o}`];for(const s of i){if(e!==s&&!e.startsWith(`${s}/`))continue;const r=e.slice(s.length).replace(/^\//,"");return`${I(n,o,t)}${r===""?"":`/${r}`}`}return e};function R(e={}){const n=f(),o=n.environmentName,t=n.packageName,i=n["*"],s=i===void 0?void 0:g(i),{versions:r,isPending:d,isError:v,refetch:u}=p(o??"",t??"",{enabled:e.always===!0||s!==void 0}),a=r.length>0,c=s&&a?s:void 0;return{environmentName:o,packageName:t,versionSegment:c?.segment,versionId:h(c?.segment),path:c?c.rest:i,versioned:a,deciding:s!==void 0&&d,undecided:s!==void 0&&v,retry:u,writable:!a&&!d&&!v}}export{m as L,I as p,R as u,h as v,E as w};
|
package/dist/app/index.html
CHANGED
|
@@ -16,7 +16,7 @@ SPDX-License-Identifier: MIT
|
|
|
16
16
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
17
17
|
/>
|
|
18
18
|
<title>Malloy Publisher</title>
|
|
19
|
-
<script type="module" crossorigin src="/assets/index-
|
|
19
|
+
<script type="module" crossorigin src="/assets/index-BSyL0zds.js"></script>
|
|
20
20
|
<link rel="stylesheet" crossorigin href="/assets/index-DUqldpo0.css">
|
|
21
21
|
</head>
|
|
22
22
|
<body>
|
package/dist/instrumentation.mjs
CHANGED
|
@@ -455,12 +455,26 @@ var init_admin = __esm(() => {
|
|
|
455
455
|
defaultText: "`600000` (10 min)",
|
|
456
456
|
notes: "How long the admin listener lets a request run before closing its connection. A table copy or a file load answers only when the table is written, so a large table needs longer than the main API's ten minutes; raise this for the caller's largest copy, and keep the caller's own timeout above it. Applies to the admin listener alone: the main API and MCP listeners keep ten minutes."
|
|
457
457
|
}),
|
|
458
|
+
setting({
|
|
459
|
+
key: "admin.memoryLimit",
|
|
460
|
+
type: string(),
|
|
461
|
+
default: "1.5GB",
|
|
462
|
+
description: "Most memory one admin table load or copy session may use, as a DuckDB size (1.5GB).",
|
|
463
|
+
notes: "The `memory_limit` of the DuckDB session an admin table load or copy runs in, as a flat DuckDB size (`1.5GB`, `512MB`). The session uses the lower of this and `PUBLISHER_DUCKDB_MEMORY_LIMIT`, so a pod whose general limit is smaller is never raised by the default: to give a load more than 1.5GB, raise both. A keyed load and a keyless replace both size their comparison passes to half of the session's effective limit. Validated at startup."
|
|
464
|
+
}),
|
|
465
|
+
setting({
|
|
466
|
+
key: "admin.maxTempDirectorySize",
|
|
467
|
+
type: string(),
|
|
468
|
+
default: "6GiB",
|
|
469
|
+
description: "Most spill one admin table load or copy session may write, as a DuckDB size (6GiB).",
|
|
470
|
+
notes: "The `max_temp_directory_size` of the DuckDB session an admin table load or copy runs in, as a flat DuckDB size (`6GiB`, `20GB`). Keep it under the pod's ephemeral storage. A load or table PUT that outgrows it (or the memory limit) answers `422 LOAD_TOO_LARGE`; a full disk is a `500`. Validated at startup."
|
|
471
|
+
}),
|
|
458
472
|
setting({
|
|
459
473
|
key: "admin.catalogDatabase",
|
|
460
474
|
type: string(),
|
|
461
475
|
secret: true,
|
|
462
476
|
description: "libpq connection string of the database the admin API finds DuckLake catalogs in.",
|
|
463
|
-
notes: "A libpq connection string (keyword or `postgres://` form) for the Postgres database holding the catalogs the admin API manages. Unset, the admin API's catalog routes answer `503 CATALOG_DATABASE_NOT_CONFIGURED`.",
|
|
477
|
+
notes: "A libpq connection string (keyword or `postgres://` form) for the Postgres database holding the catalogs the admin API manages. Unset, the admin API's catalog routes answer `503 CATALOG_DATABASE_NOT_CONFIGURED`. The string also opens the connection that holds a table load's advisory lock, so it must name one host (no `service`, `hostaddr` or list of hosts, and no `PGSERVICE` or `PGHOSTADDR` in the environment; either fails startup). It also refuses what the lock connection cannot honor: `channel_binding=require`, `gssencmode=require`, any `require_auth`, `sslcrl`, `sslcrldir`, an `ssl_min_protocol_version` of `TLSv1.3` (from the string or the matching `PG*` variable), a missing or unreadable `sslrootcert`, `sslcert` or `sslkey` file, and `sslmode=verify-ca` with no `sslrootcert` while `NODE_EXTRA_CA_CERTS` is unset. It must reach Postgres directly or through a session-mode pooler, not a transaction-mode one such as PgBouncer.",
|
|
464
478
|
aliases: { env: ["PUBLISHER_ADMIN_CATALOG_DATABASE"] }
|
|
465
479
|
}),
|
|
466
480
|
setting({
|
|
@@ -542,7 +556,7 @@ var init_launch = __esm(() => {
|
|
|
542
556
|
default: false,
|
|
543
557
|
kind: "launch",
|
|
544
558
|
description: "Wipe persisted storage and re-sync it from the config.",
|
|
545
|
-
notes: "Set to `true` (or pass `--init`) to **wipe persisted storage** (`publisher_data/`) and re-sync it from the config on boot. A first boot with empty storage loads the config automatically, so you only need this to reset state or pick up config changes. Also exposed as the `start:init` / `start:dev:init` scripts.",
|
|
559
|
+
notes: "Set to `true` (or pass `--init`) to **wipe persisted storage** (`publisher_data/`) and re-sync it from the config on boot. A first boot with empty storage loads the config automatically, so you only need this to reset state or pick up config changes. The search index (stored value reads, embeddings and LLM output) is kept, since each entry is reused only while what it was built from is unchanged; the rows of a package the config no longer lists are deleted. Also exposed as the `start:init` / `start:dev:init` scripts.",
|
|
546
560
|
shortFlags: ["--init"],
|
|
547
561
|
aliases: {
|
|
548
562
|
env: ["INITIALIZE_STORAGE"],
|
|
@@ -796,7 +810,7 @@ var init_provider_names = __esm(() => {
|
|
|
796
810
|
var EGRESS_PRESETS, DEFAULT_LLM_TIMEOUT_MS = 30000, DEFAULT_LLM_CONCURRENCY = 4, DEFAULT_LLM_MAX_CALLS_PER_SYNC = 300, DEFAULT_LLM_MAX_CALLS_PER_REQUEST = 20, DIMENSION_VALUE_DEFAULTS;
|
|
797
811
|
var init_defaults = __esm(() => {
|
|
798
812
|
EGRESS_PRESETS = ["default", "full"];
|
|
799
|
-
DIMENSION_VALUE_DEFAULTS = { enabled: true };
|
|
813
|
+
DIMENSION_VALUE_DEFAULTS = { enabled: true, givens: {} };
|
|
800
814
|
});
|
|
801
815
|
|
|
802
816
|
// src/settings/registry/retrieval.ts
|
|
@@ -811,7 +825,7 @@ var init_retrieval = __esm(() => {
|
|
|
811
825
|
key: "retrieval",
|
|
812
826
|
type: structured(),
|
|
813
827
|
kind: "structured",
|
|
814
|
-
description: "Semantic retrieval: indexing limits, the LLM, the embedding provider and
|
|
828
|
+
description: "Semantic retrieval: indexing limits, the LLM, the embedding provider and value search.",
|
|
815
829
|
aliases: { file: ["retrieval"] }
|
|
816
830
|
}),
|
|
817
831
|
setting({
|
|
@@ -912,9 +926,9 @@ var init_retrieval = __esm(() => {
|
|
|
912
926
|
setting({
|
|
913
927
|
key: "retrieval.egress.preset",
|
|
914
928
|
type: oneOf(EGRESS_PRESETS),
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
929
|
+
description: "No longer read: #(index) alone decides whether a dimension's values reach the embedding provider and LLM. Setting it logs a startup warning.",
|
|
930
|
+
notes: "Retired. An earlier release sent `#(index)` values to the embedding provider and the LLM only under `full`. Now the `#(index)` tag decides, as it does on a hosted index. To keep values on the machine, leave `EMBEDDING_API_KEY` unset, set `retrieval.fcj.valueEmbeddings` to `false` in the package's `publisher.json`, or set `retrieval.dimensionValues.enabled` to `false`. Access predicates (`#(access_filter)`, `#(authorize)`) never leave.",
|
|
931
|
+
defaultText: "_ignored_",
|
|
918
932
|
aliases: { file: ["retrieval.egress.preset"] }
|
|
919
933
|
}),
|
|
920
934
|
setting({
|
|
@@ -927,6 +941,15 @@ var init_retrieval = __esm(() => {
|
|
|
927
941
|
today: { file: "json-boolean" }
|
|
928
942
|
}
|
|
929
943
|
}),
|
|
944
|
+
setting({
|
|
945
|
+
key: "retrieval.dimensionValues.givens",
|
|
946
|
+
type: structured(),
|
|
947
|
+
kind: "structured",
|
|
948
|
+
description: "Local development: per package, the givens the value index reads with, so a source gated by `column = $GIVEN` is indexed for the listed values only.",
|
|
949
|
+
notes: 'An object of packages, each an object of givens, each one value or a list: `{ "<package>": { "REPORT_ID": [123, 456] } }`. Each `#(index)` dimension is read once per combination of the listed values (at most 50), through its gate. A source gated by `column = $GIVEN` is skipped unless its given is listed here. Never published with a package, and not a way to limit what hosted Credible indexes. See "Dimension value search" below.',
|
|
950
|
+
defaultText: "_unset_ (gated sources skipped)",
|
|
951
|
+
aliases: { file: ["retrieval.dimensionValues.givens"] }
|
|
952
|
+
}),
|
|
930
953
|
setting({
|
|
931
954
|
key: "retrieval.embedding.apiKey",
|
|
932
955
|
type: string(),
|
|
@@ -1243,15 +1266,6 @@ var init_storage = __esm(() => {
|
|
|
1243
1266
|
notes: "Off by default until a security review of gated tables at rest. Off, a query whose entry point carries a row-level gate (`#(authorize)`, `#(access_filter)`) is answered from a stored table only when every table the answer reads is a database table, a `storage=` table that every source stored in it is proven to fill with ungated rows only, or a table kept under its source's own gate: a v1 `#@ persist` or `#(materialize)`, database or `storage=`, whose gate is proven to be its entry point's own row filter or lock (not a row filter it inherits, not one reached through a join, not one whose build substitutes a given) is built, and the served copy grafts and proves that gate on it, so each caller gets live's rows; database and `storage=` behave the same, ahead of that review. A `storage=` table built this way holds every row of the gated source, ungated, at rest in the destination, readable by anyone with direct access to it. Off, such a query is never answered from a `storage=` table proven neither way (one a gated source shares, say) or a persisted view, and from a rollup, in the database or `storage=`, only from one whose base's gates are all its own, each reading grain dimensions only, or are locks reading no row field (inherited at any depth), or, through a join, from an ungated joined source's rollup when the gate reads only the querying source's own plain columns (in a `storage=` destination, beside the querying source's own table there, admitted past its own gate or holding only ungated rows). On, the served copy may answer it from any stored table: the served copy is the author's own text, gates included, so the row filter is grafted and proven on the served compile exactly as on live. A persisted view and a `#(rollup)` rollup, in the database or `storage=`, are let through the same way, each redeclaring the queried source with its gates; a rollup only when every gate reads its grain dimensions. A v1 `#@ preaggregate` rollup is the rollup leg's and is let through as a `#(rollup)` one is. A gate that cannot be grafted on the served copy denies, as it does live. It also decides whether a `#(rollup)` rollup or a database persisted view over a gated source is built: on, it is; off, a view is not, and a rollup only when its base's gates are its own, or locks, as above (a `storage=` view over one is refused either way). A `storage=` table or rollup is read past a gate only when every column the gate reads is stored exactly and compared as its source compares it (no binary float, unless its column contract records it `gateExact`: a destination `DOUBLE` copying a warehouse 8-byte double unchanged; no 128-bit integer; no zone; a known collation). Never configure a destination's catalog, schema or data path as a connection models can name: its stored tables hold gated sources' rows with no gate. Read at startup.",
|
|
1244
1267
|
aliases: { env: ["PUBLISHER_MATERIALIZE_GATED_SOURCES"] }
|
|
1245
1268
|
}),
|
|
1246
|
-
setting({
|
|
1247
|
-
key: "materialize.admissionMode",
|
|
1248
|
-
type: oneOf(["probe", "lookup", "shadow"]),
|
|
1249
|
-
default: "lookup",
|
|
1250
|
-
temporary: true,
|
|
1251
|
-
description: "TEMPORARY, removed with the per-query probes: how read admission judges a stored answer's strings (probe, lookup or shadow).",
|
|
1252
|
-
notes: "**Temporary**: a transitional test and canary setting, removed together with the per-query probes it switches between; do not depend on it. It picks how read admission judges its collation facts. `probe`: each query reads the source's and the stored table's collations from the warehouse, as Publisher always has. `lookup` (the default): each query looks them up in what the load, the bind and the build recorded (the source's string columns at each bind, and each table's column contract), with no catalog read and no extra compile; the same setting picks whether the per-source facts the served copy's compile, the bind and the plans record (the served copy's declines, the gates' and row scope's reads and flags, the rollup candidates, the path report's source chain) are looked up or walked per query. `shadow`: both run, the probe (or walk) decides, and every disagreement is logged at warn as `admission parity drift` and counted in `publisher_admission_parity_drift_total`. Read on every query.",
|
|
1253
|
-
aliases: { env: ["PUBLISHER_ADMISSION_MODE"] }
|
|
1254
|
-
}),
|
|
1255
1269
|
setting({
|
|
1256
1270
|
key: "persist.collisionEnforcementEnabled",
|
|
1257
1271
|
type: boolean(),
|
|
@@ -167071,7 +167085,7 @@ var init_telemetry = __esm(() => {
|
|
|
167071
167085
|
});
|
|
167072
167086
|
|
|
167073
167087
|
// package.json
|
|
167074
|
-
var version = "0.
|
|
167088
|
+
var version = "0.18.1";
|
|
167075
167089
|
var init_package = () => {};
|
|
167076
167090
|
|
|
167077
167091
|
// src/version.ts
|