@sellable/install 0.1.912 → 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 +46 -0
- package/lib/sellable-agent/fly-admin-image/admin-antigravity.mjs +134 -0
- package/lib/sellable-agent/fly-admin-image/admin-runtime.mjs +13 -1
- package/lib/sellable-agent/fly-admin-image/sellable-admin-antigravity +53 -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.912" \
|
|
|
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);'; \
|
|
@@ -154,6 +158,40 @@ RUN --mount=type=secret,id=admin_install_tarball,required=false \
|
|
|
154
158
|
/etc/cont-init.d/02-reconcile-profiles; \
|
|
155
159
|
npm cache clean --force
|
|
156
160
|
|
|
161
|
+
# Admin only: Google's agy CLI and the Hermes provider plugin that drives it,
|
|
162
|
+
# so the Admin can run on the Antigravity subscription (Gemini 4 Neon) ahead of
|
|
163
|
+
# Codex and OpenRouter. Both are pinned by content: the agy tarball by its
|
|
164
|
+
# SHA-512 from Google's release manifest, the plugin by its git commit. The
|
|
165
|
+
# plugin goes in Hermes' bundled provider directory, which Hermes discovers for
|
|
166
|
+
# every profile; the bridge contract digests only named files, not this tree.
|
|
167
|
+
# Nothing here signs in: without the Antigravity credential the Admin keeps
|
|
168
|
+
# its Codex-first chain.
|
|
169
|
+
ARG AGY_CLI_VERSION=1.5.13
|
|
170
|
+
ARG AGY_CLI_URL=https://storage.googleapis.com/antigravity-public/antigravity-cli/1.5.13-5999302598852608/linux-x64/cli_linux_x64.tar.gz
|
|
171
|
+
ARG AGY_CLI_SHA512=014b37387703acab1f47cd532c8bb60167a6a3537b0f9891de03f1b1ffa9614307bc83c4b2f7551273b0877d722716b0cd9e26782f6b2a50705db4f05e18c68f
|
|
172
|
+
ARG ANTIGRAVITY_PLUGIN_REPO=https://github.com/soyelmismo/hermes-antigravity-subscription
|
|
173
|
+
ARG ANTIGRAVITY_PLUGIN_COMMIT=f1c1a8ccc5a560b8d5926e2b7e4b544d272d2dd2
|
|
174
|
+
RUN set -eux; \
|
|
175
|
+
work="$(mktemp -d)"; \
|
|
176
|
+
curl --retry 5 --retry-all-errors -fsSL "${AGY_CLI_URL}" -o "${work}/agy.tar.gz"; \
|
|
177
|
+
printf '%s %s\n' "${AGY_CLI_SHA512}" "${work}/agy.tar.gz" | sha512sum -c -; \
|
|
178
|
+
tar -xzf "${work}/agy.tar.gz" -C "${work}" antigravity; \
|
|
179
|
+
install -o root -g root -m 0555 "${work}/antigravity" /usr/local/bin/agy; \
|
|
180
|
+
test "$(HOME="${work}/home" agy --version)" = "${AGY_CLI_VERSION}"; \
|
|
181
|
+
git init -q "${work}/plugin"; \
|
|
182
|
+
git -C "${work}/plugin" fetch -q --depth 1 "${ANTIGRAVITY_PLUGIN_REPO}" "${ANTIGRAVITY_PLUGIN_COMMIT}"; \
|
|
183
|
+
git -C "${work}/plugin" checkout -q FETCH_HEAD; \
|
|
184
|
+
test "$(git -C "${work}/plugin" rev-parse HEAD)" = "${ANTIGRAVITY_PLUGIN_COMMIT}"; \
|
|
185
|
+
plugin_dir=/opt/hermes/plugins/model-providers/antigravity-subscription-directsdk; \
|
|
186
|
+
install -d -o root -g root -m 0555 "${plugin_dir}"; \
|
|
187
|
+
for f in __init__.py client.py debug.py delivery.py models.py plugin.yaml process.py prompt.py stream.py usage.py LICENSE; do \
|
|
188
|
+
install -o root -g root -m 0444 "${work}/plugin/${f}" "${plugin_dir}/${f}"; \
|
|
189
|
+
done; \
|
|
190
|
+
printf '%s\n' "${ANTIGRAVITY_PLUGIN_COMMIT}" > "${plugin_dir}/SOURCE_COMMIT"; \
|
|
191
|
+
chmod 0444 "${plugin_dir}/SOURCE_COMMIT"; \
|
|
192
|
+
PYTHONPATH=/opt/hermes HERMES_HOME="${work}/hermes-home" /opt/hermes/.venv/bin/python -c 'from providers import get_provider_profile; p = get_provider_profile("antigravity-subscription-directsdk"); assert p is not None and p.auth_type == "external_process", p'; \
|
|
193
|
+
rm -rf "${work}"
|
|
194
|
+
|
|
157
195
|
# The MCP turn trust root is the same build secret the customer image bakes.
|
|
158
196
|
# The Admin runtime hands the Product MCP context proxy this exact file plus
|
|
159
197
|
# its fingerprint, so the baked bytes must match the pinned signing contract.
|
|
@@ -167,6 +205,8 @@ RUN --mount=type=secret,id=mcp_trust_root,required=true \
|
|
|
167
205
|
test "$(sha256sum /usr/local/share/sellable-agent/mcp-turn-trust-root.pem | cut -d ' ' -f 1)" = "${MCP_TRUST_ROOT_FINGERPRINT}"
|
|
168
206
|
|
|
169
207
|
COPY fly-admin-image/admin-runtime.mjs /usr/local/lib/sellable-agent/admin-runtime/admin-runtime.mjs
|
|
208
|
+
COPY fly-admin-image/admin-antigravity.mjs /usr/local/lib/sellable-agent/admin-runtime/admin-antigravity.mjs
|
|
209
|
+
COPY fly-admin-image/sellable-admin-antigravity /usr/local/bin/sellable-admin-antigravity
|
|
170
210
|
COPY fly-admin-image/admin-runtime-phase-telemetry.mjs /usr/local/lib/sellable-agent/admin-runtime/admin-runtime-phase-telemetry.mjs
|
|
171
211
|
COPY fly-admin-image/admin-state-generation.mjs /usr/local/lib/sellable-agent/admin-runtime/admin-state-generation.mjs
|
|
172
212
|
COPY fly-admin-image/start-admin-runtime /usr/local/lib/sellable-agent/admin-runtime/start-admin-runtime
|
|
@@ -192,6 +232,7 @@ COPY model-auth-canary-reseed.mjs /usr/local/lib/sellable-agent/model-auth-canar
|
|
|
192
232
|
COPY model-health-reporter.mjs /usr/local/lib/sellable-agent/model-health-reporter.mjs
|
|
193
233
|
COPY hermes-bridge.mjs /usr/local/lib/sellable-agent/hermes-bridge.mjs
|
|
194
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
|
|
195
236
|
COPY fly-soul-bridge.mjs /usr/local/lib/sellable-agent/fly-soul-bridge.mjs
|
|
196
237
|
COPY fly-soul-bridge-exec.mjs /usr/local/lib/sellable-agent/fly-soul-bridge-exec.mjs
|
|
197
238
|
COPY fly-exec-staging.mjs /usr/local/lib/sellable-agent/fly-exec-staging.mjs
|
|
@@ -228,6 +269,9 @@ RUN set -eux; \
|
|
|
228
269
|
&& node --input-type=module -e \
|
|
229
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 });' \
|
|
230
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}" \
|
|
231
275
|
&& node --input-type=module -e \
|
|
232
276
|
'await import("/usr/local/lib/sellable-agent/fly-runtime-identity.mjs");' \
|
|
233
277
|
&& node --input-type=module -e \
|
|
@@ -274,6 +318,8 @@ RUN set -eux; \
|
|
|
274
318
|
&& chmod 0755 /etc \
|
|
275
319
|
&& chmod 0555 \
|
|
276
320
|
/usr/local/lib/sellable-agent/admin-runtime/admin-runtime.mjs \
|
|
321
|
+
/usr/local/lib/sellable-agent/admin-runtime/admin-antigravity.mjs \
|
|
322
|
+
/usr/local/bin/sellable-admin-antigravity \
|
|
277
323
|
/usr/local/lib/sellable-agent/admin-runtime/admin-state-generation.mjs \
|
|
278
324
|
/usr/local/lib/sellable-agent/admin-runtime/start-admin-runtime \
|
|
279
325
|
/usr/local/lib/sellable-agent/fly-customer-image/customer-runtime.mjs \
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// Admin only: run the Admin on the Google Antigravity subscription (Gemini 4
|
|
2
|
+
// Neon through Google's agy CLI) ahead of its Codex and OpenRouter chain.
|
|
3
|
+
// Owner, 2026-11-19: "agy -> codex -> openrouter just for admin machines".
|
|
4
|
+
//
|
|
5
|
+
// The Admin image bakes agy and the Hermes provider plugin that drives it (see
|
|
6
|
+
// fly-admin-image/Dockerfile). Signing in is agy's own Google flow, run once on
|
|
7
|
+
// the Admin as the hermes user with HOME=/opt/data (`sellable-admin-antigravity
|
|
8
|
+
// login`), so the token lives on the Admin volume and agy refreshes it there.
|
|
9
|
+
// Nothing here writes the token. While no valid sign-in is present the Admin
|
|
10
|
+
// keeps the Codex-first chain that Customer runtimes use, so this module
|
|
11
|
+
// changes nothing until someone signs in.
|
|
12
|
+
//
|
|
13
|
+
// Google's Antigravity terms forbid driving the service from third-party
|
|
14
|
+
// software; the owner accepted that risk for the Admin only. Never use this on
|
|
15
|
+
// Customer runtimes.
|
|
16
|
+
import {
|
|
17
|
+
accessSync,
|
|
18
|
+
constants,
|
|
19
|
+
lstatSync,
|
|
20
|
+
readFileSync,
|
|
21
|
+
statSync,
|
|
22
|
+
} from "node:fs";
|
|
23
|
+
import { join } from "node:path";
|
|
24
|
+
import {
|
|
25
|
+
MODEL_AUTH_DEFAULT_MODEL,
|
|
26
|
+
MODEL_AUTH_PROVIDER,
|
|
27
|
+
modelAuthConfigOverlay,
|
|
28
|
+
} from "../model-auth-reconciler.mjs";
|
|
29
|
+
|
|
30
|
+
export const ADMIN_ANTIGRAVITY_PROVIDER = "antigravity-subscription-directsdk";
|
|
31
|
+
export const ADMIN_ANTIGRAVITY_MODEL = "gemini-4-neon";
|
|
32
|
+
// The plugin caps Hermes' xhigh at high.
|
|
33
|
+
export const ADMIN_ANTIGRAVITY_REASONING_EFFORT = "high";
|
|
34
|
+
// A turn waits for agy to start and think, so this leg gets a longer ceiling
|
|
35
|
+
// than the HTTP providers' 60 seconds.
|
|
36
|
+
export const ADMIN_ANTIGRAVITY_REQUEST_TIMEOUT_SECONDS = 120;
|
|
37
|
+
export const ADMIN_ANTIGRAVITY_COMMAND = "/usr/local/bin/agy";
|
|
38
|
+
export const ADMIN_ANTIGRAVITY_PLUGIN_ROOT =
|
|
39
|
+
"/opt/hermes/plugins/model-providers/antigravity-subscription-directsdk";
|
|
40
|
+
// Each idle agy worker holds about 250 MB; release them after two minutes.
|
|
41
|
+
export const ADMIN_ANTIGRAVITY_WORKER_IDLE_SECONDS = 120;
|
|
42
|
+
|
|
43
|
+
const TOKEN_FILE = "antigravity-oauth-token";
|
|
44
|
+
const MAX_TOKEN_BYTES = 64 * 1024;
|
|
45
|
+
|
|
46
|
+
export function adminAntigravityConfigDir(dataRoot) {
|
|
47
|
+
return join(dataRoot, ".gemini", "antigravity-cli");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* True only when the image has agy and the plugin and a private agy sign-in
|
|
52
|
+
* with a refresh token is on the volume. Any doubt answers false, which keeps
|
|
53
|
+
* the Codex-first chain. The token is read only to check its shape.
|
|
54
|
+
*/
|
|
55
|
+
export function adminAntigravitySignedIn({
|
|
56
|
+
dataRoot,
|
|
57
|
+
command = ADMIN_ANTIGRAVITY_COMMAND,
|
|
58
|
+
pluginRoot = ADMIN_ANTIGRAVITY_PLUGIN_ROOT,
|
|
59
|
+
}) {
|
|
60
|
+
try {
|
|
61
|
+
accessSync(command, constants.X_OK);
|
|
62
|
+
if (!statSync(join(pluginRoot, "__init__.py")).isFile()) return false;
|
|
63
|
+
const path = join(adminAntigravityConfigDir(dataRoot), TOKEN_FILE);
|
|
64
|
+
const stat = lstatSync(path);
|
|
65
|
+
if (
|
|
66
|
+
stat.isSymbolicLink() ||
|
|
67
|
+
!stat.isFile() ||
|
|
68
|
+
(stat.mode & 0o077) !== 0 ||
|
|
69
|
+
stat.size < 16 ||
|
|
70
|
+
stat.size > MAX_TOKEN_BYTES
|
|
71
|
+
) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
const token = JSON.parse(readFileSync(path, "utf8"))?.token;
|
|
75
|
+
return Boolean(
|
|
76
|
+
token &&
|
|
77
|
+
typeof token === "object" &&
|
|
78
|
+
typeof token.refresh_token === "string" &&
|
|
79
|
+
token.refresh_token.length > 0
|
|
80
|
+
);
|
|
81
|
+
} catch {
|
|
82
|
+
return false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** Antigravity first, then the unchanged Codex and OpenRouter chain. */
|
|
87
|
+
export function adminAntigravityConfigOverlay(credential) {
|
|
88
|
+
const base = modelAuthConfigOverlay(credential);
|
|
89
|
+
return Object.freeze({
|
|
90
|
+
...base,
|
|
91
|
+
providers: Object.freeze({
|
|
92
|
+
...base.providers,
|
|
93
|
+
[ADMIN_ANTIGRAVITY_PROVIDER]: Object.freeze({
|
|
94
|
+
request_timeout_seconds: ADMIN_ANTIGRAVITY_REQUEST_TIMEOUT_SECONDS,
|
|
95
|
+
}),
|
|
96
|
+
}),
|
|
97
|
+
model: Object.freeze({
|
|
98
|
+
...base.model,
|
|
99
|
+
default: ADMIN_ANTIGRAVITY_MODEL,
|
|
100
|
+
provider: ADMIN_ANTIGRAVITY_PROVIDER,
|
|
101
|
+
reasoning_effort: ADMIN_ANTIGRAVITY_REASONING_EFFORT,
|
|
102
|
+
}),
|
|
103
|
+
fallback_providers: Object.freeze([
|
|
104
|
+
Object.freeze({
|
|
105
|
+
provider: MODEL_AUTH_PROVIDER,
|
|
106
|
+
model: MODEL_AUTH_DEFAULT_MODEL,
|
|
107
|
+
}),
|
|
108
|
+
...base.fallback_providers,
|
|
109
|
+
]),
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** The Admin's model config: Antigravity first only while agy is signed in. */
|
|
114
|
+
export function adminModelConfigOverlay(credential, { signedIn }) {
|
|
115
|
+
return signedIn === true
|
|
116
|
+
? adminAntigravityConfigOverlay(credential)
|
|
117
|
+
: modelAuthConfigOverlay(credential);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Environment for the Admin gateway. The gateway's HOME is the profile, so the
|
|
122
|
+
* plugin is told where the volume's sign-in lives. Strict mode passes agy only
|
|
123
|
+
* a minimal environment, never the gateway's Sellable credentials.
|
|
124
|
+
*/
|
|
125
|
+
export function adminAntigravityGatewayEnvironment(dataRoot) {
|
|
126
|
+
return Object.freeze({
|
|
127
|
+
ANTIGRAVITY_CONFIG_DIR: adminAntigravityConfigDir(dataRoot),
|
|
128
|
+
ANTIGRAVITY_COMMAND: ADMIN_ANTIGRAVITY_COMMAND,
|
|
129
|
+
ANTIGRAVITY_ENV_STRICT: "1",
|
|
130
|
+
ANTIGRAVITY_WORKER_IDLE_SECONDS: String(
|
|
131
|
+
ADMIN_ANTIGRAVITY_WORKER_IDLE_SECONDS
|
|
132
|
+
),
|
|
133
|
+
});
|
|
134
|
+
}
|
|
@@ -128,6 +128,11 @@ import {
|
|
|
128
128
|
} from "../model-auth-reconciler.mjs";
|
|
129
129
|
import { createModelHealthReporter } from "../model-health-reporter.mjs";
|
|
130
130
|
import { reconcilePublicHermesSkills } from "../public-skills.mjs";
|
|
131
|
+
import {
|
|
132
|
+
adminAntigravityGatewayEnvironment,
|
|
133
|
+
adminAntigravitySignedIn,
|
|
134
|
+
adminModelConfigOverlay,
|
|
135
|
+
} from "./admin-antigravity.mjs";
|
|
131
136
|
import { createAdminRuntimePhaseTelemetry } from "./admin-runtime-phase-telemetry.mjs";
|
|
132
137
|
import {
|
|
133
138
|
completeAdminStateReceiptRecovery,
|
|
@@ -2105,7 +2110,11 @@ async function installRuntimeSecrets({ claim, secrets, desiredLifecycle }) {
|
|
|
2105
2110
|
markerPath,
|
|
2106
2111
|
model,
|
|
2107
2112
|
modelAuthState,
|
|
2108
|
-
|
|
2113
|
+
// Antigravity (Gemini 4 Neon) leads only while agy is signed in on this
|
|
2114
|
+
// volume; otherwise the same Codex-first chain as Customer runtimes.
|
|
2115
|
+
modelConfig: adminModelConfigOverlay(model, {
|
|
2116
|
+
signedIn: adminAntigravitySignedIn({ dataRoot: DATA_ROOT }),
|
|
2117
|
+
}),
|
|
2109
2118
|
productConfigPath,
|
|
2110
2119
|
slackSecretFile,
|
|
2111
2120
|
};
|
|
@@ -3162,6 +3171,9 @@ async function startNativeGateway({ profile, claim }) {
|
|
|
3162
3171
|
// 2026-11-13 to 2026-11-19, while customer gateways, which inherit the
|
|
3163
3172
|
// variable, kept working.
|
|
3164
3173
|
PLAYWRIGHT_BROWSERS_PATH: ADMIN_PLAYWRIGHT_BROWSERS_PATH,
|
|
3174
|
+
// The Antigravity plugin reads agy's sign-in from the volume, not from
|
|
3175
|
+
// this profile HOME, and passes agy a strict environment.
|
|
3176
|
+
...adminAntigravityGatewayEnvironment(DATA_ROOT),
|
|
3165
3177
|
NO_COLOR: "1",
|
|
3166
3178
|
},
|
|
3167
3179
|
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Sign the Admin's agy CLI in to the Google Antigravity subscription (Gemini 4
|
|
3
|
+
# Neon), show the sign-in and quota, or sign out. Run as root on the Admin:
|
|
4
|
+
#
|
|
5
|
+
# sellable-admin-antigravity login # agy's own Google sign-in
|
|
6
|
+
# sellable-admin-antigravity status # signed in? quota left
|
|
7
|
+
# sellable-admin-antigravity logout # back to Codex first
|
|
8
|
+
#
|
|
9
|
+
# The sign-in lands on the Admin volume (HOME=/opt/data, as the hermes user)
|
|
10
|
+
# and agy refreshes it there. After login or logout, press Refresh Agent so the
|
|
11
|
+
# Admin rebuilds its model chain: Antigravity first while signed in, otherwise
|
|
12
|
+
# Codex first. agy only ever sees a minimal environment.
|
|
13
|
+
set -eu
|
|
14
|
+
dir=/opt/data/.gemini/antigravity-cli
|
|
15
|
+
token="${dir}/antigravity-oauth-token"
|
|
16
|
+
|
|
17
|
+
as_hermes() {
|
|
18
|
+
/command/s6-setuidgid hermes env -i \
|
|
19
|
+
PATH=/usr/local/bin:/usr/bin:/bin \
|
|
20
|
+
HOME=/opt/data \
|
|
21
|
+
TERM="${TERM:-xterm-256color}" \
|
|
22
|
+
"$@"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
status() {
|
|
26
|
+
if [ ! -s "${token}" ]; then
|
|
27
|
+
echo "agy is not signed in on this Admin."
|
|
28
|
+
return 1
|
|
29
|
+
fi
|
|
30
|
+
as_hermes /usr/local/bin/agy -p "/usage" --output-format text </dev/null
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
case "${1:-status}" in
|
|
34
|
+
login)
|
|
35
|
+
install -d -o hermes -g hermes -m 0700 /opt/data/.gemini "${dir}"
|
|
36
|
+
echo "Choose '1. Google OAuth', open the URL on your own computer, sign in,"
|
|
37
|
+
echo "and paste the code back here. Once agy says you are signed in, leave"
|
|
38
|
+
echo "it with Ctrl+C. Then press Refresh Agent."
|
|
39
|
+
as_hermes /usr/local/bin/agy || true
|
|
40
|
+
status
|
|
41
|
+
;;
|
|
42
|
+
status)
|
|
43
|
+
status
|
|
44
|
+
;;
|
|
45
|
+
logout)
|
|
46
|
+
rm -f "${token}"
|
|
47
|
+
echo "Signed out. Press Refresh Agent to put Codex first again."
|
|
48
|
+
;;
|
|
49
|
+
*)
|
|
50
|
+
echo "usage: sellable-admin-antigravity login|status|logout" >&2
|
|
51
|
+
exit 2
|
|
52
|
+
;;
|
|
53
|
+
esac
|
|
@@ -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(
|