@takeshape/cli 12.8.0 → 12.13.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/index.cjs +22 -2
  2. package/package.json +6 -6
package/dist/index.cjs CHANGED
@@ -204230,7 +204230,7 @@ var import_meow = __toESM(require_meow(), 1);
204230
204230
  // package.json
204231
204231
  var package_default = {
204232
204232
  name: "@takeshape/cli",
204233
- version: "12.8.0",
204233
+ version: "12.13.0",
204234
204234
  description: "TakeShape CLI",
204235
204235
  homepage: "https://www.takeshape.io",
204236
204236
  type: "module",
@@ -224985,6 +224985,10 @@ var builtInShapes = {
224985
224985
  type: "string",
224986
224986
  enum: ["none", "all"],
224987
224987
  description: "What to do if the analyzer removes all tokens. 'none' returns no results (default), 'all' matches all documents."
224988
+ },
224989
+ boost: {
224990
+ type: "number",
224991
+ description: "Boost factor to increase or decrease the relevance score of this query. Values greater than 1 increase relevance, values between 0 and 1 decrease it. Default is 1.0."
224988
224992
  }
224989
224993
  },
224990
224994
  required: ["query"]
@@ -225019,6 +225023,10 @@ var builtInShapes = {
225019
225023
  type: "string",
225020
225024
  enum: ["none", "all"],
225021
225025
  description: "What to do if the analyzer removes all tokens. 'none' returns no results (default), 'all' matches all documents."
225026
+ },
225027
+ boost: {
225028
+ type: "number",
225029
+ description: "Boost factor to increase or decrease the relevance score of this query. Values greater than 1 increase relevance, values between 0 and 1 decrease it. Default is 1.0."
225022
225030
  }
225023
225031
  },
225024
225032
  required: ["query"]
@@ -434367,6 +434375,11 @@ function getCommonBuiltInProperties(shape) {
434367
434375
  type: "string",
434368
434376
  title: "Shape Id",
434369
434377
  enum: [shape.id]
434378
+ },
434379
+ _score: {
434380
+ type: "number",
434381
+ title: "Score",
434382
+ description: 'The relevance score for this result. Only populated in search contexts where scoring is applied (e.g., using "should" with boost).'
434370
434383
  }
434371
434384
  };
434372
434385
  }
@@ -441570,6 +441583,10 @@ function getWhereSearchArg(projectSchema, selectedShapes) {
441570
441583
  where: {
441571
441584
  "@ref": `local:${shapeName18}`,
441572
441585
  description: "The where clause uses the boolean AND, OR, and NOT parameters to construct complex filters based on the values of your fields. It applies an implicit AND to all the top-level keys. To avoid this, use a single OR or NOT key as the only top-level key."
441586
+ },
441587
+ should: {
441588
+ "@ref": `local:${shapeName18}`,
441589
+ description: 'The should clause is used for relevance scoring. Unlike "where" which filters in a non-scoring context, queries in "should" contribute to the relevance score. Use this with match_advanced and boost to influence result ranking. Sort by "_score" to see boosted results first.'
441573
441590
  }
441574
441591
  }
441575
441592
  };
@@ -441594,7 +441611,10 @@ var DeleteResult = getMutationResultType(TemplateVerbs.Delete);
441594
441611
  var TSSearchSortInput = createShape("TSSearchSortInput", {
441595
441612
  type: "object",
441596
441613
  properties: {
441597
- field: { type: "string" },
441614
+ field: {
441615
+ type: "string",
441616
+ description: 'The field to sort by. Use "_score" to sort by relevance (useful with boost).'
441617
+ },
441598
441618
  order: {
441599
441619
  type: "string",
441600
441620
  description: '"asc" for ascending or "desc" for descending'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/cli",
3
- "version": "12.8.0",
3
+ "version": "12.13.0",
4
4
  "description": "TakeShape CLI",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "type": "module",
@@ -70,11 +70,11 @@
70
70
  "stream-to-promise": "2.2.0",
71
71
  "tmp": "0.0.33",
72
72
  "unzipper": "0.10.11",
73
- "@takeshape/branches": "12.8.0",
74
- "@takeshape/schema": "12.8.0",
75
- "@takeshape/ssg": "12.8.0",
76
- "@takeshape/streams": "12.8.0",
77
- "@takeshape/util": "12.8.0"
73
+ "@takeshape/branches": "12.13.0",
74
+ "@takeshape/streams": "12.13.0",
75
+ "@takeshape/schema": "12.13.0",
76
+ "@takeshape/util": "12.13.0",
77
+ "@takeshape/ssg": "12.13.0"
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=24"