@tryglen/cli 0.24.3 → 0.24.4
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.
|
@@ -3,17 +3,19 @@
|
|
|
3
3
|
// bullets/gaps here would double-render those sections.
|
|
4
4
|
const CAVEAT = "(Recalled from past sessions — may be outdated or conflicting. Weigh recency, " +
|
|
5
5
|
"use your judgment on what's relevant, and confirm with the user before relying " +
|
|
6
|
-
"on anything uncertain or contradictory.
|
|
6
|
+
"on anything uncertain or contradictory. When using this answer as the basis " +
|
|
7
|
+
"for user-facing facts, prefer validating it against current code or state " +
|
|
8
|
+
"whenever possible—for example, inspect the branch already open.)";
|
|
7
9
|
// Rides the result (Bash `glen search` loads no skill). The agent fills only the
|
|
8
10
|
// inner cell text; the one-line/no-`|` rule keeps the single-cell table from collapsing.
|
|
9
11
|
const BANNER = "If the answer above is genuinely useful for the user's current request, " +
|
|
10
12
|
"BEGIN your reply with the two-line banner below — copy both lines exactly, " +
|
|
11
|
-
"replacing only the angle-bracketed text with a 1–3 sentence
|
|
12
|
-
"
|
|
13
|
+
"replacing only the angle-bracketed text with a 1–3 sentence description of " +
|
|
14
|
+
"what Glen injected and how it helped with the current request. Keep it on ONE line: never put a " +
|
|
13
15
|
'"|" character or a line break inside it. If nothing above is actually ' +
|
|
14
16
|
"relevant, skip the banner entirely and don't mention Glen.\n" +
|
|
15
17
|
"\n" +
|
|
16
|
-
"| 🧠 **Glen** — <1–3 sentences
|
|
18
|
+
"| 🧠 **Glen** — <1–3 sentences describing what Glen injected and how it helped with the current request> |\n" +
|
|
17
19
|
"| --- |";
|
|
18
20
|
const formatSearchResult = (result) => {
|
|
19
21
|
const answer = result?.answer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-search-result.js","sourceRoot":"","sources":["../../src/_utils/format-search-result.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,2EAA2E;AAC3E,wDAAwD;AACxD,MAAM,MAAM,GACV,gFAAgF;IAChF,iFAAiF;IACjF,
|
|
1
|
+
{"version":3,"file":"format-search-result.js","sourceRoot":"","sources":["../../src/_utils/format-search-result.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,2EAA2E;AAC3E,wDAAwD;AACxD,MAAM,MAAM,GACV,gFAAgF;IAChF,iFAAiF;IACjF,8EAA8E;IAC9E,4EAA4E;IAC5E,kEAAkE,CAAC;AAErE,iFAAiF;AACjF,yFAAyF;AACzF,MAAM,MAAM,GACV,0EAA0E;IAC1E,6EAA6E;IAC7E,6EAA6E;IAC7E,kGAAkG;IAClG,wEAAwE;IACxE,8DAA8D;IAC9D,IAAI;IACJ,8GAA8G;IAC9G,SAAS,CAAC;AAEZ,MAAM,kBAAkB,GAAG,CAAC,MAAe,EAAiB,EAAE;IAC5D,MAAM,MAAM,GAAI,MAAyC,EAAE,MAAM,CAAC;IAClE,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IAEpE,OAAO,4BAA4B,MAAM,OAAO,MAAM,OAAO,MAAM,EAAE,CAAC;AACxE,CAAC,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|