@staff0rd/assist 0.832.0 → 0.834.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/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.834.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -3318,7 +3318,8 @@ function toPreviewDecision(msg) {
|
|
|
3318
3318
|
autoMerge: msg.autoMerge === true,
|
|
3319
3319
|
autostart: msg.autostart === true,
|
|
3320
3320
|
selection: toSelection(msg.selection),
|
|
3321
|
-
checklist: toChecklist(msg.checklist)
|
|
3321
|
+
checklist: toChecklist(msg.checklist),
|
|
3322
|
+
dismissed: msg.dismissed === true
|
|
3322
3323
|
};
|
|
3323
3324
|
}
|
|
3324
3325
|
|
|
@@ -11745,7 +11746,7 @@ function createBundleHandler(importMetaUrl, bundlePath, contentType = "applicati
|
|
|
11745
11746
|
return (req, res) => {
|
|
11746
11747
|
const mtimeMs = statSync5(file).mtimeMs;
|
|
11747
11748
|
if (cache6?.mtimeMs !== mtimeMs) {
|
|
11748
|
-
const body = readFileSync23(file
|
|
11749
|
+
const body = readFileSync23(file);
|
|
11749
11750
|
const etag = `"${createHash("sha256").update(body).digest("hex").slice(0, 16)}"`;
|
|
11750
11751
|
cache6 = { body, etag, mtimeMs };
|
|
11751
11752
|
}
|
|
@@ -13923,6 +13924,10 @@ function getHtml() {
|
|
|
13923
13924
|
<meta charset="UTF-8">
|
|
13924
13925
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
13925
13926
|
<title>Assist</title>
|
|
13927
|
+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16.png">
|
|
13928
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
|
|
13929
|
+
<link rel="icon" type="image/png" sizes="128x128" href="/favicon-128.png">
|
|
13930
|
+
<link rel="apple-touch-icon" href="/favicon-128.png">
|
|
13926
13931
|
<link rel="stylesheet" href="/xterm.css">
|
|
13927
13932
|
<link rel="stylesheet" href="/bundle.css">
|
|
13928
13933
|
<style>
|
|
@@ -18260,6 +18265,11 @@ function createCssHandler(packageEntry) {
|
|
|
18260
18265
|
|
|
18261
18266
|
// src/commands/sessions/web/handleRequest.ts
|
|
18262
18267
|
var htmlHandler = createHtmlHandler(getHtml);
|
|
18268
|
+
var faviconHandler = (size) => createBundleHandler(
|
|
18269
|
+
import.meta.url,
|
|
18270
|
+
`commands/criteriaExtension/criteria-extension/icons/assist-${size}.png`,
|
|
18271
|
+
"image/png"
|
|
18272
|
+
);
|
|
18263
18273
|
var routes2 = {
|
|
18264
18274
|
"GET /": htmlHandler,
|
|
18265
18275
|
"GET /bundle.js": createBundleHandler(
|
|
@@ -18285,6 +18295,9 @@ var routes2 = {
|
|
|
18285
18295
|
"commands/sessions/web/monaco.css",
|
|
18286
18296
|
"text/css"
|
|
18287
18297
|
),
|
|
18298
|
+
"GET /favicon-16.png": faviconHandler(16),
|
|
18299
|
+
"GET /favicon-32.png": faviconHandler(32),
|
|
18300
|
+
"GET /favicon-128.png": faviconHandler(128),
|
|
18288
18301
|
"GET /api/health": health,
|
|
18289
18302
|
"GET /api/daemon-log": daemonLogTail,
|
|
18290
18303
|
"GET /api/items": listItems,
|
|
@@ -36100,6 +36113,10 @@ async function openHighLevelOverlay(sessionId, subject) {
|
|
|
36100
36113
|
},
|
|
36101
36114
|
{ rejectIsOutcome: true }
|
|
36102
36115
|
);
|
|
36116
|
+
if (decision.dismissed) {
|
|
36117
|
+
console.log("Review closed without a verdict. Nothing was saved.");
|
|
36118
|
+
return void 0;
|
|
36119
|
+
}
|
|
36103
36120
|
const record = buildHighLevelRecord(subject, decision);
|
|
36104
36121
|
const path109 = saveHighLevelReview(record);
|
|
36105
36122
|
console.log(`Verdict: ${record.verdict}`);
|
|
@@ -44945,7 +44962,8 @@ function decidePrPreview(sessions, waiters, notify2, d) {
|
|
|
44945
44962
|
draft: d.draft,
|
|
44946
44963
|
autoMerge: d.autoMerge,
|
|
44947
44964
|
autostart: d.autostart,
|
|
44948
|
-
checklist: d.checklist
|
|
44965
|
+
checklist: d.checklist,
|
|
44966
|
+
dismissed: d.dismissed
|
|
44949
44967
|
});
|
|
44950
44968
|
waiters.delete(id);
|
|
44951
44969
|
session.pendingPrPreview = void 0;
|