@sellable/install 0.1.470 → 0.1.471
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-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/profile-materializer.mjs +1 -1
- package/lib/sellable-agent/provisioning-adapter.mjs +4 -4
- package/package.json +1 -1
- package/skill-templates/refill-sends.md +89 -4
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.469
|
|
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.469" \
|
|
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.470" \
|
|
|
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.469' || 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.469', 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.469` 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.469 .
|
|
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`.
|
|
@@ -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.469
|
|
9
9
|
ARG TUS_JS_CLIENT_VERSION=4.3.1
|
|
10
10
|
ARG HERMES_VERSION=0.19.0
|
|
11
11
|
ARG MCP_TRUST_ROOT_B64
|
|
@@ -69,7 +69,7 @@ const RUNTIME_GENERATION = Number(
|
|
|
69
69
|
const BOOT_SESSION_ID = randomUUID();
|
|
70
70
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.19.0";
|
|
71
71
|
const INSTALLER_PACKAGE =
|
|
72
|
-
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.
|
|
72
|
+
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.469";
|
|
73
73
|
const MCP_PACKAGE =
|
|
74
74
|
process.env.SELLABLE_AGENT_MCP_PACKAGE ??
|
|
75
75
|
"@sellable/mcp@0.1.789-wip.phase159.20260729223403";
|
|
@@ -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.469";
|
|
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}$/;
|
|
@@ -1540,7 +1540,7 @@ export function compileClaimToProfileDesired(activeClaim, config) {
|
|
|
1540
1540
|
]) ||
|
|
1541
1541
|
pinned.hermesCli !== "hermes" ||
|
|
1542
1542
|
pinned.hermesVersion !== "0.18.0" ||
|
|
1543
|
-
pinned.installerPackage !== "@sellable/install@0.1.
|
|
1543
|
+
pinned.installerPackage !== "@sellable/install@0.1.469" ||
|
|
1544
1544
|
pinned.mcpPackage !==
|
|
1545
1545
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
|
|
1546
1546
|
!Array.isArray(policy.toolInclude) ||
|
|
@@ -197,7 +197,7 @@ function validateDesired(desired) {
|
|
|
197
197
|
desired.serviceCredentialGeneration < 1 ||
|
|
198
198
|
desired.hermesCli !== "hermes" ||
|
|
199
199
|
desired.hermesVersion !== "0.18.0" ||
|
|
200
|
-
desired.installerPackage !== "@sellable/install@0.1.
|
|
200
|
+
desired.installerPackage !== "@sellable/install@0.1.469" ||
|
|
201
201
|
desired.mcpPackage !==
|
|
202
202
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513" ||
|
|
203
203
|
!Array.isArray(desired.toolInclude) ||
|
|
@@ -25,7 +25,7 @@ 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.
|
|
28
|
+
export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.469";
|
|
29
29
|
export const PINNED_MCP_PACKAGE =
|
|
30
30
|
"@sellable/mcp@0.1.760-wip.phase143.20260727100513";
|
|
31
31
|
|
|
@@ -612,7 +612,7 @@ function inspectProvisionedProfile({
|
|
|
612
612
|
!matchesReadback(manifest, request) ||
|
|
613
613
|
manifest.serviceCredentialReference !== serviceCredentialReference ||
|
|
614
614
|
manifest.installerPackage !== PINNED_INSTALL_PACKAGE ||
|
|
615
|
-
manifest.installerVersion !== "0.1.
|
|
615
|
+
manifest.installerVersion !== "0.1.469" ||
|
|
616
616
|
manifest.mcpPackage !== PINNED_MCP_PACKAGE ||
|
|
617
617
|
manifest.credentialKeyVersion !== credentialKeyVersion ||
|
|
618
618
|
!/^[a-f0-9]{16}$/.test(manifest.credentialFingerprint) ||
|
|
@@ -826,7 +826,7 @@ function successReceipt({
|
|
|
826
826
|
subject: `agent-profile:${observed.profileId}`,
|
|
827
827
|
cli: {
|
|
828
828
|
installPackage: PINNED_INSTALL_PACKAGE,
|
|
829
|
-
installVersion: "0.1.
|
|
829
|
+
installVersion: "0.1.469",
|
|
830
830
|
mcpPackage: PINNED_MCP_PACKAGE,
|
|
831
831
|
command: "hermes profile bootstrap",
|
|
832
832
|
},
|
|
@@ -874,7 +874,7 @@ function failure(code, stages, extra = {}, request = null) {
|
|
|
874
874
|
: "agent-profile:unbound",
|
|
875
875
|
cli: {
|
|
876
876
|
installPackage: PINNED_INSTALL_PACKAGE,
|
|
877
|
-
installVersion: "0.1.
|
|
877
|
+
installVersion: "0.1.469",
|
|
878
878
|
mcpPackage: PINNED_MCP_PACKAGE,
|
|
879
879
|
command: "hermes profile bootstrap",
|
|
880
880
|
},
|
package/package.json
CHANGED
|
@@ -4,6 +4,8 @@ description: Refill projected sends across a workspace or selected senders throu
|
|
|
4
4
|
visibility: public
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- mcp__sellable__refill_sends
|
|
7
|
+
- mcp__sellable__refill_v3_advance
|
|
8
|
+
- mcp__sellable__refill_v3_continue
|
|
7
9
|
- mcp__sellable__get_refill_target_plan
|
|
8
10
|
- mcp__sellable__get_scheduler_fill_capacity
|
|
9
11
|
- mcp__sellable__get_subskill_asset
|
|
@@ -21,17 +23,43 @@ allowed-tools:
|
|
|
21
23
|
# Refill Sends
|
|
22
24
|
|
|
23
25
|
Use this skill for “fill”, “refill sends”, “max out sends”, “load everyone up”,
|
|
24
|
-
or “fill horizon sends”.
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
or “fill horizon sends”. Exactly one coordinator owns execution: `refill_v3_advance`
|
|
27
|
+
on the V3 route, `refill_sends` on the V1 route. The host resolves the request,
|
|
28
|
+
invokes that coordinator, and follows its exact continuation; it never
|
|
29
|
+
reconstructs the refill ladder from low-level tools.
|
|
27
30
|
|
|
28
31
|
Host commands:
|
|
29
32
|
|
|
30
33
|
- Claude Code: `/sellable:refill-sends`
|
|
31
34
|
- Codex: `$sellable:refill-sends`
|
|
32
35
|
|
|
36
|
+
## Route selection — do this FIRST
|
|
37
|
+
|
|
38
|
+
Decide the route before parsing scope, before loading any flow asset, and before
|
|
39
|
+
any tool call other than auth/workspace resolution. The predicate is
|
|
40
|
+
MECHANICAL and observable in the connected Sellable MCP tool list:
|
|
41
|
+
|
|
42
|
+
> **Is `refill_v3_advance` one of the tools this server exposes?**
|
|
43
|
+
|
|
44
|
+
- **Yes → take the Refill V3 route.** This is the default for every workspace on
|
|
45
|
+
a server that exposes the tool. Go to [Refill V3](#refill-v3) and follow it;
|
|
46
|
+
the V1 ladder in the rest of this document does not apply.
|
|
47
|
+
- **No → take the V1 route.** The installed server predates Refill V3, so
|
|
48
|
+
`refill_sends` is the only coordinator available. Follow this document from
|
|
49
|
+
[Entry and exact scope](#entry-and-exact-scope) onward.
|
|
50
|
+
|
|
51
|
+
Never infer the route from a workspace flag, a campaign field, a tool result, or
|
|
52
|
+
the operator's wording: no such cutover signal exists, and guessing at one is
|
|
53
|
+
what makes an ordinary refill request silently take the wrong route. Report the
|
|
54
|
+
selected route explicitly before the first coordinator call.
|
|
55
|
+
|
|
33
56
|
## Entry and exact scope
|
|
34
57
|
|
|
58
|
+
Everything from here down to [Refill V3](#refill-v3) is the **V1 route**. Skip it
|
|
59
|
+
entirely when route selection chose V3. On this route `refill_sends` is the only
|
|
60
|
+
execution owner and the host follows its exact continuation; it never
|
|
61
|
+
reconstructs the refill ladder from low-level tools.
|
|
62
|
+
|
|
35
63
|
Accepted request fields are `--yolo`, `workspaceId`, `--sender`/`senderIds`/
|
|
36
64
|
`senderNames`, `actionTypes`, `--until`/`untilDate`, `--target-date`/
|
|
37
65
|
`targetDate`, and compatibility `horizonSendDays`. Omitted dates mean the
|
|
@@ -55,7 +83,9 @@ flowchart TD
|
|
|
55
83
|
SENDERS --> SG{"Every selector resolves exactly?"}
|
|
56
84
|
SG -- No --> SB["Output: blocked_retryable / sender_selector_unresolved with candidates"]
|
|
57
85
|
SG -- Yes --> DATE["Normalize 48h, exact targetDate, or inclusive untilDate in sender-local time"]
|
|
58
|
-
DATE -->
|
|
86
|
+
DATE --> ROUTE{"Does this server expose refill_v3_advance?"}
|
|
87
|
+
ROUTE -- Yes --> V3["Refill V3 route: load core/flow.v3.json and call refill_v3_advance"]
|
|
88
|
+
ROUTE -- No --> D1["D1: call get_refill_target_plan read-only with exact scope"]
|
|
59
89
|
D1 --> RENDER["Render sender/campaign waterfall, coverage ledger, first action, side effects, forbidden actions, and stop condition"]
|
|
60
90
|
RENDER --> D2["D2: call refill_sends with workspaceCoordinator true plus displayed targetShapeRevision and actionKey"]
|
|
61
91
|
```
|
|
@@ -551,3 +581,58 @@ available work.
|
|
|
551
581
|
sweep/status, and bounded receipts. Never use individual cell ids, Prisma,
|
|
552
582
|
SQL, direct database access, or production-environment scripts as completion
|
|
553
583
|
proof. Redact raw copy and prospect fields.
|
|
584
|
+
|
|
585
|
+
## Refill V3
|
|
586
|
+
|
|
587
|
+
This is the DEFAULT route whenever `refill_v3_advance` is exposed (see
|
|
588
|
+
[Route selection](#route-selection--do-this-first)). `refill_v3_advance` is then
|
|
589
|
+
the only execution owner and `refill-sends-workflow` plus its `core/flow.v3.json`
|
|
590
|
+
asset is the contract to load — load the prompt and that asset, verify the `v3`
|
|
591
|
+
compatible range, and report the version before the first call. Call
|
|
592
|
+
`refill_v3_advance` with `{workspaceId, scope}` — plus `yolo: true` only when the
|
|
593
|
+
operator asked for `--yolo` — and call it again after each `advanced` or
|
|
594
|
+
`campaign_attention_required` result until it answers `awaiting_external_change`,
|
|
595
|
+
`complete`, or `blocked`.
|
|
596
|
+
|
|
597
|
+
Resolve the workspace BEFORE the first call, exactly as the V1 route already
|
|
598
|
+
requires. `workspaceId` must be an exact id on every automation call: when the
|
|
599
|
+
operator names a workspace, call `list_workspaces` first and match that name to
|
|
600
|
+
its id, and use the configured or active workspace only when the operator named
|
|
601
|
+
none. If nothing accessible matches the name, or more than one does, stop and say
|
|
602
|
+
so — do not fall back to the configured workspace — and never change the shared
|
|
603
|
+
active workspace to steer an automation.
|
|
604
|
+
|
|
605
|
+
Map the rest of the request onto those keys and nothing else: the sender/date
|
|
606
|
+
envelope becomes `scope` (a 1-3 day `sender_local_horizon`, or
|
|
607
|
+
`exact_sender_dates` when the operator named exact senders or dates). There is no
|
|
608
|
+
mode: WHICH campaign may be started is DERIVED from the workspace's own
|
|
609
|
+
campaigns and can never be requested.
|
|
610
|
+
|
|
611
|
+
`--yolo` still means what it has always meant, and it is the ONE remaining
|
|
612
|
+
execution input. It is the operator's AUTONOMY GRANT, read from their words
|
|
613
|
+
alone, and it decides two things together:
|
|
614
|
+
|
|
615
|
+
- **Granted** (`yolo: true` on every call of that run): after a row's active
|
|
616
|
+
campaigns are exhausted, one derived-evergreen start-eligible campaign may be
|
|
617
|
+
started, and you receive it as an ordinary executed `start_evergreen_campaign`
|
|
618
|
+
action. Keep calling advance until a terminal without checking back.
|
|
619
|
+
- **Withheld** (omit the key): no paused campaign is started — the backend
|
|
620
|
+
refuses it and answers the exhaustion terminal instead — and you surface each
|
|
621
|
+
result and ASK before calling advance again.
|
|
622
|
+
|
|
623
|
+
Never infer the grant from a workspace flag, a campaign field, a tool result, an
|
|
624
|
+
idle-looking workspace, or a previous terminal, and never set it to make a run
|
|
625
|
+
finish. Pass no other execution flag and no mode, and do not call
|
|
626
|
+
`get_refill_target_plan`, `refill_sends`, or any placement, scheduler, source, or
|
|
627
|
+
send tool on this route.
|
|
628
|
+
|
|
629
|
+
An `advanced` result is ALREADY EXECUTED: surface its action identity, receipt,
|
|
630
|
+
and replacement observation, and never run the action or call its authority again.
|
|
631
|
+
Only `campaign_attention_required` needs you — route its one selected campaign to
|
|
632
|
+
`refill-sends-work-campaign` and return the chosen action through
|
|
633
|
+
`refill_v3_continue`, which first revalidates the packet against fresh world
|
|
634
|
+
state and then executes at most one existing authority.
|
|
635
|
+
|
|
636
|
+
This skill chooses no sender, date, lane, campaign, or action, holds no counter or
|
|
637
|
+
cursor between calls, and declares no terminal, exhaustion verdict, or health
|
|
638
|
+
classification of its own. V1 `refill_sends` behavior is unchanged.
|