@sellable/install 0.1.460 → 0.1.461
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 +4 -4
- package/container/README.md +2 -2
- package/lib/sellable-agent/fly-customer-image/Dockerfile +1 -1
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +1 -1
- package/lib/sellable-agent/hermes-memory-snapshot.mjs +2 -1
- package/lib/sellable-agent/host-bootstrap.mjs +1 -2
- package/lib/sellable-agent/host-worker.mjs +1 -2
- package/lib/sellable-agent/profile-materializer.mjs +1 -2
- package/lib/sellable-agent/provisioning-adapter.mjs +4 -6
- package/package.json +1 -1
package/container/Dockerfile
CHANGED
|
@@ -3,12 +3,12 @@ FROM ${HERMES_IMAGE}
|
|
|
3
3
|
|
|
4
4
|
USER root
|
|
5
5
|
|
|
6
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
6
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.461
|
|
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.
|
|
11
|
+
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.461" \
|
|
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.
|
|
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.461' || 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.
|
|
28
|
+
&& node --input-type=module -e "import { chmodSync, writeFileSync } from 'node:fs'; const release = { installerPackage: '@sellable/install@0.1.461', 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
|
package/container/README.md
CHANGED
|
@@ -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.
|
|
6
|
+
`@sellable/install@0.1.461` 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.
|
|
12
|
+
--tag sellable-agent-host:0.1.461 .
|
|
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.
|
|
8
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.461
|
|
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.
|
|
72
|
+
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.461";
|
|
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:
|
|
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.461";
|
|
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.461" ||
|
|
1545
1544
|
pinned.mcpPackage !==
|
|
1546
1545
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
|
|
1547
1546
|
!Array.isArray(policy.toolInclude) ||
|
|
@@ -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.461" ||
|
|
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.461";
|
|
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.461" ||
|
|
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.
|
|
829
|
+
installVersion: "0.1.461",
|
|
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.
|
|
877
|
+
installVersion: "0.1.461",
|
|
880
878
|
mcpPackage: PINNED_MCP_PACKAGE,
|
|
881
879
|
command: "hermes profile bootstrap",
|
|
882
880
|
},
|