@sellable/install 0.1.460 → 0.1.462

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.460
6
+ ARG INSTALLER_PACKAGE=@sellable/install@0.1.462
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.460" \
11
+ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.462" \
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.460" \
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.460' || 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.462' || 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.460', 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.462', 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.460` is
6
+ `@sellable/install@0.1.462` 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.460 .
12
+ --tag sellable-agent-host:0.1.462 .
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`.
@@ -5,7 +5,7 @@ USER root
5
5
 
6
6
  ARG MCP_PACKAGE=@sellable/mcp@0.1.789-wip.phase159.20260729223403
7
7
  ARG MCP_INTEGRITY=sha512-KoheQcAQe/c8xzhF3R1ls6nQd11bcQqM3ykOUlzzNX5kykO7rO8RR2KsOvomwMv2Nn5VzvZZx6rGrle/6woKfw==
8
- ARG INSTALLER_PACKAGE=@sellable/install@0.1.460
8
+ ARG INSTALLER_PACKAGE=@sellable/install@0.1.462
9
9
  ARG TUS_JS_CLIENT_VERSION=4.3.1
10
10
  ARG HERMES_VERSION=0.19.0
11
11
  ARG MCP_TRUST_ROOT_B64
@@ -69,7 +69,7 @@ const RUNTIME_GENERATION = Number(
69
69
  const BOOT_SESSION_ID = randomUUID();
70
70
  const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.19.0";
71
71
  const INSTALLER_PACKAGE =
72
- process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.460";
72
+ process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.462";
73
73
  const MCP_PACKAGE =
74
74
  process.env.SELLABLE_AGENT_MCP_PACKAGE ??
75
75
  "@sellable/mcp@0.1.789-wip.phase159.20260729223403";
@@ -49,6 +49,7 @@ const VERSION = "0.19.0";
49
49
  const ID = /^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/;
50
50
  const SHA256 = /^[a-f0-9]{64}$/;
51
51
  const MAX_BYTES = 128 * 1024 * 1024;
52
+ const NATIVE_COMMAND_TIMEOUT_MS = 600_000;
52
53
  const execFileAsync = promisify(execFile);
53
54
  const sha256 = (bytes) => createHash("sha256").update(bytes).digest("hex");
54
55
  const failed = (code) => ({ ok: false, status: "PENDING_RETRY", code });
@@ -152,7 +153,7 @@ const invocation = (args, hermesRoot, hermesCli = HERMES) => ({
152
153
  NO_COLOR: "1",
153
154
  },
154
155
  shell: false,
155
- timeoutMs: 120_000,
156
+ timeoutMs: NATIVE_COMMAND_TIMEOUT_MS,
156
157
  maxOutputBytes: 64 * 1024,
157
158
  });
158
159
 
@@ -38,8 +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 =
42
- "@sellable/install@0.1.460";
41
+ const INSTALLER_PACKAGE = "@sellable/install@0.1.462";
43
42
  const MCP_PACKAGE = "@sellable/mcp@0.1.760-wip.phase143.20260727100513";
44
43
  const HERMES_VERSION = "0.18.0";
45
44
  const SHA256 = /^[a-f0-9]{64}$/;
@@ -1540,8 +1540,7 @@ export function compileClaimToProfileDesired(activeClaim, config) {
1540
1540
  ]) ||
1541
1541
  pinned.hermesCli !== "hermes" ||
1542
1542
  pinned.hermesVersion !== "0.18.0" ||
1543
- pinned.installerPackage !==
1544
- "@sellable/install@0.1.460" ||
1543
+ pinned.installerPackage !== "@sellable/install@0.1.462" ||
1545
1544
  pinned.mcpPackage !==
1546
1545
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
1547
1546
  !Array.isArray(policy.toolInclude) ||
@@ -3119,6 +3118,31 @@ function privateRootForAdapter(pathValue) {
3119
3118
  }
3120
3119
  }
3121
3120
 
3121
+ export function planNextHostWorkerPoll({
3122
+ poll,
3123
+ previous = { failures: 0, idleCycles: 0 },
3124
+ result,
3125
+ random = Math.random,
3126
+ }) {
3127
+ const state = result?.ok
3128
+ ? {
3129
+ failures: 0,
3130
+ idleCycles:
3131
+ result.status === "IDLE"
3132
+ ? Math.min((previous.idleCycles ?? 0) + 1, 8)
3133
+ : 0,
3134
+ }
3135
+ : {
3136
+ failures: Math.min((previous.failures ?? 0) + 1, 8),
3137
+ idleCycles: 0,
3138
+ };
3139
+ const exponent =
3140
+ state.failures > 0 ? state.failures : Math.max(0, state.idleCycles - 1);
3141
+ const base = Math.min(poll.maxDelayMs, poll.minDelayMs * 2 ** exponent);
3142
+ const jitter = Math.floor(base * poll.jitterRatio * random());
3143
+ return { state, delayMs: base + jitter };
3144
+ }
3145
+
3122
3146
  export async function runHostWorkerMain({
3123
3147
  argv,
3124
3148
  adapter,
@@ -3138,20 +3162,20 @@ export async function runHostWorkerMain({
3138
3162
  if (!checked.ok) return { ok: false, code: checked.code };
3139
3163
  const selectedAdapter = adapter ?? createPinnedHostWorkerAdapter(config);
3140
3164
  const broker = createHttpWorkerBroker(config, fetchImpl);
3141
- let failures = 0;
3165
+ let pollState = { failures: 0, idleCycles: 0 };
3142
3166
  while (true) {
3143
3167
  const result = await runHostWorkerCycle({
3144
3168
  config,
3145
3169
  broker,
3146
3170
  adapter: selectedAdapter,
3147
3171
  });
3148
- failures = result.ok ? 0 : Math.min(failures + 1, 8);
3149
- const base = Math.min(
3150
- config.poll.maxDelayMs,
3151
- config.poll.minDelayMs * 2 ** failures
3152
- );
3153
- const jitter = Math.floor(base * config.poll.jitterRatio * Math.random());
3154
- await sleep(base + jitter);
3172
+ const next = planNextHostWorkerPoll({
3173
+ poll: config.poll,
3174
+ previous: pollState,
3175
+ result,
3176
+ });
3177
+ pollState = next.state;
3178
+ await sleep(next.delayMs);
3155
3179
  }
3156
3180
  } catch {
3157
3181
  return { ok: false, code: "host_worker_start_failed" };
@@ -197,8 +197,7 @@ function validateDesired(desired) {
197
197
  desired.serviceCredentialGeneration < 1 ||
198
198
  desired.hermesCli !== "hermes" ||
199
199
  desired.hermesVersion !== "0.18.0" ||
200
- desired.installerPackage !==
201
- "@sellable/install@0.1.460" ||
200
+ desired.installerPackage !== "@sellable/install@0.1.462" ||
202
201
  desired.mcpPackage !==
203
202
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
204
203
  !Array.isArray(desired.toolInclude) ||
@@ -25,8 +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 =
29
- "@sellable/install@0.1.460";
28
+ export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.462";
30
29
  export const PINNED_MCP_PACKAGE =
31
30
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513";
32
31
 
@@ -613,8 +612,7 @@ function inspectProvisionedProfile({
613
612
  !matchesReadback(manifest, request) ||
614
613
  manifest.serviceCredentialReference !== serviceCredentialReference ||
615
614
  manifest.installerPackage !== PINNED_INSTALL_PACKAGE ||
616
- manifest.installerVersion !==
617
- "0.1.460" ||
615
+ manifest.installerVersion !== "0.1.462" ||
618
616
  manifest.mcpPackage !== PINNED_MCP_PACKAGE ||
619
617
  manifest.credentialKeyVersion !== credentialKeyVersion ||
620
618
  !/^[a-f0-9]{16}$/.test(manifest.credentialFingerprint) ||
@@ -828,7 +826,7 @@ function successReceipt({
828
826
  subject: `agent-profile:${observed.profileId}`,
829
827
  cli: {
830
828
  installPackage: PINNED_INSTALL_PACKAGE,
831
- installVersion: "0.1.460",
829
+ installVersion: "0.1.462",
832
830
  mcpPackage: PINNED_MCP_PACKAGE,
833
831
  command: "hermes profile bootstrap",
834
832
  },
@@ -876,7 +874,7 @@ function failure(code, stages, extra = {}, request = null) {
876
874
  : "agent-profile:unbound",
877
875
  cli: {
878
876
  installPackage: PINNED_INSTALL_PACKAGE,
879
- installVersion: "0.1.460",
877
+ installVersion: "0.1.462",
880
878
  mcpPackage: PINNED_MCP_PACKAGE,
881
879
  command: "hermes profile bootstrap",
882
880
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/install",
3
- "version": "0.1.460",
3
+ "version": "0.1.462",
4
4
  "type": "module",
5
5
  "description": "One-command installer for Sellable MCP in Claude Code, Codex, and Hermes",
6
6
  "bin": {