@deepcitation/deepcitation-js 1.1.49 → 1.1.51
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/README.md +73 -157
- package/lib/chunk-2HINOG74.js +3 -0
- package/lib/chunk-2HINOG74.js.map +1 -0
- package/lib/chunk-4UWAUWYL.cjs +3 -0
- package/lib/chunk-4UWAUWYL.cjs.map +1 -0
- package/lib/chunk-5XGN7UAV.js +2 -0
- package/lib/chunk-5XGN7UAV.js.map +1 -0
- package/lib/chunk-7TORYXU4.cjs +3 -0
- package/lib/chunk-7TORYXU4.cjs.map +1 -0
- package/lib/chunk-BDSA6VGC.js +125 -0
- package/lib/chunk-BDSA6VGC.js.map +1 -0
- package/lib/chunk-BEYJEW3Y.js +2 -0
- package/lib/chunk-BEYJEW3Y.js.map +1 -0
- package/lib/chunk-BWQLFMTV.js +2 -0
- package/lib/chunk-BWQLFMTV.js.map +1 -0
- package/lib/{chunk-F2MMVEVC.cjs → chunk-BYLIBOAU.cjs} +2 -1
- package/lib/chunk-BYLIBOAU.cjs.map +1 -0
- package/lib/chunk-DS6SOU4L.cjs +2 -0
- package/lib/chunk-DS6SOU4L.cjs.map +1 -0
- package/lib/{chunk-UUR2SQKU.cjs → chunk-HL3AXCDL.cjs} +2 -1
- package/lib/chunk-HL3AXCDL.cjs.map +1 -0
- package/lib/chunk-N7FTXSGM.js +3 -0
- package/lib/chunk-N7FTXSGM.js.map +1 -0
- package/lib/chunk-WS4CQVDI.cjs +125 -0
- package/lib/chunk-WS4CQVDI.cjs.map +1 -0
- package/lib/client/index.cjs +2 -1
- package/lib/client/index.cjs.map +1 -0
- package/lib/client/index.d.cts +58 -13
- package/lib/client/index.d.ts +58 -13
- package/lib/client/index.js +2 -1
- package/lib/client/index.js.map +1 -0
- package/lib/{index-fvVBZYVK.d.ts → index-BHjI8Bh1.d.cts} +61 -22
- package/lib/{index-fvVBZYVK.d.cts → index-BHjI8Bh1.d.ts} +61 -22
- package/lib/index.cjs +2 -1
- package/lib/index.cjs.map +1 -0
- package/lib/index.d.cts +137 -16
- package/lib/index.d.ts +137 -16
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -0
- package/lib/prompts/index.cjs +2 -1
- package/lib/prompts/index.cjs.map +1 -0
- package/lib/prompts/index.d.cts +177 -55
- package/lib/prompts/index.d.ts +177 -55
- package/lib/prompts/index.js +2 -1
- package/lib/prompts/index.js.map +1 -0
- package/lib/react/index.cjs +8 -5
- package/lib/react/index.cjs.map +1 -0
- package/lib/react/index.d.cts +348 -21
- package/lib/react/index.d.ts +348 -21
- package/lib/react/index.js +8 -5
- package/lib/react/index.js.map +1 -0
- package/lib/styles.css +1 -1
- package/lib/types/index.cjs +2 -1
- package/lib/types/index.cjs.map +1 -0
- package/lib/types/index.d.cts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.js +2 -1
- package/lib/types/index.js.map +1 -0
- package/lib/{utils-q6anRKO_.d.cts → utils-CCi9_JTv.d.cts} +5 -5
- package/lib/{utils-DuacFTtu.d.ts → utils-CoSP-i76.d.ts} +5 -5
- package/package.json +165 -152
- package/src/tailwind.css +5 -5
- package/lib/chunk-2PRW5PVT.cjs +0 -2
- package/lib/chunk-3XSZLKJW.js +0 -2
- package/lib/chunk-D2TKEF6D.cjs +0 -2
- package/lib/chunk-DHVODVIA.cjs +0 -71
- package/lib/chunk-HRCAI3NV.js +0 -1
- package/lib/chunk-ND6LFDGK.js +0 -71
- package/lib/chunk-O2XFH626.js +0 -1
- package/lib/chunk-PKXMJNRX.js +0 -2
package/lib/prompts/index.d.ts
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Citation Prompts
|
|
3
|
+
*
|
|
4
|
+
* This module provides the "Deferred JSON Pattern" for citation output.
|
|
5
|
+
* The LLM uses lightweight markers (e.g., [1], [2]) in the text and outputs
|
|
6
|
+
* a structured JSON block at the end of the response.
|
|
7
|
+
*
|
|
8
|
+
* Benefits:
|
|
9
|
+
* - **Robustness**: JSON.parse handles escaping naturally, avoiding quote-escaping issues
|
|
10
|
+
* - **Streaming Latency**: No mid-sentence pausing for hidden metadata generation
|
|
11
|
+
* - **Token Efficiency**: ~40% reduction in tokens per citation
|
|
12
|
+
*/
|
|
13
|
+
/** Start delimiter for the citation data block */
|
|
14
|
+
declare const CITATION_DATA_START_DELIMITER = "<<<CITATION_DATA>>>";
|
|
15
|
+
/** End delimiter for the citation data block */
|
|
16
|
+
declare const CITATION_DATA_END_DELIMITER = "<<<END_CITATION_DATA>>>";
|
|
17
|
+
/**
|
|
18
|
+
* Citation prompt for document-based citations.
|
|
19
|
+
* Uses [N] markers in text with JSON metadata at the end.
|
|
20
|
+
* Citations are grouped by attachment_id to avoid repetition.
|
|
21
|
+
*
|
|
22
|
+
* Shorthand key mapping (optional):
|
|
23
|
+
* - n: id, r: reasoning, f: full_phrase
|
|
24
|
+
* - k: anchor_text, p: page_id, l: line_ids
|
|
25
|
+
*/
|
|
26
|
+
declare const CITATION_PROMPT = "\n<citation-instructions priority=\"critical\">\n## REQUIRED: Citation Format\n\n### In-Text Markers\nFor every claim, value, or fact from attachments, place a sequential integer marker like [1], [2], [3] at the end of the claim.\n\n### Citation Data Block\nAt the END of your response, append a citation block. Group citations by attachment_id to avoid repetition.\n\n### Format\n```\n<<<CITATION_DATA>>>\n{\n \"attachment_id_here\": [\n {\"id\": 1, \"reasoning\": \"why\", \"full_phrase\": \"quote\", \"anchor_text\": \"key\", \"page_id\": \"2_1\", \"line_ids\": [12]}\n ]\n}\n<<<END_CITATION_DATA>>>\n```\n\n### Shorthand (Optional)\nTo save tokens: n=id, r=reasoning, f=full_phrase, k=anchor_text, p=page_id, l=line_ids\n\n### JSON Field Rules\n\n1. **Group key**: The attachment_id (exact ID from source document)\n2. **id** (or n): Must match the [N] marker in your text (integer)\n3. **reasoning** (or r): Brief explanation connecting the citation to your claim (think first!)\n4. **full_phrase** (or f): Copy text VERBATIM from source. Use proper JSON escaping for quotes.\n5. **anchor_text** (or k): The 1-3 most important words from full_phrase\n6. **page_id** (or p): Format \"N_I\" where N=page number, I=index (from `<page_number_N_index_I>` tags)\n7. **line_ids** (or l): Array of line numbers. Infer intermediate lines since only every 5th is shown.\n\n### Placement Rules\n\n- Place [N] markers inline, typically at the end of a claim\n- One marker per distinct idea, concept, or value\n- Use sequential numbering starting from [1]\n- The JSON block MUST appear at the very end of your response\n\n### Example Response\n\nThe company reported strong growth [1]. Revenue increased significantly in Q4 [2]. The competitor also grew [3].\n\n<<<CITATION_DATA>>>\n{\n \"abc123\": [\n {\"id\": 1, \"reasoning\": \"directly states growth metrics\", \"full_phrase\": \"The company achieved 45% year-over-year growth\", \"anchor_text\": \"45% year-over-year growth\", \"page_id\": \"2_1\", \"line_ids\": [12, 13]},\n {\"id\": 2, \"reasoning\": \"states Q4 revenue figure\", \"full_phrase\": \"Q4 revenue reached $2.3 billion, up from $1.8 billion\", \"anchor_text\": \"$2.3 billion\", \"page_id\": \"3_2\", \"line_ids\": [5, 6, 7]}\n ],\n \"def456\": [\n {\"id\": 3, \"reasoning\": \"competitor data\", \"full_phrase\": \"Competitor X reported 20% growth\", \"anchor_text\": \"20% growth\", \"page_id\": \"1_0\", \"line_ids\": [8]}\n ]\n}\n<<<END_CITATION_DATA>>>\n</citation-instructions>\n\n";
|
|
27
|
+
/**
|
|
28
|
+
* Citation prompt for audio/video content.
|
|
29
|
+
* Uses timestamps instead of page/line references.
|
|
30
|
+
* Citations are grouped by attachment_id to avoid repetition.
|
|
31
|
+
*
|
|
32
|
+
* Shorthand key mapping (optional):
|
|
33
|
+
* - n: id, r: reasoning, f: full_phrase
|
|
34
|
+
* - k: anchor_text, t: timestamps (with s: start_time, e: end_time)
|
|
35
|
+
*/
|
|
36
|
+
declare const AV_CITATION_PROMPT = "\n<citation-instructions priority=\"critical\">\n## REQUIRED: Audio/Video Citation Format\n\n### In-Text Markers\nFor every claim, value, or fact from media content, place a sequential integer marker like [1], [2], [3] at the end of the claim.\n\n### Citation Data Block\nAt the END of your response, append a citation block. Group citations by attachment_id to avoid repetition.\n\n### Format\n```\n<<<CITATION_DATA>>>\n{\n \"attachment_id_here\": [\n {\"id\": 1, \"reasoning\": \"why\", \"full_phrase\": \"quote\", \"anchor_text\": \"key\", \"timestamps\": {\"start_time\": \"HH:MM:SS.SSS\", \"end_time\": \"HH:MM:SS.SSS\"}}\n ]\n}\n<<<END_CITATION_DATA>>>\n```\n\n### Shorthand (Optional)\nTo save tokens: n=id, r=reasoning, f=full_phrase, k=anchor_text, t=timestamps (with s=start_time, e=end_time)\n\n### JSON Field Rules\n\n1. **Group key**: The attachment_id (exact ID from source media)\n2. **id** (or n): Must match the [N] marker in your text (integer)\n3. **reasoning** (or r): Brief explanation connecting the citation to your claim (think first!)\n4. **full_phrase** (or f): Copy transcript text VERBATIM. Use proper JSON escaping.\n5. **anchor_text** (or k): The 1-3 most important words from full_phrase\n6. **timestamps** (or t): Object with start_time/s and end_time/e in HH:MM:SS.SSS format\n\n### Placement Rules\n\n- Place [N] markers inline, typically at the end of a claim\n- One marker per distinct idea, concept, or value\n- Use sequential numbering starting from [1]\n- The JSON block MUST appear at the very end of your response\n\n### Example Response\n\nThe speaker discussed exercise benefits [1]. They recommended specific techniques [2].\n\n<<<CITATION_DATA>>>\n{\n \"video123\": [\n {\"id\": 1, \"reasoning\": \"speaker directly states health benefits\", \"full_phrase\": \"Regular exercise improves cardiovascular health by 30%\", \"anchor_text\": \"cardiovascular health\", \"timestamps\": {\"start_time\": \"00:05:23.000\", \"end_time\": \"00:05:45.500\"}},\n {\"id\": 2, \"reasoning\": \"demonstrates proper form\", \"full_phrase\": \"Keep your back straight and engage your core\", \"anchor_text\": \"engage your core\", \"timestamps\": {\"start_time\": \"00:12:10.200\", \"end_time\": \"00:12:25.800\"}}\n ]\n}\n<<<END_CITATION_DATA>>>\n</citation-instructions>\n\n";
|
|
3
37
|
/**
|
|
4
38
|
* A brief reminder to reinforce citation requirements in user messages.
|
|
5
39
|
* Use this when you want to add emphasis without repeating full instructions.
|
|
6
40
|
*/
|
|
7
|
-
declare const CITATION_REMINDER = "<citation-reminder>STOP and CHECK: Did you use
|
|
41
|
+
declare const CITATION_REMINDER = "<citation-reminder>STOP and CHECK: Did you use [N] markers for every claim and include the <<<CITATION_DATA>>> JSON block at the end?</citation-reminder>";
|
|
8
42
|
/**
|
|
9
43
|
* Audio/video version of the citation reminder.
|
|
10
44
|
*/
|
|
11
|
-
declare const CITATION_AV_REMINDER = "<citation-reminder>STOP and CHECK: Did you use
|
|
45
|
+
declare const CITATION_AV_REMINDER = "<citation-reminder>STOP and CHECK: Did you use [N] markers for every claim and include the <<<CITATION_DATA>>> JSON block with timestamps at the end?</citation-reminder>";
|
|
12
46
|
interface WrapSystemPromptOptions {
|
|
13
47
|
/** The original system prompt to wrap with citation instructions */
|
|
14
48
|
systemPrompt: string;
|
|
@@ -48,12 +82,12 @@ interface WrapCitationPromptResult {
|
|
|
48
82
|
*
|
|
49
83
|
* ### 2. Chain-of-Thought (CoT) Attribute Ordering
|
|
50
84
|
* The citation attributes are ordered to encourage the model to "think first":
|
|
51
|
-
* `attachment_id` → `reasoning` → `full_phrase` → `
|
|
85
|
+
* `attachment_id` → `reasoning` → `full_phrase` → `anchor_text` → `page_id` → `line_ids`
|
|
52
86
|
*
|
|
53
87
|
* By placing `reasoning` early, the model must articulate WHY it's citing before
|
|
54
|
-
* specifying WHAT it's citing. Then `full_phrase` comes before `
|
|
55
|
-
* first produces the complete verbatim quote, then extracts the
|
|
56
|
-
* ensuring `
|
|
88
|
+
* specifying WHAT it's citing. Then `full_phrase` comes before `anchor_text` so the model
|
|
89
|
+
* first produces the complete verbatim quote, then extracts the anchor text from it,
|
|
90
|
+
* ensuring `anchor_text` is always a valid substring of `full_phrase`.
|
|
57
91
|
*
|
|
58
92
|
* ### Why Not Just Append?
|
|
59
93
|
* In large system prompts, appended instructions can get "lost" in the middle of the
|
|
@@ -107,72 +141,160 @@ declare function wrapSystemCitationPrompt(options: WrapSystemPromptOptions): str
|
|
|
107
141
|
* ```
|
|
108
142
|
*/
|
|
109
143
|
declare function wrapCitationPrompt(options: WrapCitationPromptOptions): WrapCitationPromptResult;
|
|
144
|
+
/**
|
|
145
|
+
* JSON schema for citation data (for structured output LLMs).
|
|
146
|
+
* This can be used with OpenAI's response_format or similar features.
|
|
147
|
+
*/
|
|
110
148
|
declare const CITATION_JSON_OUTPUT_FORMAT: {
|
|
111
|
-
type:
|
|
112
|
-
properties: {
|
|
113
|
-
|
|
114
|
-
type:
|
|
149
|
+
readonly type: "object";
|
|
150
|
+
readonly properties: {
|
|
151
|
+
readonly id: {
|
|
152
|
+
readonly type: "integer";
|
|
153
|
+
readonly description: "Citation marker number matching [N] in text";
|
|
154
|
+
};
|
|
155
|
+
readonly attachment_id: {
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly description: "Exact attachment ID from source document";
|
|
115
158
|
};
|
|
116
|
-
reasoning: {
|
|
117
|
-
type: string;
|
|
118
|
-
description:
|
|
159
|
+
readonly reasoning: {
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
readonly description: "Brief explanation of why this supports the claim";
|
|
119
162
|
};
|
|
120
|
-
|
|
121
|
-
type: string;
|
|
122
|
-
description:
|
|
163
|
+
readonly full_phrase: {
|
|
164
|
+
readonly type: "string";
|
|
165
|
+
readonly description: "Verbatim quote from source document";
|
|
123
166
|
};
|
|
124
|
-
|
|
125
|
-
type: string;
|
|
126
|
-
description:
|
|
167
|
+
readonly anchor_text: {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly description: "1-3 key words from full_phrase";
|
|
127
170
|
};
|
|
128
|
-
|
|
129
|
-
type: string;
|
|
130
|
-
description:
|
|
171
|
+
readonly page_id: {
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
readonly description: "Page ID in format 'N_I' (pageNumber_index)";
|
|
131
174
|
};
|
|
132
|
-
|
|
133
|
-
type:
|
|
134
|
-
items: {
|
|
135
|
-
type:
|
|
175
|
+
readonly line_ids: {
|
|
176
|
+
readonly type: "array";
|
|
177
|
+
readonly items: {
|
|
178
|
+
readonly type: "integer";
|
|
136
179
|
};
|
|
137
|
-
description:
|
|
180
|
+
readonly description: "Array of line numbers for the citation";
|
|
138
181
|
};
|
|
139
182
|
};
|
|
140
|
-
required:
|
|
183
|
+
readonly required: readonly ["id", "attachment_id", "full_phrase", "anchor_text"];
|
|
141
184
|
};
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
185
|
+
/**
|
|
186
|
+
* JSON schema for AV citation data.
|
|
187
|
+
*/
|
|
188
|
+
declare const CITATION_AV_JSON_OUTPUT_FORMAT: {
|
|
189
|
+
readonly type: "object";
|
|
190
|
+
readonly properties: {
|
|
191
|
+
readonly id: {
|
|
192
|
+
readonly type: "integer";
|
|
193
|
+
readonly description: "Citation marker number matching [N] in text";
|
|
194
|
+
};
|
|
195
|
+
readonly attachment_id: {
|
|
196
|
+
readonly type: "string";
|
|
197
|
+
readonly description: "Exact attachment ID from source media";
|
|
147
198
|
};
|
|
148
|
-
|
|
149
|
-
type: string;
|
|
150
|
-
description:
|
|
199
|
+
readonly reasoning: {
|
|
200
|
+
readonly type: "string";
|
|
201
|
+
readonly description: "Brief explanation of why this supports the claim";
|
|
151
202
|
};
|
|
152
|
-
|
|
153
|
-
type: string;
|
|
154
|
-
description:
|
|
203
|
+
readonly full_phrase: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly description: "Verbatim transcript quote";
|
|
155
206
|
};
|
|
156
|
-
|
|
157
|
-
type: string;
|
|
158
|
-
description:
|
|
207
|
+
readonly anchor_text: {
|
|
208
|
+
readonly type: "string";
|
|
209
|
+
readonly description: "1-3 key words from full_phrase";
|
|
159
210
|
};
|
|
160
|
-
timestamps: {
|
|
161
|
-
type:
|
|
162
|
-
properties: {
|
|
163
|
-
|
|
164
|
-
type: string;
|
|
211
|
+
readonly timestamps: {
|
|
212
|
+
readonly type: "object";
|
|
213
|
+
readonly properties: {
|
|
214
|
+
readonly start_time: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly description: "Start time in HH:MM:SS.SSS format";
|
|
165
217
|
};
|
|
166
|
-
|
|
167
|
-
type: string;
|
|
218
|
+
readonly end_time: {
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly description: "End time in HH:MM:SS.SSS format";
|
|
168
221
|
};
|
|
169
222
|
};
|
|
170
|
-
required:
|
|
171
|
-
description: string;
|
|
223
|
+
readonly required: readonly ["start_time", "end_time"];
|
|
172
224
|
};
|
|
173
225
|
};
|
|
174
|
-
required:
|
|
226
|
+
readonly required: readonly ["id", "attachment_id", "full_phrase", "anchor_text", "timestamps"];
|
|
175
227
|
};
|
|
228
|
+
/**
|
|
229
|
+
* Compact citation data format from LLM output.
|
|
230
|
+
* Uses single-character keys for token efficiency.
|
|
231
|
+
*/
|
|
232
|
+
interface CompactCitationData {
|
|
233
|
+
/** Citation number (n) - matches [N] marker */
|
|
234
|
+
n: number;
|
|
235
|
+
/** Attachment ID (a) */
|
|
236
|
+
a?: string;
|
|
237
|
+
/** Reasoning (r) */
|
|
238
|
+
r?: string;
|
|
239
|
+
/** Full phrase (f) - verbatim quote */
|
|
240
|
+
f?: string;
|
|
241
|
+
/** Key phrase (k) - anchor text */
|
|
242
|
+
k?: string;
|
|
243
|
+
/** Page ID (p) - format "N_I" */
|
|
244
|
+
p?: string;
|
|
245
|
+
/** Line IDs (l) */
|
|
246
|
+
l?: number[];
|
|
247
|
+
/** Timestamps (t) for AV citations */
|
|
248
|
+
t?: {
|
|
249
|
+
/** Start time (s) */
|
|
250
|
+
s?: string;
|
|
251
|
+
/** End time (e) */
|
|
252
|
+
e?: string;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Interface for citation data from JSON block.
|
|
257
|
+
* This is the normalized/expanded format used internally after parsing.
|
|
258
|
+
* The parser expands compact keys (n,a,r,f,k,p,l,t) to these full names.
|
|
259
|
+
*/
|
|
260
|
+
interface CitationData {
|
|
261
|
+
/** Citation marker number (matches [N] in text). Compact key: n */
|
|
262
|
+
id: number;
|
|
263
|
+
/** Attachment ID from source document. Compact key: a */
|
|
264
|
+
attachment_id?: string;
|
|
265
|
+
/** Reasoning for the citation. Compact key: r */
|
|
266
|
+
reasoning?: string;
|
|
267
|
+
/** Verbatim quote from source. Compact key: f */
|
|
268
|
+
full_phrase?: string;
|
|
269
|
+
/** Anchor text (1-3 words). Compact key: k */
|
|
270
|
+
anchor_text?: string;
|
|
271
|
+
/** Page ID in format "N_I" or legacy "page_number_N_index_I". Compact key: p */
|
|
272
|
+
page_id?: string;
|
|
273
|
+
/** Line IDs array. Compact key: l */
|
|
274
|
+
line_ids?: number[];
|
|
275
|
+
/** Timestamps for AV citations. Compact key: t */
|
|
276
|
+
timestamps?: {
|
|
277
|
+
/** Start time. Compact key: s */
|
|
278
|
+
start_time?: string;
|
|
279
|
+
/** End time. Compact key: e */
|
|
280
|
+
end_time?: string;
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Result of parsing a citation response.
|
|
285
|
+
*/
|
|
286
|
+
interface ParsedCitationResponse {
|
|
287
|
+
/** The clean text meant for display (content before the delimiter) */
|
|
288
|
+
visibleText: string;
|
|
289
|
+
/** The structured citation data from the JSON block */
|
|
290
|
+
citations: CitationData[];
|
|
291
|
+
/** Helper map for O(1) lookups by ID */
|
|
292
|
+
citationMap: Map<number, CitationData>;
|
|
293
|
+
/** Whether parsing was successful */
|
|
294
|
+
success: boolean;
|
|
295
|
+
/** Error message if parsing failed */
|
|
296
|
+
error?: string;
|
|
297
|
+
}
|
|
176
298
|
|
|
177
299
|
interface CompressedResult<T> {
|
|
178
300
|
compressed: T;
|
|
@@ -193,4 +315,4 @@ declare function compressPromptIds<T>(obj: T, ids: string[] | undefined): Compre
|
|
|
193
315
|
*/
|
|
194
316
|
declare function decompressPromptIds<T>(compressed: T | string, prefixMap: Record<string, string>): T | string;
|
|
195
317
|
|
|
196
|
-
export {
|
|
318
|
+
export { AV_CITATION_PROMPT, CITATION_AV_JSON_OUTPUT_FORMAT, CITATION_AV_REMINDER, CITATION_DATA_END_DELIMITER, CITATION_DATA_START_DELIMITER, CITATION_JSON_OUTPUT_FORMAT, CITATION_PROMPT, CITATION_REMINDER, type CitationData, type CompactCitationData, type CompressedResult, type ParsedCitationResponse, type WrapCitationPromptOptions, type WrapCitationPromptResult, type WrapSystemPromptOptions, compressPromptIds, decompressPromptIds, wrapCitationPrompt, wrapSystemCitationPrompt };
|
package/lib/prompts/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export{b as
|
|
1
|
+
export{a as compressPromptIds,b as decompressPromptIds}from'../chunk-BWQLFMTV.js';export{d as AV_CITATION_PROMPT,j as CITATION_AV_JSON_OUTPUT_FORMAT,f as CITATION_AV_REMINDER,b as CITATION_DATA_END_DELIMITER,a as CITATION_DATA_START_DELIMITER,i as CITATION_JSON_OUTPUT_FORMAT,c as CITATION_PROMPT,e as CITATION_REMINDER,h as wrapCitationPrompt,g as wrapSystemCitationPrompt}from'../chunk-BDSA6VGC.js';import'../chunk-5XGN7UAV.js';//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|