@sellable/install 0.1.698 → 0.1.700
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.
|
@@ -352,8 +352,11 @@ export function adminHomeLayout(profileHome) {
|
|
|
352
352
|
envPath: join(adminHome, ".env"),
|
|
353
353
|
lightfieldBin: join(binRoot, "lightfield"),
|
|
354
354
|
path: [
|
|
355
|
-
|
|
355
|
+
// Credential-aware Admin wrappers must resolve before their raw external
|
|
356
|
+
// binaries. `slack-pp-cli` in binRoot loads the profile's reviewed token;
|
|
357
|
+
// the image-owned .local binary is only its underlying executable.
|
|
356
358
|
binRoot,
|
|
359
|
+
join(profileHome, ".local", "bin"),
|
|
357
360
|
join(profileHome, ".slack", "bin"),
|
|
358
361
|
join(profileHome, ".venvs", "browser-use", "bin"),
|
|
359
362
|
"/opt/hermes/bin",
|
|
@@ -9,6 +9,7 @@ const MAX_RESPONSE_BYTES = 512 * 1024;
|
|
|
9
9
|
const MAX_INPUT_BYTES = 128 * 1024;
|
|
10
10
|
const MAX_INSTRUCTIONS_BYTES = 128 * 1024;
|
|
11
11
|
const MAX_HISTORY_BYTES = 128 * 1024;
|
|
12
|
+
const MAX_HISTORY_ITEM_BYTES = 48 * 1024;
|
|
12
13
|
const MAX_HISTORY_ITEMS = 64;
|
|
13
14
|
const MAX_EVENT_BYTES = 128 * 1024;
|
|
14
15
|
const MAX_CANONICAL_OUTPUT_BYTES = 48 * 1024;
|
|
@@ -182,7 +183,7 @@ function canonicalHistory(value) {
|
|
|
182
183
|
!exactObject(item) ||
|
|
183
184
|
!["user", "assistant"].includes(item.role) ||
|
|
184
185
|
typeof item.content !== "string" ||
|
|
185
|
-
bytes(item.content) >
|
|
186
|
+
bytes(item.content) > MAX_HISTORY_ITEM_BYTES ||
|
|
186
187
|
stableJson(Object.keys(item).sort()) !== stableJson(["content", "role"])
|
|
187
188
|
) {
|
|
188
189
|
throw new Error("hermes_runs_history_rejected");
|