@sellable/install 0.1.760 → 0.1.761
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 +7 -7
- package/container/README.md +1 -1
- package/lib/sellable-agent/external-runtime-builder.mjs +1 -1
- package/lib/sellable-agent/fly-admin-image/admin-runtime.mjs +7 -5
- package/lib/sellable-agent/fly-customer-image/Dockerfile +3 -3
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +12 -9
- package/lib/sellable-agent/host-bootstrap.mjs +2 -2
- package/lib/sellable-agent/host-worker.mjs +2 -2
- package/lib/sellable-agent/profile-materializer.mjs +2 -2
- package/lib/sellable-agent/provisioning-adapter.mjs +2 -2
- package/package.json +1 -1
package/container/Dockerfile
CHANGED
|
@@ -3,13 +3,13 @@ FROM ${HERMES_IMAGE}
|
|
|
3
3
|
|
|
4
4
|
USER root
|
|
5
5
|
|
|
6
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
7
|
-
ARG MCP_PACKAGE=@sellable/mcp@0.1.
|
|
6
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.761
|
|
7
|
+
ARG MCP_PACKAGE=@sellable/mcp@0.1.940
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
|
-
ARG MCP_INTEGRITY=sha512-
|
|
9
|
+
ARG MCP_INTEGRITY=sha512-tdOI35yXq3VzfaN47RJfbuzopzfgrPw/66eM6rMDa+NOrt9nM0UmFjL59dj9lDg7rv8Ryl41EeYsysrF5c+OqA==
|
|
10
10
|
|
|
11
|
-
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.
|
|
12
|
-
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.
|
|
11
|
+
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.761" \
|
|
12
|
+
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.940" \
|
|
13
13
|
&& test -n "${INSTALLER_INTEGRITY}" \
|
|
14
14
|
&& test "$(npm view "${INSTALLER_PACKAGE}" dist.integrity)" = "${INSTALLER_INTEGRITY}" \
|
|
15
15
|
&& test "$(npm view "${MCP_PACKAGE}" dist.integrity)" = "${MCP_INTEGRITY}" \
|
|
@@ -23,9 +23,9 @@ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.758" \
|
|
|
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.761' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.940') 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.761', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.940', 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,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.
|
|
6
|
+
`@sellable/install@0.1.761` is
|
|
7
7
|
published:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
|
|
29
29
|
const MANIFEST_VERSION = "sellable-agent-external-runtime-closure/v1";
|
|
30
30
|
const MCP_PACKAGE = "@sellable/mcp";
|
|
31
|
-
const MCP_VERSION = "0.1.
|
|
31
|
+
const MCP_VERSION = "0.1.940";
|
|
32
32
|
const SAFE_COMPONENT = /^[A-Za-z0-9@._+-]+$/;
|
|
33
33
|
const HERMES_EXCLUDES = new Set([".git", ".playwright", "node_modules"]);
|
|
34
34
|
|
|
@@ -4160,6 +4160,13 @@ async function runAdminProduction() {
|
|
|
4160
4160
|
kind: "ADMIN",
|
|
4161
4161
|
claim,
|
|
4162
4162
|
});
|
|
4163
|
+
// Refresh image-owned public skills before default-bundle verification,
|
|
4164
|
+
// including upgrades from profiles without receipts for the shared skills.
|
|
4165
|
+
const publicSkills = reconcilePublicHermesSkills({
|
|
4166
|
+
profileId: profile.profile,
|
|
4167
|
+
profileRoot: profile.profileHome,
|
|
4168
|
+
dataRoot: DATA_ROOT,
|
|
4169
|
+
});
|
|
4163
4170
|
const reconciledDefaultProfile = await phaseTelemetry.run(
|
|
4164
4171
|
"default_profile_bundle",
|
|
4165
4172
|
async () =>
|
|
@@ -4182,11 +4189,6 @@ async function runAdminProduction() {
|
|
|
4182
4189
|
if (!reconciledDefaultProfile.ok)
|
|
4183
4190
|
throw new Error(reconciledDefaultProfile.code);
|
|
4184
4191
|
const defaultProfile = reconciledDefaultProfile;
|
|
4185
|
-
const publicSkills = reconcilePublicHermesSkills({
|
|
4186
|
-
profileId: profile.profile,
|
|
4187
|
-
profileRoot: profile.profileHome,
|
|
4188
|
-
dataRoot: DATA_ROOT,
|
|
4189
|
-
});
|
|
4190
4192
|
const soulProof = observeProfileSoul(profile.profile, {
|
|
4191
4193
|
dataRoot: DATA_ROOT,
|
|
4192
4194
|
});
|
|
@@ -6,9 +6,9 @@ USER root
|
|
|
6
6
|
|
|
7
7
|
ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright
|
|
8
8
|
|
|
9
|
-
ARG MCP_PACKAGE=@sellable/mcp@0.1.
|
|
10
|
-
ARG MCP_INTEGRITY=sha512-
|
|
11
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
9
|
+
ARG MCP_PACKAGE=@sellable/mcp@0.1.940
|
|
10
|
+
ARG MCP_INTEGRITY=sha512-tdOI35yXq3VzfaN47RJfbuzopzfgrPw/66eM6rMDa+NOrt9nM0UmFjL59dj9lDg7rv8Ryl41EeYsysrF5c+OqA==
|
|
11
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.761
|
|
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
|
|
@@ -122,9 +122,9 @@ const RUNTIME_GENERATION = Number(
|
|
|
122
122
|
const BOOT_SESSION_ID = randomUUID();
|
|
123
123
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.21.3";
|
|
124
124
|
const INSTALLER_PACKAGE =
|
|
125
|
-
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.
|
|
125
|
+
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.761";
|
|
126
126
|
const MCP_PACKAGE =
|
|
127
|
-
process.env.SELLABLE_AGENT_MCP_PACKAGE ?? "@sellable/mcp@0.1.
|
|
127
|
+
process.env.SELLABLE_AGENT_MCP_PACKAGE ?? "@sellable/mcp@0.1.940";
|
|
128
128
|
export const ENDPOINT_MAX_CONCURRENT_RUNS = 10;
|
|
129
129
|
const DEFAULT_PROFILE_BUNDLE_ROOT =
|
|
130
130
|
"/usr/local/share/sellable-agent/default-profile-bundle";
|
|
@@ -3755,6 +3755,14 @@ async function processOperation({
|
|
|
3755
3755
|
kind: "CUSTOMER",
|
|
3756
3756
|
claim,
|
|
3757
3757
|
});
|
|
3758
|
+
// Public skill files are image-owned. Update them before the default bundle
|
|
3759
|
+
// verifies their bytes; older images may have no default-bundle receipt yet.
|
|
3760
|
+
await reattestAuthority();
|
|
3761
|
+
const publicSkills = reconcilePublicHermesSkills({
|
|
3762
|
+
profileId: desired.profileId,
|
|
3763
|
+
profileRoot,
|
|
3764
|
+
dataRoot: DATA_ROOT,
|
|
3765
|
+
});
|
|
3758
3766
|
const reconciledDefaultProfile = await phaseTelemetry.run(
|
|
3759
3767
|
"default_profile_bundle",
|
|
3760
3768
|
() =>
|
|
@@ -3777,14 +3785,9 @@ async function processOperation({
|
|
|
3777
3785
|
if (!reconciledDefaultProfile.ok)
|
|
3778
3786
|
throw new Error(reconciledDefaultProfile.code);
|
|
3779
3787
|
const defaultProfile = reconciledDefaultProfile;
|
|
3780
|
-
const {
|
|
3788
|
+
const { runtimeConfig, soulProof } = await phaseTelemetry.run(
|
|
3781
3789
|
"profile_configuration",
|
|
3782
3790
|
async () => {
|
|
3783
|
-
const publicSkills = reconcilePublicHermesSkills({
|
|
3784
|
-
profileId: desired.profileId,
|
|
3785
|
-
profileRoot,
|
|
3786
|
-
dataRoot: DATA_ROOT,
|
|
3787
|
-
});
|
|
3788
3791
|
installInternalAdminRuntimeSettings({ desired, profileRoot });
|
|
3789
3792
|
const runtimeConfig = writeRuntimeHermesConfig({
|
|
3790
3793
|
desired,
|
|
@@ -3800,7 +3803,7 @@ async function processOperation({
|
|
|
3800
3803
|
if (soulProof.ok !== true) {
|
|
3801
3804
|
throw new Error("customer_live_soul_loader_proof_rejected");
|
|
3802
3805
|
}
|
|
3803
|
-
return {
|
|
3806
|
+
return { runtimeConfig, soulProof };
|
|
3804
3807
|
}
|
|
3805
3808
|
);
|
|
3806
3809
|
const observedSoulRawSha256 = soulProof.rawFileSha256;
|
|
@@ -38,8 +38,8 @@ 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.
|
|
42
|
-
const MCP_PACKAGE = "@sellable/mcp@0.1.
|
|
41
|
+
const INSTALLER_PACKAGE = "@sellable/install@0.1.761";
|
|
42
|
+
const MCP_PACKAGE = "@sellable/mcp@0.1.940";
|
|
43
43
|
const HERMES_VERSION = "0.18.0";
|
|
44
44
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
45
45
|
const SHA256_16 = /^[a-f0-9]{16}$/;
|
|
@@ -1546,8 +1546,8 @@ 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.
|
|
1550
|
-
pinned.mcpPackage !== "@sellable/mcp@0.1.
|
|
1549
|
+
pinned.installerPackage !== "@sellable/install@0.1.761" ||
|
|
1550
|
+
pinned.mcpPackage !== "@sellable/mcp@0.1.940" ||
|
|
1551
1551
|
!Array.isArray(policy.toolInclude) ||
|
|
1552
1552
|
policy.toolInclude.length === 0 ||
|
|
1553
1553
|
!Number.isSafeInteger(slack.generation) ||
|
|
@@ -312,8 +312,8 @@ 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.
|
|
316
|
-
desired.mcpPackage !== "@sellable/mcp@0.1.
|
|
315
|
+
desired.installerPackage !== "@sellable/install@0.1.761" ||
|
|
316
|
+
desired.mcpPackage !== "@sellable/mcp@0.1.940" ||
|
|
317
317
|
!Array.isArray(desired.toolInclude) ||
|
|
318
318
|
desired.toolInclude.length === 0 ||
|
|
319
319
|
desired.toolInclude.some((tool) => !/^[a-z][a-z0-9_]{0,127}$/.test(tool)) ||
|
|
@@ -25,8 +25,8 @@ 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.
|
|
29
|
-
export const PINNED_MCP_PACKAGE = "@sellable/mcp@0.1.
|
|
28
|
+
export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.761";
|
|
29
|
+
export const PINNED_MCP_PACKAGE = "@sellable/mcp@0.1.940";
|
|
30
30
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|
|
31
31
|
PINNED_INSTALL_PACKAGE.lastIndexOf("@") + 1
|
|
32
32
|
);
|