@sellable/install 0.1.248 → 0.1.250

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/install",
3
- "version": "0.1.248",
3
+ "version": "0.1.250",
4
4
  "type": "module",
5
5
  "description": "One-command installer for Sellable MCP in Claude Code and Codex",
6
6
  "bin": {
@@ -14,6 +14,33 @@ producing duplicates. This skill never launches campaigns; customer-visible
14
14
  completion stops at paused send review.
15
15
  </role>
16
16
 
17
+ ## Operational Fast Path
18
+
19
+ In automation or `--yolo` customer-visible setup, use this path before the
20
+ long-form contract below:
21
+
22
+ 1. Resolve the active workspace and explicit sender scopes, then call
23
+ `setup_evergreen_campaigns({ mode:"plan", yolo:true, postEngagerSenderIds,
24
+ sharedSenderIds })`.
25
+ 2. If the plan is not current, lacks lane packets, or has
26
+ `autoExecutable:false`, return the exact blocker before mutation.
27
+ 3. Choose the worker runtime immediately. When running under Codex CLI or on VPS,
28
+ the local Codex CLI fallback is the default accepted runtime. Use visible
29
+ Codex app threads only when the callable thread tools are actually available.
30
+ If shell execution is unavailable and no visible/durable thread surface is
31
+ callable, return `blocked: missing_visible_or_durable_lane_worker_runtime`
32
+ before mutation.
33
+ 4. Write one compact prompt file per selected lane packet, create the receipt
34
+ directory, and launch all lane workers in parallel with the literal Codex CLI
35
+ worker command shape below. The parent does not create campaign shells.
36
+ 5. Collect fresh durable receipts, verify with the original planRevision and
37
+ selectedActionIds, then run the idempotency plan and show sample messages.
38
+
39
+ Do not keep reasoning, re-reading prompts, or restating this workflow instead of
40
+ dispatching workers. If the first worker cannot be launched after at most one
41
+ short planning pass, return `blocked: worker_dispatch_deadline_exceeded` before
42
+ directory setup or product mutation.
43
+
17
44
  <inputs>
18
45
  The invoking prompt names the senders ("create evergreen campaigns for csreyes92 and thomas"). Resolve each via `list_senders`.
19
46
 
@@ -315,7 +342,26 @@ Short form: Receipt polling uses `find <receipt-dir> -maxdepth 1 -name 'evg_*.js
315
342
  Short form: Do not use naked `*.json` globs under zsh; no `no matches found` diagnostics.
316
343
  Short form: Do not embed `<<'WORKER_PROMPT'` heredocs inside a quoted `/bin/bash -lc` command string.
317
344
  Short form: Multi-worker launchers write prompt files and run `codex ... - < "$worker_prompt_file"`.
345
+ After the auto-executable plan returns, take at most one short planning pass to
346
+ choose the visible/durable worker runtime and build the worker launch packet.
347
+ Do not keep reasoning, re-reading prompts, or restating the workflow instead of
348
+ dispatching. If the parent cannot name the callable worker runtime and prepare
349
+ the first worker launch command/tool call immediately after that pass, stop with
350
+ `blocked: worker_dispatch_deadline_exceeded` before directory setup or mutation.
318
351
  After creating receipt directories, dispatch workers immediately; do not perform extended parent reasoning, extra inventory, or prompt rewriting loops.
352
+ Before any campaign shell creation, the parent must dispatch every selected lane
353
+ worker from the current plan and record the visible thread id or
354
+ `receiptArtifactPath` for each selected actionId. The parent must not call
355
+ `create_campaign`, `import_leads`, `confirm_lead_list`, sequence tools, message
356
+ preparation tools, or `setup_evergreen_campaigns` with `mode:"apply"` or any
357
+ other mutating setup mode. In this wrapper, `setup_evergreen_campaigns` is
358
+ plan/verify authority only; customer-visible creation belongs inside lane
359
+ workers through `$sellable:create-campaign`. If a campaign/table id appears for
360
+ a create lane before that lane has a recorded worker runtime and fresh receipt
361
+ path/thread id, stop with `blocked: parent_mutated_before_worker_receipt` and
362
+ do not continue setup in the parent.
363
+ Short form: dispatch every selected lane worker before shell creation.
364
+ Short form: do not call `setup_evergreen_campaigns` with `mode:"apply"` from the parent.
319
365
  Use a compact worker prompt: include lane packet JSON, original selectedActionIds,
320
366
  original planRevision, parent postEngagerSenderIds, parent sharedSenderIds,
321
367
  receiptArtifactPath, workspace id, sender ids, side-effect caps, and the
@@ -323,6 +369,11 @@ instruction to load packaged prompts through MCP.
323
369
  Do not paste the entire wrapper skill into worker prompts. If the parent cannot
324
370
  launch at least one visible/durable worker immediately after directory setup,
325
371
  stop with `blocked: worker_dispatch_stalled` before any mutation.
372
+ After launching workers, poll only the expected current-run receipt paths from
373
+ `workerDispatch.receiptArtifactHint`. If no worker receipt file appears within a
374
+ bounded wait, for example 10 minutes in automation, stop with
375
+ `blocked: worker_receipt_timeout`, include the worker ids/final-file paths/stderr
376
+ if available, and do not create or repair campaign shells in the parent.
326
377
  Use only the repo-local `workerDispatch.receiptArtifactHint` returned by the
327
378
  current lane packet for receipt paths.
328
379
  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.