@funnelsgrove/cli 0.1.27 → 0.1.29

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 CHANGED
@@ -39,7 +39,9 @@ connected, commit and push source changes with normal git, then run `fgrove
39
39
  github pull` to sync GitHub into the hosted draft. Do not run `fgrove sync up`
40
40
  for the same local diff.
41
41
 
42
- Use `fgrove env pull` from a synced folder to refresh only the ignored local `.env` file after project settings change, without replacing source files.
42
+ Use `fgrove env pull` from a synced folder to refresh only the ignored local `.env` file after project settings change, without replacing source files. The generated file identifies the current hosted draft through `NEXT_PUBLIC_FUNNEL_VERSION_ID`, so transactional steps such as email capture work during local QA.
43
+
44
+ `fgrove offer-sets sync` reports the applied offer set and written generated files before waiting for GitHub. By default it waits for the exact GitHub sync job. If that job is still pending or running when the wait times out, the command continues with a warning on stderr and asks you to check the eventual result with `fgrove github status`. Terminal job failures, missing jobs, and API failures still exit non-zero. Pass `--no-github-sync` to skip the wait entirely when the generated file will be committed through the normal repository workflow.
43
45
 
44
46
  Create an experiment draft from a strict JSON spec:
45
47
 
@@ -70,6 +72,12 @@ fgrove publish --funnel claimbee-general --env preview
70
72
  The GitHub commands use the FunnelsGrove API only. `fgrove github pull` pulls
71
73
  the repository into the hosted draft after you push normal git commits.
72
74
  `fgrove publish` waits for the current draft to reach GitHub before publishing.
75
+ If the exact job is still pending or running when that wait times out, publish
76
+ continues with a warning on stderr and asks you to check the eventual result
77
+ with `fgrove github status`. Terminal job failures, missing jobs, and API
78
+ failures remain fatal. Use `--no-github-sync` to skip only that CLI pre-publish
79
+ wait when the hosted draft is already known to match GitHub; the publish worker
80
+ still performs its normal best-effort post-publish GitHub synchronization.
73
81
  `fgrove github push` still exists for explicit hosted-draft-to-GitHub recovery
74
82
  work, but it is not the normal path for local source changes. Local `.env*`
75
83
  files remain CLI-local runtime material from `sync down`; they are not sent to
package/dist/cli.d.ts CHANGED
@@ -3,6 +3,7 @@ import { Command } from 'commander';
3
3
  import { type ActiveContext } from './authStore.js';
4
4
  import { type SourceFile, type SyncManifest } from './localSync.js';
5
5
  import { type GitHubStatusResponse } from './githubOutput.js';
6
+ import { syncGitHubDraftIfConnected } from './githubSyncFlow.js';
6
7
  import { type DocsExitCode } from './docsOutput.js';
7
8
  import { type DocsDiagnostic, type DocsStatus } from './docsTransaction.js';
8
9
  import { type FunnelValidationExitCode, type FunnelValidationResult } from './diagnosticOutput.js';
@@ -196,6 +197,32 @@ export declare function buildGeneratedConfigSyncInput(input: {
196
197
  };
197
198
  export declare function selectGeneratedConfigFiles(files: SourceFile[], kinds: GeneratedConfigKind[]): SourceFile[];
198
199
  export declare function assertCanDraftSyncSource(status: GitHubStatusResponse): void;
200
+ export type GitHubSyncTimeoutPolicy = 'strict' | 'continue';
201
+ export declare const PUBLISH_GITHUB_SYNC_TIMEOUT_POLICY: GitHubSyncTimeoutPolicy;
202
+ export declare const OFFER_SETS_GITHUB_SYNC_TIMEOUT_POLICY: GitHubSyncTimeoutPolicy;
203
+ export declare const SYNC_UP_NO_LOCAL_CHANGES_GITHUB_SYNC_TIMEOUT_POLICY: GitHubSyncTimeoutPolicy;
204
+ export declare const SYNC_UP_COMMITTED_CHANGES_GITHUB_SYNC_TIMEOUT_POLICY: GitHubSyncTimeoutPolicy;
205
+ export declare const GITHUB_SYNC_TIMEOUT_POLICIES: {
206
+ readonly publish: "continue";
207
+ readonly offerSetsSync: "continue";
208
+ readonly syncUpNoLocalChanges: "strict";
209
+ readonly syncUpCommittedChanges: "strict";
210
+ };
211
+ export declare const syncGitHubDraftForCli: (input: {
212
+ token: string;
213
+ workspaceId: string;
214
+ funnelId: string;
215
+ timeoutPolicy: GitHubSyncTimeoutPolicy;
216
+ sync?: typeof syncGitHubDraftIfConnected;
217
+ warn?: (message: string) => void;
218
+ }) => Promise<void>;
219
+ export declare const shouldSyncGitHubDraft: (options: {
220
+ githubSync?: boolean;
221
+ }) => boolean;
222
+ export declare const formatOfferSetSyncSuccess: (input: {
223
+ offerSetLabel: string;
224
+ generatedFileCount: number;
225
+ }) => string[];
199
226
  export declare const program: Command;
200
227
  type AnalyticsApiCall = (input: {
201
228
  path: string;
package/dist/cli.js CHANGED
@@ -15,7 +15,7 @@ import { buildSyncManifest, buildCommittedSyncManifest, buildSourceCandidateOper
15
15
  import { executeExperimentCreate, formatExperimentCreateSuccess, recoverExperimentCreateTransaction, } from './experimentCreate.js';
16
16
  import { pullEnvFile } from './envSync.js';
17
17
  import { formatGitHubConnectRows, formatGitHubJobRows, formatGitHubStatusRows, } from './githubOutput.js';
18
- import { syncGitHubDraftIfConnected } from './githubSyncFlow.js';
18
+ import { GitHubSyncTimeoutError, syncGitHubDraftIfConnected, } from './githubSyncFlow.js';
19
19
  import { reskinFunnel } from './reskin.js';
20
20
  import { TEMPLATE_DOCS_DIR } from './templateDocs.js';
21
21
  import { renderDocsHuman, renderDocsJson, } from './docsOutput.js';
@@ -1400,18 +1400,44 @@ const summarizeGitHubSyncResult = (result) => {
1400
1400
  ? `GitHub synced${remoteSha}`
1401
1401
  : `GitHub already synced${remoteSha}`;
1402
1402
  };
1403
- const syncGitHubDraftForCli = async (input) => {
1404
- const summary = summarizeGitHubSyncResult(await syncGitHubDraftIfConnected({
1405
- callApi,
1406
- token: input.token,
1407
- workspaceId: input.workspaceId,
1408
- funnelId: input.funnelId,
1409
- }));
1403
+ export const PUBLISH_GITHUB_SYNC_TIMEOUT_POLICY = 'continue';
1404
+ export const OFFER_SETS_GITHUB_SYNC_TIMEOUT_POLICY = 'continue';
1405
+ export const SYNC_UP_NO_LOCAL_CHANGES_GITHUB_SYNC_TIMEOUT_POLICY = 'strict';
1406
+ export const SYNC_UP_COMMITTED_CHANGES_GITHUB_SYNC_TIMEOUT_POLICY = 'strict';
1407
+ export const GITHUB_SYNC_TIMEOUT_POLICIES = {
1408
+ publish: PUBLISH_GITHUB_SYNC_TIMEOUT_POLICY,
1409
+ offerSetsSync: OFFER_SETS_GITHUB_SYNC_TIMEOUT_POLICY,
1410
+ syncUpNoLocalChanges: SYNC_UP_NO_LOCAL_CHANGES_GITHUB_SYNC_TIMEOUT_POLICY,
1411
+ syncUpCommittedChanges: SYNC_UP_COMMITTED_CHANGES_GITHUB_SYNC_TIMEOUT_POLICY,
1412
+ };
1413
+ export const syncGitHubDraftForCli = async (input) => {
1414
+ let result;
1415
+ try {
1416
+ result = await (input.sync || syncGitHubDraftIfConnected)({
1417
+ callApi,
1418
+ token: input.token,
1419
+ workspaceId: input.workspaceId,
1420
+ funnelId: input.funnelId,
1421
+ });
1422
+ }
1423
+ catch (error) {
1424
+ if (!(error instanceof GitHubSyncTimeoutError) || input.timeoutPolicy === 'strict') {
1425
+ throw error;
1426
+ }
1427
+ (input.warn || console.warn)(`GitHub sync job ${error.jobId} is still ${error.jobStatus} after the wait timeout. Continuing the requested operation; check its eventual result with \`fgrove github status\`.`);
1428
+ return;
1429
+ }
1430
+ const summary = summarizeGitHubSyncResult(result);
1410
1431
  if (summary) {
1411
1432
  console.log(summary);
1412
1433
  }
1413
1434
  };
1414
1435
  const formatGeneratedFileCount = (count) => `${count} generated config ${count === 1 ? 'file' : 'files'}`;
1436
+ export const shouldSyncGitHubDraft = (options) => options.githubSync !== false;
1437
+ export const formatOfferSetSyncSuccess = (input) => [
1438
+ `Synced offer set ${input.offerSetLabel} to funnel draft`,
1439
+ `Wrote ${formatGeneratedFileCount(input.generatedFileCount)}`,
1440
+ ];
1415
1441
  const syncGeneratedConfigFilesForCli = async (input) => {
1416
1442
  const result = await callApi({
1417
1443
  path: 'funnels.generatedConfigFiles',
@@ -1621,6 +1647,7 @@ addExamples(offerSetsCommand
1621
1647
  .option('--workspace <id-or-slug-or-name>', 'Workspace id, slug, or name')
1622
1648
  .option('--funnel <id-or-slug>', 'Funnel id or slug')
1623
1649
  .option('--dir <path>', 'Local source directory for reading sync manifest', '.')
1650
+ .option('--no-github-sync', 'Skip waiting for an additional GitHub draft push')
1624
1651
  .requiredOption('--offer-set <key-or-id>', 'Offer set key or id'), [
1625
1652
  'fgrove offer-sets sync --offer-set default-paywall',
1626
1653
  'fgrove offers sync --funnel claimbee-ios --offer-set quarterly-test',
@@ -1648,14 +1675,19 @@ addExamples(offerSetsCommand
1648
1675
  target,
1649
1676
  kinds: ['offerSets'],
1650
1677
  });
1651
- await syncGitHubDraftForCli({
1652
- token,
1653
- workspaceId: target.workspaceId,
1654
- funnelId: target.funnelId,
1655
- });
1656
1678
  const offerSetLabel = result.offerSet?.key || result.offerSet?.display_name || options.offerSet.trim();
1657
- console.log(`Synced offer set ${offerSetLabel} to funnel draft`);
1658
- console.log(`Wrote ${formatGeneratedFileCount(generatedFiles.length)}`);
1679
+ console.log(formatOfferSetSyncSuccess({
1680
+ offerSetLabel,
1681
+ generatedFileCount: generatedFiles.length,
1682
+ }).join('\n'));
1683
+ if (shouldSyncGitHubDraft(options)) {
1684
+ await syncGitHubDraftForCli({
1685
+ token,
1686
+ workspaceId: target.workspaceId,
1687
+ funnelId: target.funnelId,
1688
+ timeoutPolicy: OFFER_SETS_GITHUB_SYNC_TIMEOUT_POLICY,
1689
+ });
1690
+ }
1659
1691
  });
1660
1692
  const experimentsCommand = addExamples(program.command('experiments').description('Manage funnel experiments'), [
1661
1693
  'fgrove experiments create --spec experiment.json --dir .',
@@ -2102,6 +2134,7 @@ addExamples(syncCommand
2102
2134
  token,
2103
2135
  workspaceId: target.workspaceId,
2104
2136
  funnelId: target.funnelId,
2137
+ timeoutPolicy: SYNC_UP_NO_LOCAL_CHANGES_GITHUB_SYNC_TIMEOUT_POLICY,
2105
2138
  });
2106
2139
  return;
2107
2140
  }
@@ -2194,6 +2227,7 @@ addExamples(syncCommand
2194
2227
  token,
2195
2228
  workspaceId: target.workspaceId,
2196
2229
  funnelId: target.funnelId,
2230
+ timeoutPolicy: SYNC_UP_COMMITTED_CHANGES_GITHUB_SYNC_TIMEOUT_POLICY,
2197
2231
  });
2198
2232
  console.log(formatSourceCandidateSyncSuccess({
2199
2233
  syncedFileCount,
@@ -2209,7 +2243,8 @@ addExamples(program
2209
2243
  .option('--dir <path>', 'Local source directory for reading sync manifest', '.')
2210
2244
  .option('--env <preview-or-production>', 'Publish environment', 'preview')
2211
2245
  .option('--domain <domain>', 'Production custom domain')
2212
- .option('--message <message>', 'Publish version message'), [
2246
+ .option('--message <message>', 'Publish version message')
2247
+ .option('--no-github-sync', 'Skip the pre-publish GitHub draft push wait'), [
2213
2248
  'fgrove publish --env preview --message "Preview copy updates"',
2214
2249
  'fgrove publish --env production --domain claimbee.example.com --message "Launch"',
2215
2250
  ])
@@ -2230,11 +2265,14 @@ addExamples(program
2230
2265
  funnel: options.funnel,
2231
2266
  dir: options.dir,
2232
2267
  });
2233
- await syncGitHubDraftForCli({
2234
- token,
2235
- workspaceId: target.workspaceId,
2236
- funnelId: target.funnelId,
2237
- });
2268
+ if (shouldSyncGitHubDraft(options)) {
2269
+ await syncGitHubDraftForCli({
2270
+ token,
2271
+ workspaceId: target.workspaceId,
2272
+ funnelId: target.funnelId,
2273
+ timeoutPolicy: PUBLISH_GITHUB_SYNC_TIMEOUT_POLICY,
2274
+ });
2275
+ }
2238
2276
  const result = await callApi({
2239
2277
  path: 'funnels.publish',
2240
2278
  type: 'mutation',
@@ -15,6 +15,12 @@ export type GitHubSyncFlowResult = {
15
15
  remoteSha: string | null;
16
16
  versionId: string | null;
17
17
  };
18
+ type PendingGitHubSyncJobStatus = 'pending' | 'running';
19
+ export declare class GitHubSyncTimeoutError extends Error {
20
+ readonly jobId: string;
21
+ readonly jobStatus: PendingGitHubSyncJobStatus;
22
+ constructor(jobId: string, jobStatus: PendingGitHubSyncJobStatus);
23
+ }
18
24
  export declare const syncGitHubDraftIfConnected: (input: {
19
25
  callApi: GitHubFlowCallApi;
20
26
  token: string;
@@ -1,3 +1,13 @@
1
+ export class GitHubSyncTimeoutError extends Error {
2
+ jobId;
3
+ jobStatus;
4
+ constructor(jobId, jobStatus) {
5
+ super(`Timed out waiting for GitHub sync job ${jobId}.`);
6
+ this.name = 'GitHubSyncTimeoutError';
7
+ this.jobId = jobId;
8
+ this.jobStatus = jobStatus;
9
+ }
10
+ }
1
11
  const TERMINAL_JOB_STATUSES = new Set(['completed', 'skipped', 'failed']);
2
12
  const DEFAULT_POLL_INTERVAL_MS = 2_000;
3
13
  const DEFAULT_TIMEOUT_MS = 600_000;
@@ -9,6 +19,18 @@ const sleepDefault = async (ms) => {
9
19
  const findJob = (status, jobId) => {
10
20
  return status.syncJobs.find((job) => job.id === jobId) || null;
11
21
  };
22
+ const readJob = async (input) => {
23
+ const status = await input.callApi({
24
+ path: 'github.status',
25
+ type: 'query',
26
+ token: input.token,
27
+ data: {
28
+ workspaceId: input.workspaceId,
29
+ funnelId: input.funnelId,
30
+ },
31
+ });
32
+ return findJob(status, input.jobId);
33
+ };
12
34
  const assertSuccessfulTerminalJob = (job) => {
13
35
  if (job.status === 'failed' || (job.status === 'skipped' && job.errorMessage)) {
14
36
  throw new Error(job.errorMessage || 'GitHub sync failed.');
@@ -49,17 +71,14 @@ export const syncGitHubDraftIfConnected = async (input) => {
49
71
  const timeoutMs = input.timeoutMs ?? DEFAULT_TIMEOUT_MS;
50
72
  const sleep = input.sleep || sleepDefault;
51
73
  const deadline = Date.now() + timeoutMs;
52
- while (Date.now() <= deadline) {
53
- const nextStatus = await input.callApi({
54
- path: 'github.status',
55
- type: 'query',
74
+ while (Date.now() < deadline) {
75
+ const job = await readJob({
76
+ callApi: input.callApi,
56
77
  token: input.token,
57
- data: {
58
- workspaceId: input.workspaceId,
59
- funnelId: input.funnelId,
60
- },
78
+ workspaceId: input.workspaceId,
79
+ funnelId: input.funnelId,
80
+ jobId: pushResult.jobId,
61
81
  });
62
- const job = findJob(nextStatus, pushResult.jobId);
63
82
  if (job && TERMINAL_JOB_STATUSES.has(job.status)) {
64
83
  assertSuccessfulTerminalJob(job);
65
84
  return {
@@ -69,7 +88,33 @@ export const syncGitHubDraftIfConnected = async (input) => {
69
88
  versionId: job.appliedVersionId,
70
89
  };
71
90
  }
72
- await sleep(pollIntervalMs);
91
+ const remainingMs = deadline - Date.now();
92
+ if (remainingMs <= 0) {
93
+ break;
94
+ }
95
+ await sleep(Math.min(pollIntervalMs, remainingMs));
96
+ }
97
+ const finalJob = await readJob({
98
+ callApi: input.callApi,
99
+ token: input.token,
100
+ workspaceId: input.workspaceId,
101
+ funnelId: input.funnelId,
102
+ jobId: pushResult.jobId,
103
+ });
104
+ if (!finalJob) {
105
+ throw new Error(`GitHub sync job ${pushResult.jobId} was not found while waiting.`);
106
+ }
107
+ if (TERMINAL_JOB_STATUSES.has(finalJob.status)) {
108
+ assertSuccessfulTerminalJob(finalJob);
109
+ return {
110
+ status: finalJob.status,
111
+ jobId: finalJob.id,
112
+ remoteSha: finalJob.targetRemoteSha,
113
+ versionId: finalJob.appliedVersionId,
114
+ };
115
+ }
116
+ if (finalJob.status === 'pending' || finalJob.status === 'running') {
117
+ throw new GitHubSyncTimeoutError(pushResult.jobId, finalJob.status);
73
118
  }
74
119
  throw new Error(`Timed out waiting for GitHub sync job ${pushResult.jobId}.`);
75
120
  };
@@ -4,10 +4,10 @@
4
4
  "minimumCliVersion": "0.1.20",
5
5
  "entries": [
6
6
  {
7
- "repositoryCliVersion": "0.1.27",
7
+ "repositoryCliVersion": "0.1.29",
8
8
  "manifest": {
9
9
  "schemaVersion": 1,
10
- "bundleVersion": "2.0.15",
10
+ "bundleVersion": "2.0.17",
11
11
  "stepContractVersion": 3,
12
12
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
13
13
  "managedFiles": [
@@ -45,7 +45,7 @@
45
45
  },
46
46
  {
47
47
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
48
- "sha256": "790e5f36fb47f256da4ab25b1b1fbe453f1de61af2d278c400cb9a5edfeedeaf"
48
+ "sha256": "bf7171b1101096ac3b205aa8f251379de1c66e16c20b5ca6054e84fd0ab17862"
49
49
  },
50
50
  {
51
51
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -145,16 +145,16 @@
145
145
  },
146
146
  {
147
147
  "path": "funnel-docs.config.json",
148
- "sha256": "1e57699834211909ee3a9a6eabfc957e5cc4952a07d4621b26fc7328be960973"
148
+ "sha256": "87d325180a8e9e501cf5c2a00174f99fae58a612b7a93cfe9753bf1f149e46a4"
149
149
  }
150
150
  ]
151
151
  }
152
152
  },
153
153
  {
154
- "repositoryCliVersion": "0.1.26",
154
+ "repositoryCliVersion": "0.1.28",
155
155
  "manifest": {
156
156
  "schemaVersion": 1,
157
- "bundleVersion": "2.0.14",
157
+ "bundleVersion": "2.0.16",
158
158
  "stepContractVersion": 3,
159
159
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
160
160
  "managedFiles": [
@@ -192,7 +192,7 @@
192
192
  },
193
193
  {
194
194
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
195
- "sha256": "b9d539ce9e5330d267afbf694529cf5b7e7be7fc2d28a9d9deceba88f85d5044"
195
+ "sha256": "b2e3022c5ce21cf70f125c49502b367156abd0eb23d728727c2956d46cf53b2e"
196
196
  },
197
197
  {
198
198
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -292,16 +292,16 @@
292
292
  },
293
293
  {
294
294
  "path": "funnel-docs.config.json",
295
- "sha256": "1ac242e7ed583c7688fc8939536f9cd212c88db0fcafe34a4abee1280de52c1c"
295
+ "sha256": "7281cd1676e9bd30c9dd7c5f1b7aac8b24f923f6f9772e427fd7b75c15171eec"
296
296
  }
297
297
  ]
298
298
  }
299
299
  },
300
300
  {
301
- "repositoryCliVersion": "0.1.25",
301
+ "repositoryCliVersion": "0.1.27",
302
302
  "manifest": {
303
303
  "schemaVersion": 1,
304
- "bundleVersion": "2.0.13",
304
+ "bundleVersion": "2.0.15",
305
305
  "stepContractVersion": 3,
306
306
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
307
307
  "managedFiles": [
@@ -339,7 +339,7 @@
339
339
  },
340
340
  {
341
341
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
342
- "sha256": "66cd0134a5c0be3e28e966513370c0fc4d8fa427a8927620d4f5f688b96422ca"
342
+ "sha256": "790e5f36fb47f256da4ab25b1b1fbe453f1de61af2d278c400cb9a5edfeedeaf"
343
343
  },
344
344
  {
345
345
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -439,16 +439,16 @@
439
439
  },
440
440
  {
441
441
  "path": "funnel-docs.config.json",
442
- "sha256": "556e7f6ce51fceaae062f60e98fd891c3344e40faf088d22174af4345fc7917c"
442
+ "sha256": "1e57699834211909ee3a9a6eabfc957e5cc4952a07d4621b26fc7328be960973"
443
443
  }
444
444
  ]
445
445
  }
446
446
  },
447
447
  {
448
- "repositoryCliVersion": "0.1.24",
448
+ "repositoryCliVersion": "0.1.26",
449
449
  "manifest": {
450
450
  "schemaVersion": 1,
451
- "bundleVersion": "2.0.12",
451
+ "bundleVersion": "2.0.14",
452
452
  "stepContractVersion": 3,
453
453
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
454
454
  "managedFiles": [
@@ -486,7 +486,7 @@
486
486
  },
487
487
  {
488
488
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
489
- "sha256": "2a25df4203ff0ca8a8532a22bdb5c11ab687b00b369894e3a3376caa378028d7"
489
+ "sha256": "b9d539ce9e5330d267afbf694529cf5b7e7be7fc2d28a9d9deceba88f85d5044"
490
490
  },
491
491
  {
492
492
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -586,16 +586,16 @@
586
586
  },
587
587
  {
588
588
  "path": "funnel-docs.config.json",
589
- "sha256": "06ea750a825821a578161e287b01388d229ec1c82e3c2fbc956a7e57a0c3888d"
589
+ "sha256": "1ac242e7ed583c7688fc8939536f9cd212c88db0fcafe34a4abee1280de52c1c"
590
590
  }
591
591
  ]
592
592
  }
593
593
  },
594
594
  {
595
- "repositoryCliVersion": "0.1.23",
595
+ "repositoryCliVersion": "0.1.25",
596
596
  "manifest": {
597
597
  "schemaVersion": 1,
598
- "bundleVersion": "2.0.11",
598
+ "bundleVersion": "2.0.13",
599
599
  "stepContractVersion": 3,
600
600
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
601
601
  "managedFiles": [
@@ -633,7 +633,7 @@
633
633
  },
634
634
  {
635
635
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
636
- "sha256": "5b135f70a2d005a2818f4992f79cd71865e00429f7adb73fc9aa88d2b3e1c2e4"
636
+ "sha256": "66cd0134a5c0be3e28e966513370c0fc4d8fa427a8927620d4f5f688b96422ca"
637
637
  },
638
638
  {
639
639
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -733,16 +733,16 @@
733
733
  },
734
734
  {
735
735
  "path": "funnel-docs.config.json",
736
- "sha256": "84fb5735b12d84f76796ed17f1697e4891e27e416316e57027a629b54cd15fd5"
736
+ "sha256": "556e7f6ce51fceaae062f60e98fd891c3344e40faf088d22174af4345fc7917c"
737
737
  }
738
738
  ]
739
739
  }
740
740
  },
741
741
  {
742
- "repositoryCliVersion": "0.1.22",
742
+ "repositoryCliVersion": "0.1.24",
743
743
  "manifest": {
744
744
  "schemaVersion": 1,
745
- "bundleVersion": "2.0.10",
745
+ "bundleVersion": "2.0.12",
746
746
  "stepContractVersion": 3,
747
747
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
748
748
  "managedFiles": [
@@ -780,7 +780,7 @@
780
780
  },
781
781
  {
782
782
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
783
- "sha256": "b481733e085697910f34bbd62d830edb8248990d00660a24a73b6ee45b967241"
783
+ "sha256": "2a25df4203ff0ca8a8532a22bdb5c11ab687b00b369894e3a3376caa378028d7"
784
784
  },
785
785
  {
786
786
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -880,16 +880,16 @@
880
880
  },
881
881
  {
882
882
  "path": "funnel-docs.config.json",
883
- "sha256": "f7a7894dfbd8a8e254e6dfe49b4f52cd25e19f6525a0296f7c666a7eef178e53"
883
+ "sha256": "06ea750a825821a578161e287b01388d229ec1c82e3c2fbc956a7e57a0c3888d"
884
884
  }
885
885
  ]
886
886
  }
887
887
  },
888
888
  {
889
- "repositoryCliVersion": "0.1.21",
889
+ "repositoryCliVersion": "0.1.23",
890
890
  "manifest": {
891
891
  "schemaVersion": 1,
892
- "bundleVersion": "2.0.9",
892
+ "bundleVersion": "2.0.11",
893
893
  "stepContractVersion": 3,
894
894
  "contractHash": "d761e91d5ac6ff9e72c6d49c5bcd014270912473a66f99c49d726c65998085cf",
895
895
  "managedFiles": [
@@ -927,7 +927,7 @@
927
927
  },
928
928
  {
929
929
  "path": "docs/funnelsgrove/migrations/step-contract-v3.md",
930
- "sha256": "5ff5fdbbe6d1dabfc7d1ba5b19eaf5cc146de57b255dffbe747927bca59afb89"
930
+ "sha256": "5b135f70a2d005a2818f4992f79cd71865e00429f7adb73fc9aa88d2b3e1c2e4"
931
931
  },
932
932
  {
933
933
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -1027,7 +1027,7 @@
1027
1027
  },
1028
1028
  {
1029
1029
  "path": "funnel-docs.config.json",
1030
- "sha256": "251d4e0d416a94dd43dd9a7d0c0765904efed4a98ad298d38064f55c10c19283"
1030
+ "sha256": "84fb5735b12d84f76796ed17f1697e4891e27e416316e57027a629b54cd15fd5"
1031
1031
  }
1032
1032
  ]
1033
1033
  }
package/package.json CHANGED
@@ -1,7 +1,12 @@
1
1
  {
2
2
  "name": "@funnelsgrove/cli",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "description": "FunnelsGrove command-line tools for editing, syncing, and publishing funnels",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",
8
+ "directory": "apps/cli"
9
+ },
5
10
  "type": "module",
6
11
  "bin": {
7
12
  "fgrove": "dist/cli.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.15",
3
+ "bundleVersion": "2.0.17",
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": "790e5f36fb47f256da4ab25b1b1fbe453f1de61af2d278c400cb9a5edfeedeaf"
41
+ "sha256": "bf7171b1101096ac3b205aa8f251379de1c66e16c20b5ca6054e84fd0ab17862"
42
42
  },
43
43
  {
44
44
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "path": "funnel-docs.config.json",
141
- "sha256": "1e57699834211909ee3a9a6eabfc957e5cc4952a07d4621b26fc7328be960973"
141
+ "sha256": "87d325180a8e9e501cf5c2a00174f99fae58a612b7a93cfe9753bf1f149e46a4"
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/payments` `0.1.55`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.27`. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/runtime` `0.1.60` first, then `@funnelsgrove/analytics` `0.1.37`, then `@funnelsgrove/payments` `0.1.55`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.29`. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.15",
3
+ "bundleVersion": "2.0.17",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.15",
3
+ "bundleVersion": "2.0.17",
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": "790e5f36fb47f256da4ab25b1b1fbe453f1de61af2d278c400cb9a5edfeedeaf"
41
+ "sha256": "bf7171b1101096ac3b205aa8f251379de1c66e16c20b5ca6054e84fd0ab17862"
42
42
  },
43
43
  {
44
44
  "path": "docs/funnelsgrove/qa/analytics.md",
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "path": "funnel-docs.config.json",
141
- "sha256": "1e57699834211909ee3a9a6eabfc957e5cc4952a07d4621b26fc7328be960973"
141
+ "sha256": "87d325180a8e9e501cf5c2a00174f99fae58a612b7a93cfe9753bf1f149e46a4"
142
142
  }
143
143
  ]
144
144
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "sourceTreeHash": "ec68d0d8147e5b8161cda226ee964b567c7b335c1c416cd7f36c7f11eb74c761",
3
+ "sourceTreeHash": "31d74efe474f7afcf393de1e73b36e4caa060806e1e632b6ba1e396e863e8f82",
4
4
  "stepContractVersion": 3,
5
- "docsBundleVersion": "2.0.15",
5
+ "docsBundleVersion": "2.0.17",
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": "c0f1b282d57a38f3ba864fd452ffcda1afccd444a42b469afd057a382f6229b4",
19
+ "sha256": "ec2ae4a38af84f481994924e736a3f9e76b9a132973b0107fcd00a7bd11510b1",
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": "790e5f36fb47f256da4ab25b1b1fbe453f1de61af2d278c400cb9a5edfeedeaf",
104
+ "sha256": "bf7171b1101096ac3b205aa8f251379de1c66e16c20b5ca6054e84fd0ab17862",
105
105
  "mode": "100644"
106
106
  },
107
107
  {
@@ -236,12 +236,12 @@
236
236
  },
237
237
  {
238
238
  "path": "funnel-agent-docs.test.ts",
239
- "sha256": "cb4d020d4e204bd7d10bf8f20fbd3056cb276824fbd8742bffc0b66da12f73b4",
239
+ "sha256": "ecf210609282fa186eaedbdea39e7ce226fbe5f76fded2b4d77a57b858f6713a",
240
240
  "mode": "100644"
241
241
  },
242
242
  {
243
243
  "path": "funnel-docs.config.json",
244
- "sha256": "1e57699834211909ee3a9a6eabfc957e5cc4952a07d4621b26fc7328be960973",
244
+ "sha256": "87d325180a8e9e501cf5c2a00174f99fae58a612b7a93cfe9753bf1f149e46a4",
245
245
  "mode": "100644"
246
246
  },
247
247
  {
@@ -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/payments` `0.1.55`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.27`. Publishing packages and deploying production remain separately approved operational actions.
20
+ Release `@funnelsgrove/runtime` `0.1.60` first, then `@funnelsgrove/analytics` `0.1.37`, then `@funnelsgrove/payments` `0.1.55`. Deploy the API and funnel template, then confirm production `/health` reports the new docs identity. Only then publish `@funnelsgrove/cli` `0.1.29`. 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
@@ -340,7 +340,7 @@ describe('funnel agent documentation supply', () => {
340
340
 
341
341
  expect(manifest).toMatchObject({
342
342
  schemaVersion: 1,
343
- bundleVersion: '2.0.15',
343
+ bundleVersion: '2.0.17',
344
344
  stepContractVersion: contract.stepContractVersion,
345
345
  contractHash: contract.contractHash,
346
346
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "bundleVersion": "2.0.15",
3
+ "bundleVersion": "2.0.17",
4
4
  "contractSource": "funnelsgrove-repository://apps/funnel-runtime/contracts/step-contract-v2.json",
5
5
  "fullyGenerated": [
6
6
  ".funnelsgrove-docs.json",