@staff0rd/assist 0.746.0 → 0.747.1
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.747.1",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -567,6 +567,7 @@ import { z as z3 } from "zod";
|
|
|
567
567
|
|
|
568
568
|
// src/shared/adviceFragmentNames.ts
|
|
569
569
|
var adviceFragmentTitles = {
|
|
570
|
+
ask: "Asking for sign-off",
|
|
570
571
|
"assist-global": "Using assist",
|
|
571
572
|
"backlog-ids": "Backlog item IDs",
|
|
572
573
|
"backlog-prs": "Backlog items, PRs, and commits",
|
|
@@ -583,6 +584,7 @@ var adviceFragmentTitles = {
|
|
|
583
584
|
verify: "Verifying a change"
|
|
584
585
|
};
|
|
585
586
|
var adviceFragmentNames = [
|
|
587
|
+
"ask",
|
|
586
588
|
"assist-global",
|
|
587
589
|
"backlog-ids",
|
|
588
590
|
"backlog-prs",
|
|
@@ -16535,12 +16537,12 @@ async function readRequestBuffer(req, limit) {
|
|
|
16535
16537
|
|
|
16536
16538
|
// src/commands/sessions/web/uploadSizeLimit.ts
|
|
16537
16539
|
var MAX_IMAGE_BYTES = 25 * 1024 * 1024;
|
|
16538
|
-
var MAX_VIDEO_BYTES =
|
|
16540
|
+
var MAX_VIDEO_BYTES = 100 * 1024 * 1024;
|
|
16539
16541
|
function uploadSizeLimit(contentType) {
|
|
16540
16542
|
const mime = contentType.split(";")[0].trim().toLowerCase();
|
|
16541
16543
|
return mime.startsWith("video/") ? {
|
|
16542
16544
|
maxBytes: MAX_VIDEO_BYTES,
|
|
16543
|
-
tooLargeMessage: "Video too large (max
|
|
16545
|
+
tooLargeMessage: "Video too large (max 100MB)."
|
|
16544
16546
|
} : {
|
|
16545
16547
|
maxBytes: MAX_IMAGE_BYTES,
|
|
16546
16548
|
tooLargeMessage: "Image too large (max 25MB)."
|