@sellable/install 0.1.242 → 0.1.244
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/package.json
CHANGED
|
@@ -58,6 +58,22 @@ Default evergreen plan per workspace (override only if the prompt specifies diff
|
|
|
58
58
|
1. **`<Sender Name> - Post Engagers`** — one per sender (warm lane, highest priority)
|
|
59
59
|
2. **`<Workspace/Team> - Shared Signal Discovery`** — one shared warm-signal campaign lane across senders
|
|
60
60
|
3. **`<Workspace/Team> - Shared Cold Fallback`** — one shared cold/fallback campaign lane across senders
|
|
61
|
+
|
|
62
|
+
Sender scope resolution is safety-critical. Do not pass
|
|
63
|
+
`allConnectedSenders:true` unless the invoking prompt explicitly says "all
|
|
64
|
+
connected senders", "every connected sender", "all seats", or names an
|
|
65
|
+
equivalent all-sender scope. If the user says "all 4 campaigns", "the four
|
|
66
|
+
evergreen campaigns", or names specific senders, resolve those exact senders
|
|
67
|
+
and pass explicit `postEngagerSenderIds` plus `sharedSenderIds`; do not broaden
|
|
68
|
+
the plan to every connected sender. In non-interactive or `--yolo` mode, when
|
|
69
|
+
more than two connected senders exist and the prompt does not explicitly
|
|
70
|
+
authorize all connected senders, stop before mutation with
|
|
71
|
+
`blocked: ambiguous_post_engager_sender_scope` and report the sender ids/names
|
|
72
|
+
needed for approval. Never let "workspace default" silently create Post
|
|
73
|
+
Engagers lanes for extra senders.
|
|
74
|
+
Short form: Do not pass `allConnectedSenders:true` unless the prompt explicitly says all/every connected sender.
|
|
75
|
+
Short form: "all 4 campaigns" means explicit sender scope plus two shared lanes, not all connected senders.
|
|
76
|
+
Short form: In `--yolo`, ambiguous multi-sender scope blocks before mutation.
|
|
61
77
|
</inputs>
|
|
62
78
|
|
|
63
79
|
<command_backed_workflow>
|
|
@@ -274,6 +290,31 @@ CLI builds that expose `-a`/`-s` only at top level. Do not use
|
|
|
274
290
|
forms fail on current customer CLI installs. Pipe the lane packet prompt on
|
|
275
291
|
stdin, require the worker to write `workerDispatch.receiptArtifactHint`, and
|
|
276
292
|
pass exactly one lane packet per worker.
|
|
293
|
+
When wrapping multiple local Codex CLI workers in a shell launcher, run the
|
|
294
|
+
wrapper with `/bin/bash -lc` or another explicitly chosen portable shell. Do not
|
|
295
|
+
rely on zsh-specific behavior. Do not use `status` as a shell variable because
|
|
296
|
+
zsh treats it as read-only; use `exit_code` or `rc` instead. Receipt polling
|
|
297
|
+
must use `find <receipt-dir> -maxdepth 1 -name 'evg_*.json' -print` or an
|
|
298
|
+
explicit nullglob-safe equivalent. Do not use naked `*.json` globs under zsh,
|
|
299
|
+
and keep zero-receipt polls quiet with no `no matches found` diagnostics.
|
|
300
|
+
Do not embed `<<'WORKER_PROMPT'` heredocs inside a single quoted or double
|
|
301
|
+
quoted `/bin/bash -lc '...'` command string; nested quoting is brittle and can
|
|
302
|
+
truncate the first worker before mutation. For multi-worker launchers, write one
|
|
303
|
+
plain prompt file per lane under the current run directory, then start each
|
|
304
|
+
worker with `codex -a never -s danger-full-access exec -C "$REPO" -o
|
|
305
|
+
"$worker_final_file" - < "$worker_prompt_file"`. Keep launcher shell variables
|
|
306
|
+
double-quoted and keep the prompt heredoc only in a standalone script/prompt-file
|
|
307
|
+
write step, not inside an already quoted shell argument. If the first launcher
|
|
308
|
+
attempt exits with a shell parse error or before starting the first worker,
|
|
309
|
+
stop with `blocked: worker_launcher_quoting_failed` and do not retry by
|
|
310
|
+
loosening sender scope or mutating in the parent.
|
|
311
|
+
Short form: run the wrapper with `/bin/bash -lc`.
|
|
312
|
+
Short form: Do not rely on zsh-specific behavior.
|
|
313
|
+
Short form: Do not use `status` as a shell variable; use `exit_code` or `rc`.
|
|
314
|
+
Short form: Receipt polling uses `find <receipt-dir> -maxdepth 1 -name 'evg_*.json' -print`.
|
|
315
|
+
Short form: Do not use naked `*.json` globs under zsh; no `no matches found` diagnostics.
|
|
316
|
+
Short form: Do not embed `<<'WORKER_PROMPT'` heredocs inside a quoted `/bin/bash -lc` command string.
|
|
317
|
+
Short form: Multi-worker launchers write prompt files and run `codex ... - < "$worker_prompt_file"`.
|
|
277
318
|
After creating receipt directories, dispatch workers immediately; do not perform extended parent reasoning, extra inventory, or prompt rewriting loops.
|
|
278
319
|
Use a compact worker prompt: include lane packet JSON, original selectedActionIds,
|
|
279
320
|
original planRevision, parent postEngagerSenderIds, parent sharedSenderIds,
|
|
@@ -287,8 +328,11 @@ current lane packet for receipt paths.
|
|
|
287
328
|
Do not hardcode machine-specific paths, workspace ids, campaign ids, sender ids, or UAT/phase artifact paths in this MCP prompt or any worker prompt.
|
|
288
329
|
After the receipt-directory `mkdir`, the next shell/tool call must launch the first lane worker.
|
|
289
330
|
Do not run `find`, `ls`, extra inventory, or another preflight between directory setup and the first worker launch.
|
|
290
|
-
For the local Codex CLI fallback, use this literal durable CLI worker launch
|
|
291
|
-
and fill only the lane-specific placeholders
|
|
331
|
+
For the local Codex CLI fallback, use this literal durable CLI worker launch
|
|
332
|
+
template and fill only the lane-specific placeholders. For one-off direct worker
|
|
333
|
+
launches you may pipe a heredoc directly to `codex`; for multi-worker shell
|
|
334
|
+
launchers, write the same prompt body to `<worker-prompt-file>` and launch the
|
|
335
|
+
worker with stdin redirected from that file:
|
|
292
336
|
|
|
293
337
|
```
|
|
294
338
|
codex -a never -s danger-full-access exec -C <repo> -o <worker-final-file> - <<'WORKER_PROMPT'
|
|
@@ -312,6 +356,9 @@ Use mcp__sellable only. Do not use admin tools, direct DB, Prisma, SQL, web sear
|
|
|
312
356
|
Do not launch, start, schedule, send, or use paid InMail.
|
|
313
357
|
Complete only this lane, write the required durable receipt JSON, and stop.
|
|
314
358
|
WORKER_PROMPT
|
|
359
|
+
|
|
360
|
+
# Multi-worker launcher equivalent:
|
|
361
|
+
codex -a never -s danger-full-access exec -C <repo> -o <worker-final-file> - < <worker-prompt-file>
|
|
315
362
|
```
|
|
316
363
|
|
|
317
364
|
If any placeholder cannot be filled from the current lane packet, do not inspect
|
|
@@ -661,6 +708,19 @@ path itself in the worker thread:
|
|
|
661
708
|
exactly one semantic Approved cell through `select_campaign_cells` and
|
|
662
709
|
`update_cell`.
|
|
663
710
|
Approval shorthand: approve exactly one semantic Approved cell.
|
|
711
|
+
In this message-drafting path, `update_cell` is allowed only for the semantic
|
|
712
|
+
Approved checkbox. Do not use `update_cell` or any row/cell write to edit
|
|
713
|
+
generated message text, sample copy, or final message bodies in automation.
|
|
714
|
+
If generated copy fails review, update the campaign brief/message template
|
|
715
|
+
with `update_campaign_brief` or `revise_message_template_and_rerun`, then
|
|
716
|
+
rerun Generate Message and review current-revision generated output. Receipt
|
|
717
|
+
`sampleMessages` must come from generated current-revision cells after the
|
|
718
|
+
brief/template rerun, not from hand-edited message cell overrides. If a lane
|
|
719
|
+
used a generated-message body override, report
|
|
720
|
+
`blocked: generated_message_cell_override` instead of success.
|
|
721
|
+
Short form: `update_cell` is allowed only for the semantic Approved checkbox.
|
|
722
|
+
Short form: Do not use `update_cell` to edit generated message text.
|
|
723
|
+
Short form: Bad copy requires brief/template revision plus Generate Message rerun.
|
|
664
724
|
4. Poll `get_campaign_message_preparation_status` until no queued/active cells
|
|
665
725
|
remain or a bounded stop reason is returned.
|
|
666
726
|
5. Use `get_campaign_messages_preview` or `select_campaign_cells` to inspect
|
|
@@ -687,6 +747,26 @@ The only accepted statusSource values are exactly `branch` and
|
|
|
687
747
|
`packaged-generate-messages-worker`; descriptive aliases such as
|
|
688
748
|
`package-readback-local-thread` are rejected.
|
|
689
749
|
|
|
750
|
+
Before any provider-specific source mutation for a newly created campaign,
|
|
751
|
+
reread `get_campaign_navigation_state({ campaignId })` and use that product
|
|
752
|
+
navigation state as the source-step authority. Do not jump from a shell directly
|
|
753
|
+
into `contact-search`, and do not jump from a shell directly into
|
|
754
|
+
`signal-discovery`. Advance through the product-visible source-selection step
|
|
755
|
+
first, then load the provider prompt and write only the provider/source fields
|
|
756
|
+
accepted for that current step. Never include sender reassignment fields in
|
|
757
|
+
source-step updates, never include custom narration fields in source-step
|
|
758
|
+
updates, and do not use guessed `currentStep` or watched narration payloads to
|
|
759
|
+
force the flow forward. If `update_campaign` rejects the source transition
|
|
760
|
+
twice, reread navigation/campaign state once; if the campaign is not already on
|
|
761
|
+
the intended source step, stop the lane with
|
|
762
|
+
`blocked: watched_source_transition_blocked` and include the rejected tool
|
|
763
|
+
result plus the readback. Do not loop on rejected `update_campaign` transitions.
|
|
764
|
+
Short form: do not jump from a shell directly into `contact-search`.
|
|
765
|
+
Short form: do not jump from a shell directly into `signal-discovery`.
|
|
766
|
+
Short form: never include sender reassignment fields in source-step updates.
|
|
767
|
+
Short form: never include custom narration fields in source-step updates.
|
|
768
|
+
Short form: do not loop on rejected `update_campaign` transitions.
|
|
769
|
+
|
|
690
770
|
One lane may produce exactly one CampaignOffer/campaign id and one current
|
|
691
771
|
workflow table id. For `intent:"create"`, the first successful
|
|
692
772
|
`create_campaign` result establishes the lane's only allowed campaign/table
|
|
@@ -978,6 +1058,7 @@ Parent-thread handwritten copy or setting `currentStep` is not proof.
|
|
|
978
1058
|
6. **Interactive polish mode only: prove the template on one real row.** For ONE campaign that has at least one lead row (add one via `add_on_demand_leads` if every lane is empty and the user provides/approves a test lead), generate a message for exactly one row (`queue_campaign_cells` with `columnRole: "generateMessage"`, `rowSelector: { type: "reviewBatch", limit: 1 }` or the single row's ID), wait for it, then show the user the generated message next to the template — AND show how it would split if paragraph-per-message sending is enabled (list each paragraph as `msg 1:`, `msg 2:`, …) so the user confirms each one reads like a real typed message. Check alignment: tone, structure, no internal vocabulary, correct token substitution, no letter punctuation. Do NOT approve the row or generate for more rows — one sample only.
|
|
979
1059
|
7. **Automation mode template/config audit**: inspect existing send-lane briefs for a `Delivery format:` line and chat-native warm template. If a send lane is missing the line and the prompt allows cleanup, update only the campaign brief metadata with the safest default for that lane (`Delivery format: single message (LinkedIn DM; line breaks remain inside one generated message; no follow-up until reply)`). If cleanup is not allowed, flag it. Do not generate a sample row in automation mode unless the invocation explicitly asks for sample proof. In structure-only automation, do not generate a sample row unless the invocation explicitly asks for sample proof. In customer-visible completion, follow the Customer-Visible Completion Contract instead.
|
|
980
1060
|
8. **Final customer-facing completion must include sample messaging**: after customer-visible verify and the idempotency rerun pass, add a `Sample Messaging Review` section to the final answer. For every completed lane, show at least one full generated first message for every completed lane with campaign name, campaign id, row id, and verdict. Extract samples from nested `createCampaignStepReceipt.messageDraftingReceipt.sampleMessages`, not from top-level summaries; extract samples from nested `createCampaignStepReceipt.messageDraftingReceipt.sampleMessages` when building the final answer. Prefer the approved route-proof row when it is quality-valid; otherwise use the best reviewed generated row from the verified receipt. A final `passed` sample must have `issues:[]`; if every reviewed sample has issues, report the lane as needing message revision instead of presenting a passed sample. Do not summarize the sample into a copy theme. Show the actual message text so the user can inspect tone and specificity. If any sample is not quite right, tell the user they can ask the AI to update the campaign brief/message template and rerun Generate Message before launch. Never suggest launching, scheduling, or sending as the next step from this command.
|
|
1061
|
+
If the `Sample Messaging Review` section is omitted, the command is incomplete even when the structural campaign setup succeeded.
|
|
981
1062
|
9. **Report the reconcile plan and result** — every slot tagged `reused`, `created`, `repaired`, `flagged`, or `blocked`, plus template/sample details only when that mode ran:
|
|
982
1063
|
|
|
983
1064
|
```
|