@funnelsgrove/cli 0.1.20 → 0.1.24
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 +16 -0
- package/dist/analyticsOutput.d.ts +2 -1
- package/dist/analyticsOutput.js +35 -10
- package/dist/apiClient.d.ts +9 -1
- package/dist/apiClient.js +6 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +37 -1
- package/dist/experimentCreate.d.ts +100 -0
- package/dist/experimentCreate.js +887 -0
- package/dist/localSync.d.ts +8 -0
- package/dist/localSync.js +71 -11
- package/package.json +1 -1
- package/template_docs/.funnelsgrove-docs.json +4 -4
- package/template_docs/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_docs/docs/funnelsgrove/recipes/add-experiment.md +156 -7
- package/template_docs/funnel-docs.config.json +1 -1
- package/template_scaffold/.funnelsgrove-docs.json +4 -4
- package/template_scaffold/.funnelsgrove-scaffold.json +9 -9
- package/template_scaffold/docs/funnelsgrove/migrations/step-contract-v3.md +1 -1
- package/template_scaffold/docs/funnelsgrove/recipes/add-experiment.md +156 -7
- package/template_scaffold/funnel-agent-docs.test.ts +27 -1
- package/template_scaffold/funnel-docs.config.json +1 -1
- package/template_scaffold/package-lock.json +4 -4
- package/template_scaffold/package.json +1 -1
package/dist/localSync.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ export type SourceFile = {
|
|
|
17
17
|
contentType?: string;
|
|
18
18
|
contentEncoding?: 'base64';
|
|
19
19
|
};
|
|
20
|
+
export type SafeRootWriteHooks = {
|
|
21
|
+
beforeDirectoryCreate?: (relativeDirectoryPath: string) => void | Promise<void>;
|
|
22
|
+
afterDirectoryEntrySync?: (relativeDirectoryPath: string) => void | Promise<void>;
|
|
23
|
+
};
|
|
20
24
|
export type ChangedSourceFiles = {
|
|
21
25
|
currentManifest: SyncManifest;
|
|
22
26
|
deletedPaths: string[];
|
|
@@ -80,7 +84,11 @@ export type SyncDownLocalLifecycle = {
|
|
|
80
84
|
writeSyncState: () => Promise<unknown>;
|
|
81
85
|
};
|
|
82
86
|
export declare function runSyncDownLocalLifecycle(lifecycle: SyncDownLocalLifecycle): Promise<void>;
|
|
87
|
+
export declare const assertSafeRootFileWriteTarget: (rootDir: string, relativePath: string) => Promise<void>;
|
|
88
|
+
export declare const readSafeRootFile: (rootDir: string, relativePath: string) => Promise<Buffer>;
|
|
89
|
+
export declare const writeSafeRootFile: (rootDir: string, relativePath: string, content: string | Buffer, hooks?: SafeRootWriteHooks) => Promise<void>;
|
|
83
90
|
export declare function normalizeSyncPath(filePath: string): string;
|
|
91
|
+
export declare function assertSafeSyncPath(filePath: string): string;
|
|
84
92
|
export declare function shouldSyncFile(filePath: string): boolean;
|
|
85
93
|
export declare function buildSyncManifest(rootDir: string, input: SyncManifestInput): Promise<SyncManifest>;
|
|
86
94
|
export declare function buildCommittedSyncManifest(input: {
|
package/dist/localSync.js
CHANGED
|
@@ -60,28 +60,83 @@ const resolveSafeRoot = async (rootDir, create) => {
|
|
|
60
60
|
}
|
|
61
61
|
return realpath(rootDir);
|
|
62
62
|
};
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
|
|
63
|
+
const syncDirectory = async (directoryPath) => {
|
|
64
|
+
const handle = await open(directoryPath, constants.O_RDONLY);
|
|
65
|
+
try {
|
|
66
|
+
await handle.sync();
|
|
67
|
+
}
|
|
68
|
+
finally {
|
|
69
|
+
await handle.close();
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const ensureDurableDirectoryChain = async (rootDir, segments, hooks) => {
|
|
66
73
|
let current = rootDir;
|
|
67
|
-
for (const segment of segments.
|
|
74
|
+
for (const [index, segment] of segments.entries()) {
|
|
75
|
+
const parent = current;
|
|
68
76
|
current = path.join(current, segment);
|
|
69
77
|
let metadata;
|
|
70
78
|
try {
|
|
71
79
|
metadata = await lstat(current);
|
|
72
80
|
}
|
|
73
81
|
catch (error) {
|
|
74
|
-
if (!
|
|
82
|
+
if (!isErrno(error, 'ENOENT'))
|
|
75
83
|
throw error;
|
|
76
|
-
|
|
84
|
+
const relativeDirectoryPath = segments.slice(0, index + 1).join('/');
|
|
85
|
+
await hooks.beforeDirectoryCreate?.(relativeDirectoryPath);
|
|
86
|
+
try {
|
|
87
|
+
await mkdir(current);
|
|
88
|
+
}
|
|
89
|
+
catch (mkdirError) {
|
|
90
|
+
if (!isErrno(mkdirError, 'EEXIST'))
|
|
91
|
+
throw mkdirError;
|
|
92
|
+
}
|
|
77
93
|
metadata = await lstat(current);
|
|
94
|
+
if (metadata.isSymbolicLink() || !metadata.isDirectory()) {
|
|
95
|
+
throw sourceCandidateInvariantError(`Local sync path traverses a symlink: ${relativeDirectoryPath}`);
|
|
96
|
+
}
|
|
97
|
+
await syncDirectory(parent);
|
|
98
|
+
await hooks.afterDirectoryEntrySync?.(relativeDirectoryPath);
|
|
99
|
+
continue;
|
|
78
100
|
}
|
|
79
101
|
if (metadata.isSymbolicLink() || !metadata.isDirectory()) {
|
|
80
|
-
throw sourceCandidateInvariantError(`Local sync path traverses a symlink: ${
|
|
102
|
+
throw sourceCandidateInvariantError(`Local sync path traverses a symlink: ${segments.join('/')}`);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const assertSafeExistingPath = async (rootDir, relativePath, createParents, allowMissingParents = false, hooks = {}) => {
|
|
107
|
+
const safePath = assertSafeSyncPath(relativePath);
|
|
108
|
+
const segments = safePath.split('/');
|
|
109
|
+
let parentIsMissing = false;
|
|
110
|
+
const parentSegments = segments.slice(0, -1);
|
|
111
|
+
if (createParents) {
|
|
112
|
+
await ensureDurableDirectoryChain(rootDir, parentSegments, hooks);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
let current = rootDir;
|
|
116
|
+
for (const segment of parentSegments) {
|
|
117
|
+
current = path.join(current, segment);
|
|
118
|
+
if (parentIsMissing)
|
|
119
|
+
continue;
|
|
120
|
+
let metadata;
|
|
121
|
+
try {
|
|
122
|
+
metadata = await lstat(current);
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
if (allowMissingParents && isErrno(error, 'ENOENT')) {
|
|
126
|
+
parentIsMissing = true;
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
throw error;
|
|
130
|
+
}
|
|
131
|
+
if (metadata.isSymbolicLink() || !metadata.isDirectory()) {
|
|
132
|
+
throw sourceCandidateInvariantError(`Local sync path traverses a symlink: ${relativePath}`);
|
|
133
|
+
}
|
|
81
134
|
}
|
|
82
135
|
}
|
|
83
136
|
const absolutePath = path.join(rootDir, ...segments);
|
|
84
137
|
assertContainedPath(rootDir, absolutePath);
|
|
138
|
+
if (parentIsMissing)
|
|
139
|
+
return absolutePath;
|
|
85
140
|
try {
|
|
86
141
|
const metadata = await lstat(absolutePath);
|
|
87
142
|
if (metadata.isSymbolicLink() || !metadata.isFile()) {
|
|
@@ -94,6 +149,10 @@ const assertSafeExistingPath = async (rootDir, relativePath, createParents) => {
|
|
|
94
149
|
}
|
|
95
150
|
return absolutePath;
|
|
96
151
|
};
|
|
152
|
+
export const assertSafeRootFileWriteTarget = async (rootDir, relativePath) => {
|
|
153
|
+
const resolvedRoot = await resolveSafeRoot(rootDir, false);
|
|
154
|
+
await assertSafeExistingPath(resolvedRoot, relativePath, false, true);
|
|
155
|
+
};
|
|
97
156
|
const assertOpenFileContained = async (rootDir, absolutePath, opened) => {
|
|
98
157
|
const openedStat = await opened.stat();
|
|
99
158
|
if (!openedStat.isFile()) {
|
|
@@ -106,7 +165,7 @@ const assertOpenFileContained = async (rootDir, absolutePath, opened) => {
|
|
|
106
165
|
throw sourceCandidateInvariantError('Local source changed while opening it. Retry the sync.');
|
|
107
166
|
}
|
|
108
167
|
};
|
|
109
|
-
const readSafeRootFile = async (rootDir, relativePath) => {
|
|
168
|
+
export const readSafeRootFile = async (rootDir, relativePath) => {
|
|
110
169
|
const resolvedRoot = await resolveSafeRoot(rootDir, false);
|
|
111
170
|
const absolutePath = await assertSafeExistingPath(resolvedRoot, relativePath, false);
|
|
112
171
|
let handle;
|
|
@@ -127,9 +186,9 @@ const readSafeRootFile = async (rootDir, relativePath) => {
|
|
|
127
186
|
await handle.close();
|
|
128
187
|
}
|
|
129
188
|
};
|
|
130
|
-
const writeSafeRootFile = async (rootDir, relativePath, content) => {
|
|
189
|
+
export const writeSafeRootFile = async (rootDir, relativePath, content, hooks = {}) => {
|
|
131
190
|
const resolvedRoot = await resolveSafeRoot(rootDir, true);
|
|
132
|
-
const absolutePath = await assertSafeExistingPath(resolvedRoot, relativePath, true);
|
|
191
|
+
const absolutePath = await assertSafeExistingPath(resolvedRoot, relativePath, true, false, hooks);
|
|
133
192
|
const tempPath = path.join(path.dirname(absolutePath), `.${path.basename(absolutePath)}.fgrove-${randomUUID()}.tmp`);
|
|
134
193
|
let handle = null;
|
|
135
194
|
try {
|
|
@@ -141,6 +200,7 @@ const writeSafeRootFile = async (rootDir, relativePath, content) => {
|
|
|
141
200
|
handle = null;
|
|
142
201
|
await assertSafeExistingPath(resolvedRoot, relativePath, true);
|
|
143
202
|
await rename(tempPath, absolutePath);
|
|
203
|
+
await syncDirectory(path.dirname(absolutePath));
|
|
144
204
|
assertContainedPath(resolvedRoot, await realpath(absolutePath));
|
|
145
205
|
}
|
|
146
206
|
finally {
|
|
@@ -154,7 +214,7 @@ export function normalizeSyncPath(filePath) {
|
|
|
154
214
|
return normalized.replace(/^(\.\/|\/)+/, '');
|
|
155
215
|
}
|
|
156
216
|
const sourceCandidateInvariantError = (reason) => Object.assign(new Error(reason), { code: 'FG-CANDIDATE-001' });
|
|
157
|
-
function assertSafeSyncPath(filePath) {
|
|
217
|
+
export function assertSafeSyncPath(filePath) {
|
|
158
218
|
if (filePath.length === 0
|
|
159
219
|
|| Array.from(filePath).length > MAX_SOURCE_CANDIDATE_PATH_CHARACTERS
|
|
160
220
|
|| filePath !== filePath.trim()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.12",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
5
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
6
6
|
"managedFiles": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "2a25df4203ff0ca8a8532a22bdb5c11ab687b00b369894e3a3376caa378028d7"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
61
|
-
"sha256": "
|
|
61
|
+
"sha256": "9918b577f47a9577c3c98d9a6a7a8762ddfeedb667efe13000900d1a1daee1f9"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"path": "docs/funnelsgrove/recipes/add-step.md",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "funnel-docs.config.json",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "06ea750a825821a578161e287b01388d229ec1c82e3c2fbc956a7e57a0c3888d"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
|
|
|
17
17
|
|
|
18
18
|
### Package release order
|
|
19
19
|
|
|
20
|
-
Release `@funnelsgrove/runtime` `0.1.60` first, then `@funnelsgrove/analytics` `0.1.37`, then `@funnelsgrove/cli` `0.1.
|
|
20
|
+
Release `@funnelsgrove/runtime` `0.1.60` first, then `@funnelsgrove/analytics` `0.1.37`, then `@funnelsgrove/cli` `0.1.24`. Deploy the API and funnel template only after those registry versions are available. Publishing packages and deploying production remain separately approved operational actions.
|
|
21
21
|
<!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
|
|
22
22
|
|
|
23
23
|
## Version-last policy
|
|
@@ -19,13 +19,162 @@ Contract hash: `d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf
|
|
|
19
19
|
|
|
20
20
|
## Procedure
|
|
21
21
|
|
|
22
|
-
1.
|
|
23
|
-
2.
|
|
24
|
-
3.
|
|
25
|
-
4.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
1. Start in a synced funnel checkout and run `fgrove status` and `git status --short`.
|
|
23
|
+
2. Build the control and variant steps or offer sets in the same local change.
|
|
24
|
+
3. Save one of the strict JSON specs below as `experiment.json`.
|
|
25
|
+
4. Create the database draft, hosted snapshot, and matching local generated files:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
fgrove experiments create --spec experiment.json --dir .
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
For machine-readable output, run `fgrove experiments create --spec experiment.json --dir . --json`. It emits only `experimentId`, `experimentKey`, `draftVersionId`, and `writtenPaths`, with generated paths in canonical order.
|
|
32
|
+
5. Resolve assignment and any redirect before creating the destination step visit. Keep the default flow valid when assignment is stopped, missing, or invalid.
|
|
33
|
+
6. Run experiment-focused tests and `fgrove validate`, then follow the delivery path below.
|
|
34
|
+
|
|
35
|
+
## JSON contract
|
|
36
|
+
|
|
37
|
+
Use only the documented fields. Unknown top-level and variant fields are rejected.
|
|
38
|
+
|
|
39
|
+
All experiment types require non-empty `id`, `name`, and `stepId`; one `primaryMetric`; at least one unique `trackedMetrics` entry containing the primary metric; and two to five variants. Each variant requires a unique non-empty `variantKey`, `label`, and `routeToStepId`, an integer `trafficPercent` from 0 through 100, and `isControl`. Exactly one variant is the control and traffic must total 100.
|
|
40
|
+
|
|
41
|
+
Length limits are enforced after surrounding whitespace is trimmed: `variantKey` is at most 120 characters. `id`, `name`, `stepId`, `label`, `routeToStepId`, and `offerSetKey` are each at most 200 characters after trimming. `offerSetKey` applies only to pricing variants.
|
|
42
|
+
|
|
43
|
+
Metrics are exactly `step_completion`, `next_step_reached`, `checkout_opened`, `funnel_completed`, or `paying_customer`.
|
|
44
|
+
|
|
45
|
+
### Step experiment
|
|
46
|
+
|
|
47
|
+
Every variant routes to the step that implements that experience.
|
|
48
|
+
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"id": "claim-headline-v1",
|
|
52
|
+
"name": "Claim headline experiment",
|
|
53
|
+
"type": "step",
|
|
54
|
+
"stepId": "claim",
|
|
55
|
+
"primaryMetric": "next_step_reached",
|
|
56
|
+
"trackedMetrics": [
|
|
57
|
+
"next_step_reached",
|
|
58
|
+
"funnel_completed"
|
|
59
|
+
],
|
|
60
|
+
"variants": [
|
|
61
|
+
{
|
|
62
|
+
"variantKey": "control",
|
|
63
|
+
"label": "Control",
|
|
64
|
+
"routeToStepId": "claim",
|
|
65
|
+
"trafficPercent": 50,
|
|
66
|
+
"isControl": true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"variantKey": "variant_b",
|
|
70
|
+
"label": "Variant B",
|
|
71
|
+
"routeToStepId": "claim-b",
|
|
72
|
+
"trafficPercent": 50,
|
|
73
|
+
"isControl": false
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Paywall experiment
|
|
80
|
+
|
|
81
|
+
Like `step`, every variant has a route target. Use `type: "paywall"` when the routes select complete paywall step variants.
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"id": "paywall-layout-v1",
|
|
86
|
+
"name": "Paywall layout experiment",
|
|
87
|
+
"type": "paywall",
|
|
88
|
+
"stepId": "paywall-entry",
|
|
89
|
+
"primaryMetric": "checkout_opened",
|
|
90
|
+
"trackedMetrics": [
|
|
91
|
+
"checkout_opened",
|
|
92
|
+
"paying_customer"
|
|
93
|
+
],
|
|
94
|
+
"variants": [
|
|
95
|
+
{
|
|
96
|
+
"variantKey": "control",
|
|
97
|
+
"label": "Control",
|
|
98
|
+
"routeToStepId": "paywall-control",
|
|
99
|
+
"trafficPercent": 50,
|
|
100
|
+
"isControl": true
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"variantKey": "compact",
|
|
104
|
+
"label": "Compact",
|
|
105
|
+
"routeToStepId": "paywall-compact",
|
|
106
|
+
"trafficPercent": 50,
|
|
107
|
+
"isControl": false
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Pricing experiment
|
|
114
|
+
|
|
115
|
+
Each pricing variant also requires a non-empty `offerSetKey`, and every `routeToStepId` must exactly equal the top-level `stepId`.
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
{
|
|
119
|
+
"id": "paywall-price-v1",
|
|
120
|
+
"name": "Paywall pricing experiment",
|
|
121
|
+
"type": "pricing",
|
|
122
|
+
"stepId": "paywall",
|
|
123
|
+
"primaryMetric": "paying_customer",
|
|
124
|
+
"trackedMetrics": [
|
|
125
|
+
"checkout_opened",
|
|
126
|
+
"paying_customer"
|
|
127
|
+
],
|
|
128
|
+
"variants": [
|
|
129
|
+
{
|
|
130
|
+
"variantKey": "control",
|
|
131
|
+
"label": "Control",
|
|
132
|
+
"routeToStepId": "paywall",
|
|
133
|
+
"trafficPercent": 50,
|
|
134
|
+
"isControl": true,
|
|
135
|
+
"offerSetKey": "default-paywall"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"variantKey": "annual_focus",
|
|
139
|
+
"label": "Annual focus",
|
|
140
|
+
"routeToStepId": "paywall",
|
|
141
|
+
"trafficPercent": 50,
|
|
142
|
+
"isControl": false,
|
|
143
|
+
"offerSetKey": "annual-focus"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Creation guarantees
|
|
150
|
+
|
|
151
|
+
The stable `id` becomes the experiment key. Keep it unchanged for an exact retry: an identical same-key draft is reused, while a different definition or non-draft experiment is rejected rather than overwritten.
|
|
152
|
+
|
|
153
|
+
Creation always produces a draft. It does not create or activate a PostHog flag, start traffic, or make unfinished variant steps or offer sets runnable. Activation remains a separate pre-activation UI/API action.
|
|
154
|
+
|
|
155
|
+
The API creates the experiment and variants atomically, commits the matching generated snapshot to the hosted draft, and only then returns. The draft is immediately visible in the FunnelsGrove UI and hosted previews use the same snapshot. The CLI installs the exact returned bytes at `src/config/experiments.generated.ts` and `src/config/experiments.ts`, then updates the sync manifest last. `.funnelsgrove-sync.json` stays local and ignored; never commit or push it.
|
|
156
|
+
|
|
157
|
+
## Recovery and errors
|
|
158
|
+
|
|
159
|
+
- Missing `.funnelsgrove-sync.json`: run `fgrove sync down` into a clean directory first.
|
|
160
|
+
- Invalid local JSON or `[FG-EXPERIMENT-SPEC]`: fix the reported field and retry with the same stable `id`.
|
|
161
|
+
- `[FG-EXPERIMENT-STALE-DRAFT]`: do not overwrite remote work. Download the latest draft into a clean temporary directory, merge deliberately, rerun validation, and retry the same exact spec.
|
|
162
|
+
- `[FG-EXPERIMENT-DRAFT-CONFLICT]`: the stable key already belongs to a different definition, owner, or lifecycle state. Reuse the original exact definition for a retry, or choose a new stable `id` only for a genuinely new experiment.
|
|
163
|
+
- Locally changed generated experiment files are never overwritten. Resolve those edits before retrying.
|
|
164
|
+
- If the API succeeded but the process stopped, retry safely with the same `id`. A ready local journal is automatically recovered before the next create or sync command; an interruption before the journal simply repeats the exact API request.
|
|
165
|
+
|
|
166
|
+
## Validate and deliver
|
|
167
|
+
|
|
168
|
+
After implementing all referenced variant steps or offer sets, run:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
fgrove validate
|
|
172
|
+
git status --short
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
For a funnel without GitHub source sync, deliver all local source changes with `fgrove sync up`.
|
|
176
|
+
|
|
177
|
+
For a GitHub-connected funnel, commit and push the generated source files with the rest of the source change, then run `fgrove github pull`. Never use `fgrove sync up` for the same GitHub-connected diff, and never add `.funnelsgrove-sync.json` to git.
|
|
29
178
|
|
|
30
179
|
## Pre-activation QA
|
|
31
180
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"bundleVersion": "2.0.
|
|
3
|
+
"bundleVersion": "2.0.12",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
5
|
"contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
|
|
6
6
|
"managedFiles": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "2a25df4203ff0ca8a8532a22bdb5c11ab687b00b369894e3a3376caa378028d7"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "docs/funnelsgrove/qa/analytics.md",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
61
|
-
"sha256": "
|
|
61
|
+
"sha256": "9918b577f47a9577c3c98d9a6a7a8762ddfeedb667efe13000900d1a1daee1f9"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"path": "docs/funnelsgrove/recipes/add-step.md",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "funnel-docs.config.json",
|
|
141
|
-
"sha256": "
|
|
141
|
+
"sha256": "06ea750a825821a578161e287b01388d229ec1c82e3c2fbc956a7e57a0c3888d"
|
|
142
142
|
}
|
|
143
143
|
]
|
|
144
144
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"sourceTreeHash": "
|
|
3
|
+
"sourceTreeHash": "c0e2831fa5a499fd8cc19324fedad962893285e153db3b4b4045fc69a0dd24d8",
|
|
4
4
|
"stepContractVersion": 3,
|
|
5
|
-
"docsBundleVersion": "2.0.
|
|
5
|
+
"docsBundleVersion": "2.0.12",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": ".env.example",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": ".funnelsgrove-docs.json",
|
|
19
|
-
"sha256": "
|
|
19
|
+
"sha256": "e0b5bc7753b86eaeec74c93bf489bc12121c63aefafbbeb716f524710c058b77",
|
|
20
20
|
"mode": "100644"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"path": "docs/funnelsgrove/migrations/step-contract-v3.md",
|
|
104
|
-
"sha256": "
|
|
104
|
+
"sha256": "2a25df4203ff0ca8a8532a22bdb5c11ab687b00b369894e3a3376caa378028d7",
|
|
105
105
|
"mode": "100644"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"path": "docs/funnelsgrove/recipes/add-experiment.md",
|
|
129
|
-
"sha256": "
|
|
129
|
+
"sha256": "9918b577f47a9577c3c98d9a6a7a8762ddfeedb667efe13000900d1a1daee1f9",
|
|
130
130
|
"mode": "100644"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
@@ -236,12 +236,12 @@
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"path": "funnel-agent-docs.test.ts",
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "f7e3fac8d570ed4d34965c8d8a5a631ab712c4f8df5452fb0882ebd9828cd836",
|
|
240
240
|
"mode": "100644"
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"path": "funnel-docs.config.json",
|
|
244
|
-
"sha256": "
|
|
244
|
+
"sha256": "06ea750a825821a578161e287b01388d229ec1c82e3c2fbc956a7e57a0c3888d",
|
|
245
245
|
"mode": "100644"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
@@ -266,12 +266,12 @@
|
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"path": "package-lock.json",
|
|
269
|
-
"sha256": "
|
|
269
|
+
"sha256": "e3d6430705410764cb7a012befd1582a78f8e8269848fad9be44c3c66c4b58e7",
|
|
270
270
|
"mode": "100644"
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
"path": "package.json",
|
|
274
|
-
"sha256": "
|
|
274
|
+
"sha256": "f7fe244b5bc7b6449d27d048761c973f2825b0b4dba3dd931b4aa31bd523df77",
|
|
275
275
|
"mode": "100644"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
@@ -17,7 +17,7 @@ Supported read versions: `1`, `2`, `3`. Authoring and publish target version `3`
|
|
|
17
17
|
|
|
18
18
|
### Package release order
|
|
19
19
|
|
|
20
|
-
Release `@funnelsgrove/runtime` `0.1.60` first, then `@funnelsgrove/analytics` `0.1.37`, then `@funnelsgrove/cli` `0.1.
|
|
20
|
+
Release `@funnelsgrove/runtime` `0.1.60` first, then `@funnelsgrove/analytics` `0.1.37`, then `@funnelsgrove/cli` `0.1.24`. Deploy the API and funnel template only after those registry versions are available. Publishing packages and deploying production remain separately approved operational actions.
|
|
21
21
|
<!-- funnelsgrove:generated:end contract-v3/migration/step-contract-v3 -->
|
|
22
22
|
|
|
23
23
|
## Version-last policy
|