@koda-sl/baker-cli 0.263.0 → 0.264.0-dev.3c2230aac
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/dist/cli.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
ulid,
|
|
59
59
|
validateCanvasDeep,
|
|
60
60
|
ytDlpBlockSignal
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-77OP3PDC.js";
|
|
62
62
|
import {
|
|
63
63
|
csvOrJson,
|
|
64
64
|
daysAgoIso,
|
|
@@ -581,7 +581,10 @@ var actionDocSchema = z.object({
|
|
|
581
581
|
priority: actionPrioritySchema.optional(),
|
|
582
582
|
requiresHuman: z.boolean().optional(),
|
|
583
583
|
tags: z.array(z.string()).optional(),
|
|
584
|
-
|
|
584
|
+
// `system` is Baker raising a Task off its own findings — today, a Form whose
|
|
585
|
+
// destination has stopped accepting it. The agent still cannot create one:
|
|
586
|
+
// its route stages a draft that applies at Publish (`createdByType: "chat"`).
|
|
587
|
+
createdByType: z.enum(["user", "chat", "schedule", "system"]),
|
|
585
588
|
createdByUserId: z.string().optional(),
|
|
586
589
|
createdByChatId: z.string().optional(),
|
|
587
590
|
createdByScheduleId: z.string().optional(),
|
|
@@ -5121,6 +5124,10 @@ var hubspotFormFieldSchema = z14.object({
|
|
|
5121
5124
|
description: z14.string().optional(),
|
|
5122
5125
|
options: z14.array(z14.object({ label: z14.string(), value: z14.string() })).optional()
|
|
5123
5126
|
});
|
|
5127
|
+
var hubspotEmailBlockingSchema = z14.object({
|
|
5128
|
+
freeProviders: z14.boolean().nullable(),
|
|
5129
|
+
domains: z14.array(z14.string())
|
|
5130
|
+
});
|
|
5124
5131
|
var hubspotFormSummarySchema = z14.object({
|
|
5125
5132
|
id: z14.string(),
|
|
5126
5133
|
name: z14.string(),
|
|
@@ -5161,6 +5168,7 @@ var hubspotFormDetailSchema = hubspotFormSummarySchema.extend({
|
|
|
5161
5168
|
fields: z14.array(hubspotFormFieldSchema),
|
|
5162
5169
|
/** HubSpot's "Data privacy and consent options"; `null` when not configured. */
|
|
5163
5170
|
legalConsentType: z14.string().nullable(),
|
|
5171
|
+
emailBlocking: hubspotEmailBlockingSchema,
|
|
5164
5172
|
raw: z14.record(z14.string(), z14.unknown()).optional()
|
|
5165
5173
|
});
|
|
5166
5174
|
var hubspotFormNodeExternalSchema = z14.object({
|
|
@@ -5172,6 +5180,8 @@ var hubspotFormNodeExternalSchema = z14.object({
|
|
|
5172
5180
|
region: z14.string().optional(),
|
|
5173
5181
|
captchaEnabled: z14.boolean(),
|
|
5174
5182
|
fieldGroups: z14.array(z14.object({ fields: z14.array(hubspotFormFieldSchema) })),
|
|
5183
|
+
/** Optional: nodes stored before this shipped carry no answer, which is not the same as "accepts everything". */
|
|
5184
|
+
emailBlocking: hubspotEmailBlockingSchema.optional(),
|
|
5175
5185
|
configuration: z14.object({ postSubmitAction: hubspotPostSubmitActionSchema }).optional(),
|
|
5176
5186
|
legalConsentOptions: z14.record(z14.string(), z14.unknown()).optional()
|
|
5177
5187
|
});
|
|
@@ -12248,6 +12258,23 @@ var CAPTURED_WITHOUT_ROLE = [
|
|
|
12248
12258
|
"targetid"
|
|
12249
12259
|
].sort();
|
|
12250
12260
|
|
|
12261
|
+
// ../api/src/analytics/conversions.ts
|
|
12262
|
+
var PRIMARY_CONVERSION_TRIGGER = {
|
|
12263
|
+
calendly: "calendlyEvent.eventScheduled",
|
|
12264
|
+
customForm: "customForm.onFormSubmitted",
|
|
12265
|
+
highlevel: "highlevelEvent.appointmentScheduled",
|
|
12266
|
+
highlevelForm: "highlevelFormEvent.formSubmitted",
|
|
12267
|
+
hubspot: "hubspotForm.onFormSubmitted",
|
|
12268
|
+
hubspotMeeting: "hubspotMeeting.onMeetingScheduled",
|
|
12269
|
+
link: "link.onClick",
|
|
12270
|
+
savvycal: "savvycalEvent.scheduled",
|
|
12271
|
+
text: "text.onButtonClicked"
|
|
12272
|
+
};
|
|
12273
|
+
var NON_SUBMIT_NODE_TYPES = ["link", "text"];
|
|
12274
|
+
var STEP_SUBMIT_TRIGGERS = Object.fromEntries(
|
|
12275
|
+
Object.entries(PRIMARY_CONVERSION_TRIGGER).filter(([nodeType]) => !NON_SUBMIT_NODE_TYPES.includes(nodeType))
|
|
12276
|
+
);
|
|
12277
|
+
|
|
12251
12278
|
// ../api/src/analytics/events.ts
|
|
12252
12279
|
import { z as z24 } from "zod";
|
|
12253
12280
|
|
|
@@ -12274,7 +12301,7 @@ var ANALYTICS_EVENT_TYPES = [
|
|
|
12274
12301
|
"form_step_view",
|
|
12275
12302
|
/** A flow step was completed and the visitor moved on. */
|
|
12276
12303
|
"form_step_complete",
|
|
12277
|
-
/** The flow reached its
|
|
12304
|
+
/** The flow reached its last node. Not a conversion on its own — only a mark on a step is. */
|
|
12278
12305
|
"form_submit",
|
|
12279
12306
|
/** Click on a link leaving the site. */
|
|
12280
12307
|
"outbound_click",
|
|
@@ -12309,10 +12336,8 @@ var ANALYTICS_EVENT_TYPES = [
|
|
|
12309
12336
|
/** Escape hatch for a page-specific event. */
|
|
12310
12337
|
"custom"
|
|
12311
12338
|
];
|
|
12312
|
-
var ANALYTICS_CONVERSION_EVENT_TYPES = ["form_submit"];
|
|
12313
12339
|
var ANALYTICS_DEVICE_TYPES = ["desktop", "mobile", "tablet", "bot", "unknown"];
|
|
12314
12340
|
var ANALYTICS_BEACON_BATCH_MAX = 50;
|
|
12315
|
-
var CONVERSION_EVENT_TYPES = new Set(ANALYTICS_CONVERSION_EVENT_TYPES);
|
|
12316
12341
|
|
|
12317
12342
|
// ../api/src/analytics/events.ts
|
|
12318
12343
|
var analyticsEventTypeSchema = z24.enum(ANALYTICS_EVENT_TYPES);
|
|
@@ -13540,8 +13565,6 @@ var analyticsTimelineRowSchema = z25.object({
|
|
|
13540
13565
|
* a replay renders the same sentence twice and reads as a duplicated event.
|
|
13541
13566
|
*/
|
|
13542
13567
|
identityKind: z25.string(),
|
|
13543
|
-
/** Whether this row counted as a conversion under the rules then in force. */
|
|
13544
|
-
isConversion: z25.boolean(),
|
|
13545
13568
|
sideEffectType: z25.string(),
|
|
13546
13569
|
sideEffectName: z25.string(),
|
|
13547
13570
|
sideEffectId: z25.string(),
|
|
@@ -25012,7 +25035,7 @@ var ANALYTICS_PRESET_INFO = [
|
|
|
25012
25035
|
},
|
|
25013
25036
|
{
|
|
25014
25037
|
name: "flow",
|
|
25015
|
-
description: "One Form in depth: conversions counted at the node that produced them, step-to-step paths for a branching Form, the per-step table, every trigger raised, and each marked conversion by name. Read convertedSessions rather than submits \u2014 a Form whose scheduling widget sits mid-flow never emits a submit and reports zero on every other report. An empty `conversions` array means nobody has marked what this Form is for, so
|
|
25038
|
+
description: "One Form in depth: conversions counted at the node that produced them, step-to-step paths for a branching Form, the per-step table, every trigger raised, and each marked conversion by name. Read convertedSessions rather than submits \u2014 a Form whose scheduling widget sits mid-flow never emits a submit and reports zero on every other report. An empty `conversions` array means nobody has marked what this Form is for, so every conversion number for it is a zero rather than a measurement \u2014 Baker never guesses which ending is the point of a Form. Mark it in the Forms builder or with `conversions: [{ triggerId }]` on the node. A Form that reports `noConversion` has been declared to have no outcome here on purpose (it hands people to a portal or a funnel); its zero is a finished answer, so report it as one and do not propose marking it. `flowDestinations` is the other half and is evidence rather than a count: which Forms demonstrably handed something over in this window. Read it against the scaffold's `flow-no-destination` warning before acting on one \u2014 the stored picture of a Form is only rewritten when it is published, so a destination added since then shows there and not in the tree.",
|
|
25016
25039
|
playbook: "flow-builder \u2014 fix the branch or the step that loses people"
|
|
25017
25040
|
},
|
|
25018
25041
|
{
|