@sellable/install 0.1.280 → 0.1.282
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/bin/sellable-install.mjs
CHANGED
|
@@ -37,7 +37,7 @@ function getInstallVersion() {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const CODEX_PLUGIN_VERSION = "0.1.
|
|
40
|
+
const CODEX_PLUGIN_VERSION = "0.1.53";
|
|
41
41
|
const CODEX_PLUGIN_COMPAT_VERSIONS = [
|
|
42
42
|
"0.1.8",
|
|
43
43
|
"0.1.9",
|
|
@@ -74,6 +74,7 @@ const CODEX_PLUGIN_COMPAT_VERSIONS = [
|
|
|
74
74
|
"0.1.40",
|
|
75
75
|
"0.1.41",
|
|
76
76
|
"0.1.51",
|
|
77
|
+
"0.1.52",
|
|
77
78
|
];
|
|
78
79
|
const RAW_INSTALL_PACKAGE_SPEC =
|
|
79
80
|
process.env.SELLABLE_INSTALL_PACKAGE_SPEC || "@sellable/install@latest";
|
package/package.json
CHANGED
|
@@ -572,8 +572,15 @@ response, run a local file-existence and JSON self-check for
|
|
|
572
572
|
receipt there; if any postcondition, quality gate, verifier schema, or file
|
|
573
573
|
write blocks, write a canonical blocked receipt there with `status:"blocked"`,
|
|
574
574
|
`blocker`, `campaignId`, `tableId`, `actionId`, `laneKey`, `planRevision`, and
|
|
575
|
-
the latest product readback.
|
|
576
|
-
|
|
575
|
+
the latest product readback. For Post Engagers lanes, no sender-authored posts
|
|
576
|
+
or no sender-owned post-engager source is an acceptable terminal blocked/no-op
|
|
577
|
+
receipt, not a worker crash: use one of
|
|
578
|
+
`post_engagers_no_sender_posts`, `post_engagers_no_recent_sender_posts`,
|
|
579
|
+
`post_engagers_no_sender_owned_posts`, or
|
|
580
|
+
`post_engagers_source_author_mismatch`, include the source/readback evidence,
|
|
581
|
+
and stop without scraping third-party authors or generating misleading warm
|
|
582
|
+
copy. The terminal condition is filesystem proof that <receiptArtifactPath>
|
|
583
|
+
exists.
|
|
577
584
|
WORKER_PROMPT
|
|
578
585
|
|
|
579
586
|
# Multi-worker launcher equivalent:
|
|
@@ -816,6 +823,17 @@ the lane is complete. Do not use `status:"passed"` or
|
|
|
816
823
|
in a separate `warnings` array, but the completion status stays canonical.
|
|
817
824
|
The backend verifier rejects `status:"passed"`, `status:"pass"`, and
|
|
818
825
|
`status:"passed_with_warnings"` as primary completion statuses.
|
|
826
|
+
Exception: a Post Engagers lane may write `status:"blocked"` when Sellable MCP
|
|
827
|
+
sender-post/source readback proves there are no recent sender-authored posts to
|
|
828
|
+
scrape, no sender-owned post-engager source, or the current source is authored
|
|
829
|
+
by someone else. Use the explicit blocker codes
|
|
830
|
+
`post_engagers_no_sender_posts`, `post_engagers_no_recent_sender_posts`,
|
|
831
|
+
`post_engagers_no_sender_owned_posts`, or
|
|
832
|
+
`post_engagers_source_author_mismatch`. Parent verify treats these as
|
|
833
|
+
`acceptedLaneBlockers`, so the parent can report the truthful no-op instead of
|
|
834
|
+
retrying invalid source repair. This exception does not apply to shared lanes,
|
|
835
|
+
bad generated copy, stale plans, target mismatch, missing receipt files, launch
|
|
836
|
+
or schedule side effects, or arbitrary worker failures.
|
|
819
837
|
|
|
820
838
|
All step proof objects must live under `createCampaignStepReceipt`. Do not put
|
|
821
839
|
`createCampaignWorkflowReceipt`, `campaignBriefReceipt`,
|
|
@@ -938,32 +956,48 @@ verify and do not repair by summarizing product readback in the parent.
|
|
|
938
956
|
Message Drafting runtime rule: the preferred proof source is the normal
|
|
939
957
|
create-campaign branch handoff (`watchNarration.workerDetails.messageDraftBuilder`
|
|
940
958
|
or equivalent) with `statusSource:"branch"`. If that internal branch handoff is
|
|
941
|
-
not callable or not exposed in the packaged MCP runtime, do **not**
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
959
|
+
not callable or not exposed in the packaged MCP runtime, do **not** substitute
|
|
960
|
+
plain row generation. The lane worker must inline the same
|
|
961
|
+
`post-find-leads-message-scout` contract in the worker thread before any
|
|
962
|
+
`start_campaign_message_preparation` call:
|
|
963
|
+
|
|
964
|
+
1. Run the `post-find-leads-message-scout` branch, or inline its packaged
|
|
965
|
+
contract when branch launch is unavailable, from the current campaign/table,
|
|
966
|
+
selected lead list, saved filters, review batch row ids/hash, brief hash,
|
|
967
|
+
`mode:"create-campaign-v2"`, and lane type.
|
|
968
|
+
2. Load `get_subskill_prompt({ subskillName:"generate-messages" })` until
|
|
969
|
+
`hasMore:false`, all required message assets, and
|
|
970
|
+
`create-campaign-v2-validation`.
|
|
971
|
+
3. Produce a concrete `messageDraftRecommendation` before row generation. It
|
|
972
|
+
must include the selected message approach/template recommendation,
|
|
973
|
+
token/fill rules, source-use rules, hard avoids, at least one rendered good
|
|
974
|
+
sample, current campaign/table/source basis, and validation status. Shared
|
|
975
|
+
lanes still use `firstMessageTemplateState:"not preset; generate-messages
|
|
976
|
+
branch selected the final message approach"`; do not set
|
|
977
|
+
`firstMessageTemplate` for shared lanes.
|
|
978
|
+
4. Persist the recommendation into the campaign brief/message generation basis
|
|
979
|
+
with the packaged create-campaign tools before generating rows. If the
|
|
980
|
+
generated copy fails review, update the campaign brief/message template with
|
|
981
|
+
`update_campaign_brief` or `revise_message_template_and_rerun`, then rerun
|
|
982
|
+
Generate Message and review current-revision generated output.
|
|
983
|
+
5. Only after the scout recommendation and persisted basis exist, call
|
|
984
|
+
`start_campaign_message_preparation({ campaignId, tableId,
|
|
949
985
|
targetPreparedMessages, maxRowsToCheck, approvalMode:"mark_ready",
|
|
950
986
|
autoContinue:true })` inside the same lane worker, with bounded caps from the
|
|
951
|
-
lane packet.
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
987
|
+
lane packet. `start_campaign_message_preparation` is row execution proof
|
|
988
|
+
only; it is not Message Drafting proof and cannot satisfy this step by
|
|
989
|
+
itself. Never call `start_campaign_message_preparation` with
|
|
990
|
+
`approvalMode:"approve"` for evergreen setup.
|
|
991
|
+
Generate/readiness and approval are separate safety steps: first mark rows
|
|
992
|
+
ready, then inspect generated copy, then approve exactly one semantic
|
|
993
|
+
Approved cell through `select_campaign_cells` and `update_cell`.
|
|
957
994
|
Approval shorthand: approve exactly one semantic Approved cell.
|
|
958
995
|
In this message-drafting path, `update_cell` is allowed only for the semantic
|
|
959
996
|
Approved checkbox. Do not use `update_cell` or any row/cell write to edit
|
|
960
997
|
generated message text, sample copy, or final message bodies in automation.
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
`sampleMessages` must come from generated current-revision cells after the
|
|
965
|
-
brief/template rerun, not from hand-edited message cell overrides. If a lane
|
|
966
|
-
used a generated-message body override, report
|
|
998
|
+
Receipt `sampleMessages` must come from generated current-revision cells
|
|
999
|
+
after the brief/template rerun, not from hand-edited message cell overrides.
|
|
1000
|
+
If a lane used a generated-message body override, report
|
|
967
1001
|
`blocked: generated_message_cell_override` instead of success.
|
|
968
1002
|
Do not repair by overwriting bad generated message cells and then calling the
|
|
969
1003
|
overwritten cells `sampleMessages`.
|
|
@@ -974,9 +1008,9 @@ path itself in the worker thread:
|
|
|
974
1008
|
Short form: `update_cell` is allowed only for the semantic Approved checkbox.
|
|
975
1009
|
Short form: Do not use `update_cell` to edit generated message text.
|
|
976
1010
|
Short form: Bad copy requires brief/template revision plus Generate Message rerun.
|
|
977
|
-
|
|
1011
|
+
6. Poll `get_campaign_message_preparation_status` until no queued/active cells
|
|
978
1012
|
remain or a bounded stop reason is returned.
|
|
979
|
-
|
|
1013
|
+
7. Use `get_campaign_messages_preview` or `select_campaign_cells` to inspect
|
|
980
1014
|
generated rows, quality-review at least 3 samples, approve exactly one
|
|
981
1015
|
quality-valid route-proof row when none is already approved, and prove no
|
|
982
1016
|
broad approve-all happened.
|
|
@@ -986,16 +1020,21 @@ path itself in the worker thread:
|
|
|
986
1020
|
approvedGeneratedMessageCount exactly 1. Do not report completion with 2+
|
|
987
1021
|
approved rows.
|
|
988
1022
|
Approval shorthand: Do not report completion with 2+ approved rows.
|
|
989
|
-
|
|
1023
|
+
8. Continue to `attach_recommended_sequence({ campaignId, currentStep:"send" })`
|
|
990
1024
|
and, if the campaign is still `DRAFT`, `pause_campaign({ campaignId })`.
|
|
991
1025
|
Reread the campaign/table before claiming completion.
|
|
992
1026
|
|
|
993
1027
|
That packaged worker path must return `messageDraftingReceipt.statusSource:
|
|
994
1028
|
"packaged-generate-messages-worker"`. It is accepted only when the receipt
|
|
995
|
-
includes
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1029
|
+
includes branch-equivalent `post-find-leads-message-scout` proof, the
|
|
1030
|
+
`messageDraftRecommendation`, proof the recommendation was persisted into the
|
|
1031
|
+
brief/message basis before row generation, the prompt/assets/validation proof,
|
|
1032
|
+
current campaign/table/source basis, generated review rows, sample messages,
|
|
1033
|
+
quality review, route-proof approval evidence, sequence proof, and final
|
|
1034
|
+
paused-send proof required of the branch handoff. `statusSource:
|
|
1035
|
+
"parent-thread-fallback"` is still invalid. If neither branch handoff nor
|
|
1036
|
+
inline scout proof can run, stop with `blocked:
|
|
1037
|
+
missing_message_drafting_branch`; do not shortcut through row prep.
|
|
999
1038
|
The only accepted statusSource values are exactly `branch` and
|
|
1000
1039
|
`packaged-generate-messages-worker`; descriptive aliases such as
|
|
1001
1040
|
`package-readback-local-thread` are rejected.
|
|
@@ -1076,8 +1115,13 @@ The parent then calls
|
|
|
1076
1115
|
`setup_evergreen_campaigns({ mode:"verify", postEngagerSenderIds,
|
|
1077
1116
|
sharedSenderIds, planRevision, selectedActionIds, receipts })` using the same
|
|
1078
1117
|
sender scopes as the plan call and the original execution planRevision/actionIds,
|
|
1079
|
-
and reports only verified completion.
|
|
1080
|
-
`
|
|
1118
|
+
and reports only verified completion. If verify returns `verified:true` with
|
|
1119
|
+
`acceptedLaneBlockers`, report those lanes as accepted blocked/no-op lanes, not
|
|
1120
|
+
completed campaigns. Do not include `yolo` in the verify call; `yolo` is
|
|
1121
|
+
plan-mode only. A verify call without the same sender scopes can recompute an
|
|
1122
|
+
empty or different plan and is invalid proof. A verify call that uses a later
|
|
1123
|
+
reuse planRevision instead of the original execution planRevision is also
|
|
1124
|
+
invalid proof. Only after verify succeeds, rerun
|
|
1081
1125
|
`setup_evergreen_campaigns({ mode:"plan", postEngagerSenderIds,
|
|
1082
1126
|
sharedSenderIds, yolo:true })` without explicit campaign/table bindings. That
|
|
1083
1127
|
idempotency rerun must return `intent:"reuse"` for every completed lane and no
|
|
@@ -1365,16 +1409,25 @@ Message, and verify current-revision sample messages before final completion.
|
|
|
1365
1409
|
Short form: missing or skipped filter proof is `blocked: missing_filter_setup`.
|
|
1366
1410
|
Short form: run Message Drafting only after saved filters are applied.
|
|
1367
1411
|
- Every customer-visible lane must run Message Drafting from the current
|
|
1368
|
-
campaign/table basis after source rows exist
|
|
1369
|
-
|
|
1370
|
-
`
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1412
|
+
campaign/table basis after source rows exist and saved filters are
|
|
1413
|
+
applied. The worker must use the normal
|
|
1414
|
+
`post-find-leads-message-scout` branch handoff or inline that same scout
|
|
1415
|
+
contract when branch launch is unavailable. Plain
|
|
1416
|
+
`start_campaign_message_preparation` is row execution proof only; it is
|
|
1417
|
+
not a fallback substitute for Message Drafting. The worker must load the
|
|
1418
|
+
full packaged `generate-messages` prompt, every required asset, and
|
|
1419
|
+
`create-campaign-v2-validation`; before row generation, the receipt must
|
|
1420
|
+
show branch-equivalent scout proof, a concrete
|
|
1421
|
+
`messageDraftRecommendation`, and proof that recommendation was persisted
|
|
1422
|
+
into the campaign brief/message generation basis. Only then may the
|
|
1423
|
+
worker call `start_campaign_message_preparation` and poll
|
|
1424
|
+
`get_campaign_message_preparation_status` from the lane worker. The
|
|
1425
|
+
returned receipt must include `statusSource:"branch"` or
|
|
1426
|
+
`statusSource:"packaged-generate-messages-worker"`, at least 3 concrete
|
|
1427
|
+
reviewed sample messages, a passed validation result, and a passed quality
|
|
1428
|
+
review. Row/message counts alone are not enough. If the branch handoff and
|
|
1429
|
+
inline scout contract are both unavailable, report
|
|
1430
|
+
`blocked: missing_message_drafting_branch`.
|
|
1378
1431
|
|
|
1379
1432
|
- **The brief must declare the delivery format** so Generate Message writes copy suited to how it actually sends:
|
|
1380
1433
|
- DM lanes: add a `Delivery format:` line — either `multiline (each paragraph sends as its own DM message)` or `single message`. When multiline, the template's blank-line paragraphs ARE the message boundaries — write each one as a standalone typed message.
|
|
@@ -1412,12 +1465,15 @@ Message, and verify current-revision sample messages before final completion.
|
|
|
1412
1465
|
`hasMore:false`, required message assets were loaded, and
|
|
1413
1466
|
`create-campaign-v2-validation` ran through
|
|
1414
1467
|
`workerDetails.messageDraftBuilder` with `statusSource:"branch"` or
|
|
1415
|
-
through the lane worker's
|
|
1416
|
-
`statusSource:"packaged-generate-messages-worker"
|
|
1417
|
-
|
|
1468
|
+
through the lane worker's inline `post-find-leads-message-scout` contract
|
|
1469
|
+
with `statusSource:"packaged-generate-messages-worker"`. For the packaged
|
|
1470
|
+
worker path, proof must include branch-equivalent scout proof, a concrete
|
|
1471
|
+
`messageDraftRecommendation`, template/basis persistence proof before row
|
|
1472
|
+
generation, `start_campaign_message_preparation`, and
|
|
1418
1473
|
`get_campaign_message_preparation_status`. The generated-message cells are
|
|
1419
1474
|
not prompt proof; `currentRevisionGeneratedMessages` and row previews are
|
|
1420
|
-
only downstream cell evidence.
|
|
1475
|
+
only downstream cell evidence. Row prep alone is not prompt proof. The
|
|
1476
|
+
proof must include
|
|
1421
1477
|
`validationResult:"passed"`, a passed quality review, and at least 3
|
|
1422
1478
|
reviewed sample messages. For Shared Cold Fallback, reject samples that
|
|
1423
1479
|
open with a standalone name followed by "Hey there" or a similarly generic
|
|
@@ -1497,7 +1553,7 @@ Message, and verify current-revision sample messages before final completion.
|
|
|
1497
1553
|
internal-only objects, verify the active waterfall linkage, table ID,
|
|
1498
1554
|
source type, and priority, and label them `internal source pool` rather
|
|
1499
1555
|
than treating them as completed campaigns.
|
|
1500
|
-
- Post Engagers lanes are sender-owned source lanes. The selected/source LinkedIn posts must be authored by that exact sender (for example, Thomas post-engager source posts must visibly be Thomas-authored posts). If selected/source posts include another person or company author,
|
|
1556
|
+
- Post Engagers lanes are sender-owned source lanes. The selected/source LinkedIn posts must be authored by that exact sender (for example, Thomas post-engager source posts must visibly be Thomas-authored posts). If Sellable MCP readback proves the sender has no recent posts to scrape, no sender-authored posts with usable engagers, no sender-owned post-engager source, or the selected/source posts include another person or company author, write a blocked receipt with the matching accepted blocker code and report that back to the parent as an accepted no-op. Do not scrape/import engagers from third-party authors and do not report completion until the source is sender-owned. Shared Signal Discovery lanes are the only evergreen lanes allowed to mix authors.
|
|
1501
1557
|
5. **Interactive polish mode only: confirm the message template with the user — and check it reads chat-native.** Show the exact first-message template each created campaign's brief carries and ask the user to confirm or adjust it before moving on. Because DM copy may send paragraph-by-paragraph (each blank-line block becomes its own message), every paragraph must read like something a human literally typed as a separate chat message:
|
|
1502
1558
|
- **No letter punctuation.** `Hey {{first_name}}` — never `Hey {{first_name}},` (nobody types a trailing comma and hits send). No `Dear`, no sign-offs, no `Best,`.
|
|
1503
1559
|
- Each paragraph stands alone as a message — short, lowercase-casual is fine, sentence fragments are fine.
|