@sellable/install 0.1.910-wip.persist10.20261119.1 → 0.1.911
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 +4 -0
- package/lib/sellable-agent/fly-admin-image/admin-runtime.mjs +27 -1
- package/lib/sellable-agent/fly-capabilities-bridge.mjs +17 -2
- package/lib/sellable-agent/fly-customer-image/Dockerfile +7 -3
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +2 -2
- package/lib/sellable-agent/hermes-memory-snapshot.mjs +20 -0
- package/lib/sellable-agent/host-bootstrap.mjs +2 -2
- package/lib/sellable-agent/host-worker.mjs +2 -2
- package/lib/sellable-agent/model-auth-reconciler.mjs +15 -11
- package/lib/sellable-agent/profile-materializer.mjs +8 -2
- package/lib/sellable-agent/provisioning-adapter.mjs +2 -2
- package/package.json +1 -1
package/container/Dockerfile
CHANGED
|
@@ -3,13 +3,13 @@ FROM ${HERMES_IMAGE}
|
|
|
3
3
|
|
|
4
4
|
USER root
|
|
5
5
|
|
|
6
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
7
|
-
ARG MCP_PACKAGE=@sellable/mcp@0.1.
|
|
6
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.911
|
|
7
|
+
ARG MCP_PACKAGE=@sellable/mcp@0.1.1033
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
|
-
ARG MCP_INTEGRITY=sha512-
|
|
9
|
+
ARG MCP_INTEGRITY=sha512-d01fFKmJLQIBHBXA5FsWn7lOeX3igg6xh58x10VDLWfqwg1OLzsbaI43UHpUWYQzAsnN+Qivdyk2YYkoNhElEw==
|
|
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.911" \
|
|
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}" \
|
|
15
15
|
&& test "$(npm view "${MCP_PACKAGE}" dist.integrity)" = "${MCP_INTEGRITY}" \
|
|
@@ -23,9 +23,9 @@ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.910-wip.persist10.20261
|
|
|
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.911' || 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.911', 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.911` 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.1033";
|
|
32
32
|
const SAFE_COMPONENT = /^[A-Za-z0-9@._+-]+$/;
|
|
33
33
|
const HERMES_EXCLUDES = new Set([".git", ".playwright", "node_modules"]);
|
|
34
34
|
|
|
@@ -37,6 +37,7 @@ ARG MCP_TRUST_ROOT_FINGERPRINT
|
|
|
37
37
|
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
|
+
ARG DDGS_VERSION=9.16.1
|
|
40
41
|
ARG AGENT_BROWSER_VERSION=0.26.0
|
|
41
42
|
ARG PLAYWRIGHT_VERSION=1.63.0
|
|
42
43
|
ARG PLAYWRIGHT_BROWSER_REVISION=1243
|
|
@@ -136,6 +137,9 @@ RUN --mount=type=secret,id=admin_install_tarball,required=false \
|
|
|
136
137
|
slack-pp-cli --help >/dev/null; \
|
|
137
138
|
uv pip install --python /opt/hermes/.venv/bin/python --no-cache --no-deps "slack-sdk==${SLACK_SDK_VERSION}"; \
|
|
138
139
|
test "$(/opt/hermes/.venv/bin/python -c "import importlib.metadata; print(importlib.metadata.version('slack-sdk'))")" = "${SLACK_SDK_VERSION}"; \
|
|
140
|
+
uv pip install --python /opt/hermes/.venv/bin/python --no-cache "ddgs==${DDGS_VERSION}"; \
|
|
141
|
+
test "$(/opt/hermes/.venv/bin/python -c "import importlib.metadata; print(importlib.metadata.version('ddgs'))")" = "${DDGS_VERSION}"; \
|
|
142
|
+
/opt/hermes/.venv/bin/python -c "from ddgs import DDGS"; \
|
|
139
143
|
test -f /usr/local/lib/sellable-agent/admin-artifact/node_modules/@sellable/install/lib/sellable-agent/admin-runtime-reconciler.mjs; \
|
|
140
144
|
test -f /usr/local/lib/sellable-agent/admin-artifact/node_modules/@sellable/admin-mcp/dist/index.js; \
|
|
141
145
|
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);'; \
|
|
@@ -63,6 +63,7 @@ import {
|
|
|
63
63
|
import {
|
|
64
64
|
SELLABLE_BROWSER_TOOLSET_DEFAULT_MARKER,
|
|
65
65
|
SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER,
|
|
66
|
+
SELLABLE_WEB_TOOLSET_DEFAULT_MARKER,
|
|
66
67
|
sellableSlackToolsetsForMaterialization,
|
|
67
68
|
} from "../fly-capabilities-bridge.mjs";
|
|
68
69
|
import { startPublicClaudeRunsApi } from "../fly-customer-image/claude-code-runs-api.mjs";
|
|
@@ -348,6 +349,9 @@ function installAdminHermesHostedPolicy(profileRoot) {
|
|
|
348
349
|
config.set("skills", hosted.skills);
|
|
349
350
|
config.set("onboarding", hosted.onboarding);
|
|
350
351
|
config.set("cron", hosted.cron);
|
|
352
|
+
// Web search goes through the keyless DuckDuckGo backend baked into this
|
|
353
|
+
// image, exactly as on customer profiles.
|
|
354
|
+
config.set("web", hosted.web);
|
|
351
355
|
config.set("hooks", HERMES_SNAPSHOT_HOOKS);
|
|
352
356
|
// The Admin profile factory configures Slack only through .env, so Hermes'
|
|
353
357
|
// default restart/shutdown notices ("Hermes is shutting down...") posted to
|
|
@@ -1006,6 +1010,9 @@ function adminPreservedSlackToolsets(config, profileRoot) {
|
|
|
1006
1010
|
sessionSearchDefaultApplied: existsSync(
|
|
1007
1011
|
join(profileRoot, SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER)
|
|
1008
1012
|
),
|
|
1013
|
+
webDefaultApplied: existsSync(
|
|
1014
|
+
join(profileRoot, SELLABLE_WEB_TOOLSET_DEFAULT_MARKER)
|
|
1015
|
+
),
|
|
1009
1016
|
});
|
|
1010
1017
|
}
|
|
1011
1018
|
|
|
@@ -1135,6 +1142,9 @@ function mergeAdminLiveSkillsConfig(sourceRoot, targetRoot) {
|
|
|
1135
1142
|
sessionSearchDefaultApplied: existsSync(
|
|
1136
1143
|
join(sourceRoot, SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER)
|
|
1137
1144
|
),
|
|
1145
|
+
webDefaultApplied: existsSync(
|
|
1146
|
+
join(sourceRoot, SELLABLE_WEB_TOOLSET_DEFAULT_MARKER)
|
|
1147
|
+
),
|
|
1138
1148
|
});
|
|
1139
1149
|
if (slackToolsets !== null)
|
|
1140
1150
|
targetDocument.setIn(["platform_toolsets", "slack"], slackToolsets);
|
|
@@ -1157,6 +1167,9 @@ function installAdminBrowserToolsetDefault(sourceRoot, stageRoot) {
|
|
|
1157
1167
|
sessionSearchDefaultApplied: existsSync(
|
|
1158
1168
|
join(sourceRoot, SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER)
|
|
1159
1169
|
),
|
|
1170
|
+
webDefaultApplied: existsSync(
|
|
1171
|
+
join(sourceRoot, SELLABLE_WEB_TOOLSET_DEFAULT_MARKER)
|
|
1172
|
+
),
|
|
1160
1173
|
})
|
|
1161
1174
|
);
|
|
1162
1175
|
atomicPrivateFile(configPath, document.toString());
|
|
@@ -1166,6 +1179,10 @@ function installAdminBrowserToolsetDefault(sourceRoot, stageRoot) {
|
|
|
1166
1179
|
join(stageRoot, SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER),
|
|
1167
1180
|
"enabled\n"
|
|
1168
1181
|
);
|
|
1182
|
+
atomicPrivateFile(
|
|
1183
|
+
join(stageRoot, SELLABLE_WEB_TOOLSET_DEFAULT_MARKER),
|
|
1184
|
+
"enabled\n"
|
|
1185
|
+
);
|
|
1169
1186
|
}
|
|
1170
1187
|
|
|
1171
1188
|
function installWritableAdminSlackChannelPolicy(stageRoot, slack) {
|
|
@@ -1265,7 +1282,7 @@ async function materializeAdminProfile({
|
|
|
1265
1282
|
productConfigPath,
|
|
1266
1283
|
// The pinned Admin installer validates this bootstrap template model.
|
|
1267
1284
|
// installAdminModelConfig below replaces it with the managed model
|
|
1268
|
-
// (currently GPT-6 Astra high) before promotion or gateway startup.
|
|
1285
|
+
// (currently GPT-6.2 Astra high) before promotion or gateway startup.
|
|
1269
1286
|
model: "gpt-5.6-sol",
|
|
1270
1287
|
reasoningEffort: "high",
|
|
1271
1288
|
soul: stagedAuthority,
|
|
@@ -3104,6 +3121,8 @@ function desiredLifecycleForClaim(claim) {
|
|
|
3104
3121
|
}
|
|
3105
3122
|
}
|
|
3106
3123
|
|
|
3124
|
+
const ADMIN_PLAYWRIGHT_BROWSERS_PATH = "/opt/hermes/.playwright";
|
|
3125
|
+
|
|
3107
3126
|
async function startNativeGateway({ profile, claim }) {
|
|
3108
3127
|
// `/run` is tmpfs. A Fly Machine restart can reuse the already-materialized
|
|
3109
3128
|
// durable profile without running its factory again, so recreate the Product
|
|
@@ -3135,6 +3154,13 @@ async function startNativeGateway({ profile, claim }) {
|
|
|
3135
3154
|
HERMES_WRITE_SAFE_ROOT: DATA_ROOT,
|
|
3136
3155
|
SELLABLE_HERMES_PROFILE_ID: profile.profile,
|
|
3137
3156
|
CODEX_HOME: SECRET_ROOT,
|
|
3157
|
+
// The image bakes Chromium under /opt/hermes/.playwright (Dockerfile
|
|
3158
|
+
// ENV), but this environment replaces the image's. Without it the
|
|
3159
|
+
// browser tools could not find Chromium: sellable.dev's browser_exec
|
|
3160
|
+
// failed with "Chromium browser is missing" on every call from
|
|
3161
|
+
// 2026-11-13 to 2026-11-19, while customer gateways, which inherit the
|
|
3162
|
+
// variable, kept working.
|
|
3163
|
+
PLAYWRIGHT_BROWSERS_PATH: ADMIN_PLAYWRIGHT_BROWSERS_PATH,
|
|
3138
3164
|
NO_COLOR: "1",
|
|
3139
3165
|
},
|
|
3140
3166
|
});
|
|
@@ -40,9 +40,15 @@ export const SELLABLE_BROWSER_TOOLSET_DEFAULT_MARKER =
|
|
|
40
40
|
// 2026-10-21: agents made before that have an explicit Slack list without it.
|
|
41
41
|
export const SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER =
|
|
42
42
|
".sellable-agent/session-search-toolset-default-v1";
|
|
43
|
+
// Same one-time default for web, which joined the defaults on 2026-11-19.
|
|
44
|
+
export const SELLABLE_WEB_TOOLSET_DEFAULT_MARKER =
|
|
45
|
+
".sellable-agent/web-toolset-default-v1";
|
|
43
46
|
// session_search lets the agent look back over its own past Slack threads
|
|
44
47
|
// ("what kept going wrong the last two weeks?"); it reads only this profile's
|
|
45
|
-
// session store.
|
|
48
|
+
// session store. web gives it web_search through the keyless DuckDuckGo
|
|
49
|
+
// backend (the ddgs package baked into both images, selected by
|
|
50
|
+
// HERMES_SELLABLE_WEB_POLICY), so it can look a company or a person up
|
|
51
|
+
// without opening a browser.
|
|
46
52
|
export const SELLABLE_DEFAULT_SLACK_TOOLSETS = Object.freeze([
|
|
47
53
|
"browser",
|
|
48
54
|
"clarify",
|
|
@@ -50,11 +56,14 @@ export const SELLABLE_DEFAULT_SLACK_TOOLSETS = Object.freeze([
|
|
|
50
56
|
"session_search",
|
|
51
57
|
"terminal",
|
|
52
58
|
"todo",
|
|
59
|
+
"web",
|
|
53
60
|
]);
|
|
54
61
|
|
|
55
62
|
// Deliberately excludes credential-bearing, external-account, platform-admin,
|
|
56
63
|
// media-generation, and default-off toolsets. These are the already-bundled
|
|
57
64
|
// core capabilities a Sellable Agent operator may narrow or restore for Slack.
|
|
65
|
+
// web qualifies because the hosted policy pins its keyless ddgs backend: no
|
|
66
|
+
// web credential is ever delivered to a runtime.
|
|
58
67
|
export const SELLABLE_ALLOWED_TOOLSETS = Object.freeze([
|
|
59
68
|
"browser",
|
|
60
69
|
"clarify",
|
|
@@ -68,11 +77,16 @@ export const SELLABLE_ALLOWED_TOOLSETS = Object.freeze([
|
|
|
68
77
|
"skills",
|
|
69
78
|
"terminal",
|
|
70
79
|
"todo",
|
|
80
|
+
"web",
|
|
71
81
|
]);
|
|
72
82
|
|
|
73
83
|
export function sellableSlackToolsetsForMaterialization(
|
|
74
84
|
config,
|
|
75
|
-
{
|
|
85
|
+
{
|
|
86
|
+
browserDefaultApplied = false,
|
|
87
|
+
sessionSearchDefaultApplied = true,
|
|
88
|
+
webDefaultApplied = true,
|
|
89
|
+
} = {}
|
|
76
90
|
) {
|
|
77
91
|
const configured = config?.platform_toolsets?.slack;
|
|
78
92
|
const source = Array.isArray(configured)
|
|
@@ -87,6 +101,7 @@ export function sellableSlackToolsetsForMaterialization(
|
|
|
87
101
|
// explicit disablement durable across image/profile refreshes.
|
|
88
102
|
if (!browserDefaultApplied) selected.add("browser");
|
|
89
103
|
if (!sessionSearchDefaultApplied) selected.add("session_search");
|
|
104
|
+
if (!webDefaultApplied) selected.add("web");
|
|
90
105
|
return [...selected].sort();
|
|
91
106
|
}
|
|
92
107
|
|
|
@@ -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.1033
|
|
10
|
+
ARG MCP_INTEGRITY=sha512-d01fFKmJLQIBHBXA5FsWn7lOeX3igg6xh58x10VDLWfqwg1OLzsbaI43UHpUWYQzAsnN+Qivdyk2YYkoNhElEw==
|
|
11
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.911
|
|
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
|
|
@@ -16,6 +16,7 @@ ARG YAML_VERSION=2.9.0
|
|
|
16
16
|
ARG WS_VERSION=8.18.3
|
|
17
17
|
ARG HERMES_VERSION=0.21.5
|
|
18
18
|
ARG SLACK_SDK_VERSION=3.43.0
|
|
19
|
+
ARG DDGS_VERSION=9.16.1
|
|
19
20
|
ARG AGENT_BROWSER_VERSION=0.26.0
|
|
20
21
|
ARG TIRITH_VERSION=0.3.3
|
|
21
22
|
ARG PLAYWRIGHT_VERSION=1.63.0
|
|
@@ -71,6 +72,9 @@ RUN --mount=type=secret,id=mcp_trust_root,required=true \
|
|
|
71
72
|
&& test "$(/opt/hermes/.venv/bin/python -c "import importlib.metadata; print(importlib.metadata.version('slack-sdk'))")" = "${SLACK_SDK_VERSION}" \
|
|
72
73
|
&& uv pip install --python /opt/hermes/.venv/bin/python --no-cache edge-tts==7.2.7 \
|
|
73
74
|
&& test "$(/opt/hermes/.venv/bin/python -c "import importlib.metadata; print(importlib.metadata.version('edge-tts'))")" = "7.2.7" \
|
|
75
|
+
&& uv pip install --python /opt/hermes/.venv/bin/python --no-cache "ddgs==${DDGS_VERSION}" \
|
|
76
|
+
&& test "$(/opt/hermes/.venv/bin/python -c "import importlib.metadata; print(importlib.metadata.version('ddgs'))")" = "${DDGS_VERSION}" \
|
|
77
|
+
&& /opt/hermes/.venv/bin/python -c "from ddgs import DDGS" \
|
|
74
78
|
&& curl --fail --silent --show-error --location \
|
|
75
79
|
--retry 5 --retry-delay 2 --retry-all-errors \
|
|
76
80
|
"https://github.com/sheeki03/tirith/releases/download/v${TIRITH_VERSION}/tirith-x86_64-unknown-linux-gnu.tar.gz" \
|
|
@@ -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.911";
|
|
139
139
|
const MCP_PACKAGE =
|
|
140
140
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
141
|
-
"@sellable/mcp@0.1.
|
|
141
|
+
"@sellable/mcp@0.1.1033";
|
|
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";
|
|
@@ -509,6 +509,21 @@ export function applyHermesSellableBusyDisplayPolicy(document) {
|
|
|
509
509
|
return document;
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
+
/**
|
|
513
|
+
* Every Sellable Hermes profile, customer and Admin, searches the web through
|
|
514
|
+
* DuckDuckGo: the `ddgs` package is baked into both images (runtime-pins.json
|
|
515
|
+
* `ddgs`), needs no key, and hosted Hermes cannot install packages at runtime.
|
|
516
|
+
* Naming the backend keeps Hermes from auto-detecting another one (the Nous
|
|
517
|
+
* tool gateway, a stray provider key). The keyless fallback is off, so a
|
|
518
|
+
* query never goes to Exa, Parallel, Firecrawl or Keenable's anonymous tiers
|
|
519
|
+
* when DuckDuckGo fails. ddgs only searches; web_extract answers with its
|
|
520
|
+
* "search-only backend" error and the agent reads the page with its browser.
|
|
521
|
+
*/
|
|
522
|
+
export const HERMES_SELLABLE_WEB_POLICY = Object.freeze({
|
|
523
|
+
backend: "ddgs",
|
|
524
|
+
keyless_fallback: false,
|
|
525
|
+
});
|
|
526
|
+
|
|
512
527
|
/**
|
|
513
528
|
* Apply the complete hosted Sellable policy that belongs to Hermes config.
|
|
514
529
|
*
|
|
@@ -534,11 +549,16 @@ export function applyHermesSellableHostedPolicy(config) {
|
|
|
534
549
|
if (cron != null && (typeof cron !== "object" || Array.isArray(cron))) {
|
|
535
550
|
throw new Error("hermes_sellable_cron_config_rejected");
|
|
536
551
|
}
|
|
552
|
+
const web = config?.web;
|
|
553
|
+
if (web != null && (typeof web !== "object" || Array.isArray(web))) {
|
|
554
|
+
throw new Error("hermes_sellable_web_config_rejected");
|
|
555
|
+
}
|
|
537
556
|
return {
|
|
538
557
|
...hosted,
|
|
539
558
|
// Scheduled messages are the agent's final text. Hermes' job-ID header and
|
|
540
559
|
// stop-instructions footer must not be added to them.
|
|
541
560
|
cron: { ...(cron ?? {}), wrap_response: false },
|
|
561
|
+
web: { ...(web ?? {}), ...HERMES_SELLABLE_WEB_POLICY },
|
|
542
562
|
onboarding: {
|
|
543
563
|
...(onboarding ?? {}),
|
|
544
564
|
profile_build: "off",
|
|
@@ -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.911";
|
|
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}$/;
|
|
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.911" ||
|
|
1551
1551
|
pinned.mcpPackage !==
|
|
1552
|
-
"@sellable/mcp@0.1.
|
|
1552
|
+
"@sellable/mcp@0.1.1033" ||
|
|
1553
1553
|
!Array.isArray(policy.toolInclude) ||
|
|
1554
1554
|
policy.toolInclude.length === 0 ||
|
|
1555
1555
|
!Number.isSafeInteger(slack.generation) ||
|
|
@@ -20,21 +20,25 @@ export const MODEL_AUTH_LEGACY_READBACK_SCHEMA =
|
|
|
20
20
|
export const MODEL_AUTH_MINIMUM_VALIDITY_MS = 20 * 60 * 1000;
|
|
21
21
|
export const MODEL_AUTH_PROVIDER = "openai-codex";
|
|
22
22
|
// The Codex primary for Customer and Admin runtimes. GPT-6 Astra (high)
|
|
23
|
-
// replaced GPT-6.2 Sol on 2026-11-19
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
|
|
23
|
+
// replaced GPT-6.2 Sol on 2026-11-19, and GPT-6.2 Astra (high) replaced GPT-6
|
|
24
|
+
// Astra later that day (owner tested it and chose it). No read path checks
|
|
25
|
+
// this id: readbacks and model health bind activation, bundle generation and
|
|
26
|
+
// policy hash, so an agent still on an older image that reports gpt-6-astra
|
|
27
|
+
// or gpt-6.2-sol keeps validating until its UPGRADE.
|
|
28
|
+
export const MODEL_AUTH_DEFAULT_MODEL = "gpt-6.2-astra";
|
|
28
29
|
export const MODEL_AUTH_REASONING_EFFORT = "high";
|
|
29
30
|
// The same Codex subscription's next models, before any OpenRouter fallback
|
|
30
|
-
// (owner, 2026-11-19: "astra default -> codex sol -> luna"
|
|
31
|
-
//
|
|
32
|
-
//
|
|
31
|
+
// (owner, 2026-11-19: "astra default -> codex sol -> luna", then GPT-6.2
|
|
32
|
+
// Astra first with GPT-6 Astra behind it). They run at the global effort
|
|
33
|
+
// (high). Hermes 0.21.5 first moves the primary to the next Codex login (a
|
|
34
|
+
// login refused a model is benched for that model only,
|
|
33
35
|
// CODEX_ACCOUNT_MODEL_ENTITLEMENT_MARKER), then walks fallback_providers in
|
|
34
|
-
// order, so the chain is Astra on each login, then
|
|
35
|
-
// policy's OpenRouter models. The bundle carries
|
|
36
|
-
// so bundles installed before this keep
|
|
36
|
+
// order, so the chain is GPT-6.2 Astra on each login, then GPT-6 Astra, then
|
|
37
|
+
// Sol, then Luna, then the policy's OpenRouter models. The bundle carries
|
|
38
|
+
// only the OpenRouter models, so bundles installed before this keep
|
|
39
|
+
// materializing unchanged.
|
|
37
40
|
export const MODEL_AUTH_CODEX_FALLBACK_MODELS = Object.freeze([
|
|
41
|
+
"gpt-6-astra",
|
|
38
42
|
"gpt-6.2-sol",
|
|
39
43
|
"gpt-6-luna",
|
|
40
44
|
]);
|
|
@@ -30,6 +30,7 @@ import {
|
|
|
30
30
|
SELLABLE_BROWSER_TOOLSET_DEFAULT_MARKER,
|
|
31
31
|
SELLABLE_DEFAULT_SLACK_TOOLSETS,
|
|
32
32
|
SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER,
|
|
33
|
+
SELLABLE_WEB_TOOLSET_DEFAULT_MARKER,
|
|
33
34
|
sellableSlackToolsetsForMaterialization,
|
|
34
35
|
} from "./fly-capabilities-bridge.mjs";
|
|
35
36
|
import {
|
|
@@ -317,8 +318,8 @@ function validateDesired(desired) {
|
|
|
317
318
|
desired.hermesCli !== "hermes" ||
|
|
318
319
|
desired.hermesVersion !== "0.18.0" ||
|
|
319
320
|
desired.installerPackage !==
|
|
320
|
-
"@sellable/install@0.1.
|
|
321
|
-
desired.mcpPackage !== "@sellable/mcp@0.1.
|
|
321
|
+
"@sellable/install@0.1.911" ||
|
|
322
|
+
desired.mcpPackage !== "@sellable/mcp@0.1.1033" ||
|
|
322
323
|
!Array.isArray(desired.toolInclude) ||
|
|
323
324
|
desired.toolInclude.length === 0 ||
|
|
324
325
|
desired.toolInclude.some((tool) => !/^[a-z][a-z0-9_]{0,127}$/.test(tool)) ||
|
|
@@ -618,6 +619,9 @@ function preservedSlackToolsets(
|
|
|
618
619
|
existsSync(
|
|
619
620
|
join(profileRoot, SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER)
|
|
620
621
|
),
|
|
622
|
+
webDefaultApplied:
|
|
623
|
+
!nativeSlackProfile ||
|
|
624
|
+
existsSync(join(profileRoot, SELLABLE_WEB_TOOLSET_DEFAULT_MARKER)),
|
|
621
625
|
});
|
|
622
626
|
}
|
|
623
627
|
|
|
@@ -2438,6 +2442,7 @@ export async function materializeAgentProfile(input = {}) {
|
|
|
2438
2442
|
export const NATIVE_SLACK_CUSTOMER_PROFILE_INVENTORY = Object.freeze([
|
|
2439
2443
|
SELLABLE_BROWSER_TOOLSET_DEFAULT_MARKER,
|
|
2440
2444
|
SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER,
|
|
2445
|
+
SELLABLE_WEB_TOOLSET_DEFAULT_MARKER,
|
|
2441
2446
|
".env",
|
|
2442
2447
|
".no-bundled-skills",
|
|
2443
2448
|
"agent-profile.json",
|
|
@@ -2730,6 +2735,7 @@ function nativeSlackCustomerFiles(desired, soulBytes = desired.soul) {
|
|
|
2730
2735
|
return {
|
|
2731
2736
|
[SELLABLE_BROWSER_TOOLSET_DEFAULT_MARKER]: "enabled\n",
|
|
2732
2737
|
[SELLABLE_SESSION_SEARCH_TOOLSET_DEFAULT_MARKER]: "enabled\n",
|
|
2738
|
+
[SELLABLE_WEB_TOOLSET_DEFAULT_MARKER]: "enabled\n",
|
|
2733
2739
|
".env": "",
|
|
2734
2740
|
// The runtime materializer owns this profile's exact skill bytes. Avoid
|
|
2735
2741
|
// Hermes re-scanning and re-copying its entire bundled catalog on every
|
|
@@ -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.911";
|
|
30
30
|
export const PINNED_MCP_PACKAGE =
|
|
31
|
-
"@sellable/mcp@0.1.
|
|
31
|
+
"@sellable/mcp@0.1.1033";
|
|
32
32
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|
|
33
33
|
PINNED_INSTALL_PACKAGE.lastIndexOf("@") + 1
|
|
34
34
|
);
|