@sellable/install 0.1.933-wip.sample3.20261123.1 → 0.1.934
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-customer-image/Dockerfile +1 -1
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +1 -1
- package/lib/sellable-agent/hermes-bridge.mjs +46 -4
- 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 +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.934
|
|
7
7
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.1050-wip.sample3.20261123.1
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
9
|
ARG MCP_INTEGRITY=sha512-tAyWOs+9S4YW/JzH6ri9vyX6PqXQTrjvbf8KgAMLTnAeIfUxCEYB9inetDbMQRlqBXdnpPBWDXkju21YSgWY+A==
|
|
10
10
|
|
|
11
|
-
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.
|
|
11
|
+
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.934" \
|
|
12
12
|
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.1050-wip.sample3.20261123.1" \
|
|
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.933-wip.sample3.2026112
|
|
|
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.934' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.1050-wip.sample3.20261123.1') 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.934', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.1050-wip.sample3.20261123.1', 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.934` is
|
|
7
7
|
published:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
@@ -8,7 +8,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/opt/hermes/.playwright
|
|
|
8
8
|
|
|
9
9
|
ARG MCP_PACKAGE=@sellable/mcp@0.1.1050-wip.sample3.20261123.1
|
|
10
10
|
ARG MCP_INTEGRITY=sha512-tAyWOs+9S4YW/JzH6ri9vyX6PqXQTrjvbf8KgAMLTnAeIfUxCEYB9inetDbMQRlqBXdnpPBWDXkju21YSgWY+A==
|
|
11
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
11
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.934
|
|
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.934";
|
|
139
139
|
const MCP_PACKAGE =
|
|
140
140
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
141
141
|
"@sellable/mcp@0.1.1050-wip.sample3.20261123.1";
|
|
@@ -332,6 +332,29 @@ const SLACK_SHARED_LOOPBACK_API_HELPER = replaceExactlyOnce(
|
|
|
332
332
|
"shared Slack stand-in API seam"
|
|
333
333
|
);
|
|
334
334
|
|
|
335
|
+
// A link preview (unfurl) reaches the adapter as a second \`message_changed\`
|
|
336
|
+
// event for the customer's own message. Hermes drops it once the original
|
|
337
|
+
// message's ts is claimed, but the claim comes after the channel checks, and
|
|
338
|
+
// the preview of a LinkedIn profile URL arrived inside that gap in both
|
|
339
|
+
// first-campaign threads of DhsD | Studio (2026-11-23, 2026-11-24): the same
|
|
340
|
+
// message ran as a second turn after the plan was posted. A person's edit
|
|
341
|
+
// carries Slack's \`edited\` stamp; a preview does not, so it is not someone
|
|
342
|
+
// speaking again.
|
|
343
|
+
const SLACK_PREVIEW_IS_NOT_A_MESSAGE_NEEDLE = ` updated_message = event.get("message")
|
|
344
|
+
if not isinstance(updated_message, dict):
|
|
345
|
+
return None
|
|
346
|
+
original_message_ts = str(updated_message.get("ts") or "")
|
|
347
|
+
`;
|
|
348
|
+
const SLACK_PREVIEW_IS_NOT_A_MESSAGE = ` updated_message = event.get("message")
|
|
349
|
+
if not isinstance(updated_message, dict):
|
|
350
|
+
return None
|
|
351
|
+
# ${HERMES_AGENT_BRIDGE_MARKER}: a link preview is not a new message. Only a person's edit
|
|
352
|
+
# (Slack's "edited" stamp) can start a turn from message_changed.
|
|
353
|
+
if not isinstance(updated_message.get("edited"), dict):
|
|
354
|
+
return None
|
|
355
|
+
original_message_ts = str(updated_message.get("ts") or "")
|
|
356
|
+
`;
|
|
357
|
+
|
|
335
358
|
const SLACK_MESSAGE_UNFURL_FILE_HELPER = `
|
|
336
359
|
# ${HERMES_AGENT_BRIDGE_MARKER}: recover files from bounded allowed-channel Slack message unfurls.
|
|
337
360
|
async def _sellable_agent_recover_slack_message_unfurl_files(
|
|
@@ -1241,6 +1264,9 @@ const POSTED_REPLY_HELPER_NEEDLE = `_UNEXPECTED_SILENCE_REPLY = (
|
|
|
1241
1264
|
)
|
|
1242
1265
|
`;
|
|
1243
1266
|
const POSTED_REPLY_HELPER = String.raw`${POSTED_REPLY_HELPER_NEEDLE}
|
|
1267
|
+
# ${HERMES_AGENT_BRIDGE_MARKER}: a customer never sees this runtime notice. A silence marker on
|
|
1268
|
+
# any turn stays silent (empty text is never posted; gateway/run_startup.py reads this too).
|
|
1269
|
+
_UNEXPECTED_SILENCE_REPLY = ""
|
|
1244
1270
|
|
|
1245
1271
|
# ${HERMES_AGENT_BRIDGE_MARKER}: the Sellable render tool posted this turn's reply itself.
|
|
1246
1272
|
import re as _sellable_agent_re
|
|
@@ -1331,7 +1357,15 @@ const POSTED_REPLY_SHAPE = ` _intentional_silence = self._is_intentional_
|
|
|
1331
1357
|
# A queued (/queue) chain's TERMINAL turn owns the silence verdict, not the event that
|
|
1332
1358
|
# opened the chain: an internal follow-up may go silent, a human one must not.
|
|
1333
1359
|
_silence_kind = agent_result.get("queued_terminal_display_kind", persist_user_display_kind)
|
|
1360
|
+
# ${HERMES_AGENT_BRIDGE_MARKER}: silence on a user turn stays silent. The "returned only a
|
|
1361
|
+
# silence marker" notice told a customer to rephrase after the agent had already answered
|
|
1362
|
+
# (a link-preview copy of their own message, 2026-11-24). Logged, never posted.
|
|
1334
1363
|
if _intentional_silence and not is_machinery_display_kind(_silence_kind) and not _sellable_posted:
|
|
1364
|
+
logger.warning(
|
|
1365
|
+
"Sellable: silence marker on a user turn stays silent: session %s",
|
|
1366
|
+
session_entry.session_id,
|
|
1367
|
+
)
|
|
1368
|
+
if False:
|
|
1335
1369
|
`;
|
|
1336
1370
|
|
|
1337
1371
|
// The same rule on the queued-follow-up path: a customer message that arrives
|
|
@@ -1358,7 +1392,8 @@ const POSTED_REPLY_QUEUED = ` # Same silence predicate as the normal path
|
|
|
1358
1392
|
)
|
|
1359
1393
|
first_response = ""
|
|
1360
1394
|
elif self._is_intentional_silence(_delivery_result, first_response):
|
|
1361
|
-
|
|
1395
|
+
# ${HERMES_AGENT_BRIDGE_MARKER}: silence on any turn stays silent, never the runtime notice.
|
|
1396
|
+
if True:
|
|
1362
1397
|
`;
|
|
1363
1398
|
|
|
1364
1399
|
// Codex models also deliver a commentary message live, while the response
|
|
@@ -2040,7 +2075,7 @@ def getenv(name, default=""):
|
|
|
2040
2075
|
" scope_id=str(team_id) if team_id else None,\n message_id=ts,\n # Workflow/app posts",
|
|
2041
2076
|
"v0.21 Slack source identity"
|
|
2042
2077
|
);
|
|
2043
|
-
|
|
2078
|
+
patched = replaceExactlyOnce(
|
|
2044
2079
|
patched,
|
|
2045
2080
|
' for f in event.get("files", []):',
|
|
2046
2081
|
[
|
|
@@ -2051,6 +2086,13 @@ def getenv(name, default=""):
|
|
|
2051
2086
|
].join("\n"),
|
|
2052
2087
|
"v0.21 unfurled file recovery"
|
|
2053
2088
|
);
|
|
2089
|
+
if (patchKind !== "slack-adapter-shared-v0215") return patched;
|
|
2090
|
+
return replaceExactlyOnce(
|
|
2091
|
+
patched,
|
|
2092
|
+
SLACK_PREVIEW_IS_NOT_A_MESSAGE_NEEDLE,
|
|
2093
|
+
SLACK_PREVIEW_IS_NOT_A_MESSAGE,
|
|
2094
|
+
"v0.21.5 link preview is not a new message"
|
|
2095
|
+
);
|
|
2054
2096
|
}
|
|
2055
2097
|
|
|
2056
2098
|
if (patchKind === "mcp-tool-endpoint-v021") {
|
|
@@ -3370,7 +3412,7 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
|
|
|
3370
3412
|
sourceSha256:
|
|
3371
3413
|
"3f2ec0cef97964bf4cb1e9791c0917a03cd1e73bb0bc3293768680cd6302f613",
|
|
3372
3414
|
patchedSha256:
|
|
3373
|
-
"
|
|
3415
|
+
"6b89898ec588fb8df5475179cd53966e4913c18d66d40b05650f5b80ff9736b6",
|
|
3374
3416
|
},
|
|
3375
3417
|
{
|
|
3376
3418
|
path: "tools/mcp_tool_handlers.py",
|
|
@@ -3394,7 +3436,7 @@ export const HERMES_AGENT_BRIDGE_DEDICATED_V0215_CONTRACT = normalizeContract({
|
|
|
3394
3436
|
sourceSha256:
|
|
3395
3437
|
"5bdee5c82c00e02f664516f9da0af99674e23493ec2a30eff06cb03afc6718a0",
|
|
3396
3438
|
patchedSha256:
|
|
3397
|
-
"
|
|
3439
|
+
"7d05cd81c51b7dd5ad1d3f1720fa4d7fa6127d07d0c3b513733a5d56ad667afd",
|
|
3398
3440
|
},
|
|
3399
3441
|
{
|
|
3400
3442
|
path: "gateway/run_turn_runner.py",
|
|
@@ -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.934";
|
|
43
43
|
const MCP_PACKAGE = "@sellable/mcp@0.1.1050-wip.sample3.20261123.1";
|
|
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.934" ||
|
|
1551
1551
|
pinned.mcpPackage !==
|
|
1552
1552
|
"@sellable/mcp@0.1.1050-wip.sample3.20261123.1" ||
|
|
1553
1553
|
!Array.isArray(policy.toolInclude) ||
|
|
@@ -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.934" ||
|
|
322
322
|
desired.mcpPackage !== "@sellable/mcp@0.1.1050-wip.sample3.20261123.1" ||
|
|
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.934";
|
|
30
30
|
export const PINNED_MCP_PACKAGE =
|
|
31
31
|
"@sellable/mcp@0.1.1050-wip.sample3.20261123.1";
|
|
32
32
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|