@sellable/install 0.1.463 → 0.1.465

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.463
6
+ ARG INSTALLER_PACKAGE=@sellable/install@0.1.465
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.463" \
11
+ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.465" \
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.463" \
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.463' || 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.465' || 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.463', 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.465', 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.463` is
6
+ `@sellable/install@0.1.465` 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.463 .
12
+ --tag sellable-agent-host:0.1.465 .
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`.
@@ -15,6 +15,7 @@ ARG ADMIN_LOCKED_TREE_DIGEST
15
15
  ARG ADMIN_ARTIFACT_DIGEST
16
16
  ARG ADMIN_PACKAGE_LOCK_B64
17
17
  ARG ADMIN_PROFILE_CONTRACT_TEMPLATE_B64
18
+ ARG TUS_JS_CLIENT_VERSION=4.3.1
18
19
 
19
20
  RUN set -eux; \
20
21
  test -n "${ADMIN_PACKAGE_LOCK_B64}"; \
@@ -40,6 +41,14 @@ RUN set -eux; \
40
41
  --omit=dev \
41
42
  --no-audit \
42
43
  --no-fund; \
44
+ npm install \
45
+ --prefix /usr/local/lib/sellable-agent \
46
+ --omit=dev \
47
+ --ignore-scripts \
48
+ --no-audit \
49
+ --no-fund \
50
+ "tus-js-client@${TUS_JS_CLIENT_VERSION}"; \
51
+ test "$(node -p "require('/usr/local/lib/sellable-agent/node_modules/tus-js-client/package.json').version")" = "${TUS_JS_CLIENT_VERSION}"; \
43
52
  test -f /usr/local/lib/sellable-agent/admin-artifact/node_modules/@sellable/install/lib/sellable-agent/admin-runtime-reconciler.mjs; \
44
53
  test -f /usr/local/lib/sellable-agent/admin-artifact/node_modules/@sellable/admin-mcp/dist/index.js; \
45
54
  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);'; \
@@ -60,7 +69,9 @@ COPY hermes-memory-dirty.mjs /opt/sellable/bin/hermes-memory-dirty
60
69
  COPY hermes-memory-reconcile.sh /opt/sellable/share/hermes-memory-reconcile.sh
61
70
  COPY fly-admin-image/rootfs/ /
62
71
 
63
- RUN chmod 0755 /etc \
72
+ RUN node --input-type=module -e \
73
+ 'await import("/usr/local/lib/sellable-agent/fly-runtime-identity.mjs");' \
74
+ && chmod 0755 /etc \
64
75
  && chmod 0555 \
65
76
  /usr/local/lib/sellable-agent/admin-runtime/admin-runtime.mjs \
66
77
  /usr/local/lib/sellable-agent/admin-runtime/start-admin-runtime \
@@ -141,6 +141,8 @@ const RUNTIME_GENERATION = Number(
141
141
  const BOOT_SESSION_ID = randomUUID();
142
142
 
143
143
  const sha256 = (value) => createHash("sha256").update(value).digest("hex");
144
+ const deliveryClaimId = (operationId) =>
145
+ sha256(`sellable-admin-secret-delivery-claim/v1\0${operationId}`);
144
146
  const sleep = (milliseconds) =>
145
147
  new Promise((resolve) => setTimeout(resolve, milliseconds));
146
148
 
@@ -1150,7 +1152,7 @@ async function importDelivery({
1150
1152
  deliveryKey,
1151
1153
  generation,
1152
1154
  }) {
1153
- const claimId = randomUUID();
1155
+ const claimId = deliveryClaimId(operation.operationId);
1154
1156
  let recovery = null;
1155
1157
  let decodedManifest = null;
1156
1158
  let decodedFiles = null;
@@ -1230,6 +1232,22 @@ async function importDelivery({
1230
1232
  cleanupCiphertext: async () => undefined,
1231
1233
  }
1232
1234
  );
1235
+ if (!recovery) {
1236
+ const persisted = receipt?.recovery;
1237
+ if (
1238
+ typeof persisted?.keyId !== "string" ||
1239
+ typeof persisted.ciphertextDigest !== "string" ||
1240
+ typeof persisted.locator !== "string"
1241
+ ) {
1242
+ throw new Error("admin_secret_import_recovery_receipt_rejected");
1243
+ }
1244
+ recovery = {
1245
+ recoveryKeyId: persisted.keyId,
1246
+ ciphertextDigest: persisted.ciphertextDigest,
1247
+ ciphertextBytes: persisted.ciphertextBytes,
1248
+ locator: persisted.locator,
1249
+ };
1250
+ }
1233
1251
  return { receipt, claimId, recovery };
1234
1252
  }
1235
1253
 
@@ -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.463
8
+ ARG INSTALLER_PACKAGE=@sellable/install@0.1.465
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.463";
72
+ process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.465";
73
73
  const MCP_PACKAGE =
74
74
  process.env.SELLABLE_AGENT_MCP_PACKAGE ??
75
75
  "@sellable/mcp@0.1.789-wip.phase159.20260729223403";
@@ -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.463";
41
+ const INSTALLER_PACKAGE = "@sellable/install@0.1.465";
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}$/;
@@ -1540,7 +1540,7 @@ export function compileClaimToProfileDesired(activeClaim, config) {
1540
1540
  ]) ||
1541
1541
  pinned.hermesCli !== "hermes" ||
1542
1542
  pinned.hermesVersion !== "0.18.0" ||
1543
- pinned.installerPackage !== "@sellable/install@0.1.463" ||
1543
+ pinned.installerPackage !== "@sellable/install@0.1.465" ||
1544
1544
  pinned.mcpPackage !==
1545
1545
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
1546
1546
  !Array.isArray(policy.toolInclude) ||
@@ -197,7 +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 !== "@sellable/install@0.1.463" ||
200
+ desired.installerPackage !== "@sellable/install@0.1.465" ||
201
201
  desired.mcpPackage !==
202
202
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
203
203
  !Array.isArray(desired.toolInclude) ||
@@ -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.463";
28
+ export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.465";
29
29
  export const PINNED_MCP_PACKAGE =
30
30
  "@sellable/mcp@0.1.760-wip.phase143.20260727100513";
31
31
 
@@ -612,7 +612,7 @@ function inspectProvisionedProfile({
612
612
  !matchesReadback(manifest, request) ||
613
613
  manifest.serviceCredentialReference !== serviceCredentialReference ||
614
614
  manifest.installerPackage !== PINNED_INSTALL_PACKAGE ||
615
- manifest.installerVersion !== "0.1.463" ||
615
+ manifest.installerVersion !== "0.1.465" ||
616
616
  manifest.mcpPackage !== PINNED_MCP_PACKAGE ||
617
617
  manifest.credentialKeyVersion !== credentialKeyVersion ||
618
618
  !/^[a-f0-9]{16}$/.test(manifest.credentialFingerprint) ||
@@ -826,7 +826,7 @@ function successReceipt({
826
826
  subject: `agent-profile:${observed.profileId}`,
827
827
  cli: {
828
828
  installPackage: PINNED_INSTALL_PACKAGE,
829
- installVersion: "0.1.463",
829
+ installVersion: "0.1.465",
830
830
  mcpPackage: PINNED_MCP_PACKAGE,
831
831
  command: "hermes profile bootstrap",
832
832
  },
@@ -874,7 +874,7 @@ function failure(code, stages, extra = {}, request = null) {
874
874
  : "agent-profile:unbound",
875
875
  cli: {
876
876
  installPackage: PINNED_INSTALL_PACKAGE,
877
- installVersion: "0.1.463",
877
+ installVersion: "0.1.465",
878
878
  mcpPackage: PINNED_MCP_PACKAGE,
879
879
  command: "hermes profile bootstrap",
880
880
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/install",
3
- "version": "0.1.463",
3
+ "version": "0.1.465",
4
4
  "type": "module",
5
5
  "description": "One-command installer for Sellable MCP in Claude Code, Codex, and Hermes",
6
6
  "bin": {