@sellable/install 0.1.838 → 0.1.840-wip.agentyolo.20261015.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/container/Dockerfile +7 -7
- package/container/README.md +1 -1
- package/lib/sellable-agent/external-runtime-builder.mjs +1 -1
- package/lib/sellable-agent/fly-customer-image/Dockerfile +3 -3
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +2 -2
- package/lib/sellable-agent/hermes-bridge.mjs +58 -1
- package/lib/sellable-agent/host-bootstrap.mjs +2 -2
- package/lib/sellable-agent/host-worker.mjs +2 -2
- package/lib/sellable-agent/profile-materializer.mjs +8 -2
- package/lib/sellable-agent/provisioning-adapter.mjs +2 -2
- package/package.json +1 -1
package/container/Dockerfile
CHANGED
|
@@ -3,13 +3,13 @@ FROM ${HERMES_IMAGE}
|
|
|
3
3
|
|
|
4
4
|
USER root
|
|
5
5
|
|
|
6
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
7
|
-
ARG MCP_PACKAGE=@sellable/mcp@0.1.
|
|
6
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.840-wip.agentyolo.20261015.1
|
|
7
|
+
ARG MCP_PACKAGE=@sellable/mcp@0.1.984-wip.agentyolo.20261015.1
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
|
-
ARG MCP_INTEGRITY=sha512-
|
|
9
|
+
ARG MCP_INTEGRITY=sha512-1ZoWLanSu7EQZHGfRJfKep70DdcrKwEB8V8htIX/UO+pTrI5klBrheblPUvllBjAaQ0LieT9/v9LKPiex+4brg==
|
|
10
10
|
|
|
11
|
-
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.
|
|
12
|
-
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.
|
|
11
|
+
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.840-wip.agentyolo.20261015.1" \
|
|
12
|
+
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.984-wip.agentyolo.20261015.1" \
|
|
13
13
|
&& test -n "${INSTALLER_INTEGRITY}" \
|
|
14
14
|
&& test "$(npm view "${INSTALLER_PACKAGE}" dist.integrity)" = "${INSTALLER_INTEGRITY}" \
|
|
15
15
|
&& test "$(npm view "${MCP_PACKAGE}" dist.integrity)" = "${MCP_INTEGRITY}" \
|
|
@@ -23,9 +23,9 @@ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.838" \
|
|
|
23
23
|
&& mkdir -p /opt/sellable-agent/install-root /opt/sellable-agent/mcp-root \
|
|
24
24
|
&& npm install --prefix /opt/sellable-agent/install-root --omit=dev --ignore-scripts --no-audit --no-fund "${INSTALLER_PACKAGE}" \
|
|
25
25
|
&& npm install --prefix /opt/sellable-agent/mcp-root --omit=dev --ignore-scripts --no-audit --no-fund "${MCP_PACKAGE}" \
|
|
26
|
-
&& node --input-type=module -e "import { readFileSync } from 'node:fs'; const install = JSON.parse(readFileSync('/opt/sellable-agent/install-root/node_modules/@sellable/install/package.json')); const mcp = JSON.parse(readFileSync('/opt/sellable-agent/mcp-root/node_modules/@sellable/mcp/package.json')); if (install.name !== '@sellable/install' || install.version !== '0.1.
|
|
26
|
+
&& node --input-type=module -e "import { readFileSync } from 'node:fs'; const install = JSON.parse(readFileSync('/opt/sellable-agent/install-root/node_modules/@sellable/install/package.json')); const mcp = JSON.parse(readFileSync('/opt/sellable-agent/mcp-root/node_modules/@sellable/mcp/package.json')); if (install.name !== '@sellable/install' || install.version !== '0.1.840-wip.agentyolo.20261015.1' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.984-wip.agentyolo.20261015.1') throw new Error('package identity rejected');" \
|
|
27
27
|
&& node --input-type=module -e "import { buildExternalRuntimeClosure } from '/opt/sellable-agent/install-root/node_modules/@sellable/install/lib/sellable-agent/external-runtime-builder.mjs'; const built = buildExternalRuntimeClosure({ mcpPackageRoot: '/opt/sellable-agent/mcp-root/node_modules/@sellable/mcp', mcpNodeModulesRoot: '/opt/sellable-agent/mcp-root/node_modules', hermesSourceRoot: '/opt/hermes', ownerUid: 0, ownerGid: 0 }); if (!built.closureDigest) throw new Error('runtime closure rejected');" \
|
|
28
|
-
&& node --input-type=module -e "import { chmodSync, writeFileSync } from 'node:fs'; const release = { installerPackage: '@sellable/install@0.1.
|
|
28
|
+
&& node --input-type=module -e "import { chmodSync, writeFileSync } from 'node:fs'; const release = { installerPackage: '@sellable/install@0.1.840-wip.agentyolo.20261015.1', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.984-wip.agentyolo.20261015.1', mcpIntegrity: process.argv[2] }; writeFileSync('/opt/sellable-agent/release.json', JSON.stringify(release) + '\\n', { mode: 0o444 }); chmodSync('/opt/sellable-agent/release.json', 0o444);" "${INSTALLER_INTEGRITY}" "${MCP_INTEGRITY}" \
|
|
29
29
|
&& npm cache clean --force
|
|
30
30
|
|
|
31
31
|
COPY entrypoint.sh /usr/local/bin/sellable-agent-container-entrypoint
|
package/container/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
This image is a dedicated Agent worker/runtime boundary beside an existing Hermes dashboard. It never replaces or reconfigures the dashboard container.
|
|
4
4
|
|
|
5
5
|
Build from this directory after
|
|
6
|
-
`@sellable/install@0.1.
|
|
6
|
+
`@sellable/install@0.1.840-wip.agentyolo.20261015.1` is
|
|
7
7
|
published:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
|
|
29
29
|
const MANIFEST_VERSION = "sellable-agent-external-runtime-closure/v1";
|
|
30
30
|
const MCP_PACKAGE = "@sellable/mcp";
|
|
31
|
-
const MCP_VERSION = "0.1.
|
|
31
|
+
const MCP_VERSION = "0.1.984-wip.agentyolo.20261015.1";
|
|
32
32
|
const SAFE_COMPONENT = /^[A-Za-z0-9@._+-]+$/;
|
|
33
33
|
const HERMES_EXCLUDES = new Set([".git", ".playwright", "node_modules"]);
|
|
34
34
|
|
|
@@ -6,9 +6,9 @@ USER root
|
|
|
6
6
|
|
|
7
7
|
ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright
|
|
8
8
|
|
|
9
|
-
ARG MCP_PACKAGE=@sellable/mcp@0.1.
|
|
10
|
-
ARG MCP_INTEGRITY=sha512-
|
|
11
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
9
|
+
ARG MCP_PACKAGE=@sellable/mcp@0.1.984-wip.agentyolo.20261015.1
|
|
10
|
+
ARG MCP_INTEGRITY=sha512-1ZoWLanSu7EQZHGfRJfKep70DdcrKwEB8V8htIX/UO+pTrI5klBrheblPUvllBjAaQ0LieT9/v9LKPiex+4brg==
|
|
11
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.840-wip.agentyolo.20261015.1
|
|
12
12
|
ARG ADMIN_MCP_PACKAGE=@sellable/admin-mcp@0.1.202
|
|
13
13
|
ARG ADMIN_MCP_INTEGRITY=sha512-ym3aye/0vQ8tfULJlKz9JFOxvIQsl1G+n3np+TTgK/tecwNblBo/j3AkTnRqH9iomKzPbZzP+n4tEQsvsU8ByA==
|
|
14
14
|
ARG TUS_JS_CLIENT_VERSION=4.3.1
|
|
@@ -133,10 +133,10 @@ const RUNTIME_GENERATION = Number(
|
|
|
133
133
|
const BOOT_SESSION_ID = randomUUID();
|
|
134
134
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.21.5";
|
|
135
135
|
const INSTALLER_PACKAGE =
|
|
136
|
-
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.
|
|
136
|
+
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.840-wip.agentyolo.20261015.1";
|
|
137
137
|
const MCP_PACKAGE =
|
|
138
138
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
139
|
-
"@sellable/mcp@0.1.
|
|
139
|
+
"@sellable/mcp@0.1.984-wip.agentyolo.20261015.1";
|
|
140
140
|
export const ENDPOINT_MAX_CONCURRENT_RUNS = 10;
|
|
141
141
|
const DEFAULT_PROFILE_BUNDLE_ROOT =
|
|
142
142
|
"/usr/local/share/sellable-agent/default-profile-bundle";
|
|
@@ -1504,6 +1504,55 @@ def _sellable_assert_opener_stage_tools(stage, agent, model_options=None):
|
|
|
1504
1504
|
return patched;
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
|
+
if (patchKind === "terminal-foreground-modifiers-v0215") {
|
|
1508
|
+
// Models fill schema defaults (heartbeat: 60) into every terminal call.
|
|
1509
|
+
// Upstream refuses those background-only modifiers on a foreground call,
|
|
1510
|
+
// the model resends the identical call, and Hermes halts the whole turn.
|
|
1511
|
+
// A foreground call now ignores them; background calls are unchanged.
|
|
1512
|
+
return replaceExactlyOnce(
|
|
1513
|
+
source,
|
|
1514
|
+
[
|
|
1515
|
+
" # `notify` wins. Background-only modifiers on a foreground call fail",
|
|
1516
|
+
" # with the corrected call instead of being silently ignored.",
|
|
1517
|
+
' notify = args.get("notify")',
|
|
1518
|
+
' notify_on_complete = args.get("notify_on_complete", False)',
|
|
1519
|
+
' watch_patterns = args.get("watch_patterns")',
|
|
1520
|
+
' heartbeat = args.get("heartbeat") or 0',
|
|
1521
|
+
" if not isinstance(heartbeat, int) or isinstance(heartbeat, bool) or heartbeat < 0:",
|
|
1522
|
+
' return tool_error("heartbeat must be a whole number of seconds (min 60).")',
|
|
1523
|
+
' if not args.get("background", False):',
|
|
1524
|
+
" if notify or watch_patterns or notify_on_complete or heartbeat:",
|
|
1525
|
+
" return tool_error(",
|
|
1526
|
+
' "notify/heartbeat only apply to background commands (foreground "',
|
|
1527
|
+
' "results return directly). Either drop them, or run as "',
|
|
1528
|
+
' "terminal(command=..., background=true, notify=...)."',
|
|
1529
|
+
" )",
|
|
1530
|
+
' if args.get("pty", False):',
|
|
1531
|
+
"",
|
|
1532
|
+
].join("\n"),
|
|
1533
|
+
[
|
|
1534
|
+
" # `notify` wins.",
|
|
1535
|
+
' notify = args.get("notify")',
|
|
1536
|
+
' notify_on_complete = args.get("notify_on_complete", False)',
|
|
1537
|
+
' watch_patterns = args.get("watch_patterns")',
|
|
1538
|
+
' heartbeat = args.get("heartbeat") or 0',
|
|
1539
|
+
' if not args.get("background", False):',
|
|
1540
|
+
` # ${HERMES_AGENT_BRIDGE_MARKER}: a foreground call ignores the`,
|
|
1541
|
+
" # background-only modifiers instead of refusing them. Models fill",
|
|
1542
|
+
" # schema defaults (heartbeat=60) into every call, so the refusal made",
|
|
1543
|
+
" # them resend the identical call until identical_call_streak_halt",
|
|
1544
|
+
" # ended the turn. The foreground result returns directly anyway.",
|
|
1545
|
+
" notify, notify_on_complete, watch_patterns, heartbeat = None, False, None, 0",
|
|
1546
|
+
" if not isinstance(heartbeat, int) or isinstance(heartbeat, bool) or heartbeat < 0:",
|
|
1547
|
+
' return tool_error("heartbeat must be a whole number of seconds (min 60).")',
|
|
1548
|
+
' if not args.get("background", False):',
|
|
1549
|
+
' if args.get("pty", False):',
|
|
1550
|
+
"",
|
|
1551
|
+
].join("\n"),
|
|
1552
|
+
"v0.21.5 foreground terminal modifiers"
|
|
1553
|
+
);
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1507
1556
|
// Hermes 0.21 split configuration, MCP dispatch, and turn execution into
|
|
1508
1557
|
// separate modules. Keep the historical contracts intact for older images.
|
|
1509
1558
|
if (patchKind === "gateway-first-contact-v0213") {
|
|
@@ -3062,9 +3111,17 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
|
|
|
3062
3111
|
patchedSha256:
|
|
3063
3112
|
"74501e3f55091f27d089fae022a46888e34edb1cd348958565f086fa1c491fcd",
|
|
3064
3113
|
},
|
|
3114
|
+
{
|
|
3115
|
+
path: "tools/terminal_tool.py",
|
|
3116
|
+
patchKind: "terminal-foreground-modifiers-v0215",
|
|
3117
|
+
sourceSha256:
|
|
3118
|
+
"6eb6696b527c5bfc209195206db05331468cca061a30f5edbe00dbf9ba5b263d",
|
|
3119
|
+
patchedSha256:
|
|
3120
|
+
"bcfb14a60cd4cf7a0b958de1fed997abf752cffe6b32051f04ddd4ab29da7ca7",
|
|
3121
|
+
},
|
|
3065
3122
|
],
|
|
3066
3123
|
contractDigest:
|
|
3067
|
-
"
|
|
3124
|
+
"604b437e872d6484283057b0be3f34e72df2ab5a8664c9591eecb190faf4d908",
|
|
3068
3125
|
});
|
|
3069
3126
|
|
|
3070
3127
|
function assertRelativeContractPath(path) {
|
|
@@ -38,8 +38,8 @@ import { installAgentHostServices } from "./service-installer.mjs";
|
|
|
38
38
|
const PACKAGE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "../..");
|
|
39
39
|
const VERSION = "sellable-agent-host-bootstrap/v1";
|
|
40
40
|
const RECEIPT_VERSION = "sellable-agent-host-registration/v1";
|
|
41
|
-
const INSTALLER_PACKAGE = "@sellable/install@0.1.
|
|
42
|
-
const MCP_PACKAGE = "@sellable/mcp@0.1.
|
|
41
|
+
const INSTALLER_PACKAGE = "@sellable/install@0.1.840-wip.agentyolo.20261015.1";
|
|
42
|
+
const MCP_PACKAGE = "@sellable/mcp@0.1.984-wip.agentyolo.20261015.1";
|
|
43
43
|
const HERMES_VERSION = "0.18.0";
|
|
44
44
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
45
45
|
const SHA256_16 = /^[a-f0-9]{16}$/;
|
|
@@ -1546,9 +1546,9 @@ export function compileClaimToProfileDesired(activeClaim, config) {
|
|
|
1546
1546
|
]) ||
|
|
1547
1547
|
pinned.hermesCli !== "hermes" ||
|
|
1548
1548
|
pinned.hermesVersion !== "0.18.0" ||
|
|
1549
|
-
pinned.installerPackage !== "@sellable/install@0.1.
|
|
1549
|
+
pinned.installerPackage !== "@sellable/install@0.1.840-wip.agentyolo.20261015.1" ||
|
|
1550
1550
|
pinned.mcpPackage !==
|
|
1551
|
-
"@sellable/mcp@0.1.
|
|
1551
|
+
"@sellable/mcp@0.1.984-wip.agentyolo.20261015.1" ||
|
|
1552
1552
|
!Array.isArray(policy.toolInclude) ||
|
|
1553
1553
|
policy.toolInclude.length === 0 ||
|
|
1554
1554
|
!Number.isSafeInteger(slack.generation) ||
|
|
@@ -313,8 +313,9 @@ function validateDesired(desired) {
|
|
|
313
313
|
desired.serviceCredentialGeneration < 1 ||
|
|
314
314
|
desired.hermesCli !== "hermes" ||
|
|
315
315
|
desired.hermesVersion !== "0.18.0" ||
|
|
316
|
-
desired.installerPackage !==
|
|
317
|
-
|
|
316
|
+
desired.installerPackage !==
|
|
317
|
+
"@sellable/install@0.1.840-wip.agentyolo.20261015.1" ||
|
|
318
|
+
desired.mcpPackage !== "@sellable/mcp@0.1.984-wip.agentyolo.20261015.1" ||
|
|
318
319
|
!Array.isArray(desired.toolInclude) ||
|
|
319
320
|
desired.toolInclude.length === 0 ||
|
|
320
321
|
desired.toolInclude.some((tool) => !/^[a-z][a-z0-9_]{0,127}$/.test(tool)) ||
|
|
@@ -2635,7 +2636,12 @@ function nativeSlackCustomerFiles(desired, soulBytes = desired.soul) {
|
|
|
2635
2636
|
// Hermes engine warnings, such as "Tool guardrail halted terminal:
|
|
2636
2637
|
// identical_call_streak_halt", are diagnostics for us, not the customer.
|
|
2637
2638
|
// The agent's own reply explains what happened in the customer's thread.
|
|
2639
|
+
// A message the customer sends while the agent works ("status?", a
|
|
2640
|
+
// correction) is steered into the running turn. Hermes' default,
|
|
2641
|
+
// "interrupt", cancelled the run and restarted it from that message, so
|
|
2642
|
+
// CaseWhen's campaign build lost its work on every follow-up (2026-10-14).
|
|
2638
2643
|
display: {
|
|
2644
|
+
busy_input_mode: "steer",
|
|
2639
2645
|
platforms: { slack: { suppress_warning_notifications: true } },
|
|
2640
2646
|
},
|
|
2641
2647
|
// A full Sellable skill-prompt chunk (48,000 characters plus its JSON
|
|
@@ -25,9 +25,9 @@ import { fileURLToPath } from "node:url";
|
|
|
25
25
|
import { deriveContainedProfileId } from "./profile-materializer.mjs";
|
|
26
26
|
|
|
27
27
|
export const PROVISIONING_ACTION = "PROVISION_HERMES_PROFILE";
|
|
28
|
-
export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.
|
|
28
|
+
export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.840-wip.agentyolo.20261015.1";
|
|
29
29
|
export const PINNED_MCP_PACKAGE =
|
|
30
|
-
"@sellable/mcp@0.1.
|
|
30
|
+
"@sellable/mcp@0.1.984-wip.agentyolo.20261015.1";
|
|
31
31
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|
|
32
32
|
PINNED_INSTALL_PACKAGE.lastIndexOf("@") + 1
|
|
33
33
|
);
|