@sellable/install 0.1.526 → 0.1.527
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 +5 -0
- 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/host-bootstrap.mjs +1 -1
- package/lib/sellable-agent/host-worker.mjs +1 -1
- package/lib/sellable-agent/model-auth-reconciler.mjs +15 -0
- 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.527
|
|
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.527" \
|
|
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.526" \
|
|
|
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.527' || 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.527', 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.527` 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.527 .
|
|
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`.
|
|
@@ -593,6 +593,8 @@ function installAdminModelConfig(profileRoot, modelConfig) {
|
|
|
593
593
|
if (document.errors.length > 0) {
|
|
594
594
|
throw new Error("admin_model_config_rejected");
|
|
595
595
|
}
|
|
596
|
+
document.set("agent", modelConfig.agent);
|
|
597
|
+
document.set("providers", modelConfig.providers);
|
|
596
598
|
document.set("model", modelConfig.model);
|
|
597
599
|
document.set(
|
|
598
600
|
"credential_pool_strategies",
|
|
@@ -602,6 +604,9 @@ function installAdminModelConfig(profileRoot, modelConfig) {
|
|
|
602
604
|
atomicPrivateFile(path, document.toString());
|
|
603
605
|
const readback = parseDocument(readFileSync(path, "utf8")).toJS();
|
|
604
606
|
if (
|
|
607
|
+
canonicalJson(readback.agent) !== canonicalJson(modelConfig.agent) ||
|
|
608
|
+
canonicalJson(readback.providers) !==
|
|
609
|
+
canonicalJson(modelConfig.providers) ||
|
|
605
610
|
canonicalJson(readback.model) !== canonicalJson(modelConfig.model) ||
|
|
606
611
|
canonicalJson(readback.credential_pool_strategies) !==
|
|
607
612
|
canonicalJson(modelConfig.credential_pool_strategies) ||
|
|
@@ -5,7 +5,7 @@ USER root
|
|
|
5
5
|
|
|
6
6
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.811-wip.phase169.20260805145230
|
|
7
7
|
ARG MCP_INTEGRITY=sha512-ygNtAiYCdMM3dlTZHMiaAo5aasw4cuhphkxHSvHzF4T9FRFgR3BQodKCsqYz7EfN0nHrDUnsrzcjWedYFQUT0A==
|
|
8
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
8
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.527
|
|
9
9
|
ARG TUS_JS_CLIENT_VERSION=4.3.1
|
|
10
10
|
ARG HERMES_VERSION=0.20.0
|
|
11
11
|
ARG MCP_TRUST_ROOT_B64
|
|
@@ -79,7 +79,7 @@ const BOOT_SESSION_ID = randomUUID();
|
|
|
79
79
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.20.0";
|
|
80
80
|
const INSTALLER_PACKAGE =
|
|
81
81
|
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ??
|
|
82
|
-
"@sellable/install@0.1.
|
|
82
|
+
"@sellable/install@0.1.527";
|
|
83
83
|
const MCP_PACKAGE =
|
|
84
84
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
85
85
|
"@sellable/mcp@0.1.811-wip.phase169.20260805145230";
|
|
@@ -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.
|
|
41
|
+
const INSTALLER_PACKAGE = "@sellable/install@0.1.527";
|
|
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}$/;
|
|
@@ -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.527" ||
|
|
1545
1545
|
pinned.mcpPackage !==
|
|
1546
1546
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
|
|
1547
1547
|
!Array.isArray(policy.toolInclude) ||
|
|
@@ -17,6 +17,8 @@ export const MODEL_AUTH_MINIMUM_VALIDITY_MS = 20 * 60 * 1000;
|
|
|
17
17
|
export const MODEL_AUTH_PROVIDER = "openai-codex";
|
|
18
18
|
export const MODEL_AUTH_DEFAULT_MODEL = "gpt-5.6-sol";
|
|
19
19
|
export const MODEL_AUTH_REASONING_EFFORT = "high";
|
|
20
|
+
export const MODEL_AUTH_REQUEST_TIMEOUT_SECONDS = 60;
|
|
21
|
+
export const MODEL_AUTH_API_MAX_RETRIES = 1;
|
|
20
22
|
|
|
21
23
|
const MARKER_VERSION = 2;
|
|
22
24
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
@@ -362,6 +364,19 @@ export function modelAuthConfigOverlay(credential) {
|
|
|
362
364
|
fail("model_auth_projection_incomplete");
|
|
363
365
|
}
|
|
364
366
|
return Object.freeze({
|
|
367
|
+
// Phase 169 live Slack UAT showed that Hermes's default three inference
|
|
368
|
+
// attempts can keep a slow-but-open provider leg alive for five minutes.
|
|
369
|
+
// The ordered provider/model chain is the retry strategy for these
|
|
370
|
+
// runtimes, so bound each leg once and advance instead of retrying it.
|
|
371
|
+
agent: Object.freeze({ api_max_retries: MODEL_AUTH_API_MAX_RETRIES }),
|
|
372
|
+
providers: Object.freeze({
|
|
373
|
+
"openai-codex": Object.freeze({
|
|
374
|
+
request_timeout_seconds: MODEL_AUTH_REQUEST_TIMEOUT_SECONDS,
|
|
375
|
+
}),
|
|
376
|
+
openrouter: Object.freeze({
|
|
377
|
+
request_timeout_seconds: MODEL_AUTH_REQUEST_TIMEOUT_SECONDS,
|
|
378
|
+
}),
|
|
379
|
+
}),
|
|
365
380
|
model: Object.freeze({
|
|
366
381
|
default: MODEL_AUTH_DEFAULT_MODEL,
|
|
367
382
|
provider: MODEL_AUTH_PROVIDER,
|
|
@@ -200,7 +200,7 @@ function validateDesired(desired) {
|
|
|
200
200
|
desired.hermesCli !== "hermes" ||
|
|
201
201
|
desired.hermesVersion !== "0.18.0" ||
|
|
202
202
|
desired.installerPackage !==
|
|
203
|
-
"@sellable/install@0.1.
|
|
203
|
+
"@sellable/install@0.1.527" ||
|
|
204
204
|
desired.mcpPackage !==
|
|
205
205
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
|
|
206
206
|
!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.527";
|
|
30
30
|
export const PINNED_MCP_PACKAGE =
|
|
31
31
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513";
|
|
32
32
|
|
|
@@ -613,7 +613,7 @@ function inspectProvisionedProfile({
|
|
|
613
613
|
!matchesReadback(manifest, request) ||
|
|
614
614
|
manifest.serviceCredentialReference !== serviceCredentialReference ||
|
|
615
615
|
manifest.installerPackage !== PINNED_INSTALL_PACKAGE ||
|
|
616
|
-
manifest.installerVersion !== "0.1.
|
|
616
|
+
manifest.installerVersion !== "0.1.527" ||
|
|
617
617
|
manifest.mcpPackage !== PINNED_MCP_PACKAGE ||
|
|
618
618
|
manifest.credentialKeyVersion !== credentialKeyVersion ||
|
|
619
619
|
!/^[a-f0-9]{16}$/.test(manifest.credentialFingerprint) ||
|
|
@@ -827,7 +827,7 @@ function successReceipt({
|
|
|
827
827
|
subject: `agent-profile:${observed.profileId}`,
|
|
828
828
|
cli: {
|
|
829
829
|
installPackage: PINNED_INSTALL_PACKAGE,
|
|
830
|
-
installVersion: "0.1.
|
|
830
|
+
installVersion: "0.1.527",
|
|
831
831
|
mcpPackage: PINNED_MCP_PACKAGE,
|
|
832
832
|
command: "hermes profile bootstrap",
|
|
833
833
|
},
|
|
@@ -875,7 +875,7 @@ function failure(code, stages, extra = {}, request = null) {
|
|
|
875
875
|
: "agent-profile:unbound",
|
|
876
876
|
cli: {
|
|
877
877
|
installPackage: PINNED_INSTALL_PACKAGE,
|
|
878
|
-
installVersion: "0.1.
|
|
878
|
+
installVersion: "0.1.527",
|
|
879
879
|
mcpPackage: PINNED_MCP_PACKAGE,
|
|
880
880
|
command: "hermes profile bootstrap",
|
|
881
881
|
},
|