@sellable/install 0.1.911 → 0.1.912
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 +1 -1
- package/lib/sellable-agent/fly-admin-image/admin-runtime.mjs +2 -1
- package/lib/sellable-agent/fly-capabilities-bridge.mjs +3 -3
- 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 +18 -5
- 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 +8 -10
- package/lib/sellable-agent/profile-materializer.mjs +1 -1
- package/lib/sellable-agent/provisioning-adapter.mjs +1 -1
- 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.912
|
|
7
7
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.1033
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
9
|
ARG MCP_INTEGRITY=sha512-d01fFKmJLQIBHBXA5FsWn7lOeX3igg6xh58x10VDLWfqwg1OLzsbaI43UHpUWYQzAsnN+Qivdyk2YYkoNhElEw==
|
|
10
10
|
|
|
11
|
-
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.
|
|
11
|
+
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.912" \
|
|
12
12
|
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.1033" \
|
|
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.911" \
|
|
|
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.912' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.1033') 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.912', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.1033', 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.912` is
|
|
7
7
|
published:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
@@ -350,7 +350,8 @@ function installAdminHermesHostedPolicy(profileRoot) {
|
|
|
350
350
|
config.set("onboarding", hosted.onboarding);
|
|
351
351
|
config.set("cron", hosted.cron);
|
|
352
352
|
// Web search goes through the keyless DuckDuckGo backend baked into this
|
|
353
|
-
// image, exactly as
|
|
353
|
+
// image and page extraction through Hermes' free keyless tier, exactly as
|
|
354
|
+
// on customer profiles.
|
|
354
355
|
config.set("web", hosted.web);
|
|
355
356
|
config.set("hooks", HERMES_SNAPSHOT_HOOKS);
|
|
356
357
|
// The Admin profile factory configures Slack only through .env, so Hermes'
|
|
@@ -46,9 +46,9 @@ export const SELLABLE_WEB_TOOLSET_DEFAULT_MARKER =
|
|
|
46
46
|
// session_search lets the agent look back over its own past Slack threads
|
|
47
47
|
// ("what kept going wrong the last two weeks?"); it reads only this profile's
|
|
48
48
|
// session store. web gives it web_search through the keyless DuckDuckGo
|
|
49
|
-
// backend (the ddgs package baked into both images
|
|
50
|
-
//
|
|
51
|
-
// without opening a browser.
|
|
49
|
+
// backend (the ddgs package baked into both images) and web_extract through
|
|
50
|
+
// Hermes' free keyless tier, both selected by HERMES_SELLABLE_WEB_POLICY, so
|
|
51
|
+
// it can look a company or a person up without opening a browser.
|
|
52
52
|
export const SELLABLE_DEFAULT_SLACK_TOOLSETS = Object.freeze([
|
|
53
53
|
"browser",
|
|
54
54
|
"clarify",
|
|
@@ -8,7 +8,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright
|
|
|
8
8
|
|
|
9
9
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.1033
|
|
10
10
|
ARG MCP_INTEGRITY=sha512-d01fFKmJLQIBHBXA5FsWn7lOeX3igg6xh58x10VDLWfqwg1OLzsbaI43UHpUWYQzAsnN+Qivdyk2YYkoNhElEw==
|
|
11
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
11
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.912
|
|
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
|
|
@@ -135,7 +135,7 @@ const BOOT_SESSION_ID = randomUUID();
|
|
|
135
135
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.21.5";
|
|
136
136
|
const INSTALLER_PACKAGE =
|
|
137
137
|
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ??
|
|
138
|
-
"@sellable/install@0.1.
|
|
138
|
+
"@sellable/install@0.1.912";
|
|
139
139
|
const MCP_PACKAGE =
|
|
140
140
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
141
141
|
"@sellable/mcp@0.1.1033";
|
|
@@ -514,14 +514,23 @@ export function applyHermesSellableBusyDisplayPolicy(document) {
|
|
|
514
514
|
* DuckDuckGo: the `ddgs` package is baked into both images (runtime-pins.json
|
|
515
515
|
* `ddgs`), needs no key, and hosted Hermes cannot install packages at runtime.
|
|
516
516
|
* Naming the backend keeps Hermes from auto-detecting another one (the Nous
|
|
517
|
-
* tool gateway, a stray provider key).
|
|
518
|
-
*
|
|
519
|
-
*
|
|
520
|
-
*
|
|
517
|
+
* tool gateway, a stray provider key).
|
|
518
|
+
*
|
|
519
|
+
* ddgs only searches, so web_extract goes to Hermes' free anonymous keyless
|
|
520
|
+
* tier (owner, 2026-11-19): `extract_backend: exa` with Exa pinned to its
|
|
521
|
+
* `free` tier sends page URLs, and nothing else, to Exa's public endpoint,
|
|
522
|
+
* failing over to Parallel, Firecrawl and Keenable's public endpoints only
|
|
523
|
+
* when Exa throttles. No key is sent and no prospect data is involved.
|
|
524
|
+
* Search never reaches that tier: the keyless fallback (a keyless walk when
|
|
525
|
+
* no backend resolves) and the keyless rescue (a one-shot retry of a failed
|
|
526
|
+
* DuckDuckGo search) are both off.
|
|
521
527
|
*/
|
|
522
528
|
export const HERMES_SELLABLE_WEB_POLICY = Object.freeze({
|
|
523
529
|
backend: "ddgs",
|
|
530
|
+
extract_backend: "exa",
|
|
531
|
+
provider_tier: Object.freeze({ exa: "free" }),
|
|
524
532
|
keyless_fallback: false,
|
|
533
|
+
keyless_rescue: false,
|
|
525
534
|
});
|
|
526
535
|
|
|
527
536
|
/**
|
|
@@ -558,7 +567,11 @@ export function applyHermesSellableHostedPolicy(config) {
|
|
|
558
567
|
// Scheduled messages are the agent's final text. Hermes' job-ID header and
|
|
559
568
|
// stop-instructions footer must not be added to them.
|
|
560
569
|
cron: { ...(cron ?? {}), wrap_response: false },
|
|
561
|
-
web: {
|
|
570
|
+
web: {
|
|
571
|
+
...(web ?? {}),
|
|
572
|
+
...HERMES_SELLABLE_WEB_POLICY,
|
|
573
|
+
provider_tier: { ...HERMES_SELLABLE_WEB_POLICY.provider_tier },
|
|
574
|
+
},
|
|
562
575
|
onboarding: {
|
|
563
576
|
...(onboarding ?? {}),
|
|
564
577
|
profile_build: "off",
|
|
@@ -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.912";
|
|
43
43
|
const MCP_PACKAGE = "@sellable/mcp@0.1.1033";
|
|
44
44
|
const HERMES_VERSION = "0.18.0";
|
|
45
45
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
@@ -1547,7 +1547,7 @@ export function compileClaimToProfileDesired(activeClaim, config) {
|
|
|
1547
1547
|
pinned.hermesCli !== "hermes" ||
|
|
1548
1548
|
pinned.hermesVersion !== "0.18.0" ||
|
|
1549
1549
|
pinned.installerPackage !==
|
|
1550
|
-
"@sellable/install@0.1.
|
|
1550
|
+
"@sellable/install@0.1.912" ||
|
|
1551
1551
|
pinned.mcpPackage !==
|
|
1552
1552
|
"@sellable/mcp@0.1.1033" ||
|
|
1553
1553
|
!Array.isArray(policy.toolInclude) ||
|
|
@@ -28,17 +28,15 @@ export const MODEL_AUTH_PROVIDER = "openai-codex";
|
|
|
28
28
|
export const MODEL_AUTH_DEFAULT_MODEL = "gpt-6.2-astra";
|
|
29
29
|
export const MODEL_AUTH_REASONING_EFFORT = "high";
|
|
30
30
|
// The same Codex subscription's next models, before any OpenRouter fallback
|
|
31
|
-
// (owner, 2026-11-19: "astra
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
39
|
-
// materializing unchanged.
|
|
31
|
+
// (owner, 2026-11-19: "6.2 astra then 6.2 sol then luna, dont use older
|
|
32
|
+
// versions"). They run at the global effort (high). Hermes 0.21.5 first moves
|
|
33
|
+
// the primary to the next Codex login (a login refused a model is benched for
|
|
34
|
+
// that model only, CODEX_ACCOUNT_MODEL_ENTITLEMENT_MARKER), then walks
|
|
35
|
+
// fallback_providers in order, so the chain is GPT-6.2 Astra on each login,
|
|
36
|
+
// then GPT-6.2 Sol, then GPT-6 Luna, then the policy's OpenRouter models. The
|
|
37
|
+
// bundle carries only the OpenRouter models, so bundles installed before this
|
|
38
|
+
// keep materializing unchanged.
|
|
40
39
|
export const MODEL_AUTH_CODEX_FALLBACK_MODELS = Object.freeze([
|
|
41
|
-
"gpt-6-astra",
|
|
42
40
|
"gpt-6.2-sol",
|
|
43
41
|
"gpt-6-luna",
|
|
44
42
|
]);
|
|
@@ -318,7 +318,7 @@ function validateDesired(desired) {
|
|
|
318
318
|
desired.hermesCli !== "hermes" ||
|
|
319
319
|
desired.hermesVersion !== "0.18.0" ||
|
|
320
320
|
desired.installerPackage !==
|
|
321
|
-
"@sellable/install@0.1.
|
|
321
|
+
"@sellable/install@0.1.912" ||
|
|
322
322
|
desired.mcpPackage !== "@sellable/mcp@0.1.1033" ||
|
|
323
323
|
!Array.isArray(desired.toolInclude) ||
|
|
324
324
|
desired.toolInclude.length === 0 ||
|
|
@@ -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.912";
|
|
30
30
|
export const PINNED_MCP_PACKAGE =
|
|
31
31
|
"@sellable/mcp@0.1.1033";
|
|
32
32
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|