@sellable/install 0.1.526 → 0.1.528

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.526
6
+ ARG INSTALLER_PACKAGE=@sellable/install@0.1.528
7
7
  ARG MCP_PACKAGE=@sellable/mcp@0.1.760-wip.phase143.20260727100513
8
8
  ARG INSTALLER_INTEGRITY
9
9
  ARG MCP_INTEGRITY=sha512-muNXHuRnLTfsnW+MQUvK+p0VBZETDKeevr70iRliXyqE3/SLrZQJLL1laJzMo+qiUs9jMXMHdKOQfQqLiwJvtg==
10
10
 
11
- RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.526" \
11
+ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.528" \
12
12
  && test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.760-wip.phase143.20260727100513" \
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.526" \
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.526' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.760-wip.phase143.20260727100513') 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.528' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.760-wip.phase143.20260727100513') 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.526', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.760-wip.phase143.20260727100513', 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.528', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.760-wip.phase143.20260727100513', 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,13 +3,13 @@
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.526` is
6
+ `@sellable/install@0.1.528` is
7
7
  published:
8
8
 
9
9
  ```sh
10
10
  docker build --platform linux/amd64 \
11
11
  --build-arg INSTALLER_INTEGRITY='sha512-…' \
12
- --tag sellable-agent-host:0.1.526 .
12
+ --tag sellable-agent-host:0.1.528 .
13
13
  ```
14
14
 
15
15
  Create a private `bootstrap/` directory owned by root with mode `0700`. It must contain `bootstrap.json`, `provider-auth`, and `slack-app`, each owned by root with mode `0600`. `bootstrap.json` contains only non-secret identities, hashes, package integrities, and the control-plane URL. The other two files contain the provider JSON and global Slack app token whose hashes are pinned by `bootstrap.json`.
@@ -593,6 +593,8 @@ function installAdminModelConfig(profileRoot, modelConfig) {
593
593
  if (document.errors.length > 0) {
594
594
  throw new Error("admin_model_config_rejected");
595
595
  }
596
+ document.set("agent", modelConfig.agent);
597
+ document.set("providers", modelConfig.providers);
596
598
  document.set("model", modelConfig.model);
597
599
  document.set(
598
600
  "credential_pool_strategies",
@@ -602,6 +604,9 @@ function installAdminModelConfig(profileRoot, modelConfig) {
602
604
  atomicPrivateFile(path, document.toString());
603
605
  const readback = parseDocument(readFileSync(path, "utf8")).toJS();
604
606
  if (
607
+ canonicalJson(readback.agent) !== canonicalJson(modelConfig.agent) ||
608
+ canonicalJson(readback.providers) !==
609
+ canonicalJson(modelConfig.providers) ||
605
610
  canonicalJson(readback.model) !== canonicalJson(modelConfig.model) ||
606
611
  canonicalJson(readback.credential_pool_strategies) !==
607
612
  canonicalJson(modelConfig.credential_pool_strategies) ||
@@ -5,7 +5,7 @@ USER root
5
5
 
6
6
  ARG MCP_PACKAGE=@sellable/mcp@0.1.811-wip.phase169.20260805145230
7
7
  ARG MCP_INTEGRITY=sha512-ygNtAiYCdMM3dlTZHMiaAo5aasw4cuhphkxHSvHzF4T9FRFgR3BQodKCsqYz7EfN0nHrDUnsrzcjWedYFQUT0A==
8
- ARG INSTALLER_PACKAGE=@sellable/install@0.1.526
8
+ ARG INSTALLER_PACKAGE=@sellable/install@0.1.528
9
9
  ARG TUS_JS_CLIENT_VERSION=4.3.1
10
10
  ARG HERMES_VERSION=0.20.0
11
11
  ARG MCP_TRUST_ROOT_B64
@@ -79,7 +79,7 @@ const BOOT_SESSION_ID = randomUUID();
79
79
  const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.20.0";
80
80
  const INSTALLER_PACKAGE =
81
81
  process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ??
82
- "@sellable/install@0.1.526";
82
+ "@sellable/install@0.1.528";
83
83
  const MCP_PACKAGE =
84
84
  process.env.SELLABLE_AGENT_MCP_PACKAGE ??
85
85
  "@sellable/mcp@0.1.811-wip.phase169.20260805145230";
@@ -336,6 +336,16 @@ def _sellable_agent_call_meta():
336
336
  }
337
337
  `;
338
338
 
339
+ const MCP_META_HELPER_OPTIONAL_SESSION = MCP_META_HELPER
340
+ .replace(
341
+ ' if platform != "slack" or not channel_id or not requester_id or not message_id or not session_id:\n raise RuntimeError("Sellable MCP calls require a bound Slack requester, channel, message, and session")\n',
342
+ ' if platform != "slack" or not channel_id or not requester_id or not message_id:\n raise RuntimeError("Sellable MCP calls require a bound Slack requester, channel, and message")\n'
343
+ )
344
+ .replace(
345
+ ' return {\n "sellableAgent": {\n "requesterId": requester_id,\n "channelId": channel_id,\n "providerRequestId": message_id,\n "sessionId": session_id,\n }\n }\n',
346
+ ' sellable_agent = {\n "requesterId": requester_id,\n "channelId": channel_id,\n "providerRequestId": message_id,\n }\n if session_id:\n sellable_agent["sessionId"] = session_id\n return {"sellableAgent": sellable_agent}\n'
347
+ );
348
+
339
349
  const V020_SOUL_TURN_PROLOGUE_HELPER = `
340
350
  # ${HERMES_AGENT_BRIDGE_MARKER}: apply only the proven live SOUL at a turn boundary.
341
351
  _SELLABLE_AGENT_SOUL_SESSION_HASHES = {}
@@ -1058,11 +1068,15 @@ export function patchHermesSourceFile(patchKind, source) {
1058
1068
  return patched;
1059
1069
  }
1060
1070
 
1061
- if (patchKind === "mcp-tool") {
1071
+ if (patchKind === "mcp-tool" || patchKind === "mcp-tool-v020") {
1072
+ const metaHelper =
1073
+ patchKind === "mcp-tool-v020"
1074
+ ? MCP_META_HELPER_OPTIONAL_SESSION
1075
+ : MCP_META_HELPER;
1062
1076
  let patched = replaceExactlyOnce(
1063
1077
  source,
1064
1078
  "logger = logging.getLogger(__name__)\n",
1065
- `logger = logging.getLogger(__name__)\n${MCP_META_HELPER}`,
1079
+ `logger = logging.getLogger(__name__)\n${metaHelper}`,
1066
1080
  "MCP metadata helper"
1067
1081
  );
1068
1082
  patched = replaceExactlyOnce(
@@ -1080,6 +1094,25 @@ export function patchHermesSourceFile(patchKind, source) {
1080
1094
  return patched;
1081
1095
  }
1082
1096
 
1097
+ if (patchKind === "gateway-session-v020") {
1098
+ return replaceExactlyOnce(
1099
+ source,
1100
+ [
1101
+ " session_key=context.session_key,",
1102
+ " message_id=str(context.source.message_id) if context.source.message_id else \"\",",
1103
+ ].join("\n"),
1104
+ [
1105
+ " session_key=context.session_key,",
1106
+ " # Bind the durable Hermes conversation ID alongside the Slack actor.",
1107
+ " # Sellable MCP SOUL calls require this task-local identity, and omitting",
1108
+ " # it must not make otherwise valid Slack MCP calls fail closed.",
1109
+ " session_id=context.session_id,",
1110
+ " message_id=str(context.source.message_id) if context.source.message_id else \"\",",
1111
+ ].join("\n"),
1112
+ "v0.20 gateway durable session identity"
1113
+ );
1114
+ }
1115
+
1083
1116
  if (patchKind === "turn-context-v020") {
1084
1117
  let patched = replaceExactlyOnce(
1085
1118
  source,
@@ -1328,11 +1361,19 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V020_CONTRACT = normalizeContract({
1328
1361
  },
1329
1362
  {
1330
1363
  path: "tools/mcp_tool.py",
1331
- patchKind: "mcp-tool",
1364
+ patchKind: "mcp-tool-v020",
1332
1365
  sourceSha256:
1333
1366
  "f9d50eec7b98819fa91b8ce640c8a32eff0726e0f349832763852bd82bbbb958",
1334
1367
  patchedSha256:
1335
- "0cea69c0d72afd7c3eb65afafbfa0d2ba43a865118d169733df71105ccfb094f",
1368
+ "34fa3946e7012c8b5d405f7a55897241d629afd2ceff45bd7e6746877f749e3c",
1369
+ },
1370
+ {
1371
+ path: "gateway/run.py",
1372
+ patchKind: "gateway-session-v020",
1373
+ sourceSha256:
1374
+ "0b749a90ff5740b5c8ce9d138f869aca19295f4c458e3b680e9be9fd7b0fb2ec",
1375
+ patchedSha256:
1376
+ "c2eba580b98c9b4088580930e4045046d835efd9cd88e20391dd9c1f24d930ca",
1336
1377
  },
1337
1378
  {
1338
1379
  path: "agent/turn_context.py",
@@ -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.526";
41
+ const INSTALLER_PACKAGE = "@sellable/install@0.1.528";
42
42
  const MCP_PACKAGE = "@sellable/mcp@0.1.760-wip.phase143.20260727100513";
43
43
  const HERMES_VERSION = "0.18.0";
44
44
  const SHA256 = /^[a-f0-9]{64}$/;
@@ -1541,7 +1541,7 @@ export function compileClaimToProfileDesired(activeClaim, config) {
1541
1541
  pinned.hermesCli !== "hermes" ||
1542
1542
  pinned.hermesVersion !== "0.18.0" ||
1543
1543
  pinned.installerPackage !==
1544
- "@sellable/install@0.1.526" ||
1544
+ "@sellable/install@0.1.528" ||
1545
1545
  pinned.mcpPackage !==
1546
1546
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
1547
1547
  !Array.isArray(policy.toolInclude) ||
@@ -17,6 +17,8 @@ export const MODEL_AUTH_MINIMUM_VALIDITY_MS = 20 * 60 * 1000;
17
17
  export const MODEL_AUTH_PROVIDER = "openai-codex";
18
18
  export const MODEL_AUTH_DEFAULT_MODEL = "gpt-5.6-sol";
19
19
  export const MODEL_AUTH_REASONING_EFFORT = "high";
20
+ export const MODEL_AUTH_REQUEST_TIMEOUT_SECONDS = 60;
21
+ export const MODEL_AUTH_API_MAX_RETRIES = 1;
20
22
 
21
23
  const MARKER_VERSION = 2;
22
24
  const SHA256 = /^[a-f0-9]{64}$/;
@@ -362,6 +364,19 @@ export function modelAuthConfigOverlay(credential) {
362
364
  fail("model_auth_projection_incomplete");
363
365
  }
364
366
  return Object.freeze({
367
+ // Phase 169 live Slack UAT showed that Hermes's default three inference
368
+ // attempts can keep a slow-but-open provider leg alive for five minutes.
369
+ // The ordered provider/model chain is the retry strategy for these
370
+ // runtimes, so bound each leg once and advance instead of retrying it.
371
+ agent: Object.freeze({ api_max_retries: MODEL_AUTH_API_MAX_RETRIES }),
372
+ providers: Object.freeze({
373
+ "openai-codex": Object.freeze({
374
+ request_timeout_seconds: MODEL_AUTH_REQUEST_TIMEOUT_SECONDS,
375
+ }),
376
+ openrouter: Object.freeze({
377
+ request_timeout_seconds: MODEL_AUTH_REQUEST_TIMEOUT_SECONDS,
378
+ }),
379
+ }),
365
380
  model: Object.freeze({
366
381
  default: MODEL_AUTH_DEFAULT_MODEL,
367
382
  provider: MODEL_AUTH_PROVIDER,
@@ -200,7 +200,7 @@ function validateDesired(desired) {
200
200
  desired.hermesCli !== "hermes" ||
201
201
  desired.hermesVersion !== "0.18.0" ||
202
202
  desired.installerPackage !==
203
- "@sellable/install@0.1.526" ||
203
+ "@sellable/install@0.1.528" ||
204
204
  desired.mcpPackage !==
205
205
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
206
206
  !Array.isArray(desired.toolInclude) ||
@@ -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.526";
29
+ "@sellable/install@0.1.528";
30
30
  export const PINNED_MCP_PACKAGE =
31
31
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513";
32
32
 
@@ -613,7 +613,7 @@ function inspectProvisionedProfile({
613
613
  !matchesReadback(manifest, request) ||
614
614
  manifest.serviceCredentialReference !== serviceCredentialReference ||
615
615
  manifest.installerPackage !== PINNED_INSTALL_PACKAGE ||
616
- manifest.installerVersion !== "0.1.526" ||
616
+ manifest.installerVersion !== "0.1.528" ||
617
617
  manifest.mcpPackage !== PINNED_MCP_PACKAGE ||
618
618
  manifest.credentialKeyVersion !== credentialKeyVersion ||
619
619
  !/^[a-f0-9]{16}$/.test(manifest.credentialFingerprint) ||
@@ -827,7 +827,7 @@ function successReceipt({
827
827
  subject: `agent-profile:${observed.profileId}`,
828
828
  cli: {
829
829
  installPackage: PINNED_INSTALL_PACKAGE,
830
- installVersion: "0.1.526",
830
+ installVersion: "0.1.528",
831
831
  mcpPackage: PINNED_MCP_PACKAGE,
832
832
  command: "hermes profile bootstrap",
833
833
  },
@@ -875,7 +875,7 @@ function failure(code, stages, extra = {}, request = null) {
875
875
  : "agent-profile:unbound",
876
876
  cli: {
877
877
  installPackage: PINNED_INSTALL_PACKAGE,
878
- installVersion: "0.1.526",
878
+ installVersion: "0.1.528",
879
879
  mcpPackage: PINNED_MCP_PACKAGE,
880
880
  command: "hermes profile bootstrap",
881
881
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/install",
3
- "version": "0.1.526",
3
+ "version": "0.1.528",
4
4
  "type": "module",
5
5
  "description": "One-command installer for Sellable MCP in Claude Code, Codex, and Hermes",
6
6
  "bin": {