@celljs/ta-secrets 4.34.0 → 4.36.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.
@@ -169,47 +169,6 @@ var TaDoubleLookUtil;
169
169
  }
170
170
  TaDoubleLookUtil2.given = given;
171
171
  })(TaDoubleLookUtil || (TaDoubleLookUtil = {}));
172
- var TA_ASK_ENTRY = "ta-ask";
173
- var TaAskUtil;
174
- (function(TaAskUtil2) {
175
- const LENGTH = 120;
176
- function entry(question) {
177
- const line = question.replace(/\s+/g, " ").trim();
178
- return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
179
- }
180
- TaAskUtil2.entry = entry;
181
- function asking(entries) {
182
- var _a;
183
- for (let i = entries.length - 1;i >= 0; i--) {
184
- const entry2 = entries[i];
185
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
186
- return;
187
- }
188
- if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
189
- return read(entry2);
190
- }
191
- }
192
- return;
193
- }
194
- TaAskUtil2.asking = asking;
195
- function next(asked, entry2) {
196
- var _a;
197
- if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
198
- return;
199
- }
200
- return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
201
- }
202
- TaAskUtil2.next = next;
203
- function read(found) {
204
- var _a;
205
- const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
206
- if (typeof question !== "string" || !question.trim()) {
207
- return;
208
- }
209
- const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
210
- return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
211
- }
212
- })(TaAskUtil || (TaAskUtil = {}));
213
172
 
214
173
  // web-src/command-prelude.ts
215
174
  var CommandPrelude;