@langwatch/server 3.21.0 → 3.22.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 (2) hide show
  1. package/dist/cli.cjs +68 -4
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -44713,6 +44713,17 @@ var registry2 = {
44713
44713
  "Fix those fields and send the request again; retrying it unchanged will fail identically"
44714
44714
  ]
44715
44715
  },
44716
+ projects_required: {
44717
+ tips: [
44718
+ 'Send `projects`, a list of the project ids to read, or the string "all" for every project the key can read; the answer\'s `params.dashboard_context_projects` lists what was read',
44719
+ "A key that reads exactly one project, such as a project API key, needs none: it defaults to that project"
44720
+ ]
44721
+ },
44722
+ projects_unreadable: {
44723
+ tips: [
44724
+ "Ask an admin to grant the key's owner `analytics:view` on a project, or use a key that has it"
44725
+ ]
44726
+ },
44716
44727
  malformed_request: {
44717
44728
  tips: [
44718
44729
  "The body could not be parsed at all; check for truncated JSON, a trailing comma, or a Content-Type that does not match what was sent"
@@ -44728,6 +44739,13 @@ var registry2 = {
44728
44739
  "This usually means the connection closed before the body finished uploading. Send the request again."
44729
44740
  ]
44730
44741
  },
44742
+ // ---- identity ----
44743
+ identity_password_reset_required: {
44744
+ tips: [
44745
+ "This password may no longer be used; request a reset link from the forgot-password screen and choose a new password",
44746
+ "Signing in through single sign-on, a social provider or a passkey is not affected"
44747
+ ]
44748
+ },
44731
44749
  // ---- dataset storage ----
44732
44750
  private_dataplane_unavailable: {
44733
44751
  tips: [
@@ -44834,13 +44852,15 @@ var registry2 = {
44834
44852
  tips: [
44835
44853
  "Read `meta.parameters`; it lists the reserved names the request set for itself",
44836
44854
  "`dashboard_context_period_start` and `dashboard_context_period_end` are supplied by the surface showing the chart; send `timeWindow: { start, end }` instead and drop them from `parameters`",
44837
- "`dashboard_context_granularity_seconds` is likewise supplied by the surface; drop it from `parameters` and send it as the request's own `granularitySeconds` field instead"
44855
+ "`dashboard_context_granularity_seconds` is likewise supplied by the surface; drop it from `parameters` and send it as the request's own `granularitySeconds` field instead",
44856
+ "`dashboard_context_sources` and `dashboard_context_projects` are likewise supplied; drop them from `parameters` and send the request's own `sources` and `projects` fields instead"
44838
44857
  ]
44839
44858
  },
44840
44859
  lwql_reserved_parameter_type: {
44841
44860
  tips: [
44842
44861
  "Read `meta.parameters`; it lists the reserved names declared with the wrong type",
44843
- "Declare each as `DateTime` or `DateTime64`, for example `{dashboard_context_period_start:DateTime}`; the interval they describe is half-open, `>= {dashboard_context_period_start:DateTime} AND < {dashboard_context_period_end:DateTime}`"
44862
+ "Declare each time-window name as `DateTime` or `DateTime64`, for example `{dashboard_context_period_start:DateTime}`; the interval they describe is half-open, `>= {dashboard_context_period_start:DateTime} AND < {dashboard_context_period_end:DateTime}`",
44863
+ "Declare `dashboard_context_sources` and `dashboard_context_projects` as `Array(String)`, for example `{dashboard_context_sources:Array(String)}`"
44844
44864
  ]
44845
44865
  },
44846
44866
  lwql_result_too_large: {
@@ -44914,7 +44934,7 @@ var registry2 = {
44914
44934
  saved_workbench_charts_disabled_for_playground: {
44915
44935
  tips: [
44916
44936
  "The custom-chart-playground is enabled for this project, which turns off saved workbench charts; retrying will not help",
44917
- "Use the dashboard-widgets skill / `langwatch dashboard-widget` commands instead"
44937
+ "Use the dashboard-widgets skill / `langwatch dashboard widget` commands instead"
44918
44938
  ]
44919
44939
  },
44920
44940
  lwql_unknown_identifier: {
@@ -44985,6 +45005,12 @@ var registry2 = {
44985
45005
  tips: ["Re-create the API key with the required scope, or ask an admin to raise your role"],
44986
45006
  docsPath: "/api-reference/api-keys/create-api-key"
44987
45007
  },
45008
+ legacy_project_key_ingestion_only: {
45009
+ tips: [
45010
+ "A legacy project key is limited to ingestion and the scopes enabled for its project; create an API key with the permissions this call needs and send it instead"
45011
+ ],
45012
+ docsPath: "/api-reference/api-keys/create-api-key"
45013
+ },
44988
45014
  api_key_permission_not_delegable: {
44989
45015
  tips: [
44990
45016
  "A wider key or a higher role does not change this; make the change in LangWatch instead"
@@ -45001,6 +45027,12 @@ var registry2 = {
45001
45027
  tips: ["Bind the key to the teams or projects it works with instead of the whole organization"],
45002
45028
  docsPath: "/api-reference/api-keys/create-api-key"
45003
45029
  },
45030
+ docs_origin_not_registered: {
45031
+ tips: [
45032
+ "Open the playground from a documentation site this installation registers, or paste an API key instead",
45033
+ "A self-hosted installation registers more documentation sites in its configuration"
45034
+ ]
45035
+ },
45004
45036
  api_key_reserved_name: {
45005
45037
  tips: [
45006
45038
  "This name is reserved for keys LangWatch manages on your behalf; pick a different name"
@@ -46118,6 +46150,38 @@ var { allowInsecureLocalUrls } = Config.define((c3) => ({
46118
46150
  )
46119
46151
  }));
46120
46152
 
46153
+ // ../../packages/config/src/docs-origins.ts
46154
+ function canonicalOriginOf(value) {
46155
+ let url2;
46156
+ try {
46157
+ url2 = new URL(value);
46158
+ } catch {
46159
+ return null;
46160
+ }
46161
+ if (url2.protocol !== "https:" && url2.protocol !== "http:") return null;
46162
+ if (url2.hostname.includes("*")) return null;
46163
+ return url2.origin;
46164
+ }
46165
+ function isExactOrigin(value) {
46166
+ return canonicalOriginOf(value) === value;
46167
+ }
46168
+ var { docsOrigins } = Config.define((c3) => ({
46169
+ docsOrigins: c3.env(
46170
+ "LANGWATCH_DOCS_ORIGINS",
46171
+ external_exports.string().optional().transform((value) => {
46172
+ const entries = (value ?? "").split(/[\s,]+/).filter(Boolean);
46173
+ return entries.length === 0 ? void 0 : entries;
46174
+ }).superRefine((entries, context) => {
46175
+ const refused = (entries ?? []).filter((entry) => !isExactOrigin(entry));
46176
+ if (refused.length === 0) return;
46177
+ context.addIssue({
46178
+ code: "custom",
46179
+ message: `not an exact origin (scheme://host[:port], no path or wildcard): ${refused.join(", ")}`
46180
+ });
46181
+ })
46182
+ )
46183
+ }));
46184
+
46121
46185
  // src/platform/config/local-orchestrator.config.ts
46122
46186
  var localOrchestratorConfig = Config.define((c3) => ({
46123
46187
  browser: {
@@ -56353,7 +56417,7 @@ function collectResult(predeps, detection, installResults) {
56353
56417
  }
56354
56418
 
56355
56419
  // src/shared/version.ts
56356
- var CLI_VERSION = true ? "3.21.0" : "0.0.0-dev";
56420
+ var CLI_VERSION = true ? "3.22.0" : "0.0.0-dev";
56357
56421
 
56358
56422
  // src/services/app-dir.ts
56359
56423
  function appRoot() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langwatch/server",
3
- "version": "3.21.0",
3
+ "version": "3.22.0",
4
4
  "description": "Run LangWatch locally with one command — `npx @langwatch/server`. Complete LangWatch stack: observability, evaluations, AI gateway, agent simulations.",
5
5
  "keywords": [
6
6
  "ai",