@sellable/install 0.1.913 → 0.1.914
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 +4 -4
- package/container/README.md +1 -1
- package/lib/sellable-agent/fly-admin-image/Dockerfile +8 -0
- package/lib/sellable-agent/fly-customer-image/Dockerfile +9 -1
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +1 -1
- 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 +1 -1
- package/lib/sellable-agent/host-worker.mjs +1 -1
- package/lib/sellable-agent/profile-materializer.mjs +1 -1
- package/lib/sellable-agent/provisioning-adapter.mjs +1 -1
- package/package.json +1 -1
package/container/Dockerfile
CHANGED
|
@@ -3,12 +3,12 @@ FROM ${HERMES_IMAGE}
|
|
|
3
3
|
|
|
4
4
|
USER root
|
|
5
5
|
|
|
6
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
6
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.914
|
|
7
7
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.1033
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
9
|
ARG MCP_INTEGRITY=sha512-d01fFKmJLQIBHBXA5FsWn7lOeX3igg6xh58x10VDLWfqwg1OLzsbaI43UHpUWYQzAsnN+Qivdyk2YYkoNhElEw==
|
|
10
10
|
|
|
11
|
-
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.
|
|
11
|
+
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.914" \
|
|
12
12
|
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.1033" \
|
|
13
13
|
&& test -n "${INSTALLER_INTEGRITY}" \
|
|
14
14
|
&& test "$(npm view "${INSTALLER_PACKAGE}" dist.integrity)" = "${INSTALLER_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.914' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.1033') 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.914', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.1033', 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.914` is
|
|
7
7
|
published:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
@@ -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 \
|
|
@@ -8,7 +8,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright
|
|
|
8
8
|
|
|
9
9
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.1033
|
|
10
10
|
ARG MCP_INTEGRITY=sha512-d01fFKmJLQIBHBXA5FsWn7lOeX3igg6xh58x10VDLWfqwg1OLzsbaI43UHpUWYQzAsnN+Qivdyk2YYkoNhElEw==
|
|
11
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
11
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.914
|
|
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,7 +135,7 @@ 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.914";
|
|
139
139
|
const MCP_PACKAGE =
|
|
140
140
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
141
141
|
"@sellable/mcp@0.1.1033";
|
|
@@ -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,7 +39,7 @@ 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.
|
|
42
|
+
"@sellable/install@0.1.914";
|
|
43
43
|
const MCP_PACKAGE = "@sellable/mcp@0.1.1033";
|
|
44
44
|
const HERMES_VERSION = "0.18.0";
|
|
45
45
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
@@ -1547,7 +1547,7 @@ 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.914" ||
|
|
1551
1551
|
pinned.mcpPackage !==
|
|
1552
1552
|
"@sellable/mcp@0.1.1033" ||
|
|
1553
1553
|
!Array.isArray(policy.toolInclude) ||
|
|
@@ -318,7 +318,7 @@ function validateDesired(desired) {
|
|
|
318
318
|
desired.hermesCli !== "hermes" ||
|
|
319
319
|
desired.hermesVersion !== "0.18.0" ||
|
|
320
320
|
desired.installerPackage !==
|
|
321
|
-
"@sellable/install@0.1.
|
|
321
|
+
"@sellable/install@0.1.914" ||
|
|
322
322
|
desired.mcpPackage !== "@sellable/mcp@0.1.1033" ||
|
|
323
323
|
!Array.isArray(desired.toolInclude) ||
|
|
324
324
|
desired.toolInclude.length === 0 ||
|
|
@@ -26,7 +26,7 @@ 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.914";
|
|
30
30
|
export const PINNED_MCP_PACKAGE =
|
|
31
31
|
"@sellable/mcp@0.1.1033";
|
|
32
32
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|