ai-release-notes 0.3.0 → 0.4.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.
- package/README.md +261 -12
- package/dist/bin/cli.js +428 -331
- package/dist/bin/cli.js.map +1 -1
- package/dist/generator.d.ts.map +1 -1
- package/dist/generator.js +25 -44
- package/dist/generator.js.map +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +47 -1
- package/dist/index.js.map +1 -1
- package/dist/output-index.d.ts +71 -1
- package/dist/output-index.d.ts.map +1 -1
- package/dist/output-index.js +333 -1
- package/dist/output-index.js.map +1 -1
- package/dist/output-path.d.ts +61 -0
- package/dist/output-path.d.ts.map +1 -0
- package/dist/output-path.js +182 -0
- package/dist/output-path.js.map +1 -0
- package/dist/promote.d.ts +133 -0
- package/dist/promote.d.ts.map +1 -0
- package/dist/promote.js +0 -0
- package/dist/promote.js.map +1 -0
- package/dist/prompt-session.d.ts +172 -0
- package/dist/prompt-session.d.ts.map +1 -0
- package/dist/prompt-session.js +484 -0
- package/dist/prompt-session.js.map +1 -0
- package/dist/prompts/builder.d.ts +77 -0
- package/dist/prompts/builder.d.ts.map +1 -1
- package/dist/prompts/builder.js +134 -0
- package/dist/prompts/builder.js.map +1 -1
- package/dist/release-date.d.ts +14 -0
- package/dist/release-date.d.ts.map +1 -0
- package/dist/release-date.js +54 -0
- package/dist/release-date.js.map +1 -0
- package/dist/release-document.d.ts +150 -0
- package/dist/release-document.d.ts.map +1 -0
- package/dist/release-document.js +651 -0
- package/dist/release-document.js.map +1 -0
- package/dist/release.d.ts +27 -3
- package/dist/release.d.ts.map +1 -1
- package/dist/release.js +88 -2
- package/dist/release.js.map +1 -1
- package/dist/text-diff.d.ts +19 -0
- package/dist/text-diff.d.ts.map +1 -0
- package/dist/text-diff.js +81 -0
- package/dist/text-diff.js.map +1 -0
- package/dist/types.d.ts +10 -7
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/prompts/release-notes-edit-system.md +48 -0
- package/prompts/release-notes-promote-opening.md +59 -0
- package/prompts/release-notes-session-router.md +68 -0
- package/dist/prompts/translation-system.md +0 -8
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Asking, in your own words, for a change to release notes already written.
|
|
4
|
+
*
|
|
5
|
+
* A generated note is rarely wrong so much as not yet right: it repeats a line,
|
|
6
|
+
* it says more about the build than anyone wants to read, or it drifted from
|
|
7
|
+
* the project's own writing rules. Regenerating it answers none of that — the
|
|
8
|
+
* changelog has not changed, so the same note comes back, and every correction
|
|
9
|
+
* already made to it is lost.
|
|
10
|
+
*
|
|
11
|
+
* A session reads the notes an environment holds, keeps them in hand, and
|
|
12
|
+
* applies one request at a time to all of them. Nothing reaches the disk until
|
|
13
|
+
* it is saved, so a request that reads badly is undone rather than repaired,
|
|
14
|
+
* and a run of requests is reviewed once, together.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.PromptSession = exports.SESSION_ACTIONS = exports.PromptError = void 0;
|
|
18
|
+
exports.readSessionAction = readSessionAction;
|
|
19
|
+
const promises_1 = require("fs/promises");
|
|
20
|
+
const fs_1 = require("fs");
|
|
21
|
+
const path_1 = require("path");
|
|
22
|
+
const zod_1 = require("zod");
|
|
23
|
+
const config_js_1 = require("./config.js");
|
|
24
|
+
const generator_js_1 = require("./generator.js");
|
|
25
|
+
const llm_js_1 = require("./llm.js");
|
|
26
|
+
const output_path_js_1 = require("./output-path.js");
|
|
27
|
+
const builder_js_1 = require("./prompts/builder.js");
|
|
28
|
+
const promote_js_1 = require("./promote.js");
|
|
29
|
+
const release_document_js_1 = require("./release-document.js");
|
|
30
|
+
const release_js_1 = require("./release.js");
|
|
31
|
+
class PromptError extends Error {
|
|
32
|
+
constructor(message) {
|
|
33
|
+
super(message);
|
|
34
|
+
this.name = "PromptError";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.PromptError = PromptError;
|
|
38
|
+
/** What someone at the desk can be asking for. */
|
|
39
|
+
exports.SESSION_ACTIONS = [
|
|
40
|
+
"revise",
|
|
41
|
+
"dedupe",
|
|
42
|
+
"undo",
|
|
43
|
+
"reset",
|
|
44
|
+
"save",
|
|
45
|
+
"list",
|
|
46
|
+
"done",
|
|
47
|
+
"unclear",
|
|
48
|
+
];
|
|
49
|
+
const SessionActionSchema = zod_1.z.object({
|
|
50
|
+
action: zod_1.z.enum(exports.SESSION_ACTIONS),
|
|
51
|
+
instruction: zod_1.z.string().optional(),
|
|
52
|
+
reply: zod_1.z.string().optional(),
|
|
53
|
+
});
|
|
54
|
+
const UNREADABLE_PAGE = "its release note cannot be told apart from the page around it — revise the Markdown output instead";
|
|
55
|
+
/**
|
|
56
|
+
* The release notes of one environment, open for revision.
|
|
57
|
+
*
|
|
58
|
+
* Open it with `PromptSession.open`, apply requests, then `save`. Nothing is
|
|
59
|
+
* written before that, and `undo` steps back through the requests one by one.
|
|
60
|
+
*/
|
|
61
|
+
class PromptSession {
|
|
62
|
+
config;
|
|
63
|
+
environment;
|
|
64
|
+
provider;
|
|
65
|
+
documents;
|
|
66
|
+
callModel;
|
|
67
|
+
history = [];
|
|
68
|
+
constructor(config, environment, provider, documents, callModel) {
|
|
69
|
+
this.config = config;
|
|
70
|
+
this.environment = environment;
|
|
71
|
+
this.provider = provider;
|
|
72
|
+
this.documents = documents;
|
|
73
|
+
this.callModel = callModel;
|
|
74
|
+
}
|
|
75
|
+
static async open(options) {
|
|
76
|
+
const config = await (0, config_js_1.loadConfig)(options.configPath);
|
|
77
|
+
const provider = (options.provider
|
|
78
|
+
? (0, config_js_1.resolveProviderAlias)(options.provider)
|
|
79
|
+
: config.provider);
|
|
80
|
+
// A session on your own model needs no key and no provider entry; one that
|
|
81
|
+
// will call a provider is told now rather than after the first request.
|
|
82
|
+
const providerConfig = config.providers[provider];
|
|
83
|
+
if (!options.callModel && !providerConfig) {
|
|
84
|
+
throw new PromptError(`Provider "${provider}" not configured. ` +
|
|
85
|
+
`Add it to your config file under providers.${provider}`);
|
|
86
|
+
}
|
|
87
|
+
const outputs = config.output
|
|
88
|
+
? (Array.isArray(config.output) ? config.output : [config.output])
|
|
89
|
+
: [];
|
|
90
|
+
if (outputs.length === 0) {
|
|
91
|
+
throw new PromptError("Revising reuses the files a generation wrote, so it needs to know where they are. " +
|
|
92
|
+
"Add an output with a saveTo path to your config.");
|
|
93
|
+
}
|
|
94
|
+
const documents = [];
|
|
95
|
+
for (const output of outputs) {
|
|
96
|
+
const patterns = output.saveTo
|
|
97
|
+
? (Array.isArray(output.saveTo) ? output.saveTo : [output.saveTo])
|
|
98
|
+
: [];
|
|
99
|
+
const template = output.format === "html"
|
|
100
|
+
? await (0, generator_js_1.loadReleaseNoteTemplate)(output.template)
|
|
101
|
+
: undefined;
|
|
102
|
+
for (const pattern of patterns) {
|
|
103
|
+
for (const found of await findFiles(pattern, options, config)) {
|
|
104
|
+
// Two configured outputs can name one file; it is opened once.
|
|
105
|
+
if (documents.some((document) => document.path === found.path))
|
|
106
|
+
continue;
|
|
107
|
+
documents.push(await readDocument(found, output.format, template));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (documents.length === 0) {
|
|
112
|
+
throw new PromptError(`No release notes found for ${options.environment}` +
|
|
113
|
+
rangeDescription(options.fromVersion, options.toVersion) + ". " +
|
|
114
|
+
"Generate them first, or check the environment name against your output.saveTo paths.");
|
|
115
|
+
}
|
|
116
|
+
const callModel = options.callModel
|
|
117
|
+
?? ((request) => (0, llm_js_1.callLLM)(provider, providerConfig, request.system, request.user));
|
|
118
|
+
return new PromptSession(config, options.environment, provider, documents, callModel);
|
|
119
|
+
}
|
|
120
|
+
/** The files revised since the last save. */
|
|
121
|
+
pending() {
|
|
122
|
+
return this.documents.filter((document) => document.content !== document.saved);
|
|
123
|
+
}
|
|
124
|
+
/** Whether anything at all can be revised. */
|
|
125
|
+
get revisable() {
|
|
126
|
+
return this.documents.filter((document) => !document.unrevisable);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Read what someone answered and say what they are asking for.
|
|
130
|
+
*
|
|
131
|
+
* Everything is said in words — "drop the docker part", "actually put that
|
|
132
|
+
* back", "that's it, write them" — so a model reads the answer rather than a
|
|
133
|
+
* list of commands the person would have to learn first. It is given the
|
|
134
|
+
* message and the state of the session; the release notes themselves never
|
|
135
|
+
* reach it.
|
|
136
|
+
*
|
|
137
|
+
* An answer it cannot place is taken as a request to revise, which is what
|
|
138
|
+
* nearly every answer is: a session is never blocked by its own front desk.
|
|
139
|
+
*/
|
|
140
|
+
async route(message) {
|
|
141
|
+
const said = message.trim();
|
|
142
|
+
if (!said) {
|
|
143
|
+
return { action: "unclear", instruction: "", reply: "" };
|
|
144
|
+
}
|
|
145
|
+
try {
|
|
146
|
+
const answer = await this.callModel({
|
|
147
|
+
system: await (0, builder_js_1.buildSessionRouterSystemPrompt)(),
|
|
148
|
+
user: (0, builder_js_1.buildSessionRouterUserPrompt)({
|
|
149
|
+
message: said,
|
|
150
|
+
environment: this.environment,
|
|
151
|
+
openFiles: this.documents.length,
|
|
152
|
+
unsavedFiles: this.pending().length,
|
|
153
|
+
canUndo: this.history.length > 0,
|
|
154
|
+
}),
|
|
155
|
+
});
|
|
156
|
+
return readSessionAction(answer.text, said);
|
|
157
|
+
}
|
|
158
|
+
catch {
|
|
159
|
+
// The provider failing here would otherwise swallow the request. Revising
|
|
160
|
+
// is what was almost certainly meant, and it reports its own failure.
|
|
161
|
+
return { action: "revise", instruction: said, reply: "" };
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Apply one request, in your own words, to every open release note.
|
|
166
|
+
*
|
|
167
|
+
* Each note is revised on its own, so a request about a section only reaches
|
|
168
|
+
* the notes that have one. A note the model fails on is reported and left as
|
|
169
|
+
* it was, and the rest of the run is abandoned rather than repeated against a
|
|
170
|
+
* provider that has just refused.
|
|
171
|
+
*/
|
|
172
|
+
async revise(instruction) {
|
|
173
|
+
const request = instruction.trim();
|
|
174
|
+
if (!request)
|
|
175
|
+
throw new PromptError("A request needs some words to act on.");
|
|
176
|
+
const startedAt = Date.now();
|
|
177
|
+
const usage = emptyUsage();
|
|
178
|
+
const system = await (0, builder_js_1.buildEditSystemPrompt)(await (0, builder_js_1.resolveInstructions)(this.config.prompt?.instructions));
|
|
179
|
+
const edits = [];
|
|
180
|
+
const revised = new Map();
|
|
181
|
+
let failed = false;
|
|
182
|
+
for (const document of this.documents) {
|
|
183
|
+
if (failed) {
|
|
184
|
+
edits.push(unchanged(document, "not attempted: the request was abandoned"));
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
const note = noteOf(document);
|
|
188
|
+
if (note === undefined) {
|
|
189
|
+
edits.push(unchanged(document, document.unrevisable ?? UNREADABLE_PAGE));
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
let answer;
|
|
193
|
+
try {
|
|
194
|
+
answer = await this.callModel({
|
|
195
|
+
system,
|
|
196
|
+
user: (0, builder_js_1.buildEditUserPrompt)({
|
|
197
|
+
instruction: request,
|
|
198
|
+
document: note,
|
|
199
|
+
format: document.format,
|
|
200
|
+
projectName: this.config.projectName,
|
|
201
|
+
environment: this.environment,
|
|
202
|
+
fromVersion: document.fromVersion,
|
|
203
|
+
toVersion: document.toVersion,
|
|
204
|
+
language: document.language,
|
|
205
|
+
}),
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
failed = true;
|
|
210
|
+
edits.push(unchanged(document, error instanceof Error ? error.message : String(error)));
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
addUsage(usage, answer.usage);
|
|
214
|
+
const written = this.applyAnswer(document, answer.text);
|
|
215
|
+
if (typeof written === "string") {
|
|
216
|
+
revised.set(document.path, written);
|
|
217
|
+
edits.push({
|
|
218
|
+
path: document.path,
|
|
219
|
+
before: document.content,
|
|
220
|
+
after: written,
|
|
221
|
+
changed: written !== document.content,
|
|
222
|
+
});
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
edits.push(unchanged(document, written.skipped));
|
|
226
|
+
}
|
|
227
|
+
this.commit(revised);
|
|
228
|
+
usage.durationMs = Date.now() - startedAt;
|
|
229
|
+
return { edits, usage, via: "model" };
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Drop every line an open release note lists more than once.
|
|
233
|
+
*
|
|
234
|
+
* Comparing lines is something this can do exactly, so it does it itself: no
|
|
235
|
+
* request is built, no provider is called, and what comes back is the note
|
|
236
|
+
* minus the lines it repeated, never a rewording of the ones it keeps.
|
|
237
|
+
*/
|
|
238
|
+
dedupe() {
|
|
239
|
+
const startedAt = Date.now();
|
|
240
|
+
const usage = emptyUsage();
|
|
241
|
+
const edits = [];
|
|
242
|
+
const revised = new Map();
|
|
243
|
+
for (const document of this.documents) {
|
|
244
|
+
const note = noteOf(document);
|
|
245
|
+
if (note === undefined) {
|
|
246
|
+
edits.push(unchanged(document, document.unrevisable ?? UNREADABLE_PAGE));
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
const { content, removed } = (0, release_document_js_1.dedupeReleaseDocument)(note, document.format);
|
|
250
|
+
const written = withNote(document, content);
|
|
251
|
+
if (written === undefined) {
|
|
252
|
+
edits.push(unchanged(document, UNREADABLE_PAGE));
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
if (written !== document.content)
|
|
256
|
+
revised.set(document.path, written);
|
|
257
|
+
edits.push({
|
|
258
|
+
path: document.path,
|
|
259
|
+
before: document.content,
|
|
260
|
+
after: written,
|
|
261
|
+
changed: written !== document.content,
|
|
262
|
+
removed,
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
this.commit(revised);
|
|
266
|
+
usage.durationMs = Date.now() - startedAt;
|
|
267
|
+
return { edits, usage, via: "comparison" };
|
|
268
|
+
}
|
|
269
|
+
/** Step back one request. Returns whether there was one to step back from. */
|
|
270
|
+
undo() {
|
|
271
|
+
const previous = this.history.pop();
|
|
272
|
+
if (!previous)
|
|
273
|
+
return false;
|
|
274
|
+
for (const document of this.documents) {
|
|
275
|
+
const content = previous.get(document.path);
|
|
276
|
+
if (content !== undefined)
|
|
277
|
+
document.content = content;
|
|
278
|
+
}
|
|
279
|
+
return true;
|
|
280
|
+
}
|
|
281
|
+
/** Drop every request applied since the last save. */
|
|
282
|
+
reset() {
|
|
283
|
+
for (const document of this.documents) {
|
|
284
|
+
document.content = document.saved;
|
|
285
|
+
}
|
|
286
|
+
this.history.length = 0;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Write the revised notes.
|
|
290
|
+
*
|
|
291
|
+
* A revision changes what a release note says, never which release it is, so
|
|
292
|
+
* the release index still describes it correctly and is left alone.
|
|
293
|
+
*/
|
|
294
|
+
async save() {
|
|
295
|
+
const written = [];
|
|
296
|
+
for (const document of this.pending()) {
|
|
297
|
+
await (0, promises_1.writeFile)(document.path, document.content, "utf-8");
|
|
298
|
+
document.saved = document.content;
|
|
299
|
+
written.push(document.path);
|
|
300
|
+
}
|
|
301
|
+
return written;
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* The model's answer, ready to be written back — or why it cannot be.
|
|
305
|
+
*
|
|
306
|
+
* The answer is a release note, so a fence the model wrapped it in is removed
|
|
307
|
+
* as it is after a generation. An answer that is markup goes back onto a
|
|
308
|
+
* published page, so it is reduced to the markup a release note is made of
|
|
309
|
+
* first: the note the model was given was itself written from changelog text
|
|
310
|
+
* nobody reviewed.
|
|
311
|
+
*/
|
|
312
|
+
applyAnswer(document, answer) {
|
|
313
|
+
const revised = document.format === "html"
|
|
314
|
+
? (0, release_js_1.sanitizeReleaseHtml)((0, generator_js_1.stripEnclosingCodeFence)(answer)).trim()
|
|
315
|
+
: (0, generator_js_1.stripEnclosingCodeFence)(answer).trim();
|
|
316
|
+
if (!revised) {
|
|
317
|
+
return { skipped: "the model answered with nothing, so the file was left as it was" };
|
|
318
|
+
}
|
|
319
|
+
const written = withNote(document, revised);
|
|
320
|
+
return written === undefined ? { skipped: UNREADABLE_PAGE } : written;
|
|
321
|
+
}
|
|
322
|
+
/** Take the revised files into the session, one step back always available. */
|
|
323
|
+
commit(revised) {
|
|
324
|
+
const changed = this.documents.filter((document) => revised.get(document.path) !== undefined
|
|
325
|
+
&& revised.get(document.path) !== document.content);
|
|
326
|
+
if (changed.length === 0)
|
|
327
|
+
return;
|
|
328
|
+
this.history.push(new Map(this.documents.map((document) => [document.path, document.content])));
|
|
329
|
+
for (const document of changed) {
|
|
330
|
+
document.content = revised.get(document.path);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
exports.PromptSession = PromptSession;
|
|
335
|
+
// ─────────────────────────────────────────
|
|
336
|
+
// Reading what was asked for
|
|
337
|
+
// ─────────────────────────────────────────
|
|
338
|
+
/**
|
|
339
|
+
* Read the front desk's answer.
|
|
340
|
+
*
|
|
341
|
+
* An answer that is not the object asked for means the message was not placed,
|
|
342
|
+
* and the message itself becomes the request: a session where a malformed
|
|
343
|
+
* answer stopped the work would be worse than one that simply tries the
|
|
344
|
+
* revision, which reports for itself whether it changed anything.
|
|
345
|
+
*/
|
|
346
|
+
function readSessionAction(answer, message) {
|
|
347
|
+
const parsed = SessionActionSchema.safeParse(parseJsonObject((0, generator_js_1.stripEnclosingCodeFence)(answer)));
|
|
348
|
+
if (!parsed.success)
|
|
349
|
+
return { action: "revise", instruction: message, reply: "" };
|
|
350
|
+
return {
|
|
351
|
+
action: parsed.data.action,
|
|
352
|
+
// A revision with nothing to do is the message as it was typed: the front
|
|
353
|
+
// desk placed it, so its own words still say what to do.
|
|
354
|
+
instruction: parsed.data.instruction?.trim() || message,
|
|
355
|
+
reply: parsed.data.reply?.trim() || "",
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
/** The JSON object an answer carries, wherever in the answer it sits. */
|
|
359
|
+
function parseJsonObject(answer) {
|
|
360
|
+
const start = answer.indexOf("{");
|
|
361
|
+
const end = answer.lastIndexOf("}");
|
|
362
|
+
if (start < 0 || end <= start)
|
|
363
|
+
return undefined;
|
|
364
|
+
try {
|
|
365
|
+
return JSON.parse(answer.slice(start, end + 1));
|
|
366
|
+
}
|
|
367
|
+
catch {
|
|
368
|
+
return undefined;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
// ─────────────────────────────────────────
|
|
372
|
+
// Finding what to revise
|
|
373
|
+
// ─────────────────────────────────────────
|
|
374
|
+
/** The files one configured output holds for the environment being revised. */
|
|
375
|
+
async function findFiles(pattern, options, config) {
|
|
376
|
+
if ((0, output_path_js_1.isReleaseSpecificPath)(pattern)) {
|
|
377
|
+
const releases = await (0, output_path_js_1.discoverReleases)(pattern, {
|
|
378
|
+
environment: options.environment,
|
|
379
|
+
language: options.language,
|
|
380
|
+
});
|
|
381
|
+
return releases.filter((release) => covers(release, options.fromVersion, options.toVersion));
|
|
382
|
+
}
|
|
383
|
+
// A path naming no version holds every release in one file, so it is not a
|
|
384
|
+
// release and no range names it. Asked for a range, it is left out; asked for
|
|
385
|
+
// an environment, it is one more file to revise.
|
|
386
|
+
if (options.fromVersion || options.toVersion)
|
|
387
|
+
return [];
|
|
388
|
+
const languages = options.language
|
|
389
|
+
? [options.language]
|
|
390
|
+
: (config.prompt?.languages ?? []);
|
|
391
|
+
const paths = pattern.includes("{lang}")
|
|
392
|
+
? languages.map((language) => ({
|
|
393
|
+
path: (0, output_path_js_1.formatOutputPath)(pattern, { environment: options.environment, language }),
|
|
394
|
+
language: (0, output_path_js_1.normalizeLanguage)(language),
|
|
395
|
+
}))
|
|
396
|
+
: [{ path: (0, output_path_js_1.formatOutputPath)(pattern, { environment: options.environment }) }];
|
|
397
|
+
return paths
|
|
398
|
+
.filter((candidate) => !candidate.path.includes("{") && (0, fs_1.existsSync)((0, path_1.resolve)(candidate.path)))
|
|
399
|
+
.map((candidate) => ({ ...candidate, path: (0, path_1.resolve)(candidate.path) }));
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Whether a release falls inside the range asked for.
|
|
403
|
+
*
|
|
404
|
+
* A file naming both ends of what it covers is placed by both; one naming only
|
|
405
|
+
* where it arrived is placed by that, which is the most its own name says.
|
|
406
|
+
*/
|
|
407
|
+
function covers(release, fromVersion, toVersion) {
|
|
408
|
+
if (fromVersion) {
|
|
409
|
+
const startsInRange = release.fromVersion
|
|
410
|
+
? (0, promote_js_1.compareVersions)(release.fromVersion, fromVersion) >= 0
|
|
411
|
+
: (0, promote_js_1.compareVersions)(release.toVersion, fromVersion) > 0;
|
|
412
|
+
if (!startsInRange)
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
return !toVersion || (0, promote_js_1.compareVersions)(release.toVersion, toVersion) <= 0;
|
|
416
|
+
}
|
|
417
|
+
async function readDocument(found, format, template) {
|
|
418
|
+
const content = await (0, promises_1.readFile)(found.path, "utf-8");
|
|
419
|
+
const document = {
|
|
420
|
+
path: found.path,
|
|
421
|
+
format,
|
|
422
|
+
language: found.language,
|
|
423
|
+
fromVersion: found.fromVersion,
|
|
424
|
+
toVersion: found.toVersion,
|
|
425
|
+
saved: content,
|
|
426
|
+
content,
|
|
427
|
+
template,
|
|
428
|
+
};
|
|
429
|
+
if (noteOf(document) === undefined)
|
|
430
|
+
document.unrevisable = UNREADABLE_PAGE;
|
|
431
|
+
return document;
|
|
432
|
+
}
|
|
433
|
+
// ─────────────────────────────────────────
|
|
434
|
+
// A file, and the release note inside it
|
|
435
|
+
// ─────────────────────────────────────────
|
|
436
|
+
/**
|
|
437
|
+
* The words a request acts on.
|
|
438
|
+
*
|
|
439
|
+
* A Markdown output is the release note; an HTML output is a whole page, and
|
|
440
|
+
* only the note on it is ever sent or replaced, so the page keeps its head, its
|
|
441
|
+
* styles, its footer and the values the template filled in when it was written.
|
|
442
|
+
*/
|
|
443
|
+
function noteOf(document) {
|
|
444
|
+
if (document.format !== "html")
|
|
445
|
+
return document.content;
|
|
446
|
+
// Reading the note is not enough: it has to be possible to put one back.
|
|
447
|
+
return (0, release_document_js_1.replaceReleaseContent)(document.content, "", document.template) === undefined
|
|
448
|
+
? undefined
|
|
449
|
+
: (0, release_document_js_1.extractReleaseContent)(document.content, document.template);
|
|
450
|
+
}
|
|
451
|
+
/** The file as it reads once its release note is revised. */
|
|
452
|
+
function withNote(document, note) {
|
|
453
|
+
return document.format === "html"
|
|
454
|
+
? (0, release_document_js_1.replaceReleaseContent)(document.content, note, document.template)
|
|
455
|
+
: `${note.trim()}\n`;
|
|
456
|
+
}
|
|
457
|
+
function unchanged(document, skipped) {
|
|
458
|
+
return {
|
|
459
|
+
path: document.path,
|
|
460
|
+
before: document.content,
|
|
461
|
+
after: document.content,
|
|
462
|
+
changed: false,
|
|
463
|
+
skipped,
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
function rangeDescription(fromVersion, toVersion) {
|
|
467
|
+
if (fromVersion && toVersion)
|
|
468
|
+
return ` between ${fromVersion} and ${toVersion}`;
|
|
469
|
+
if (fromVersion)
|
|
470
|
+
return ` from ${fromVersion} onwards`;
|
|
471
|
+
if (toVersion)
|
|
472
|
+
return ` up to ${toVersion}`;
|
|
473
|
+
return "";
|
|
474
|
+
}
|
|
475
|
+
function emptyUsage() {
|
|
476
|
+
return { inputTokens: 0, outputTokens: 0, totalTokens: 0, modelCalls: 0, durationMs: 0 };
|
|
477
|
+
}
|
|
478
|
+
function addUsage(total, usage) {
|
|
479
|
+
total.inputTokens += usage.inputTokens;
|
|
480
|
+
total.outputTokens += usage.outputTokens;
|
|
481
|
+
total.totalTokens += usage.totalTokens;
|
|
482
|
+
total.modelCalls += 1;
|
|
483
|
+
}
|
|
484
|
+
//# sourceMappingURL=prompt-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-session.js","sourceRoot":"","sources":["../src/prompt-session.ts"],"names":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,EAAE,CAAC;AAC3F,CAAC;AAED,SAAS,QAAQ,CACf,KAAsB,EACtB,KAAyE;IAEzE,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,CAAC;IACvC,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,YAAY,CAAC;IACzC,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,WAAW,CAAC;IACvC,KAAK,CAAC,UAAU,IAAI,CAAC,CAAC;AACxB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Prompt builder — fully customizable via config
|
|
3
3
|
*/
|
|
4
|
+
import type { ReleaseFormat } from "../release-document.js";
|
|
4
5
|
import type { ParsedCommit, PromptConfig, PromptSource, ContextFile, InstructionsConfig } from "../types.js";
|
|
5
6
|
/**
|
|
6
7
|
* The scope guard opens every system prompt, including a fully custom one.
|
|
@@ -17,6 +18,29 @@ export declare function resolvePromptSource(source?: PromptSource): Promise<stri
|
|
|
17
18
|
export declare function resolveInstructions(instructions?: InstructionsConfig): Promise<string>;
|
|
18
19
|
/** Build the system prompt used to translate an already-generated release note. */
|
|
19
20
|
export declare function buildTranslationSystemPrompt(language: string, instructions?: string): Promise<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Build the system prompt that reads what someone asked for and says what it is.
|
|
23
|
+
*
|
|
24
|
+
* It sees the message and the state of the session, never a release note, so
|
|
25
|
+
* nothing untrusted reaches it: the message is what the person running the
|
|
26
|
+
* command typed themselves.
|
|
27
|
+
*/
|
|
28
|
+
export declare function buildSessionRouterSystemPrompt(): Promise<string>;
|
|
29
|
+
/** Build the user prompt for one message at the desk, session state included. */
|
|
30
|
+
export declare function buildSessionRouterUserPrompt(params: {
|
|
31
|
+
message: string;
|
|
32
|
+
environment: string;
|
|
33
|
+
openFiles: number;
|
|
34
|
+
unsavedFiles: number;
|
|
35
|
+
canUndo: boolean;
|
|
36
|
+
}): string;
|
|
37
|
+
/**
|
|
38
|
+
* Build the system prompt used to revise an already-generated release note.
|
|
39
|
+
*
|
|
40
|
+
* The project's writing rules travel with the request, so an instruction asking
|
|
41
|
+
* for the note to be formatted "according to the instructions" has them to hand.
|
|
42
|
+
*/
|
|
43
|
+
export declare function buildEditSystemPrompt(instructions?: string): Promise<string>;
|
|
20
44
|
/**
|
|
21
45
|
* Build the system prompt from config or use a default.
|
|
22
46
|
*
|
|
@@ -38,4 +62,57 @@ export declare function buildUserPrompt(params: {
|
|
|
38
62
|
language?: string;
|
|
39
63
|
template?: string;
|
|
40
64
|
}): string;
|
|
65
|
+
/**
|
|
66
|
+
* Build the system prompt that writes one opening for several merged releases.
|
|
67
|
+
*
|
|
68
|
+
* The project's writing rules travel with it: the opening is the part of a
|
|
69
|
+
* release note a project is most likely to have rules about — how its heading
|
|
70
|
+
* reads, what its metadata line carries, and what belongs in its summary.
|
|
71
|
+
*/
|
|
72
|
+
export declare function buildPromoteOpeningSystemPrompt(instructions?: string): Promise<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Build the user prompt holding the openings to fold into one.
|
|
75
|
+
*
|
|
76
|
+
* Each opening is the tool's own earlier output, written from changelog text
|
|
77
|
+
* nobody reviewed, so they travel in a data block like any other material.
|
|
78
|
+
*/
|
|
79
|
+
export declare function buildPromoteOpeningUserPrompt(params: {
|
|
80
|
+
/** The opening of each promoted release, oldest first. */
|
|
81
|
+
openings: Array<{
|
|
82
|
+
fromVersion: string;
|
|
83
|
+
toVersion: string;
|
|
84
|
+
content: string;
|
|
85
|
+
}>;
|
|
86
|
+
format: ReleaseFormat;
|
|
87
|
+
/** The environment the range is promoted to. */
|
|
88
|
+
environment: string;
|
|
89
|
+
/** The version the whole range starts from. */
|
|
90
|
+
fromVersion: string;
|
|
91
|
+
/** The version the whole range ends at. */
|
|
92
|
+
toVersion: string;
|
|
93
|
+
/** The date of the promotion. */
|
|
94
|
+
date: string;
|
|
95
|
+
projectName?: string;
|
|
96
|
+
language?: string;
|
|
97
|
+
}): string;
|
|
98
|
+
/**
|
|
99
|
+
* Build the user prompt that asks for one revision of one release note.
|
|
100
|
+
*
|
|
101
|
+
* The request comes from whoever is running the command, so it is the one thing
|
|
102
|
+
* here that is meant to be obeyed. The release note is the tool's own earlier
|
|
103
|
+
* output, written from changelog text nobody reviewed, so it travels in a data
|
|
104
|
+
* block like any other material.
|
|
105
|
+
*/
|
|
106
|
+
export declare function buildEditUserPrompt(params: {
|
|
107
|
+
/** What the person running the command asked for, in their own words. */
|
|
108
|
+
instruction: string;
|
|
109
|
+
/** The release note as it stands. */
|
|
110
|
+
document: string;
|
|
111
|
+
format: ReleaseFormat;
|
|
112
|
+
projectName?: string;
|
|
113
|
+
environment?: string;
|
|
114
|
+
fromVersion?: string;
|
|
115
|
+
toVersion?: string;
|
|
116
|
+
language?: string;
|
|
117
|
+
}): string;
|
|
41
118
|
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/prompts/builder.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAIrB;;;;;;;GAOG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAEtD;AAED,qDAAqD;AACrD,wBAAsB,mBAAmB,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAShF;AAED,uEAAuE;AACvE,wBAAsB,mBAAmB,CACvC,YAAY,CAAC,EAAE,kBAAkB,GAChC,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED,mFAAmF;AACnF,wBAAsB,4BAA4B,CAChD,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,CAajB;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,CAAC,EAAE,YAAY,GA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