@oxygen-agent/cli 1.1045.15 → 1.1045.17
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/README.md +1 -1
- package/dist/commands/sequences.js +2 -2
- package/node_modules/@oxygen/shared/dist/sequences/sequences.d.ts +4 -3
- package/node_modules/@oxygen/shared/dist/sequences/sequences.js +37 -3
- package/node_modules/@oxygen/shared/dist/version.generated.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.generated.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1801,7 +1801,7 @@ export function registerSequencesFamily(program, handleAsyncAction) {
|
|
|
1801
1801
|
.option("--activation-id <id>", "Guided activation UUID; requires --activation-revision and --expected-revision.")
|
|
1802
1802
|
.option("--activation-revision <revision>", "Current guided activation revision; requires --activation-id and --expected-revision.")
|
|
1803
1803
|
.option("--name <name>", "New human-readable sequence name.")
|
|
1804
|
-
.option("--steps-file <path>", "Path to a JSON file: { \"steps\": [...] } replacing the journey. Once started (paused included), existing wait steps may change days/hours/jitter_hours/working_days and existing steps may change their wording (templates, subjects, invite notes, A/B variant copy; queued unsent messages take the new wording): same step IDs, kinds, order and variant count (zero a delay, never delete its step). Connection-wait timeout_days/on_timeout/withdraw_on_timeout are draft-only; duplicate to change them after start. Copy supports {{column}} interpolation; every step also takes {{sender_first_name}} / {{sender_last_name}} / {{sender_full_name}} for the person who sends it, and email adds {{sender_email}} (a same-named row column wins). A `branch` can also route on the lead's data with a contact leaf { has_contact: \"email\" | \"linkedin\" | \"phone\" } or a data leaf { has_column: \"<key>\" } (present:false for \"missing\").")
|
|
1804
|
+
.option("--steps-file <path>", "Path to a JSON file: { \"steps\": [...] } replacing the journey. Once started (paused included), existing wait steps may change days/hours/jitter_hours/working_days and existing steps may change their wording (templates, subjects, invite notes, A/B variant copy, a crm_task's hs_task_subject/hs_task_body templates; queued unsent messages and CRM tasks take the new wording): same step IDs, kinds, order and variant count (zero a delay, never delete its step). Connection-wait timeout_days/on_timeout/withdraw_on_timeout are draft-only; duplicate to change them after start. Copy supports {{column}} interpolation; every step also takes {{sender_first_name}} / {{sender_last_name}} / {{sender_full_name}} for the person who sends it, and email adds {{sender_email}} (a same-named row column wins). A `branch` can also route on the lead's data with a contact leaf { has_contact: \"email\" | \"linkedin\" | \"phone\" } or a data leaf { has_column: \"<key>\" } (present:false for \"missing\").")
|
|
1805
1805
|
.option("--channels <list>", "Draft only: comma-separated channels: linkedin,email,whatsapp,call,crm.")
|
|
1806
1806
|
.option("--whatsapp-cold-initiate", "WhatsApp: allow cold-initiating new chats (no prior conversation). Required to start a WhatsApp sequence live (draft-editable).")
|
|
1807
1807
|
.option("--no-whatsapp-cold-initiate", "WhatsApp: stop allowing cold chats; a live WhatsApp start then refuses.")
|
|
@@ -2449,7 +2449,7 @@ export function registerSequencesFamily(program, handleAsyncAction) {
|
|
|
2449
2449
|
}));
|
|
2450
2450
|
}))
|
|
2451
2451
|
.addCommand(new Command("recover-capacity")
|
|
2452
|
-
.description("Preview definitive no-effect terminal failures that Oxygen can replay safely: provider-capacity denials and exact allowlisted request-format defects. Recover the signed scope only on a PAUSED Sequence. Recovery restores local action/enrollment state; it never sends, calls a provider, spends credits, or resumes dispatch.")
|
|
2452
|
+
.description("Preview definitive no-effect terminal failures that Oxygen can replay safely: provider-capacity denials, steps the job queue lost before any provider contact, and exact allowlisted request-format defects. Recover the signed scope only on a PAUSED Sequence. Recovery restores local action/enrollment state; it never sends, calls a provider, spends credits, or resumes dispatch.")
|
|
2453
2453
|
.argument("<sequence>", "Sequence id or slug. Preview may run while active; apply requires paused.")
|
|
2454
2454
|
.option("--limit <n>", "Maximum candidate failure rows to inspect (1-5000, default 500). A truncated preview cannot be approved.")
|
|
2455
2455
|
.option("--approval-token <token>", "Exact unexpired token returned by the preview.")
|
|
@@ -1040,9 +1040,10 @@ export declare function sequenceWaitStepReadyAt(step: SequenceWaitStep, enrollme
|
|
|
1040
1040
|
export declare function sequenceDefinitionsDifferOnlyInTiming(before: SequenceDefinition, after: SequenceDefinition): boolean;
|
|
1041
1041
|
/**
|
|
1042
1042
|
* Whether `after` differs from `before` only in wait timing and step wording
|
|
1043
|
-
* (templates, subjects, notes and their A/B variants
|
|
1044
|
-
* started sequence accepts: the same steps in the
|
|
1045
|
-
* enrollment's integer `current_step_index`
|
|
1043
|
+
* (templates, subjects, notes and their A/B variants, a CRM task's subject and
|
|
1044
|
+
* notes). This is the edit a started sequence accepts: the same steps in the
|
|
1045
|
+
* same order and kinds, so every enrollment's integer `current_step_index`
|
|
1046
|
+
* still points at the step it meant
|
|
1046
1047
|
* (see sequenceDefinitionsDifferOnlyInTiming), on the same channels. Changed
|
|
1047
1048
|
* wording reaches queued actions through the dispatcher's copy replan
|
|
1048
1049
|
* (sequenceStepCopyDigest).
|
|
@@ -2263,6 +2263,30 @@ const SEQUENCE_STEP_COPY_FIELDS = {
|
|
|
2263
2263
|
email_send: ["subject_template", "body_template", "body_html_template"],
|
|
2264
2264
|
email_reply: ["body_template", "body_html_template"],
|
|
2265
2265
|
};
|
|
2266
|
+
/**
|
|
2267
|
+
* The CRM task properties that hold its wording: the subject and notes a rep
|
|
2268
|
+
* reads (HubSpot's names; another CRM adds its own). A templated owner, due
|
|
2269
|
+
* date, status or custom field is a setting, not copy.
|
|
2270
|
+
*/
|
|
2271
|
+
const CRM_TASK_COPY_PROPERTIES = ["hs_task_subject", "hs_task_body"];
|
|
2272
|
+
/**
|
|
2273
|
+
* A CRM task's wording: the template text of its subject and notes, keyed by
|
|
2274
|
+
* property. Which properties it writes, each one's source, every other value,
|
|
2275
|
+
* and the CRM records it resolves, links or associates say what the step does,
|
|
2276
|
+
* so they stay frozen with the rest of the journey.
|
|
2277
|
+
*/
|
|
2278
|
+
function crmTaskCopy(step) {
|
|
2279
|
+
const mappings = step.property_mappings;
|
|
2280
|
+
if (step.kind !== "crm_task" || !isRecord(mappings))
|
|
2281
|
+
return null;
|
|
2282
|
+
const copy = {};
|
|
2283
|
+
for (const property of CRM_TASK_COPY_PROPERTIES) {
|
|
2284
|
+
const mapping = mappings[property];
|
|
2285
|
+
if (isRecord(mapping) && mapping.source === "template" && typeof mapping.template === "string")
|
|
2286
|
+
copy[property] = mapping.template;
|
|
2287
|
+
}
|
|
2288
|
+
return copy;
|
|
2289
|
+
}
|
|
2266
2290
|
function withoutCopy(step) {
|
|
2267
2291
|
const fields = { ...step };
|
|
2268
2292
|
for (const key of SEQUENCE_STEP_COPY_FIELDS[step.kind] ?? [])
|
|
@@ -2276,13 +2300,20 @@ function withoutCopy(step) {
|
|
|
2276
2300
|
// dropping the subject changes what the step does, not only what it says.
|
|
2277
2301
|
if (step.kind === "email_send")
|
|
2278
2302
|
fields.has_subject = Boolean(step.subject_template);
|
|
2303
|
+
const crmCopy = crmTaskCopy(step);
|
|
2304
|
+
if (crmCopy) {
|
|
2305
|
+
// Same properties with the same sources; only the subject and notes text may change.
|
|
2306
|
+
const mappings = step.property_mappings;
|
|
2307
|
+
fields.property_mappings = Object.fromEntries(Object.entries(mappings).map(([property, mapping]) => [property, Object.hasOwn(crmCopy, property) ? { source: "template" } : mapping]));
|
|
2308
|
+
}
|
|
2279
2309
|
return fields;
|
|
2280
2310
|
}
|
|
2281
2311
|
/**
|
|
2282
2312
|
* Whether `after` differs from `before` only in wait timing and step wording
|
|
2283
|
-
* (templates, subjects, notes and their A/B variants
|
|
2284
|
-
* started sequence accepts: the same steps in the
|
|
2285
|
-
* enrollment's integer `current_step_index`
|
|
2313
|
+
* (templates, subjects, notes and their A/B variants, a CRM task's subject and
|
|
2314
|
+
* notes). This is the edit a started sequence accepts: the same steps in the
|
|
2315
|
+
* same order and kinds, so every enrollment's integer `current_step_index`
|
|
2316
|
+
* still points at the step it meant
|
|
2286
2317
|
* (see sequenceDefinitionsDifferOnlyInTiming), on the same channels. Changed
|
|
2287
2318
|
* wording reaches queued actions through the dispatcher's copy replan
|
|
2288
2319
|
* (sequenceStepCopyDigest).
|
|
@@ -2312,6 +2343,9 @@ export function sequenceStepCopyDigest(step) {
|
|
|
2312
2343
|
const variants = step.variants;
|
|
2313
2344
|
if (Array.isArray(variants))
|
|
2314
2345
|
copy.variants = variants;
|
|
2346
|
+
const crmCopy = crmTaskCopy(step);
|
|
2347
|
+
if (crmCopy)
|
|
2348
|
+
copy.property_mappings = crmCopy;
|
|
2315
2349
|
// cyrb53: a fast 53-bit string hash, plenty to tell two versions of a step apart.
|
|
2316
2350
|
const text = stableJson(copy);
|
|
2317
2351
|
let h1 = 0xdeadbeef;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const OXYGEN_BUILD_VERSION = "1.1045.
|
|
1
|
+
export declare const OXYGEN_BUILD_VERSION = "1.1045.17";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// GENERATED by scripts/ci/version-stamp.mjs from VERSION + git history. Do not edit; do not commit.
|
|
2
|
-
export const OXYGEN_BUILD_VERSION = "1.1045.
|
|
2
|
+
export const OXYGEN_BUILD_VERSION = "1.1045.17";
|