prompt_navigator 2.2.0 → 2.3.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8d6d7f53a86bd7346042c4bd0fc8453ab6730c32c2a82db980a8baa48ab57b8
|
|
4
|
+
data.tar.gz: c1f9ba3a7a01b7e96c9b910f8ef2f74bb36ea985fe46fc7f651fedf6d178cee6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49ad4dd6cc6818466ebe23421dbe05472ebe616854a1add8b3804ba08c6aa816085075240ae761f5c23e349b2a58347dcf1847c6e7cda8d7a077556e5f2bcdf5
|
|
7
|
+
data.tar.gz: 2079bd5b058312231a66c5e666ac747a2a3736e76fc0734ff6a99402cc7d72d4b6f4140e103cf8e54ce08244f92e1b1d32708e19eaabee7be63dbebefd3904eb
|
|
@@ -7,10 +7,14 @@
|
|
|
7
7
|
delete_path = locals[:delete_path]
|
|
8
8
|
is_leaf = locals[:is_leaf]
|
|
9
9
|
|
|
10
|
-
# Hide
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
|
|
10
|
+
# Hide attached-file data URIs so the base64 blob doesn't dominate the
|
|
11
|
+
# 30-char preview. Images use `` and get replaced with `[image]`;
|
|
12
|
+
# documents use `[filename](data:…)` and get replaced with `[filename]`
|
|
13
|
+
# (or `[document]` if the filename slot is empty).
|
|
14
|
+
display_prompt = ann.prompt.to_s
|
|
15
|
+
.gsub(/!\[[^\]]*\]\(data:[^)]+\)/m, "[image]")
|
|
16
|
+
.gsub(/(?<!!)\[([^\]]*)\]\(data:[^)]+\)/m) { "[#{Regexp.last_match(1).presence || 'document'}]" }
|
|
17
|
+
.strip
|
|
14
18
|
%>
|
|
15
19
|
|
|
16
20
|
<div class="history-card<%= ' is-active' if is_active %>" data-history-target="cards" data-uuid="<%= ann.execution_id %>" data-parent-uuid="<%= parent_uuid %>">
|