@sellable/install 0.1.807 → 0.1.808

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.
@@ -3,12 +3,12 @@ FROM ${HERMES_IMAGE}
3
3
 
4
4
  USER root
5
5
 
6
- ARG INSTALLER_PACKAGE=@sellable/install@0.1.807
6
+ ARG INSTALLER_PACKAGE=@sellable/install@0.1.808
7
7
  ARG MCP_PACKAGE=@sellable/mcp@0.1.958
8
8
  ARG INSTALLER_INTEGRITY
9
9
  ARG MCP_INTEGRITY=sha512-Wi/GKdYM2zimkIyc+xs4HnmeQeiNE/O27roQa99sIx9yd/cF7vWmIbVPT4bFDGvTD/i+f4UuU/LZLklA+zRoCA==
10
10
 
11
- RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.807" \
11
+ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.808" \
12
12
  && test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.958" \
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.807" \
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.807' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.958') throw new Error('package identity rejected');" \
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.808' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.958') 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.807', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.958', 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}" \
28
+ && node --input-type=module -e "import { chmodSync, writeFileSync } from 'node:fs'; const release = { installerPackage: '@sellable/install@0.1.808', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.958', 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
@@ -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.807` is
6
+ `@sellable/install@0.1.808` is
7
7
  published:
8
8
 
9
9
  ```sh
@@ -8,7 +8,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright
8
8
 
9
9
  ARG MCP_PACKAGE=@sellable/mcp@0.1.958
10
10
  ARG MCP_INTEGRITY=sha512-Wi/GKdYM2zimkIyc+xs4HnmeQeiNE/O27roQa99sIx9yd/cF7vWmIbVPT4bFDGvTD/i+f4UuU/LZLklA+zRoCA==
11
- ARG INSTALLER_PACKAGE=@sellable/install@0.1.807
11
+ ARG INSTALLER_PACKAGE=@sellable/install@0.1.808
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
@@ -131,7 +131,7 @@ const RUNTIME_GENERATION = Number(
131
131
  const BOOT_SESSION_ID = randomUUID();
132
132
  const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.21.5";
133
133
  const INSTALLER_PACKAGE =
134
- process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.807";
134
+ process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.808";
135
135
  const MCP_PACKAGE =
136
136
  process.env.SELLABLE_AGENT_MCP_PACKAGE ?? "@sellable/mcp@0.1.958";
137
137
  export const ENDPOINT_MAX_CONCURRENT_RUNS = 10;
@@ -1196,6 +1196,149 @@ def _sellable_agent_preflight_model_providers():
1196
1196
  logger.warning("Sellable provider preflight worker failed")
1197
1197
  `;
1198
1198
 
1199
+ // Customers talk to "Sellable Agent"; Hermes' own chat text names Hermes and
1200
+ // points at terminal commands they cannot run. Each kind applies its base
1201
+ // patch (if the file already has one) and then these exact replacements.
1202
+ const SELLABLE_AGENT_COPY_PATCHES = {
1203
+ "gateway-session-copy-v0215": {
1204
+ base: "gateway-session-v021",
1205
+ replacements: [
1206
+ [
1207
+ 'return lead + " If this keeps happening, run `hermes doctor` on the host."',
1208
+ 'return lead + " If this keeps happening, let the Sellable team know."',
1209
+ ],
1210
+ [
1211
+ '"or ask whoever runs this bot to run `hermes doctor` on the host."),',
1212
+ '"or let the Sellable team know."),',
1213
+ ],
1214
+ [
1215
+ 'if it keeps happening, run "\n "`hermes doctor` on the host."),',
1216
+ 'if it keeps happening, let the "\n "Sellable team know."),',
1217
+ ],
1218
+ [
1219
+ '"if it persists, run `hermes doctor` on the host."),',
1220
+ '"if it persists, let the Sellable team know."),',
1221
+ ],
1222
+ ['"⚠️ Hermes could not reach', '"⚠️ Sellable Agent could not reach'],
1223
+ [
1224
+ 'if it persists, run `hermes doctor` on the host."))',
1225
+ 'if it persists, let the Sellable team know."))',
1226
+ ],
1227
+ ],
1228
+ },
1229
+ "gateway-provider-preflight-copy-v0215": {
1230
+ base: "gateway-provider-preflight-v021",
1231
+ replacements: [
1232
+ [
1233
+ 'return "Hermes is working\\n"',
1234
+ 'return "Sellable Agent is working\\n"',
1235
+ ],
1236
+ ['title="Hermes is working",', 'title="Sellable Agent is working",'],
1237
+ [
1238
+ '"failing, run `hermes doctor` on the host."),',
1239
+ '"failing, let the Sellable team know."),',
1240
+ ],
1241
+ ],
1242
+ },
1243
+ "turn-failure-copy-v0215": {
1244
+ base: null,
1245
+ replacements: [
1246
+ [
1247
+ 'run `hermes doctor` and share the error details."',
1248
+ 'let the Sellable team know."',
1249
+ ],
1250
+ [
1251
+ '"(or `hermes model` in a terminal).{prefix_hint}"',
1252
+ '"(or ask the Sellable team).{prefix_hint}"',
1253
+ ],
1254
+ [
1255
+ 'if it keeps happening, run `hermes doctor`."',
1256
+ 'if it keeps happening, let the Sellable team know."',
1257
+ ],
1258
+ ["\"Hermes couldn't verify", "\"Sellable Agent couldn't verify"],
1259
+ [
1260
+ 'or run `hermes setup` in a terminal."',
1261
+ 'or ask the Sellable team to update it."',
1262
+ ],
1263
+ [
1264
+ "and Hermes couldn't shrink \"",
1265
+ "and Sellable Agent couldn't shrink \"",
1266
+ ],
1267
+ [
1268
+ "\"Hermes didn't run the incomplete action.",
1269
+ "\"Sellable Agent didn't run the incomplete action.",
1270
+ ],
1271
+ ['"Hermes hit repeated errors', '"Sellable Agent hit repeated errors'],
1272
+ [
1273
+ '"Hermes was shutting down and stopped this turn.',
1274
+ '"Sellable Agent was shutting down and stopped this turn.',
1275
+ ],
1276
+ [
1277
+ "\"Hermes couldn't shrink it enough automatically.",
1278
+ "\"Sellable Agent couldn't shrink it enough automatically.",
1279
+ ],
1280
+ ['window Hermes knows for "', 'window Sellable Agent knows for "'],
1281
+ [
1282
+ "smaller window than Hermes assumes.",
1283
+ "smaller window than Sellable Agent assumes.",
1284
+ ],
1285
+ [
1286
+ '"Hermes hit an internal error',
1287
+ '"Sellable Agent hit an internal error',
1288
+ ],
1289
+ [
1290
+ '"a backup provider with `hermes fallback add`."',
1291
+ '"a backup model through the Sellable team."',
1292
+ ],
1293
+ [
1294
+ 'f"add a backup provider with `hermes fallback add`.\\n\\nProvider said: {summary}"',
1295
+ 'f"ask the Sellable team to add a backup model.\\n\\nProvider said: {summary}"',
1296
+ ],
1297
+ ],
1298
+ },
1299
+ "gateway-busy-copy-v0215": {
1300
+ base: null,
1301
+ replacements: [
1302
+ [
1303
+ 'return "Hermes wasn\'t paused."',
1304
+ 'return "Sellable Agent wasn\'t paused."',
1305
+ ],
1306
+ [
1307
+ 'f"⏸️ Hermes is already paused{suffix}.',
1308
+ 'f"⏸️ Sellable Agent is already paused{suffix}.',
1309
+ ],
1310
+ ],
1311
+ },
1312
+ "slash-commands-copy-v0215": {
1313
+ base: null,
1314
+ replacements: [
1315
+ [
1316
+ '"Messages will be queued for the next turn while Hermes is busy."',
1317
+ '"Messages will be queued for the next turn while Sellable Agent is busy."',
1318
+ ],
1319
+ [
1320
+ '"Messages will interrupt the current run while Hermes is busy."',
1321
+ '"Messages will interrupt the current run while Sellable Agent is busy."',
1322
+ ],
1323
+ ],
1324
+ },
1325
+ };
1326
+
1327
+ function applySellableAgentCopy(patchKind, { base, replacements }, source) {
1328
+ let patched = base
1329
+ ? patchHermesSourceFile(base, source)
1330
+ : `# ${HERMES_AGENT_BRIDGE_MARKER}: Sellable Agent customer-facing copy.\n${source}`;
1331
+ for (const [needle, replacement] of replacements) {
1332
+ patched = replaceExactlyOnce(
1333
+ patched,
1334
+ needle,
1335
+ replacement,
1336
+ `${patchKind} copy`
1337
+ );
1338
+ }
1339
+ return patched;
1340
+ }
1341
+
1199
1342
  export function patchHermesSourceFile(patchKind, source) {
1200
1343
  if (typeof source !== "string") {
1201
1344
  throw new HermesAgentBridgeError(
@@ -1210,6 +1353,13 @@ export function patchHermesSourceFile(patchKind, source) {
1210
1353
  { patchKind }
1211
1354
  );
1212
1355
  }
1356
+ if (Object.hasOwn(SELLABLE_AGENT_COPY_PATCHES, patchKind)) {
1357
+ return applySellableAgentCopy(
1358
+ patchKind,
1359
+ SELLABLE_AGENT_COPY_PATCHES[patchKind],
1360
+ source
1361
+ );
1362
+ }
1213
1363
 
1214
1364
  if (patchKind === "api-opener-stage-v021") {
1215
1365
  let patched = replaceExactlyOnce(
@@ -2790,11 +2940,11 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
2790
2940
  },
2791
2941
  {
2792
2942
  path: "gateway/run.py",
2793
- patchKind: "gateway-session-v021",
2943
+ patchKind: "gateway-session-copy-v0215",
2794
2944
  sourceSha256:
2795
2945
  "324f7095223816b865dd68a75dc83bfd1c3d101ac8c1c38dba69026dab2b6af1",
2796
2946
  patchedSha256:
2797
- "4b398b8c033e5aaba90b6ba312baf01e7d88d46a91843e64949ade0b65f2ade8",
2947
+ "81eaea618888ecba1b651ec07279e67fa32061f51f7d1a2407fa989ede93806c",
2798
2948
  },
2799
2949
  {
2800
2950
  path: "gateway/run_turn.py",
@@ -2806,11 +2956,11 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
2806
2956
  },
2807
2957
  {
2808
2958
  path: "gateway/run_turn_runner.py",
2809
- patchKind: "gateway-provider-preflight-v021",
2959
+ patchKind: "gateway-provider-preflight-copy-v0215",
2810
2960
  sourceSha256:
2811
2961
  "216bdca083b7d2bfae481d07bd0791a76834674b3614fd4ee0aafac5c58f30db",
2812
2962
  patchedSha256:
2813
- "7b6beabeed7b78781d142dcdb0eff4c0110263ee173f7696737c4c965e1c72ab",
2963
+ "236bc879348c237983ceea3c86b568ded228fa9d725c495fcb88354cd1253956",
2814
2964
  },
2815
2965
  {
2816
2966
  path: "agent/turn_context.py",
@@ -2852,9 +3002,33 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
2852
3002
  patchedSha256:
2853
3003
  "dbe6e400c7c7a9d3b377b7f9f08e05f2e9f6b622f9019f873e4fdb0cd828b19f",
2854
3004
  },
3005
+ {
3006
+ path: "agent/turn_failure_copy.py",
3007
+ patchKind: "turn-failure-copy-v0215",
3008
+ sourceSha256:
3009
+ "64311f06bb7022749852f291d60b566592e45955f76b192d84fc227373f6afe3",
3010
+ patchedSha256:
3011
+ "d0a092640016cc31704ff76f0df2b5ef4b829d3ac4d4bbc99ae21ebadbb2be01",
3012
+ },
3013
+ {
3014
+ path: "gateway/run_busy.py",
3015
+ patchKind: "gateway-busy-copy-v0215",
3016
+ sourceSha256:
3017
+ "494cb6c868f4653c88fc2fe8af5d4b5d434cb9570164c2956cf890fbe6f5433a",
3018
+ patchedSha256:
3019
+ "fbda52798ae7e5372e9fb74876183e135bb63bf1fbb9f5176b89c511dd61d7b0",
3020
+ },
3021
+ {
3022
+ path: "gateway/slash_commands.py",
3023
+ patchKind: "slash-commands-copy-v0215",
3024
+ sourceSha256:
3025
+ "d50f7b34aef17ba9c9b80da39e51060f1d140dd829a1b526b539496473b3ea7e",
3026
+ patchedSha256:
3027
+ "74501e3f55091f27d089fae022a46888e34edb1cd348958565f086fa1c491fcd",
3028
+ },
2855
3029
  ],
2856
3030
  contractDigest:
2857
- "d8b2ee47591435091a81a3e9913ba5acace2f9c1418cf75c0e23b4d0632e4024",
3031
+ "d6158a72b89062ab158fa28eec4532da331e1325b9d7b66d8cd596973866067d",
2858
3032
  });
2859
3033
 
2860
3034
  function assertRelativeContractPath(path) {
@@ -38,7 +38,7 @@ import { installAgentHostServices } from "./service-installer.mjs";
38
38
  const PACKAGE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), "../..");
39
39
  const VERSION = "sellable-agent-host-bootstrap/v1";
40
40
  const RECEIPT_VERSION = "sellable-agent-host-registration/v1";
41
- const INSTALLER_PACKAGE = "@sellable/install@0.1.807";
41
+ const INSTALLER_PACKAGE = "@sellable/install@0.1.808";
42
42
  const MCP_PACKAGE = "@sellable/mcp@0.1.958";
43
43
  const HERMES_VERSION = "0.18.0";
44
44
  const SHA256 = /^[a-f0-9]{64}$/;
@@ -1546,7 +1546,7 @@ export function compileClaimToProfileDesired(activeClaim, config) {
1546
1546
  ]) ||
1547
1547
  pinned.hermesCli !== "hermes" ||
1548
1548
  pinned.hermesVersion !== "0.18.0" ||
1549
- pinned.installerPackage !== "@sellable/install@0.1.807" ||
1549
+ pinned.installerPackage !== "@sellable/install@0.1.808" ||
1550
1550
  pinned.mcpPackage !== "@sellable/mcp@0.1.958" ||
1551
1551
  !Array.isArray(policy.toolInclude) ||
1552
1552
  policy.toolInclude.length === 0 ||
@@ -312,7 +312,7 @@ function validateDesired(desired) {
312
312
  desired.serviceCredentialGeneration < 1 ||
313
313
  desired.hermesCli !== "hermes" ||
314
314
  desired.hermesVersion !== "0.18.0" ||
315
- desired.installerPackage !== "@sellable/install@0.1.807" ||
315
+ desired.installerPackage !== "@sellable/install@0.1.808" ||
316
316
  desired.mcpPackage !== "@sellable/mcp@0.1.958" ||
317
317
  !Array.isArray(desired.toolInclude) ||
318
318
  desired.toolInclude.length === 0 ||
@@ -25,7 +25,7 @@ import { fileURLToPath } from "node:url";
25
25
  import { deriveContainedProfileId } from "./profile-materializer.mjs";
26
26
 
27
27
  export const PROVISIONING_ACTION = "PROVISION_HERMES_PROFILE";
28
- export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.807";
28
+ export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.808";
29
29
  export const PINNED_MCP_PACKAGE = "@sellable/mcp@0.1.958";
30
30
  const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
31
31
  PINNED_INSTALL_PACKAGE.lastIndexOf("@") + 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/install",
3
- "version": "0.1.807",
3
+ "version": "0.1.808",
4
4
  "type": "module",
5
5
  "description": "One-command installer for Sellable MCP in Claude Code, Codex, and Hermes",
6
6
  "bin": {