@sellable/install 0.1.913 → 0.1.915-wip.persist11.20261120.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-admin-image/Dockerfile +8 -0
- package/lib/sellable-agent/fly-customer-image/Dockerfile +11 -3
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +2 -2
- package/lib/sellable-agent/hermes-bridge.mjs +205 -3
- package/lib/sellable-agent/hermes-memory-snapshot.mjs +12 -5
- package/lib/sellable-agent/hermes-web-runtime-check.py +128 -0
- 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 +2 -2
- package/lib/sellable-agent/provisioning-adapter.mjs +2 -2
- package/lib/sellable-agent/public-skills.json +1 -1
- package/package.json +1 -1
- package/skill-templates/first-campaign-onboarding.md +48 -38
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.915-wip.persist11.20261120.1
|
|
7
|
+
ARG MCP_PACKAGE=@sellable/mcp@0.1.1034-wip.persist11.20261120.1
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
|
-
ARG MCP_INTEGRITY=sha512-
|
|
9
|
+
ARG MCP_INTEGRITY=sha512-xylnEdy4myvS9gJDsaQURx5zBBhQdpeddSCqJq9iyFEXWgYwRAKlkUTbzL++x302o6oele3IjW3bhNpbg+ILYQ==
|
|
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.915-wip.persist11.20261120.1" \
|
|
12
|
+
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.1034-wip.persist11.20261120.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.913" \
|
|
|
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.915-wip.persist11.20261120.1' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.1034-wip.persist11.20261120.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.915-wip.persist11.20261120.1', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.1034-wip.persist11.20261120.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.915-wip.persist11.20261120.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.1034-wip.persist11.20261120.1";
|
|
32
32
|
const SAFE_COMPONENT = /^[A-Za-z0-9@._+-]+$/;
|
|
33
33
|
const HERMES_EXCLUDES = new Set([".git", ".playwright", "node_modules"]);
|
|
34
34
|
|
|
@@ -38,6 +38,7 @@ ARG TUS_JS_CLIENT_VERSION=4.3.1
|
|
|
38
38
|
ARG YAML_VERSION=2.9.0
|
|
39
39
|
ARG SLACK_SDK_VERSION=3.43.0
|
|
40
40
|
ARG DDGS_VERSION=9.16.1
|
|
41
|
+
ARG BROWSER_USE_VERSION=1.0.6
|
|
41
42
|
ARG AGENT_BROWSER_VERSION=0.26.0
|
|
42
43
|
ARG PLAYWRIGHT_VERSION=1.63.0
|
|
43
44
|
ARG PLAYWRIGHT_BROWSER_REVISION=1243
|
|
@@ -140,6 +141,9 @@ RUN --mount=type=secret,id=admin_install_tarball,required=false \
|
|
|
140
141
|
uv pip install --python /opt/hermes/.venv/bin/python --no-cache "ddgs==${DDGS_VERSION}"; \
|
|
141
142
|
test "$(/opt/hermes/.venv/bin/python -c "import importlib.metadata; print(importlib.metadata.version('ddgs'))")" = "${DDGS_VERSION}"; \
|
|
142
143
|
/opt/hermes/.venv/bin/python -c "from ddgs import DDGS"; \
|
|
144
|
+
UV_TOOL_DIR=/opt/sellable-uv-tools UV_TOOL_BIN_DIR=/usr/local/bin UV_PYTHON_DOWNLOADS=never \
|
|
145
|
+
uv tool install --no-cache --python /usr/bin/python3 "browser-use==${BROWSER_USE_VERSION}"; \
|
|
146
|
+
test "$(/usr/local/bin/browser-use --version | cut -d ' ' -f 2)" = "${BROWSER_USE_VERSION}"; \
|
|
143
147
|
test -f /usr/local/lib/sellable-agent/admin-artifact/node_modules/@sellable/install/lib/sellable-agent/admin-runtime-reconciler.mjs; \
|
|
144
148
|
test -f /usr/local/lib/sellable-agent/admin-artifact/node_modules/@sellable/admin-mcp/dist/index.js; \
|
|
145
149
|
node -e 'const p=require("/usr/local/lib/sellable-agent/admin-artifact/node_modules/@sellable/admin-mcp/package.json"); if(p.main!=="dist/index.js" || p.bin?.["sellable-admin-mcp"]!=="dist/index.js") process.exit(1);'; \
|
|
@@ -228,6 +232,7 @@ COPY model-auth-canary-reseed.mjs /usr/local/lib/sellable-agent/model-auth-canar
|
|
|
228
232
|
COPY model-health-reporter.mjs /usr/local/lib/sellable-agent/model-health-reporter.mjs
|
|
229
233
|
COPY hermes-bridge.mjs /usr/local/lib/sellable-agent/hermes-bridge.mjs
|
|
230
234
|
COPY hermes-memory-snapshot.mjs /usr/local/lib/sellable-agent/hermes-memory-snapshot.mjs
|
|
235
|
+
COPY hermes-web-runtime-check.py /usr/local/lib/sellable-agent/hermes-web-runtime-check.py
|
|
231
236
|
COPY fly-soul-bridge.mjs /usr/local/lib/sellable-agent/fly-soul-bridge.mjs
|
|
232
237
|
COPY fly-soul-bridge-exec.mjs /usr/local/lib/sellable-agent/fly-soul-bridge-exec.mjs
|
|
233
238
|
COPY fly-exec-staging.mjs /usr/local/lib/sellable-agent/fly-exec-staging.mjs
|
|
@@ -264,6 +269,9 @@ RUN set -eux; \
|
|
|
264
269
|
&& node --input-type=module -e \
|
|
265
270
|
'import { installHermesAgentBridge, HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT } from "/usr/local/lib/sellable-agent/hermes-bridge.mjs"; installHermesAgentBridge({ sourceRoot: "/opt/hermes", contract: HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT });' \
|
|
266
271
|
&& PYTHONPATH=/opt/hermes /opt/hermes/.venv/bin/python -c 'from plugins.platforms.slack.adapter import _session_status_method; from slack_sdk.web.async_client import AsyncWebClient; assert _session_status_method(AsyncWebClient()).__name__ == "assistant_threads_setStatus", "Hermes Slack typing API compatibility changed; verify before upgrading"' \
|
|
272
|
+
&& /opt/hermes/.venv/bin/python /usr/local/lib/sellable-agent/hermes-web-runtime-check.py \
|
|
273
|
+
"$(node --input-type=module -e 'import { HERMES_SELLABLE_WEB_POLICY } from "/usr/local/lib/sellable-agent/hermes-memory-snapshot.mjs"; process.stdout.write(JSON.stringify(HERMES_SELLABLE_WEB_POLICY));')" \
|
|
274
|
+
"${BROWSER_USE_VERSION}" \
|
|
267
275
|
&& node --input-type=module -e \
|
|
268
276
|
'await import("/usr/local/lib/sellable-agent/fly-runtime-identity.mjs");' \
|
|
269
277
|
&& node --input-type=module -e \
|
|
@@ -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.1034-wip.persist11.20261120.1
|
|
10
|
+
ARG MCP_INTEGRITY=sha512-xylnEdy4myvS9gJDsaQURx5zBBhQdpeddSCqJq9iyFEXWgYwRAKlkUTbzL++x302o6oele3IjW3bhNpbg+ILYQ==
|
|
11
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.915-wip.persist11.20261120.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
|
|
@@ -17,6 +17,7 @@ ARG WS_VERSION=8.18.3
|
|
|
17
17
|
ARG HERMES_VERSION=0.21.5
|
|
18
18
|
ARG SLACK_SDK_VERSION=3.43.0
|
|
19
19
|
ARG DDGS_VERSION=9.16.1
|
|
20
|
+
ARG BROWSER_USE_VERSION=1.0.6
|
|
20
21
|
ARG AGENT_BROWSER_VERSION=0.26.0
|
|
21
22
|
ARG TIRITH_VERSION=0.3.3
|
|
22
23
|
ARG PLAYWRIGHT_VERSION=1.63.0
|
|
@@ -75,6 +76,9 @@ RUN --mount=type=secret,id=mcp_trust_root,required=true \
|
|
|
75
76
|
&& uv pip install --python /opt/hermes/.venv/bin/python --no-cache "ddgs==${DDGS_VERSION}" \
|
|
76
77
|
&& test "$(/opt/hermes/.venv/bin/python -c "import importlib.metadata; print(importlib.metadata.version('ddgs'))")" = "${DDGS_VERSION}" \
|
|
77
78
|
&& /opt/hermes/.venv/bin/python -c "from ddgs import DDGS" \
|
|
79
|
+
&& UV_TOOL_DIR=/opt/sellable-uv-tools UV_TOOL_BIN_DIR=/usr/local/bin UV_PYTHON_DOWNLOADS=never \
|
|
80
|
+
uv tool install --no-cache --python /usr/bin/python3 "browser-use==${BROWSER_USE_VERSION}" \
|
|
81
|
+
&& test "$(/usr/local/bin/browser-use --version | cut -d ' ' -f 2)" = "${BROWSER_USE_VERSION}" \
|
|
78
82
|
&& curl --fail --silent --show-error --location \
|
|
79
83
|
--retry 5 --retry-delay 2 --retry-all-errors \
|
|
80
84
|
"https://github.com/sheeki03/tirith/releases/download/v${TIRITH_VERSION}/tirith-x86_64-unknown-linux-gnu.tar.gz" \
|
|
@@ -96,6 +100,7 @@ COPY abandoned-runtime-scratch.mjs /usr/local/lib/sellable-agent/abandoned-runti
|
|
|
96
100
|
COPY hermes-first-welcome.mjs /usr/local/lib/sellable-agent/hermes-first-welcome.mjs
|
|
97
101
|
COPY default-profile-native-proof.mjs /usr/local/lib/sellable-agent/default-profile-native-proof.mjs
|
|
98
102
|
COPY managed-auth-client.mjs managed-auth-supervisor.py /usr/local/lib/sellable-agent/
|
|
103
|
+
COPY hermes-web-runtime-check.py /usr/local/lib/sellable-agent/hermes-web-runtime-check.py
|
|
99
104
|
COPY public-skills.mjs public-skills.json /usr/local/lib/sellable-agent/
|
|
100
105
|
COPY default-profile-bundles/shared/ /usr/local/lib/sellable-agent/default-profile-bundles/shared/
|
|
101
106
|
COPY default-profile-bundles/customer/ /usr/local/lib/sellable-agent/default-profile-bundles/customer/
|
|
@@ -127,6 +132,9 @@ RUN set -eux; \
|
|
|
127
132
|
&& node --input-type=module -e \
|
|
128
133
|
'import { installHermesAgentBridge, HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT } from "/usr/local/lib/sellable-agent/hermes-bridge.mjs"; installHermesAgentBridge({ sourceRoot: "/opt/hermes", contract: HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT });' \
|
|
129
134
|
&& PYTHONPATH=/opt/hermes /opt/hermes/.venv/bin/python -c 'from plugins.platforms.slack.adapter import _session_status_method; from slack_sdk.web.async_client import AsyncWebClient; assert _session_status_method(AsyncWebClient()).__name__ == "assistant_threads_setStatus", "Hermes Slack typing API compatibility changed; verify before upgrading"' \
|
|
135
|
+
&& /opt/hermes/.venv/bin/python /usr/local/lib/sellable-agent/hermes-web-runtime-check.py \
|
|
136
|
+
"$(node --input-type=module -e 'import { HERMES_SELLABLE_WEB_POLICY } from "/usr/local/lib/sellable-agent/hermes-memory-snapshot.mjs"; process.stdout.write(JSON.stringify(HERMES_SELLABLE_WEB_POLICY));')" \
|
|
137
|
+
"${BROWSER_USE_VERSION}" \
|
|
130
138
|
&& node --input-type=module -e \
|
|
131
139
|
'await import("/usr/local/lib/sellable-agent/fly-runtime-identity.mjs");' \
|
|
132
140
|
&& node --input-type=module -e \
|
|
@@ -135,10 +135,10 @@ const BOOT_SESSION_ID = randomUUID();
|
|
|
135
135
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.21.5";
|
|
136
136
|
const INSTALLER_PACKAGE =
|
|
137
137
|
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ??
|
|
138
|
-
"@sellable/install@0.1.
|
|
138
|
+
"@sellable/install@0.1.915-wip.persist11.20261120.1";
|
|
139
139
|
const MCP_PACKAGE =
|
|
140
140
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
141
|
-
"@sellable/mcp@0.1.
|
|
141
|
+
"@sellable/mcp@0.1.1034-wip.persist11.20261120.1";
|
|
142
142
|
export const ENDPOINT_MAX_CONCURRENT_RUNS = 10;
|
|
143
143
|
const DEFAULT_PROFILE_BUNDLE_ROOT =
|
|
144
144
|
"/usr/local/share/sellable-agent/default-profile-bundle";
|
|
@@ -1227,10 +1227,204 @@ def _sellable_agent_preflight_model_providers():
|
|
|
1227
1227
|
logger.warning("Sellable provider preflight worker failed")
|
|
1228
1228
|
`;
|
|
1229
1229
|
|
|
1230
|
+
// Round 11 of the first-campaign onboarding (2026-11-20): the Sellable
|
|
1231
|
+
// render tool posts the customer's message itself (`post: true`), because on
|
|
1232
|
+
// GPT-6.2 the agent rendered the exact sample and then posted its own version
|
|
1233
|
+
// of it. The turn's final text right after that post is the model's copy or
|
|
1234
|
+
// summary of a message the customer already has, so the gateway does not
|
|
1235
|
+
// deliver it, and the silence marker (or an empty reply) after a post is
|
|
1236
|
+
// accepted on a user turn instead of the "returned only a silence marker"
|
|
1237
|
+
// warning. Only this turn's own render-tool results with the receipt count.
|
|
1238
|
+
const POSTED_REPLY_HELPER_NEEDLE = `_UNEXPECTED_SILENCE_REPLY = (
|
|
1239
|
+
"⚠️ The model returned only a silence marker for a message that needed a reply. "
|
|
1240
|
+
"Try again or rephrase."
|
|
1241
|
+
)
|
|
1242
|
+
`;
|
|
1243
|
+
const POSTED_REPLY_HELPER = String.raw`${POSTED_REPLY_HELPER_NEEDLE}
|
|
1244
|
+
|
|
1245
|
+
# ${HERMES_AGENT_BRIDGE_MARKER}: the Sellable render tool posted this turn's reply itself.
|
|
1246
|
+
import re as _sellable_agent_re
|
|
1247
|
+
_SELLABLE_AGENT_POSTED_RECEIPT = _sellable_agent_re.compile(r"\bSELLABLE_POSTED kind=[a-z_]+ ts=\d")
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
def _sellable_agent_turn_posted(agent_result):
|
|
1251
|
+
"""Whether the Sellable render tool posted a message itself in this turn.
|
|
1252
|
+
|
|
1253
|
+
"last": its post is the turn's last tool result, or only customer_program bookkeeping
|
|
1254
|
+
followed it, so a final text is the model's own copy or summary of a message the customer
|
|
1255
|
+
already has. "earlier": a post happened before other tool work. None: no post, or a
|
|
1256
|
+
failed turn. Only this turn counts (after its last user message), and only the render tool's
|
|
1257
|
+
own results, never text another tool returned.
|
|
1258
|
+
"""
|
|
1259
|
+
try:
|
|
1260
|
+
if not isinstance(agent_result, dict) or agent_result.get("failed"):
|
|
1261
|
+
return None
|
|
1262
|
+
messages = agent_result.get("messages") or []
|
|
1263
|
+
start = 0
|
|
1264
|
+
for index in range(len(messages) - 1, -1, -1):
|
|
1265
|
+
message = messages[index]
|
|
1266
|
+
if isinstance(message, dict) and message.get("role") == "user":
|
|
1267
|
+
start = index + 1
|
|
1268
|
+
break
|
|
1269
|
+
posted = False
|
|
1270
|
+
after_post = []
|
|
1271
|
+
for message in messages[start:]:
|
|
1272
|
+
if not isinstance(message, dict) or message.get("role") != "tool":
|
|
1273
|
+
continue
|
|
1274
|
+
name = str(message.get("name") or message.get("tool_name") or "")
|
|
1275
|
+
content = message.get("content")
|
|
1276
|
+
text = content if isinstance(content, str) else json.dumps(content, default=str)
|
|
1277
|
+
if (
|
|
1278
|
+
name.startswith("mcp_")
|
|
1279
|
+
and "sellable" in name
|
|
1280
|
+
and name.endswith("render_first_campaign_message")
|
|
1281
|
+
and _SELLABLE_AGENT_POSTED_RECEIPT.search(text or "")
|
|
1282
|
+
):
|
|
1283
|
+
posted = True
|
|
1284
|
+
after_post = []
|
|
1285
|
+
elif posted:
|
|
1286
|
+
after_post.append(name)
|
|
1287
|
+
if not posted:
|
|
1288
|
+
return None
|
|
1289
|
+
if all(name.endswith("customer_program") for name in after_post):
|
|
1290
|
+
return "last"
|
|
1291
|
+
return "earlier"
|
|
1292
|
+
except Exception:
|
|
1293
|
+
return None
|
|
1294
|
+
`;
|
|
1295
|
+
const POSTED_REPLY_SHAPE_NEEDLE = ` _intentional_silence = self._is_intentional_silence(agent_result, response)
|
|
1296
|
+
# A queued (/queue) chain's TERMINAL turn owns the silence verdict, not the event that
|
|
1297
|
+
# opened the chain: an internal follow-up may go silent, a human one must not.
|
|
1298
|
+
_silence_kind = agent_result.get("queued_terminal_display_kind", persist_user_display_kind)
|
|
1299
|
+
if _intentional_silence and not is_machinery_display_kind(_silence_kind):
|
|
1300
|
+
`;
|
|
1301
|
+
const POSTED_REPLY_SHAPE = ` _intentional_silence = self._is_intentional_silence(agent_result, response)
|
|
1302
|
+
# ${HERMES_AGENT_BRIDGE_MARKER}: when the Sellable render tool posted this turn's reply
|
|
1303
|
+
# itself, a final text written right after it is never delivered (it would double the
|
|
1304
|
+
# message), and the silence marker or an empty reply is accepted on a user turn.
|
|
1305
|
+
_sellable_posted = _sellable_agent_turn_posted(agent_result)
|
|
1306
|
+
if _sellable_posted and not _intentional_silence and (
|
|
1307
|
+
_sellable_posted == "last"
|
|
1308
|
+
or not str(response or "").strip()
|
|
1309
|
+
or response == "(empty)"
|
|
1310
|
+
):
|
|
1311
|
+
logger.info(
|
|
1312
|
+
"Sellable posted the reply itself: not delivering the %d-char final text of session %s",
|
|
1313
|
+
len(str(response or "")), session_entry.session_id,
|
|
1314
|
+
)
|
|
1315
|
+
_intentional_silence = True
|
|
1316
|
+
# A queued (/queue) chain's TERMINAL turn owns the silence verdict, not the event that
|
|
1317
|
+
# opened the chain: an internal follow-up may go silent, a human one must not.
|
|
1318
|
+
_silence_kind = agent_result.get("queued_terminal_display_kind", persist_user_display_kind)
|
|
1319
|
+
if _intentional_silence and not is_machinery_display_kind(_silence_kind) and not _sellable_posted:
|
|
1320
|
+
`;
|
|
1321
|
+
|
|
1322
|
+
// The same round: a note the model writes next to a tool call is posted to
|
|
1323
|
+
// Slack as its own message (interim commentary). GPT-6.2 wrote each
|
|
1324
|
+
// first-campaign message as such a note (round 10, Nov 19), so next to a post
|
|
1325
|
+
// by the Sellable render tool, or after one in the same customer turn, the
|
|
1326
|
+
// note would double the message or add one the customer never needed. A
|
|
1327
|
+
// customer message during the run (a steer) does not open a new turn here.
|
|
1328
|
+
const POSTED_COMMENTARY_HELPER_NEEDLE = `logger = logging.getLogger("agent.conversation_loop")
|
|
1329
|
+
`;
|
|
1330
|
+
const POSTED_COMMENTARY_HELPER = String.raw`${POSTED_COMMENTARY_HELPER_NEEDLE}
|
|
1331
|
+
|
|
1332
|
+
# ${HERMES_AGENT_BRIDGE_MARKER}: the Sellable render tool posts the customer's messages itself.
|
|
1333
|
+
import json as _sellable_agent_json
|
|
1334
|
+
import re as _sellable_agent_re
|
|
1335
|
+
_SELLABLE_AGENT_RENDER_TOOL = "render_first_campaign_message"
|
|
1336
|
+
_SELLABLE_AGENT_POSTED_RECEIPT = _sellable_agent_re.compile(r"\bSELLABLE_POSTED kind=[a-z_]+ ts=\d")
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
def _sellable_agent_arguments(value):
|
|
1340
|
+
if isinstance(value, str):
|
|
1341
|
+
try:
|
|
1342
|
+
value = _sellable_agent_json.loads(value)
|
|
1343
|
+
except Exception:
|
|
1344
|
+
return {}
|
|
1345
|
+
return value if isinstance(value, dict) else {}
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
def _sellable_agent_posting_call(assistant_msg):
|
|
1349
|
+
"""True when this assistant message asks the Sellable render tool to post (post: true),
|
|
1350
|
+
directly or through the deferred-tool tool_call wrapper."""
|
|
1351
|
+
for call in (assistant_msg or {}).get("tool_calls") or []:
|
|
1352
|
+
function = call.get("function") if isinstance(call, dict) else getattr(call, "function", None)
|
|
1353
|
+
if isinstance(function, dict):
|
|
1354
|
+
name, raw = str(function.get("name") or ""), function.get("arguments")
|
|
1355
|
+
else:
|
|
1356
|
+
name, raw = str(getattr(function, "name", "") or ""), getattr(function, "arguments", None)
|
|
1357
|
+
arguments = _sellable_agent_arguments(raw)
|
|
1358
|
+
inner = [arguments] if name.endswith(_SELLABLE_AGENT_RENDER_TOOL) else []
|
|
1359
|
+
if name == "tool_call":
|
|
1360
|
+
inner = [
|
|
1361
|
+
_sellable_agent_arguments(item.get("arguments"))
|
|
1362
|
+
for item in (arguments.get("calls") or [])
|
|
1363
|
+
if isinstance(item, dict) and str(item.get("name") or "").endswith(_SELLABLE_AGENT_RENDER_TOOL)
|
|
1364
|
+
]
|
|
1365
|
+
if any(item.get("post") is True for item in inner):
|
|
1366
|
+
return True
|
|
1367
|
+
return False
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
def _sellable_agent_quiet_commentary(assistant_msg, messages):
|
|
1371
|
+
"""Commentary next to a Sellable post, or after one in this customer turn, is not shown."""
|
|
1372
|
+
try:
|
|
1373
|
+
if _sellable_agent_posting_call(assistant_msg):
|
|
1374
|
+
return True
|
|
1375
|
+
for message in reversed(messages or []):
|
|
1376
|
+
if not isinstance(message, dict):
|
|
1377
|
+
continue
|
|
1378
|
+
if message.get("role") == "user" and message.get("display_kind") != "steer":
|
|
1379
|
+
return False
|
|
1380
|
+
if message.get("role") != "tool":
|
|
1381
|
+
continue
|
|
1382
|
+
name = str(message.get("name") or message.get("tool_name") or "")
|
|
1383
|
+
content = message.get("content")
|
|
1384
|
+
text = content if isinstance(content, str) else _sellable_agent_json.dumps(content, default=str)
|
|
1385
|
+
if name.endswith(_SELLABLE_AGENT_RENDER_TOOL) and _SELLABLE_AGENT_POSTED_RECEIPT.search(text or ""):
|
|
1386
|
+
return True
|
|
1387
|
+
return False
|
|
1388
|
+
except Exception:
|
|
1389
|
+
return False
|
|
1390
|
+
`;
|
|
1391
|
+
const POSTED_COMMENTARY_EMIT_NEEDLE = ` if not duplicate_previous_interim:
|
|
1392
|
+
agent._emit_interim_assistant_message(assistant_msg)
|
|
1393
|
+
`;
|
|
1394
|
+
const POSTED_COMMENTARY_EMIT = ` # ${HERMES_AGENT_BRIDGE_MARKER}: no note next to or after a Sellable post in this turn.
|
|
1395
|
+
if not duplicate_previous_interim and _sellable_agent_quiet_commentary(assistant_msg, messages):
|
|
1396
|
+
with suppress(Exception):
|
|
1397
|
+
_sellable_quiet_chars = sum(
|
|
1398
|
+
len(str(part).strip())
|
|
1399
|
+
for part in agent._extract_codex_interim_visible_parts(assistant_msg)
|
|
1400
|
+
or [assistant_msg.get("content") or ""]
|
|
1401
|
+
)
|
|
1402
|
+
if _sellable_quiet_chars:
|
|
1403
|
+
logger.info(
|
|
1404
|
+
"Sellable posts this turn's messages itself: not showing %d chars of commentary",
|
|
1405
|
+
_sellable_quiet_chars,
|
|
1406
|
+
)
|
|
1407
|
+
elif not duplicate_previous_interim:
|
|
1408
|
+
agent._emit_interim_assistant_message(assistant_msg)
|
|
1409
|
+
`;
|
|
1410
|
+
|
|
1230
1411
|
// Customers talk to "Sellable Agent"; Hermes' own chat text names Hermes and
|
|
1231
1412
|
// points at terminal commands they cannot run. Each kind applies its base
|
|
1232
1413
|
// patch (if the file already has one) and then these exact replacements.
|
|
1233
1414
|
const SELLABLE_AGENT_COPY_PATCHES = {
|
|
1415
|
+
"tool-round-posted-commentary-v0215": {
|
|
1416
|
+
replacements: [
|
|
1417
|
+
[POSTED_COMMENTARY_HELPER_NEEDLE, POSTED_COMMENTARY_HELPER],
|
|
1418
|
+
[POSTED_COMMENTARY_EMIT_NEEDLE, POSTED_COMMENTARY_EMIT],
|
|
1419
|
+
],
|
|
1420
|
+
},
|
|
1421
|
+
"gateway-posted-reply-v0215": {
|
|
1422
|
+
base: "gateway-first-contact-v0213",
|
|
1423
|
+
replacements: [
|
|
1424
|
+
[POSTED_REPLY_HELPER_NEEDLE, POSTED_REPLY_HELPER],
|
|
1425
|
+
[POSTED_REPLY_SHAPE_NEEDLE, POSTED_REPLY_SHAPE],
|
|
1426
|
+
],
|
|
1427
|
+
},
|
|
1234
1428
|
"gateway-session-copy-v0215": {
|
|
1235
1429
|
base: "gateway-session-v021",
|
|
1236
1430
|
replacements: [
|
|
@@ -3103,11 +3297,11 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
|
|
|
3103
3297
|
},
|
|
3104
3298
|
{
|
|
3105
3299
|
path: "gateway/run_turn.py",
|
|
3106
|
-
patchKind: "gateway-
|
|
3300
|
+
patchKind: "gateway-posted-reply-v0215",
|
|
3107
3301
|
sourceSha256:
|
|
3108
3302
|
"5bdee5c82c00e02f664516f9da0af99674e23493ec2a30eff06cb03afc6718a0",
|
|
3109
3303
|
patchedSha256:
|
|
3110
|
-
"
|
|
3304
|
+
"7744348b2960d3f82a9458dec1576621899601ee51e3b1488ba8bcf802459f66",
|
|
3111
3305
|
},
|
|
3112
3306
|
{
|
|
3113
3307
|
path: "gateway/run_turn_runner.py",
|
|
@@ -3189,6 +3383,14 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
|
|
|
3189
3383
|
patchedSha256:
|
|
3190
3384
|
"bcfb14a60cd4cf7a0b958de1fed997abf752cffe6b32051f04ddd4ab29da7ca7",
|
|
3191
3385
|
},
|
|
3386
|
+
{
|
|
3387
|
+
path: "agent/turn_tool_round.py",
|
|
3388
|
+
patchKind: "tool-round-posted-commentary-v0215",
|
|
3389
|
+
sourceSha256:
|
|
3390
|
+
"45d55ae294290398f48ed2b333f67c50817ea5360f43a4ba2252ad7e758002fc",
|
|
3391
|
+
patchedSha256:
|
|
3392
|
+
"860462b3458d0947abb3c64ae486c4a37ae8d3cc20f4e8ad32ed2b2426e2400b",
|
|
3393
|
+
},
|
|
3192
3394
|
{
|
|
3193
3395
|
path: "run_agent.py",
|
|
3194
3396
|
patchKind: "run-agent-halt-copy-v0215",
|
|
@@ -3199,7 +3401,7 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
|
|
|
3199
3401
|
},
|
|
3200
3402
|
],
|
|
3201
3403
|
contractDigest:
|
|
3202
|
-
"
|
|
3404
|
+
"7d1bfe17fd439ce966be25421e779c61d38e1319795138f34555c3c6676a8ed4",
|
|
3203
3405
|
});
|
|
3204
3406
|
|
|
3205
3407
|
function assertRelativeContractPath(path) {
|
|
@@ -521,16 +521,23 @@ export function applyHermesSellableBusyDisplayPolicy(document) {
|
|
|
521
521
|
* `free` tier sends page URLs, and nothing else, to Exa's public endpoint,
|
|
522
522
|
* failing over to Parallel, Firecrawl and Keenable's public endpoints only
|
|
523
523
|
* when Exa throttles. No key is sent and no prospect data is involved.
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
*
|
|
524
|
+
*
|
|
525
|
+
* Search stays DuckDuckGo-first. When a DuckDuckGo search errors or finds
|
|
526
|
+
* nothing, Hermes retries that one search once through the same keyless tier
|
|
527
|
+
* (owner, 2026-11-20): the query goes anonymously to Exa's public endpoint,
|
|
528
|
+
* and on to Parallel, Firecrawl and Keenable only if Exa throttles it. The
|
|
529
|
+
* answer is marked `rescued_from: ddgs` and is never cached, so the next
|
|
530
|
+
* search tries DuckDuckGo again. Hermes allows that rescue only while
|
|
531
|
+
* `keyless_fallback` is on. Its other use, a keyless backend when none is
|
|
532
|
+
* configured or loads, never runs here: both backends are named, and every
|
|
533
|
+
* image build proves they resolve (hermes-web-runtime-check.py).
|
|
527
534
|
*/
|
|
528
535
|
export const HERMES_SELLABLE_WEB_POLICY = Object.freeze({
|
|
529
536
|
backend: "ddgs",
|
|
530
537
|
extract_backend: "exa",
|
|
531
538
|
provider_tier: Object.freeze({ exa: "free" }),
|
|
532
|
-
keyless_fallback:
|
|
533
|
-
keyless_rescue:
|
|
539
|
+
keyless_fallback: true,
|
|
540
|
+
keyless_rescue: true,
|
|
534
541
|
});
|
|
535
542
|
|
|
536
543
|
/**
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"""Build-time proof that the baked Hermes runs the hosted web and browser policy.
|
|
2
|
+
|
|
3
|
+
Both runtime images run this after the Hermes bridge is installed:
|
|
4
|
+
|
|
5
|
+
python hermes-web-runtime-check.py '<HERMES_SELLABLE_WEB_POLICY as JSON>' <browser-use version>
|
|
6
|
+
|
|
7
|
+
It never touches the network: the DuckDuckGo worker and the keyless vendors are
|
|
8
|
+
replaced by recorders, and everything between them is Hermes's own code. It proves:
|
|
9
|
+
|
|
10
|
+
* web_search resolves to ddgs and web_extract to Exa's free keyless tier;
|
|
11
|
+
* a DuckDuckGo success is never rescued;
|
|
12
|
+
* a DuckDuckGo miss ("No results found") or error is rescued exactly once,
|
|
13
|
+
through the keyless tier starting at Exa, and the answer says so;
|
|
14
|
+
* web_extract on the keyless tier is never rescued a second time;
|
|
15
|
+
* Hermes finds the pinned /usr/local/bin/browser-use before any uvx fallback.
|
|
16
|
+
|
|
17
|
+
Any mismatch exits non-zero and fails the image build.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import json
|
|
21
|
+
import os
|
|
22
|
+
import subprocess
|
|
23
|
+
import sys
|
|
24
|
+
import tempfile
|
|
25
|
+
import types
|
|
26
|
+
|
|
27
|
+
POLICY = json.loads(sys.argv[1])
|
|
28
|
+
BROWSER_USE_VERSION = sys.argv[2]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def fail(message):
|
|
32
|
+
sys.stderr.write(f"hermes_web_runtime_check_failed: {message}\n")
|
|
33
|
+
sys.exit(1)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
home = tempfile.mkdtemp(prefix="hermes-web-check-")
|
|
37
|
+
with open(os.path.join(home, "config.yaml"), "w", encoding="utf-8") as handle:
|
|
38
|
+
json.dump({"web": POLICY}, handle)
|
|
39
|
+
os.environ["HERMES_HOME"] = home
|
|
40
|
+
os.environ["HOME"] = home
|
|
41
|
+
sys.path.insert(0, "/opt/hermes")
|
|
42
|
+
os.chdir("/opt/hermes")
|
|
43
|
+
|
|
44
|
+
from tools import web_tools # noqa: E402
|
|
45
|
+
from tools.web_tools_rescue import _rescue_eligible # noqa: E402
|
|
46
|
+
import plugins.web.ddgs.provider as ddgs_provider # noqa: E402
|
|
47
|
+
import plugins.web.keyless_mcp as keyless # noqa: E402
|
|
48
|
+
|
|
49
|
+
if web_tools._get_search_backend() != "ddgs":
|
|
50
|
+
fail(f"search backend is {web_tools._get_search_backend()!r}, not ddgs")
|
|
51
|
+
if web_tools._get_extract_backend() != "exa":
|
|
52
|
+
fail(f"extract backend is {web_tools._get_extract_backend()!r}, not exa")
|
|
53
|
+
if not keyless.use_keyless("exa", ""):
|
|
54
|
+
fail("exa does not run on its free keyless tier")
|
|
55
|
+
|
|
56
|
+
tiers = POLICY.get("provider_tier") or {}
|
|
57
|
+
expected_ring = [v for v in keyless._KEYLESS_RING if tiers.get(v) != "paid"]
|
|
58
|
+
ring = keyless._ring_order("ddgs")
|
|
59
|
+
if not ring or ring[0] != "exa" or ring != expected_ring:
|
|
60
|
+
fail(f"a ddgs rescue would walk {ring}, expected {expected_ring} starting at exa")
|
|
61
|
+
|
|
62
|
+
rescues = []
|
|
63
|
+
vendor_calls = []
|
|
64
|
+
real_search_with_failover = keyless.search_with_failover
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def counted_search_with_failover(name, query, limit=5):
|
|
68
|
+
rescues.append(name)
|
|
69
|
+
return real_search_with_failover(name, query, limit)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
keyless.search_with_failover = counted_search_with_failover
|
|
73
|
+
for vendor in keyless._KEYLESS_RING:
|
|
74
|
+
keyless._KEYLESS_SEARCHERS[vendor] = (
|
|
75
|
+
lambda query, limit, _vendor=vendor: vendor_calls.append(_vendor)
|
|
76
|
+
or {"success": True, "data": {"web": [
|
|
77
|
+
{"title": _vendor, "url": f"https://{_vendor}.example/", "description": "", "position": 1}
|
|
78
|
+
]}}
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
ddgs_provider._run_ddgs_search_bounded = lambda query, limit: [
|
|
82
|
+
{"title": "ddgs", "url": "https://ddgs.example/", "description": "", "position": 1}
|
|
83
|
+
]
|
|
84
|
+
ok = json.loads(web_tools.web_search_tool("hermes web check hit", limit=3))
|
|
85
|
+
if not ok.get("success") or rescues or vendor_calls or (ok.get("data") or {}).get("rescued_from"):
|
|
86
|
+
fail(f"a DuckDuckGo success was rescued: {ok} {rescues} {vendor_calls}")
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def no_results(query, limit):
|
|
90
|
+
raise RuntimeError("No results found.")
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def broken(query, limit):
|
|
94
|
+
raise TimeoutError("ddgs worker timed out")
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
for label, ddgs_failure in (("miss", no_results), ("error", broken)):
|
|
98
|
+
rescues.clear()
|
|
99
|
+
vendor_calls.clear()
|
|
100
|
+
ddgs_provider._run_ddgs_search_bounded = ddgs_failure
|
|
101
|
+
rescued = json.loads(web_tools.web_search_tool(f"hermes web check {label}", limit=3))
|
|
102
|
+
data = rescued.get("data") or {}
|
|
103
|
+
if rescues != ["ddgs"] or vendor_calls != ["exa"]:
|
|
104
|
+
fail(f"a DuckDuckGo {label} made rescues {rescues} through {vendor_calls}, expected one through exa")
|
|
105
|
+
if not rescued.get("success") or data.get("rescued_from") != "ddgs":
|
|
106
|
+
fail(f"the rescued {label} search did not report its rescue: {rescued}")
|
|
107
|
+
|
|
108
|
+
if _rescue_eligible(types.SimpleNamespace(name="exa")):
|
|
109
|
+
fail("a keyless Exa extract failure would be rescued a second time")
|
|
110
|
+
|
|
111
|
+
from tools.browser_use_cli import _find_cli, is_browser_use_cli_mode # noqa: E402
|
|
112
|
+
|
|
113
|
+
cli = _find_cli()
|
|
114
|
+
if cli != ["/usr/local/bin/browser-use"]:
|
|
115
|
+
fail(f"Hermes resolves the browser-use CLI to {cli!r}, not the pinned binary")
|
|
116
|
+
if not is_browser_use_cli_mode():
|
|
117
|
+
fail("Browser Use CLI mode is off")
|
|
118
|
+
|
|
119
|
+
version = subprocess.run(
|
|
120
|
+
["/usr/local/bin/browser-use", "--version"], capture_output=True, text=True, timeout=60
|
|
121
|
+
).stdout.split()
|
|
122
|
+
if len(version) < 2 or version[0] != "browser-use" or version[1] != BROWSER_USE_VERSION:
|
|
123
|
+
fail(f"browser-use --version is {version!r}, expected {BROWSER_USE_VERSION}")
|
|
124
|
+
|
|
125
|
+
print(
|
|
126
|
+
f"hermes web runtime check: search ddgs, extract exa free, one rescue via {ring} on a ddgs miss, "
|
|
127
|
+
f"browser-use {BROWSER_USE_VERSION} at /usr/local/bin"
|
|
128
|
+
)
|
|
@@ -39,8 +39,8 @@ 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
41
|
const INSTALLER_PACKAGE =
|
|
42
|
-
"@sellable/install@0.1.
|
|
43
|
-
const MCP_PACKAGE = "@sellable/mcp@0.1.
|
|
42
|
+
"@sellable/install@0.1.915-wip.persist11.20261120.1";
|
|
43
|
+
const MCP_PACKAGE = "@sellable/mcp@0.1.1034-wip.persist11.20261120.1";
|
|
44
44
|
const HERMES_VERSION = "0.18.0";
|
|
45
45
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
46
46
|
const SHA256_16 = /^[a-f0-9]{16}$/;
|
|
@@ -1547,9 +1547,9 @@ export function compileClaimToProfileDesired(activeClaim, config) {
|
|
|
1547
1547
|
pinned.hermesCli !== "hermes" ||
|
|
1548
1548
|
pinned.hermesVersion !== "0.18.0" ||
|
|
1549
1549
|
pinned.installerPackage !==
|
|
1550
|
-
"@sellable/install@0.1.
|
|
1550
|
+
"@sellable/install@0.1.915-wip.persist11.20261120.1" ||
|
|
1551
1551
|
pinned.mcpPackage !==
|
|
1552
|
-
"@sellable/mcp@0.1.
|
|
1552
|
+
"@sellable/mcp@0.1.1034-wip.persist11.20261120.1" ||
|
|
1553
1553
|
!Array.isArray(policy.toolInclude) ||
|
|
1554
1554
|
policy.toolInclude.length === 0 ||
|
|
1555
1555
|
!Number.isSafeInteger(slack.generation) ||
|
|
@@ -318,8 +318,8 @@ function validateDesired(desired) {
|
|
|
318
318
|
desired.hermesCli !== "hermes" ||
|
|
319
319
|
desired.hermesVersion !== "0.18.0" ||
|
|
320
320
|
desired.installerPackage !==
|
|
321
|
-
"@sellable/install@0.1.
|
|
322
|
-
desired.mcpPackage !== "@sellable/mcp@0.1.
|
|
321
|
+
"@sellable/install@0.1.915-wip.persist11.20261120.1" ||
|
|
322
|
+
desired.mcpPackage !== "@sellable/mcp@0.1.1034-wip.persist11.20261120.1" ||
|
|
323
323
|
!Array.isArray(desired.toolInclude) ||
|
|
324
324
|
desired.toolInclude.length === 0 ||
|
|
325
325
|
desired.toolInclude.some((tool) => !/^[a-z][a-z0-9_]{0,127}$/.test(tool)) ||
|
|
@@ -26,9 +26,9 @@ import { deriveContainedProfileId } from "./profile-materializer.mjs";
|
|
|
26
26
|
|
|
27
27
|
export const PROVISIONING_ACTION = "PROVISION_HERMES_PROFILE";
|
|
28
28
|
export const PINNED_INSTALL_PACKAGE =
|
|
29
|
-
"@sellable/install@0.1.
|
|
29
|
+
"@sellable/install@0.1.915-wip.persist11.20261120.1";
|
|
30
30
|
export const PINNED_MCP_PACKAGE =
|
|
31
|
-
"@sellable/mcp@0.1.
|
|
31
|
+
"@sellable/mcp@0.1.1034-wip.persist11.20261120.1";
|
|
32
32
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|
|
33
33
|
PINNED_INSTALL_PACKAGE.lastIndexOf("@") + 1
|
|
34
34
|
);
|