lucid-extension-sdk 0.0.228 → 0.0.229

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/commandtypes.d.ts CHANGED
@@ -1103,10 +1103,19 @@ export type GetItemsAtQuery = {
1103
1103
  /** IDs of the items found */
1104
1104
  export type GetItemsAtResult = string[];
1105
1105
  export declare enum GetLLMContextType {
1106
- /** Get context in a format for LLMs where relationships among connected and contained items is preserved */
1106
+ /** Get context in a format for LLMs where relationships among connected and
1107
+ * contained items are preserved. Expand the scope of the selection to
1108
+ * include blocks contained by the selection as well as lines connecting
1109
+ * items in the selection. */
1107
1110
  Relational = 1,
1108
1111
  /** Get context containing only plain text displayed on the given items, more suitable for embeddings */
1109
- PlainText = 2
1112
+ PlainText = 2,
1113
+ /** Get context in a format for LLMs where relationships among connected and
1114
+ * contained items are preserved. Do not expand the scope of the selection,
1115
+ * other than to ensure relationships are represented. Text on selected
1116
+ * items will be included, but text on automatically added items will not.
1117
+ * */
1118
+ RelationalWithoutExpansion = 3
1110
1119
  }
1111
1120
  export type GetLLMContextFromItemsQuery = {
1112
1121
  /** Page ID to find closely-related items */
package/commandtypes.js CHANGED
@@ -137,10 +137,19 @@ var GetItemsAtSearchType;
137
137
  })(GetItemsAtSearchType || (exports.GetItemsAtSearchType = GetItemsAtSearchType = {}));
138
138
  var GetLLMContextType;
139
139
  (function (GetLLMContextType) {
140
- /** Get context in a format for LLMs where relationships among connected and contained items is preserved */
140
+ /** Get context in a format for LLMs where relationships among connected and
141
+ * contained items are preserved. Expand the scope of the selection to
142
+ * include blocks contained by the selection as well as lines connecting
143
+ * items in the selection. */
141
144
  GetLLMContextType[GetLLMContextType["Relational"] = 1] = "Relational";
142
145
  /** Get context containing only plain text displayed on the given items, more suitable for embeddings */
143
146
  GetLLMContextType[GetLLMContextType["PlainText"] = 2] = "PlainText";
147
+ /** Get context in a format for LLMs where relationships among connected and
148
+ * contained items are preserved. Do not expand the scope of the selection,
149
+ * other than to ensure relationships are represented. Text on selected
150
+ * items will be included, but text on automatically added items will not.
151
+ * */
152
+ GetLLMContextType[GetLLMContextType["RelationalWithoutExpansion"] = 3] = "RelationalWithoutExpansion";
144
153
  })(GetLLMContextType || (exports.GetLLMContextType = GetLLMContextType = {}));
145
154
  function isRawSendXHRResponse(val) {
146
155
  return (0, checks_1.isString)(val['url']) && (0, checks_1.isString)(val['t']) && (0, checks_1.isNumber)(val['s']) && (0, checks_1.isObject)(val['h']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",