@sellable/install 0.1.610-wip.phase187.20260811.18 → 0.1.610
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 +7 -7
- package/container/README.md +2 -2
- package/lib/sellable-agent/admin-runtime-reconciler.mjs +2 -2
- package/lib/sellable-agent/external-runtime-builder.mjs +1 -1
- package/lib/sellable-agent/fly-admin-image/admin-runtime.mjs +5 -21
- package/lib/sellable-agent/fly-customer-image/Dockerfile +3 -3
- package/lib/sellable-agent/fly-customer-image/customer-runtime.mjs +2 -2
- package/lib/sellable-agent/hermes-memory-snapshot.mjs +19 -13
- package/lib/sellable-agent/host-bootstrap.mjs +2 -2
- package/lib/sellable-agent/host-worker.mjs +2 -2
- package/lib/sellable-agent/profile-materializer.mjs +2 -2
- package/lib/sellable-agent/provisioning-adapter.mjs +2 -2
- package/package.json +1 -1
- package/skill-templates/refill-sends.md +15 -0
package/container/Dockerfile
CHANGED
|
@@ -3,13 +3,13 @@ FROM ${HERMES_IMAGE}
|
|
|
3
3
|
|
|
4
4
|
USER root
|
|
5
5
|
|
|
6
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
7
|
-
ARG MCP_PACKAGE=@sellable/mcp@0.1.865
|
|
6
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.609
|
|
7
|
+
ARG MCP_PACKAGE=@sellable/mcp@0.1.865
|
|
8
8
|
ARG INSTALLER_INTEGRITY
|
|
9
|
-
ARG MCP_INTEGRITY=sha512-
|
|
9
|
+
ARG MCP_INTEGRITY=sha512-282pkYFADFrrIXyQcdUpQwakXiwe/AFUDpDZkTh29CFcGHnN7dvC0MCvaU4LffXA+ZuKCpuf02uxCLGiIEOjbw==
|
|
10
10
|
|
|
11
|
-
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.
|
|
12
|
-
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.865
|
|
11
|
+
RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.609" \
|
|
12
|
+
&& test "${MCP_PACKAGE}" = "@sellable/mcp@0.1.865" \
|
|
13
13
|
&& test -n "${INSTALLER_INTEGRITY}" \
|
|
14
14
|
&& test "$(npm view "${INSTALLER_PACKAGE}" dist.integrity)" = "${INSTALLER_INTEGRITY}" \
|
|
15
15
|
&& test "$(npm view "${MCP_PACKAGE}" dist.integrity)" = "${MCP_INTEGRITY}" \
|
|
@@ -23,9 +23,9 @@ RUN test "${INSTALLER_PACKAGE}" = "@sellable/install@0.1.610-wip.phase187.202608
|
|
|
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.609-wip.hermes-desktop.20260811160530' || mcp.name !== '@sellable/mcp' || mcp.version !== '0.1.865') 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.609', installerIntegrity: process.argv[1], mcpPackage: '@sellable/mcp@0.1.865', 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.609` 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.609-wip.hermes-desktop.20260811160530 .
|
|
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`.
|
|
@@ -20,7 +20,6 @@ import { createHash } from "node:crypto";
|
|
|
20
20
|
|
|
21
21
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
22
22
|
const EXACT_VERSION = /^\d+\.\d+\.\d+(?:[-.A-Za-z0-9]+)?$/;
|
|
23
|
-
const PACKAGE_DISPOSITIONS = new Set(["changed", "reused"]);
|
|
24
23
|
const PUBLIC_ACTIONS = new Set(["INSTANTIATE", "REFRESH"]);
|
|
25
24
|
const RESTORATION_ACTIONS = new Set([
|
|
26
25
|
"START",
|
|
@@ -65,13 +64,14 @@ export function validateAdminRuntimeTuple(tuple) {
|
|
|
65
64
|
}
|
|
66
65
|
for (const name of ADMIN_RUNTIME_TUPLE_MEMBERS) {
|
|
67
66
|
const item = tuple.packages[name];
|
|
67
|
+
const expectedDisposition = name === "@sellable/mcp" ? "reused" : "changed";
|
|
68
68
|
if (
|
|
69
69
|
!item ||
|
|
70
70
|
item.name !== name ||
|
|
71
71
|
!EXACT_VERSION.test(item.version ?? "") ||
|
|
72
72
|
typeof item.integrity !== "string" ||
|
|
73
73
|
!/^sha512-[A-Za-z0-9+/]{80,}={0,2}$/.test(item.integrity) ||
|
|
74
|
-
|
|
74
|
+
item.disposition !== expectedDisposition
|
|
75
75
|
) {
|
|
76
76
|
return {
|
|
77
77
|
ok: false,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
|
|
29
29
|
const MANIFEST_VERSION = "sellable-agent-external-runtime-closure/v1";
|
|
30
30
|
const MCP_PACKAGE = "@sellable/mcp";
|
|
31
|
-
const MCP_VERSION = "0.1.865
|
|
31
|
+
const MCP_VERSION = "0.1.865";
|
|
32
32
|
const SAFE_COMPONENT = /^[A-Za-z0-9@._+-]+$/;
|
|
33
33
|
const HERMES_EXCLUDES = new Set([".git", ".playwright", "node_modules"]);
|
|
34
34
|
|
|
@@ -694,22 +694,10 @@ const ADMIN_LIVE_SKILLS_CONFIG_KEYS = Object.freeze([
|
|
|
694
694
|
"disabled",
|
|
695
695
|
"platform_disabled",
|
|
696
696
|
]);
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
if (entry.isSymbolicLink() || !entry.isDirectory()) {
|
|
702
|
-
throw new Error("admin_runtime_packaged_skills_inventory_rejected");
|
|
703
|
-
}
|
|
704
|
-
directories.add(entry.name);
|
|
705
|
-
}
|
|
706
|
-
return directories;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
// Candidate run 31458025989 proved that a fresh profile must not classify
|
|
710
|
-
// package-backed Admin skills as operator state: doing so made both allowed
|
|
711
|
-
// SOUL restage attempts compare an empty live inventory with the sealed stage.
|
|
712
|
-
const ADMIN_SEALED_SKILL_DIRECTORIES = packagedAdminSkillDirectories();
|
|
697
|
+
const ADMIN_SEALED_SKILL_DIRECTORIES = new Set([
|
|
698
|
+
"sellable",
|
|
699
|
+
"opportunity-sequences",
|
|
700
|
+
]);
|
|
713
701
|
|
|
714
702
|
function adminPreservedSlackToolsets(config) {
|
|
715
703
|
const platformToolsets = config?.platform_toolsets;
|
|
@@ -729,13 +717,13 @@ function adminPreservedSlackToolsets(config) {
|
|
|
729
717
|
|
|
730
718
|
function adminPreservedSkillsIdentity(profileRoot) {
|
|
731
719
|
if (!existsSync(profileRoot)) return null;
|
|
720
|
+
const entries = [];
|
|
732
721
|
const skillsRoot = join(profileRoot, "skills");
|
|
733
722
|
const configPath = join(profileRoot, "config.yaml");
|
|
734
723
|
// Admin settings are delivered into .sellable-admin before the Hermes
|
|
735
724
|
// profile is staged. That settings-only directory is not an existing live
|
|
736
725
|
// profile and therefore has no skills state to preserve.
|
|
737
726
|
if (!existsSync(skillsRoot) && !existsSync(configPath)) return null;
|
|
738
|
-
const entries = [];
|
|
739
727
|
const walk = (directory, relativePath = "") => {
|
|
740
728
|
for (const name of readdirSync(directory).sort()) {
|
|
741
729
|
const nextRelative = relativePath ? `${relativePath}/${name}` : name;
|
|
@@ -2515,7 +2503,6 @@ export async function runAdminCanary() {
|
|
|
2515
2503
|
}
|
|
2516
2504
|
const fixtureWorkspaceId = "phase158-canary-workspace";
|
|
2517
2505
|
const fixtureAgentId = "phase158-canary-admin-agent";
|
|
2518
|
-
const fixtureNotificationSlackUserId = "U187CANARY";
|
|
2519
2506
|
const fixtureFiles = {
|
|
2520
2507
|
".env": "PHASE158_ADMIN_CANARY=nonsecret\n",
|
|
2521
2508
|
"settings.json": `${JSON.stringify({
|
|
@@ -2528,9 +2515,6 @@ export async function runAdminCanary() {
|
|
|
2528
2515
|
})}\n`,
|
|
2529
2516
|
"config-state.json": `${JSON.stringify({
|
|
2530
2517
|
sellable: { workspaceIds: [], workspaceNames: {} },
|
|
2531
|
-
opportunitySequences: {
|
|
2532
|
-
notificationSlackUserId: fixtureNotificationSlackUserId,
|
|
2533
|
-
},
|
|
2534
2518
|
})}\n`,
|
|
2535
2519
|
};
|
|
2536
2520
|
for (const [name, value] of Object.entries(fixtureFiles)) {
|
|
@@ -4,9 +4,9 @@ FROM ${HERMES_IMAGE}
|
|
|
4
4
|
|
|
5
5
|
USER root
|
|
6
6
|
|
|
7
|
-
ARG MCP_PACKAGE=@sellable/mcp@0.1.865
|
|
8
|
-
ARG MCP_INTEGRITY=sha512-
|
|
9
|
-
ARG INSTALLER_PACKAGE=@sellable/install@0.1.
|
|
7
|
+
ARG MCP_PACKAGE=@sellable/mcp@0.1.865
|
|
8
|
+
ARG MCP_INTEGRITY=sha512-282pkYFADFrrIXyQcdUpQwakXiwe/AFUDpDZkTh29CFcGHnN7dvC0MCvaU4LffXA+ZuKCpuf02uxCLGiIEOjbw==
|
|
9
|
+
ARG INSTALLER_PACKAGE=@sellable/install@0.1.609
|
|
10
10
|
ARG ADMIN_MCP_PACKAGE=@sellable/admin-mcp@0.1.186-wip.phase158.20260802034727
|
|
11
11
|
ARG ADMIN_MCP_INTEGRITY=sha512-qYNew5wd2IfgVcp1UYOG9QvpF/8Mx19YJ5HQtMKzvSfUf3evePjtaKsoXLf2C/GUJ5QlLlHJo84VWOI3V01+9A==
|
|
12
12
|
ARG TUS_JS_CLIENT_VERSION=4.3.1
|
|
@@ -96,9 +96,9 @@ const RUNTIME_GENERATION = Number(
|
|
|
96
96
|
const BOOT_SESSION_ID = randomUUID();
|
|
97
97
|
const HERMES_VERSION = process.env.SELLABLE_AGENT_HERMES_VERSION ?? "0.20.0";
|
|
98
98
|
const INSTALLER_PACKAGE =
|
|
99
|
-
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.
|
|
99
|
+
process.env.SELLABLE_AGENT_INSTALLER_PACKAGE ?? "@sellable/install@0.1.609";
|
|
100
100
|
const MCP_PACKAGE =
|
|
101
|
-
process.env.SELLABLE_AGENT_MCP_PACKAGE ?? "@sellable/mcp@0.1.865
|
|
101
|
+
process.env.SELLABLE_AGENT_MCP_PACKAGE ?? "@sellable/mcp@0.1.865";
|
|
102
102
|
|
|
103
103
|
const sha256 = (value) => createHash("sha256").update(value).digest("hex");
|
|
104
104
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -59,7 +59,7 @@ export const HERMES_OPPORTUNITY_SEQUENCES_CRON = Object.freeze({
|
|
|
59
59
|
name: "sellable-opportunity-sequences",
|
|
60
60
|
schedule: "every 30m",
|
|
61
61
|
deliver: "slack",
|
|
62
|
-
skills: Object.freeze(["
|
|
62
|
+
skills: Object.freeze(["opportunity-sequences"]),
|
|
63
63
|
enabledToolsets: Object.freeze(["safe", "sellable", "mcp"]),
|
|
64
64
|
noAgent: false,
|
|
65
65
|
});
|
|
@@ -81,6 +81,7 @@ const MAX_BYTES = 128 * 1024 * 1024;
|
|
|
81
81
|
// Slack gateway for a full ten minutes.
|
|
82
82
|
const NATIVE_COMMAND_TIMEOUT_MS = 120_000;
|
|
83
83
|
const TRANSIENT_PROFILE_ROOTS = new Set([".cache"]);
|
|
84
|
+
const TRANSIENT_PROFILE_PATHS = new Set([".sellable-admin/.venvs"]);
|
|
84
85
|
// The encrypted Fly volume remains the authoritative full profile. The
|
|
85
86
|
// portable disaster-recovery archive also carries state.db and sessions so a
|
|
86
87
|
// replacement volume retains chat history and Slack thread routing. Caches,
|
|
@@ -231,13 +232,23 @@ export function mergeHermesState(sourceRoot, targetRoot) {
|
|
|
231
232
|
) {
|
|
232
233
|
throw new Error("hermes_snapshot_merge_root_rejected");
|
|
233
234
|
}
|
|
234
|
-
const merge = (source, target,
|
|
235
|
+
const merge = (source, target, relativeRoot = "") => {
|
|
235
236
|
for (const name of readdirSync(source)) {
|
|
236
237
|
// UV deliberately materializes wheel-cache entries as symlinks. The
|
|
237
238
|
// cache is disposable and must not become durable profile state; skip
|
|
238
239
|
// only the top-level cache while preserving the closed symlink reject
|
|
239
|
-
// for sessions, skills, memory, and every other Hermes-owned path.
|
|
240
|
-
|
|
240
|
+
// for sessions, skills, memory, and every other Hermes-owned path. Old
|
|
241
|
+
// Admin installers also put a symlink-bearing Lightfield virtualenv in
|
|
242
|
+
// `.sellable-admin/.venvs`; current images materialize it under the
|
|
243
|
+
// runtime root, so it is disposable legacy state rather than profile
|
|
244
|
+
// content.
|
|
245
|
+
const relativePath = relativeRoot ? `${relativeRoot}/${name}` : name;
|
|
246
|
+
if (
|
|
247
|
+
(!relativeRoot && TRANSIENT_PROFILE_ROOTS.has(name)) ||
|
|
248
|
+
TRANSIENT_PROFILE_PATHS.has(relativePath)
|
|
249
|
+
) {
|
|
250
|
+
continue;
|
|
251
|
+
}
|
|
241
252
|
const from = join(source, name);
|
|
242
253
|
const to = join(target, name);
|
|
243
254
|
const stat = lstatSync(from);
|
|
@@ -254,7 +265,7 @@ export function mergeHermesState(sourceRoot, targetRoot) {
|
|
|
254
265
|
}
|
|
255
266
|
if (stat.isDirectory()) {
|
|
256
267
|
mkdirSync(to, { mode: stat.mode & 0o777 });
|
|
257
|
-
merge(from, to);
|
|
268
|
+
merge(from, to, relativePath);
|
|
258
269
|
} else if (stat.isFile()) {
|
|
259
270
|
copyFileSync(from, to);
|
|
260
271
|
chmodSync(to, stat.mode & 0o777);
|
|
@@ -263,7 +274,7 @@ export function mergeHermesState(sourceRoot, targetRoot) {
|
|
|
263
274
|
}
|
|
264
275
|
}
|
|
265
276
|
};
|
|
266
|
-
merge(sourceRoot, targetRoot
|
|
277
|
+
merge(sourceRoot, targetRoot);
|
|
267
278
|
}
|
|
268
279
|
|
|
269
280
|
function cronJobs(profileRoot) {
|
|
@@ -685,7 +696,7 @@ export async function ensureHermesSnapshotCron({
|
|
|
685
696
|
|
|
686
697
|
const OPPORTUNITY_SEQUENCE_ASSETS = Object.freeze([
|
|
687
698
|
"SKILL.md",
|
|
688
|
-
"references/outbound-multichannel-
|
|
699
|
+
"references/outbound-multichannel-v2.md",
|
|
689
700
|
"references/positive-reply-to-agreed-meeting-v1.md",
|
|
690
701
|
]);
|
|
691
702
|
const SLACK_USER_ID = /^U[A-Z0-9]{8,20}$/;
|
|
@@ -700,12 +711,7 @@ const OPPORTUNITY_SEQUENCE_CRON_PYTHON = [
|
|
|
700
711
|
].join("\n");
|
|
701
712
|
|
|
702
713
|
function opportunitySequenceIdentity(profileRoot) {
|
|
703
|
-
const root = join(
|
|
704
|
-
profileRoot,
|
|
705
|
-
"skills",
|
|
706
|
-
"sellable-admin",
|
|
707
|
-
HERMES_OPPORTUNITY_SEQUENCES_CRON.skills[0]
|
|
708
|
-
);
|
|
714
|
+
const root = join(profileRoot, "skills", "opportunity-sequences");
|
|
709
715
|
return Object.fromEntries(
|
|
710
716
|
OPPORTUNITY_SEQUENCE_ASSETS.map((relative) => {
|
|
711
717
|
const path = join(root, relative);
|
|
@@ -38,8 +38,8 @@ 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.
|
|
42
|
-
const MCP_PACKAGE = "@sellable/mcp@0.1.865
|
|
41
|
+
const INSTALLER_PACKAGE = "@sellable/install@0.1.609";
|
|
42
|
+
const MCP_PACKAGE = "@sellable/mcp@0.1.865";
|
|
43
43
|
const HERMES_VERSION = "0.18.0";
|
|
44
44
|
const SHA256 = /^[a-f0-9]{64}$/;
|
|
45
45
|
const SHA256_16 = /^[a-f0-9]{16}$/;
|
|
@@ -1546,8 +1546,8 @@ export function compileClaimToProfileDesired(activeClaim, config) {
|
|
|
1546
1546
|
]) ||
|
|
1547
1547
|
pinned.hermesCli !== "hermes" ||
|
|
1548
1548
|
pinned.hermesVersion !== "0.18.0" ||
|
|
1549
|
-
pinned.installerPackage !== "@sellable/install@0.1.
|
|
1550
|
-
pinned.mcpPackage !== "@sellable/mcp@0.1.865
|
|
1549
|
+
pinned.installerPackage !== "@sellable/install@0.1.609" ||
|
|
1550
|
+
pinned.mcpPackage !== "@sellable/mcp@0.1.865" ||
|
|
1551
1551
|
!Array.isArray(policy.toolInclude) ||
|
|
1552
1552
|
policy.toolInclude.length === 0 ||
|
|
1553
1553
|
!Number.isSafeInteger(slack.generation) ||
|
|
@@ -278,8 +278,8 @@ function validateDesired(desired) {
|
|
|
278
278
|
desired.serviceCredentialGeneration < 1 ||
|
|
279
279
|
desired.hermesCli !== "hermes" ||
|
|
280
280
|
desired.hermesVersion !== "0.18.0" ||
|
|
281
|
-
desired.installerPackage !== "@sellable/install@0.1.
|
|
282
|
-
desired.mcpPackage !== "@sellable/mcp@0.1.865
|
|
281
|
+
desired.installerPackage !== "@sellable/install@0.1.609" ||
|
|
282
|
+
desired.mcpPackage !== "@sellable/mcp@0.1.865" ||
|
|
283
283
|
!Array.isArray(desired.toolInclude) ||
|
|
284
284
|
desired.toolInclude.length === 0 ||
|
|
285
285
|
desired.toolInclude.some((tool) => !/^[a-z][a-z0-9_]{0,127}$/.test(tool)) ||
|
|
@@ -25,8 +25,8 @@ 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.
|
|
29
|
-
export const PINNED_MCP_PACKAGE = "@sellable/mcp@0.1.865
|
|
28
|
+
export const PINNED_INSTALL_PACKAGE = "@sellable/install@0.1.609";
|
|
29
|
+
export const PINNED_MCP_PACKAGE = "@sellable/mcp@0.1.865";
|
|
30
30
|
const PINNED_INSTALL_VERSION = PINNED_INSTALL_PACKAGE.slice(
|
|
31
31
|
PINNED_INSTALL_PACKAGE.lastIndexOf("@") + 1
|
|
32
32
|
);
|
package/package.json
CHANGED
|
@@ -5,7 +5,9 @@ visibility: public
|
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- mcp__sellable__refill_sends
|
|
7
7
|
- mcp__sellable__refill_v3_advance
|
|
8
|
+
- mcp__sellable__refill_v3_world_state
|
|
8
9
|
- mcp__sellable__refill_v3_continue
|
|
10
|
+
- mcp__sellable__get_campaigns
|
|
9
11
|
- mcp__sellable__get_refill_target_plan
|
|
10
12
|
- mcp__sellable__get_scheduler_fill_capacity
|
|
11
13
|
- mcp__sellable__get_subskill_asset
|
|
@@ -604,6 +606,19 @@ Synchronous source, configuration, rubric, and exhaustion authorities already
|
|
|
604
606
|
return after their own exact reread, so they return `settlement.ready:true` from
|
|
605
607
|
that bounded authority receipt and never wait on unrelated campaign-wide
|
|
606
608
|
processing cells.
|
|
609
|
+
|
|
610
|
+
When a non-yolo request names a campaign, resolve that visible name with one
|
|
611
|
+
authorized bounded `get_campaigns` call carrying an explicit `limit`. Require
|
|
612
|
+
exactly one case-insensitive exact match; if none or more than one match, stop
|
|
613
|
+
without preview or mutation. Retain only the returned stable campaign ID. Call
|
|
614
|
+
`refill_v3_world_state({workspaceId, scope, campaignId})`, render that exact
|
|
615
|
+
campaign's two-lane readiness and its explicit zero product side effects, then
|
|
616
|
+
stop at the product-native question with exactly Accept and Decline. Do not call
|
|
617
|
+
`refill_v3_advance` before Accept. Accept calls
|
|
618
|
+
`refill_v3_advance({workspaceId, scope, campaignId})`; Decline stops. Carry the
|
|
619
|
+
same campaignId through every advance, continue, replay, partial-wait, and
|
|
620
|
+
post-wait repeat. Display-name changes never alter this retained identity, and
|
|
621
|
+
no sibling campaign may replace it.
|
|
607
622
|
Call the next advance only when `settlement.ready` is true. When it is false,
|
|
608
623
|
call `wait_for_campaign_processing` with `settlement.resumeInput` **unchanged**;
|
|
609
624
|
that carries the exact `preparationJobId`, `requirePreparationTerminal:true`,
|