@sellable/install 0.1.454 → 0.1.456
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-admin-image/admin-runtime.mjs +82 -5
- package/lib/sellable-agent/fly-customer-image/Dockerfile +1 -1
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +93 -7
- package/lib/sellable-agent/fly-runtime-identity.mjs +13 -2
- package/lib/sellable-agent/host-bootstrap.mjs +1 -1
- package/lib/sellable-agent/host-worker.mjs +1 -1
- package/lib/sellable-agent/profile-materializer.mjs +1 -1
- package/lib/sellable-agent/provisioning-adapter.mjs +4 -4
- 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.456
|
|
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.456" \
|
|
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.454" \
|
|
|
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.456' || 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.456', 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.456` 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.456 .
|
|
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`.
|
|
@@ -1161,6 +1161,7 @@ function completionReceipt({
|
|
|
1161
1161
|
settings,
|
|
1162
1162
|
recovery,
|
|
1163
1163
|
observedLifecycle,
|
|
1164
|
+
memorySnapshot,
|
|
1164
1165
|
}) {
|
|
1165
1166
|
const identity = operationIdentity(claim, exchange);
|
|
1166
1167
|
const routeGenerationDigest = flyRuntimeDigest(
|
|
@@ -1224,11 +1225,45 @@ function completionReceipt({
|
|
|
1224
1225
|
{ code: "NO_BOOT_INSTALL", status: "TRUE" },
|
|
1225
1226
|
],
|
|
1226
1227
|
errorClass: "NONE",
|
|
1227
|
-
auditIds: [
|
|
1228
|
+
auditIds: [
|
|
1229
|
+
`fly-admin-${claim.operation.id}`,
|
|
1230
|
+
`hermes-memory-${
|
|
1231
|
+
memorySnapshot.ok ? memorySnapshot.status : memorySnapshot.code
|
|
1232
|
+
}`.toLowerCase(),
|
|
1233
|
+
],
|
|
1228
1234
|
adminRuntimeProof,
|
|
1229
1235
|
};
|
|
1230
1236
|
}
|
|
1231
1237
|
|
|
1238
|
+
async function flushHermesSnapshot({ client, profileId, profileRoot }) {
|
|
1239
|
+
try {
|
|
1240
|
+
markHermesSnapshotDirty(profileRoot);
|
|
1241
|
+
return await reconcileHermesSnapshot({
|
|
1242
|
+
profileId,
|
|
1243
|
+
profileRoot,
|
|
1244
|
+
hermesRoot: DATA_ROOT,
|
|
1245
|
+
hermesVersion: "0.19.0",
|
|
1246
|
+
debounceMs: 0,
|
|
1247
|
+
upload: ({ archiveDigest, archiveBytes, sourceProfileId, bytes }) =>
|
|
1248
|
+
client.putMemorySnapshot(
|
|
1249
|
+
{
|
|
1250
|
+
archiveDigest,
|
|
1251
|
+
archiveBytes,
|
|
1252
|
+
hermesVersion: "0.19.0",
|
|
1253
|
+
sourceProfileId,
|
|
1254
|
+
},
|
|
1255
|
+
bytes
|
|
1256
|
+
),
|
|
1257
|
+
});
|
|
1258
|
+
} catch {
|
|
1259
|
+
return {
|
|
1260
|
+
ok: false,
|
|
1261
|
+
status: "PENDING_RETRY",
|
|
1262
|
+
code: "hermes_snapshot_flush_failed",
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1232
1267
|
function desiredLifecycleForClaim(claim) {
|
|
1233
1268
|
switch (claim.operation.action) {
|
|
1234
1269
|
case "INSTANTIATE":
|
|
@@ -1708,16 +1743,43 @@ async function runAdminProduction() {
|
|
|
1708
1743
|
exchange,
|
|
1709
1744
|
});
|
|
1710
1745
|
const controller = new AbortController();
|
|
1711
|
-
const stop = () => controller.abort();
|
|
1712
|
-
process.once("SIGINT", stop);
|
|
1713
|
-
process.once("SIGTERM", stop);
|
|
1714
1746
|
let activeGateway = null;
|
|
1715
1747
|
let activeLaunch = null;
|
|
1748
|
+
let shutdownMemorySnapshot = null;
|
|
1749
|
+
const beginShutdownSnapshot = () => {
|
|
1750
|
+
if (!activeLaunch || shutdownMemorySnapshot) return;
|
|
1751
|
+
const launch = activeLaunch;
|
|
1752
|
+
const gateway = activeGateway;
|
|
1753
|
+
shutdownMemorySnapshot = (async () => {
|
|
1754
|
+
try {
|
|
1755
|
+
await stopNativeGateway(gateway);
|
|
1756
|
+
if (activeGateway === gateway) activeGateway = null;
|
|
1757
|
+
return await flushHermesSnapshot({
|
|
1758
|
+
client,
|
|
1759
|
+
profileId: launch.profile.profile,
|
|
1760
|
+
profileRoot: launch.profile.profileHome,
|
|
1761
|
+
});
|
|
1762
|
+
} catch {
|
|
1763
|
+
return {
|
|
1764
|
+
ok: false,
|
|
1765
|
+
status: "PENDING_RETRY",
|
|
1766
|
+
code: "hermes_snapshot_shutdown_failed",
|
|
1767
|
+
};
|
|
1768
|
+
}
|
|
1769
|
+
})();
|
|
1770
|
+
};
|
|
1771
|
+
const stop = () => {
|
|
1772
|
+
controller.abort();
|
|
1773
|
+
beginShutdownSnapshot();
|
|
1774
|
+
};
|
|
1775
|
+
process.once("SIGINT", stop);
|
|
1776
|
+
process.once("SIGTERM", stop);
|
|
1716
1777
|
let operationHeartbeat = null;
|
|
1717
1778
|
let failures = 0;
|
|
1718
1779
|
while (!controller.signal.aborted) {
|
|
1719
1780
|
try {
|
|
1720
1781
|
const claim = await client.claim(60);
|
|
1782
|
+
if (controller.signal.aborted) break;
|
|
1721
1783
|
if (!claim) {
|
|
1722
1784
|
if (activeLaunch) {
|
|
1723
1785
|
await reconcileHermesSnapshot({
|
|
@@ -1860,7 +1922,11 @@ async function runAdminProduction() {
|
|
|
1860
1922
|
soul: exactSoul(claim),
|
|
1861
1923
|
slack: nativeSlackProfileInput(claim, installed),
|
|
1862
1924
|
});
|
|
1863
|
-
|
|
1925
|
+
const memorySnapshot = await flushHermesSnapshot({
|
|
1926
|
+
client,
|
|
1927
|
+
profileId: profile.profile,
|
|
1928
|
+
profileRoot: profile.profileHome,
|
|
1929
|
+
});
|
|
1864
1930
|
const settings = settingsProof(
|
|
1865
1931
|
imported.receipt.generationRoot,
|
|
1866
1932
|
imported.receipt.settingsDigest
|
|
@@ -1890,6 +1956,7 @@ async function runAdminProduction() {
|
|
|
1890
1956
|
settings,
|
|
1891
1957
|
recovery,
|
|
1892
1958
|
observedLifecycle: desiredLifecycle,
|
|
1959
|
+
memorySnapshot,
|
|
1893
1960
|
});
|
|
1894
1961
|
operationHeartbeat.assertHealthy();
|
|
1895
1962
|
const candidateLaunch =
|
|
@@ -1944,6 +2011,16 @@ async function runAdminProduction() {
|
|
|
1944
2011
|
await sleep(Math.min(30_000, 500 * 2 ** failures));
|
|
1945
2012
|
}
|
|
1946
2013
|
}
|
|
2014
|
+
beginShutdownSnapshot();
|
|
2015
|
+
const finalMemorySnapshot = await shutdownMemorySnapshot;
|
|
2016
|
+
if (finalMemorySnapshot?.ok === false) {
|
|
2017
|
+
process.stderr.write(
|
|
2018
|
+
`${JSON.stringify({
|
|
2019
|
+
ok: false,
|
|
2020
|
+
code: finalMemorySnapshot.code,
|
|
2021
|
+
})}\n`
|
|
2022
|
+
);
|
|
2023
|
+
}
|
|
1947
2024
|
await stopNativeGateway(activeGateway);
|
|
1948
2025
|
clearRuntimeSecrets();
|
|
1949
2026
|
}
|
|
@@ -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.456
|
|
9
9
|
ARG HERMES_VERSION=0.19.0
|
|
10
10
|
ARG MCP_TRUST_ROOT_B64
|
|
11
11
|
ARG TIRITH_VERSION=0.3.3
|
|
@@ -68,7 +68,7 @@ const RUNTIME_GENERATION = Number(
|
|
|
68
68
|
);
|
|
69
69
|
const BOOT_SESSION_ID = randomUUID();
|
|
70
70
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.19.0";
|
|
71
|
-
const INSTALLER_PACKAGE = process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.
|
|
71
|
+
const INSTALLER_PACKAGE = process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.456";
|
|
72
72
|
const MCP_PACKAGE = process.env.SELLABLE_AGENT_MCP_PACKAGE ?? "@sellable/mcp@0.1.789-wip.phase159.20260729223403";
|
|
73
73
|
|
|
74
74
|
const sha256 = (value) => createHash("sha256").update(value).digest("hex");
|
|
@@ -874,7 +874,13 @@ async function proveApplication({
|
|
|
874
874
|
};
|
|
875
875
|
}
|
|
876
876
|
|
|
877
|
-
function completionReceipt({
|
|
877
|
+
function completionReceipt({
|
|
878
|
+
claim,
|
|
879
|
+
exchange,
|
|
880
|
+
desired,
|
|
881
|
+
proof,
|
|
882
|
+
memorySnapshot,
|
|
883
|
+
}) {
|
|
878
884
|
const identity = operationIdentity(claim, exchange);
|
|
879
885
|
const observedLifecycle =
|
|
880
886
|
claim.operation.action === "INSTANTIATE" ? "OFF" : "ON";
|
|
@@ -916,10 +922,44 @@ function completionReceipt({ claim, exchange, desired, proof }) {
|
|
|
916
922
|
{ code: "DEDICATED_SLACK_APP", status: "TRUE" },
|
|
917
923
|
],
|
|
918
924
|
errorClass: "NONE",
|
|
919
|
-
auditIds: [
|
|
925
|
+
auditIds: [
|
|
926
|
+
`fly-${claim.operation.id}`,
|
|
927
|
+
`hermes-memory-${
|
|
928
|
+
memorySnapshot.ok ? memorySnapshot.status : memorySnapshot.code
|
|
929
|
+
}`.toLowerCase(),
|
|
930
|
+
],
|
|
920
931
|
};
|
|
921
932
|
}
|
|
922
933
|
|
|
934
|
+
async function flushHermesSnapshot({ client, profileId, profileRoot }) {
|
|
935
|
+
try {
|
|
936
|
+
markHermesSnapshotDirty(profileRoot);
|
|
937
|
+
return await reconcileHermesSnapshot({
|
|
938
|
+
profileId,
|
|
939
|
+
profileRoot,
|
|
940
|
+
hermesRoot: DATA_ROOT,
|
|
941
|
+
hermesVersion: HERMES_VERSION,
|
|
942
|
+
debounceMs: 0,
|
|
943
|
+
upload: ({ archiveDigest, archiveBytes, sourceProfileId, bytes }) =>
|
|
944
|
+
client.putMemorySnapshot(
|
|
945
|
+
{
|
|
946
|
+
archiveDigest,
|
|
947
|
+
archiveBytes,
|
|
948
|
+
hermesVersion: HERMES_VERSION,
|
|
949
|
+
sourceProfileId,
|
|
950
|
+
},
|
|
951
|
+
bytes
|
|
952
|
+
),
|
|
953
|
+
});
|
|
954
|
+
} catch {
|
|
955
|
+
return {
|
|
956
|
+
ok: false,
|
|
957
|
+
status: "PENDING_RETRY",
|
|
958
|
+
code: "hermes_snapshot_flush_failed",
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
|
|
923
963
|
async function processOperation({ claim, exchange, client }) {
|
|
924
964
|
const trustRootPem = readFileSync(TRUST_ROOT, "utf8");
|
|
925
965
|
const { desired, toolInclude } = compileDesired(claim, trustRootPem);
|
|
@@ -959,7 +999,11 @@ async function processOperation({ claim, exchange, client }) {
|
|
|
959
999
|
hermesCli: HERMES,
|
|
960
1000
|
});
|
|
961
1001
|
if (!memoryCron.ok) throw new Error(memoryCron.code);
|
|
962
|
-
|
|
1002
|
+
const memorySnapshot = await flushHermesSnapshot({
|
|
1003
|
+
client,
|
|
1004
|
+
profileId: desired.profileId,
|
|
1005
|
+
profileRoot,
|
|
1006
|
+
});
|
|
963
1007
|
const prove =
|
|
964
1008
|
claim.operation.action === "INSTANTIATE"
|
|
965
1009
|
? proveProvisionedApplication
|
|
@@ -970,7 +1014,13 @@ async function processOperation({ claim, exchange, client }) {
|
|
|
970
1014
|
secrets,
|
|
971
1015
|
profileDigest: pristineProfile.manifest.profileDigest,
|
|
972
1016
|
});
|
|
973
|
-
const receipt = completionReceipt({
|
|
1017
|
+
const receipt = completionReceipt({
|
|
1018
|
+
claim,
|
|
1019
|
+
exchange,
|
|
1020
|
+
desired,
|
|
1021
|
+
proof,
|
|
1022
|
+
memorySnapshot,
|
|
1023
|
+
});
|
|
974
1024
|
const completed = await client.complete(receipt);
|
|
975
1025
|
if (completed?.accepted !== true)
|
|
976
1026
|
throw new Error("customer_completion_rejected");
|
|
@@ -1055,11 +1105,36 @@ async function main() {
|
|
|
1055
1105
|
exchange,
|
|
1056
1106
|
});
|
|
1057
1107
|
const controller = new AbortController();
|
|
1058
|
-
|
|
1108
|
+
let activeRuntime = null;
|
|
1109
|
+
let shutdownMemorySnapshot = null;
|
|
1110
|
+
const beginShutdownSnapshot = () => {
|
|
1111
|
+
if (!activeRuntime || shutdownMemorySnapshot) return;
|
|
1112
|
+
const runtime = activeRuntime;
|
|
1113
|
+
shutdownMemorySnapshot = (async () => {
|
|
1114
|
+
try {
|
|
1115
|
+
await stopNativeGateway(runtime.gateway);
|
|
1116
|
+
runtime.gateway = null;
|
|
1117
|
+
return await flushHermesSnapshot({
|
|
1118
|
+
client,
|
|
1119
|
+
profileId: runtime.desired.profileId,
|
|
1120
|
+
profileRoot: runtime.profileRoot,
|
|
1121
|
+
});
|
|
1122
|
+
} catch {
|
|
1123
|
+
return {
|
|
1124
|
+
ok: false,
|
|
1125
|
+
status: "PENDING_RETRY",
|
|
1126
|
+
code: "hermes_snapshot_shutdown_failed",
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
})();
|
|
1130
|
+
};
|
|
1131
|
+
const stop = () => {
|
|
1132
|
+
controller.abort();
|
|
1133
|
+
beginShutdownSnapshot();
|
|
1134
|
+
};
|
|
1059
1135
|
process.once("SIGINT", stop);
|
|
1060
1136
|
process.once("SIGTERM", stop);
|
|
1061
1137
|
let failures = 0;
|
|
1062
|
-
let activeRuntime = null;
|
|
1063
1138
|
while (!controller.signal.aborted) {
|
|
1064
1139
|
try {
|
|
1065
1140
|
let claim;
|
|
@@ -1087,6 +1162,7 @@ async function main() {
|
|
|
1087
1162
|
);
|
|
1088
1163
|
continue;
|
|
1089
1164
|
}
|
|
1165
|
+
if (controller.signal.aborted) break;
|
|
1090
1166
|
if (!claim) {
|
|
1091
1167
|
if (activeRuntime) {
|
|
1092
1168
|
await reconcileHermesSnapshot({
|
|
@@ -1135,6 +1211,16 @@ async function main() {
|
|
|
1135
1211
|
await sleep(Math.min(30_000, 500 * 2 ** failures));
|
|
1136
1212
|
}
|
|
1137
1213
|
}
|
|
1214
|
+
beginShutdownSnapshot();
|
|
1215
|
+
const finalMemorySnapshot = await shutdownMemorySnapshot;
|
|
1216
|
+
if (finalMemorySnapshot?.ok === false) {
|
|
1217
|
+
process.stderr.write(
|
|
1218
|
+
`${JSON.stringify({
|
|
1219
|
+
ok: false,
|
|
1220
|
+
code: finalMemorySnapshot.code,
|
|
1221
|
+
})}\n`
|
|
1222
|
+
);
|
|
1223
|
+
}
|
|
1138
1224
|
await stopNativeGateway(activeRuntime?.gateway);
|
|
1139
1225
|
if (activeRuntime?.desired.profileId) {
|
|
1140
1226
|
clearCustomerRuntimeSecrets({
|
|
@@ -700,14 +700,25 @@ export function createFlyCustomerControlClient({
|
|
|
700
700
|
},
|
|
701
701
|
"memory-snapshot-put"
|
|
702
702
|
);
|
|
703
|
-
if (
|
|
703
|
+
if (
|
|
704
|
+
!signedUrlAccepted(begin?.signedUrl) ||
|
|
705
|
+
typeof begin?.publishableKey !== "string" ||
|
|
706
|
+
begin.publishableKey.length < 16 ||
|
|
707
|
+
begin.publishableKey.length > 4096 ||
|
|
708
|
+
/\s/.test(begin.publishableKey)
|
|
709
|
+
) {
|
|
704
710
|
throw new WorkerControlResponseError(
|
|
705
711
|
"memory_snapshot_upload_url_rejected"
|
|
706
712
|
);
|
|
707
713
|
}
|
|
708
714
|
const uploaded = await fetchImpl(begin.signedUrl, {
|
|
709
715
|
method: "PUT",
|
|
710
|
-
headers: {
|
|
716
|
+
headers: {
|
|
717
|
+
apikey: begin.publishableKey,
|
|
718
|
+
"cache-control": "max-age=3600",
|
|
719
|
+
"content-type": "application/zip",
|
|
720
|
+
"x-upsert": "true",
|
|
721
|
+
},
|
|
711
722
|
body: archive,
|
|
712
723
|
signal: AbortSignal.timeout(120_000),
|
|
713
724
|
});
|
|
@@ -39,7 +39,7 @@ 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
41
|
const INSTALLER_PACKAGE =
|
|
42
|
-
"@sellable/install@0.1.
|
|
42
|
+
"@sellable/install@0.1.456";
|
|
43
43
|
const MCP_PACKAGE = "@sellable/mcp@0.1.760-wip.phase143.20260727100513";
|
|
44
44
|
const HERMES_VERSION = "0.18.0";
|
|
45
45
|
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.
|
|
1544
|
+
"@sellable/install@0.1.456" ||
|
|
1545
1545
|
pinned.mcpPackage !==
|
|
1546
1546
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
|
|
1547
1547
|
!Array.isArray(policy.toolInclude) ||
|
|
@@ -198,7 +198,7 @@ function validateDesired(desired) {
|
|
|
198
198
|
desired.hermesCli !== "hermes" ||
|
|
199
199
|
desired.hermesVersion !== "0.18.0" ||
|
|
200
200
|
desired.installerPackage !==
|
|
201
|
-
"@sellable/install@0.1.
|
|
201
|
+
"@sellable/install@0.1.456" ||
|
|
202
202
|
desired.mcpPackage !==
|
|
203
203
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
|
|
204
204
|
!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.
|
|
29
|
+
"@sellable/install@0.1.456";
|
|
30
30
|
export const PINNED_MCP_PACKAGE =
|
|
31
31
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513";
|
|
32
32
|
|
|
@@ -614,7 +614,7 @@ function inspectProvisionedProfile({
|
|
|
614
614
|
manifest.serviceCredentialReference !== serviceCredentialReference ||
|
|
615
615
|
manifest.installerPackage !== PINNED_INSTALL_PACKAGE ||
|
|
616
616
|
manifest.installerVersion !==
|
|
617
|
-
"0.1.
|
|
617
|
+
"0.1.456" ||
|
|
618
618
|
manifest.mcpPackage !== PINNED_MCP_PACKAGE ||
|
|
619
619
|
manifest.credentialKeyVersion !== credentialKeyVersion ||
|
|
620
620
|
!/^[a-f0-9]{16}$/.test(manifest.credentialFingerprint) ||
|
|
@@ -828,7 +828,7 @@ function successReceipt({
|
|
|
828
828
|
subject: `agent-profile:${observed.profileId}`,
|
|
829
829
|
cli: {
|
|
830
830
|
installPackage: PINNED_INSTALL_PACKAGE,
|
|
831
|
-
installVersion: "0.1.
|
|
831
|
+
installVersion: "0.1.456",
|
|
832
832
|
mcpPackage: PINNED_MCP_PACKAGE,
|
|
833
833
|
command: "hermes profile bootstrap",
|
|
834
834
|
},
|
|
@@ -876,7 +876,7 @@ function failure(code, stages, extra = {}, request = null) {
|
|
|
876
876
|
: "agent-profile:unbound",
|
|
877
877
|
cli: {
|
|
878
878
|
installPackage: PINNED_INSTALL_PACKAGE,
|
|
879
|
-
installVersion: "0.1.
|
|
879
|
+
installVersion: "0.1.456",
|
|
880
880
|
mcpPackage: PINNED_MCP_PACKAGE,
|
|
881
881
|
command: "hermes profile bootstrap",
|
|
882
882
|
},
|