@simplysf/simply-cicd 0.16.0 → 0.17.0

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.
@@ -277,13 +277,12 @@
277
277
  "validate:deploy:cicd:simply"
278
278
  ]
279
279
  },
280
- "simply:cicd:notify:build": {
280
+ "simply:cicd:build:cleanup-scratch-orgs": {
281
281
  "aliases": [],
282
282
  "args": {},
283
- "description": "Run in every build job's `after_script`. Which card it posts depends on `--ci-job-status`:\n\n- `failed`: a failure card with the job, stage, branch, and pipeline, whichever build job failed.\n- `success`: a package version card, but only when the job created a package version. The card shows the new version tag, its `04t` ID, and the issue references in the commits since the previous version tag. Every other successful job sends nothing.\n- Anything else (e.g. `canceled`): nothing.\n\nThe `04t` ID comes from `--subscriber-package-version-id`, or else from the `subscriberPackageVersionId.env` file that `build create-package-version` writes to the working directory. The new version's tag is the tag at `HEAD` annotated with that ID. The previous version's tag is the nearest earlier tag in the project's version tag format (`plugins.simply.versionTagFormat` or `SIMPLY_CICD_VERSION_TAG_FORMAT`). The command fetches tags, and the full history when the clone is shallow. If a tag or the history can't be found, the card shows `N/A` instead of failing the job.",
283
+ "description": "For each Dev Hub, queries `ActiveScratchOrg` records created more than 3 hours ago and bulk-deletes them. Useful for keeping a shared Dev Hub's scratch org allotment from being exhausted by abandoned CI runs. Every `--dev-hub` alias must already be authenticated.",
284
284
  "examples": [
285
- "Post a card from a build job's after_script; it only sends one when the job failed or created a package version:\n<%= config.bin %> <%= command.id %> --ci-job-name push-scratch --ci-job-status \"$CI_JOB_STATUS\" --teams-webhook-url https://outlook.office.com/webhook/... --enabled",
286
- "Announce a package version with linked Jira stories:\n<%= config.bin %> <%= command.id %> --ci-job-status success --alm-base-url https://jira.example.com/browse --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
285
+ "<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
287
286
  ],
288
287
  "flags": {
289
288
  "json": {
@@ -301,109 +300,10 @@
301
300
  "multiple": false,
302
301
  "type": "option"
303
302
  },
304
- "ci-commit-ref-name": {
305
- "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
306
- "name": "ci-commit-ref-name",
307
- "summary": "The git branch or tag ref for this pipeline run.",
308
- "hasDynamicHelp": false,
309
- "multiple": false,
310
- "type": "option"
311
- },
312
- "ci-job-name": {
313
- "env": "SIMPLY_CICD_CI_JOB_NAME",
314
- "name": "ci-job-name",
315
- "summary": "The name of the current CI job.",
316
- "hasDynamicHelp": false,
317
- "multiple": false,
318
- "type": "option"
319
- },
320
- "ci-job-stage": {
321
- "env": "SIMPLY_CICD_CI_JOB_STAGE",
322
- "name": "ci-job-stage",
323
- "summary": "The stage of the current CI job.",
324
- "hasDynamicHelp": false,
325
- "multiple": false,
326
- "type": "option"
327
- },
328
- "ci-job-status": {
329
- "env": "SIMPLY_CICD_CI_JOB_STATUS",
330
- "name": "ci-job-status",
331
- "summary": "The status of the current CI job (e.g. success, failed, canceled).",
332
- "hasDynamicHelp": false,
333
- "multiple": false,
334
- "type": "option"
335
- },
336
- "ci-pipeline-id": {
337
- "env": "SIMPLY_CICD_CI_PIPELINE_ID",
338
- "name": "ci-pipeline-id",
339
- "summary": "The ID of the current CI pipeline.",
340
- "hasDynamicHelp": false,
341
- "multiple": false,
342
- "type": "option"
343
- },
344
- "ci-pipeline-url": {
345
- "env": "SIMPLY_CICD_CI_PIPELINE_URL",
346
- "name": "ci-pipeline-url",
347
- "summary": "The URL of the current CI pipeline.",
348
- "hasDynamicHelp": false,
349
- "multiple": false,
350
- "type": "option"
351
- },
352
- "ci-project-title": {
353
- "env": "SIMPLY_CICD_CI_PROJECT_TITLE",
354
- "name": "ci-project-title",
355
- "summary": "The project title shown in the notification card's heading.",
356
- "hasDynamicHelp": false,
357
- "multiple": false,
358
- "type": "option"
359
- },
360
- "subscriber-package-version-id": {
361
- "env": "SIMPLY_CICD_SUBSCRIBER_PACKAGE_VERSION_ID",
362
- "name": "subscriber-package-version-id",
363
- "summary": "The subscriber package version ID (04t...) created by this job. Defaults to the one in subscriberPackageVersionId.env, written by build create-package-version.",
364
- "hasDynamicHelp": false,
365
- "multiple": false,
366
- "type": "option"
367
- },
368
- "enabled": {
369
- "env": "SIMPLY_CICD_ENABLED",
370
- "name": "enabled",
371
- "summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
372
- "allowNo": false,
373
- "type": "boolean"
374
- },
375
- "alm-base-url": {
376
- "env": "SIMPLY_CICD_ALM_BASE_URL",
377
- "name": "alm-base-url",
378
- "summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
379
- "hasDynamicHelp": false,
380
- "multiple": false,
381
- "type": "option"
382
- },
383
- "alm-project-key": {
384
- "env": "SIMPLY_CICD_ALM_PROJECT_KEY",
385
- "name": "alm-project-key",
386
- "summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
387
- "hasDynamicHelp": false,
388
- "multiple": false,
389
- "type": "option"
390
- },
391
- "alm-provider": {
392
- "env": "SIMPLY_CICD_ALM_PROVIDER",
393
- "name": "alm-provider",
394
- "summary": "The issue tracker whose reference format to look for in commit messages.",
395
- "default": "jira",
396
- "hasDynamicHelp": false,
397
- "multiple": false,
398
- "options": [
399
- "gitlab-issues",
400
- "jira"
401
- ],
402
- "type": "option"
403
- },
404
- "teams-webhook-url": {
405
- "name": "teams-webhook-url",
406
- "summary": "One or more Teams webhook URLs to send the notification to.",
303
+ "dev-hub": {
304
+ "name": "dev-hub",
305
+ "required": true,
306
+ "summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
407
307
  "hasDynamicHelp": false,
408
308
  "multiple": true,
409
309
  "type": "option"
@@ -414,16 +314,23 @@
414
314
  "summary": "Enable verbose debug logging.",
415
315
  "allowNo": false,
416
316
  "type": "boolean"
317
+ },
318
+ "disabled": {
319
+ "env": "SIMPLY_CICD_DISABLED",
320
+ "name": "disabled",
321
+ "summary": "Skip this job entirely, logging a warning instead of running it.",
322
+ "allowNo": false,
323
+ "type": "boolean"
417
324
  }
418
325
  },
419
326
  "hasDynamicHelp": false,
420
327
  "hiddenAliases": [],
421
- "id": "simply:cicd:notify:build",
328
+ "id": "simply:cicd:build:cleanup-scratch-orgs",
422
329
  "pluginAlias": "@simplysf/simply-cicd",
423
330
  "pluginName": "@simplysf/simply-cicd",
424
331
  "pluginType": "core",
425
332
  "strict": true,
426
- "summary": "Send a build job's failure, or the package version it created, to Microsoft Teams, with issue-tracker integration.",
333
+ "summary": "Delete scratch orgs older than 3 hours from every configured Dev Hub.",
427
334
  "enableJsonFlag": true,
428
335
  "isESM": true,
429
336
  "relativePath": [
@@ -431,44 +338,43 @@
431
338
  "commands",
432
339
  "simply",
433
340
  "cicd",
434
- "notify",
435
- "build.js"
341
+ "build",
342
+ "cleanup-scratch-orgs.js"
436
343
  ],
437
344
  "aliasPermutations": [],
438
345
  "permutations": [
439
- "simply:cicd:notify:build",
440
- "cicd:simply:notify:build",
441
- "cicd:notify:simply:build",
442
- "cicd:notify:build:simply",
443
- "simply:notify:cicd:build",
444
- "notify:simply:cicd:build",
445
- "notify:cicd:simply:build",
446
- "notify:cicd:build:simply",
447
- "simply:notify:build:cicd",
448
- "notify:simply:build:cicd",
449
- "notify:build:simply:cicd",
450
- "notify:build:cicd:simply",
451
- "simply:cicd:build:notify",
452
- "cicd:simply:build:notify",
453
- "cicd:build:simply:notify",
454
- "cicd:build:notify:simply",
455
- "simply:build:cicd:notify",
456
- "build:simply:cicd:notify",
457
- "build:cicd:simply:notify",
458
- "build:cicd:notify:simply",
459
- "simply:build:notify:cicd",
460
- "build:simply:notify:cicd",
461
- "build:notify:simply:cicd",
462
- "build:notify:cicd:simply"
346
+ "simply:cicd:build:cleanup-scratch-orgs",
347
+ "cicd:simply:build:cleanup-scratch-orgs",
348
+ "cicd:build:simply:cleanup-scratch-orgs",
349
+ "cicd:build:cleanup-scratch-orgs:simply",
350
+ "simply:build:cicd:cleanup-scratch-orgs",
351
+ "build:simply:cicd:cleanup-scratch-orgs",
352
+ "build:cicd:simply:cleanup-scratch-orgs",
353
+ "build:cicd:cleanup-scratch-orgs:simply",
354
+ "simply:build:cleanup-scratch-orgs:cicd",
355
+ "build:simply:cleanup-scratch-orgs:cicd",
356
+ "build:cleanup-scratch-orgs:simply:cicd",
357
+ "build:cleanup-scratch-orgs:cicd:simply",
358
+ "simply:cicd:cleanup-scratch-orgs:build",
359
+ "cicd:simply:cleanup-scratch-orgs:build",
360
+ "cicd:cleanup-scratch-orgs:simply:build",
361
+ "cicd:cleanup-scratch-orgs:build:simply",
362
+ "simply:cleanup-scratch-orgs:cicd:build",
363
+ "cleanup-scratch-orgs:simply:cicd:build",
364
+ "cleanup-scratch-orgs:cicd:simply:build",
365
+ "cleanup-scratch-orgs:cicd:build:simply",
366
+ "simply:cleanup-scratch-orgs:build:cicd",
367
+ "cleanup-scratch-orgs:simply:build:cicd",
368
+ "cleanup-scratch-orgs:build:simply:cicd",
369
+ "cleanup-scratch-orgs:build:cicd:simply"
463
370
  ]
464
371
  },
465
- "simply:cicd:notify:happy-soup": {
372
+ "simply:cicd:build:create-fallback-tag": {
466
373
  "aliases": [],
467
374
  "args": {},
468
- "description": "Run with `--before-script` at the start of a stage to post a \"starting\" card, and with `--after-script` at the end to post a success or failure card. With `--notify-on-completion`, intermediate stage notifications are suppressed and only the final job (`--is-final-job` combined with `--after-script`) posts a card.\n\nOn a successful `--after-script`, reads the packages upgraded by `deploy happy-soup install-packaged` from the deploy progress file, looks up the commit history between each package's previous and target version in its own origin repository, and includes any matched issue references per package in the notification.",
375
+ "description": "Resolves the last tag to increment (either `--last-tag`, or the closest reachable tag matching the project's version prefix), extracts its annotated `04t` package version ID, and creates/pushes a new tag with an incremented numeric suffix (e.g. `v1.2.3.4` -> `v1.2.3.4-1` -> `v1.2.3.4-2`) annotated with that same package ID. Tags are matched and parsed in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, so only a counter after the formatted version is incremented — with `v{MAJOR}.{MINOR}.{PATCH}-{BUILD}`, `v1.2.3-4` becomes `v1.2.3-4-1`, never `v1.2.3-5`. Soft no-ops (does not error) when no last tag, or no valid package ID within it, can be found — a build with nothing to fall back to just has nothing to do here.\n\nAlso soft no-ops when HEAD already carries a tag matching the version prefix, e.g. because `build create-package-version` just created and tagged a real package version earlier in the same job. This also keeps a retried job from adding a second fallback tag to the same commit.\n\nSkipped automatically when `PACKAGE_CHANGED=TRUE` is set in the environment (see `build determine-package-changes`) — a real package version will be created instead.",
469
376
  "examples": [
470
- "<%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --teams-webhook-url https://outlook.office.com/webhook/... --enabled",
471
- "<%= config.bin %> <%= command.id %> --after-script --is-final-job --notify-on-completion --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
377
+ "<%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-project-path group/project --project-access-token glpat-... --ci-pipeline-id 123"
472
378
  ],
473
379
  "flags": {
474
380
  "json": {
@@ -486,170 +392,101 @@
486
392
  "multiple": false,
487
393
  "type": "option"
488
394
  },
489
- "after-script": {
490
- "name": "after-script",
491
- "summary": "Run the after-stage notification logic.",
492
- "allowNo": false,
493
- "type": "boolean"
494
- },
495
- "before-script": {
496
- "name": "before-script",
497
- "summary": "Run the before-stage (starting) notification logic.",
498
- "allowNo": false,
499
- "type": "boolean"
500
- },
501
395
  "ci-commit-ref-name": {
502
396
  "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
503
397
  "name": "ci-commit-ref-name",
504
- "summary": "The git branch or tag ref for this pipeline run.",
505
- "hasDynamicHelp": false,
506
- "multiple": false,
507
- "type": "option"
508
- },
509
- "ci-environment-name": {
510
- "env": "SIMPLY_CICD_CI_ENVIRONMENT_NAME",
511
- "name": "ci-environment-name",
512
- "summary": "The name of the target CI environment.",
398
+ "required": true,
399
+ "summary": "Git branch or ref name being built.",
513
400
  "hasDynamicHelp": false,
514
401
  "multiple": false,
515
402
  "type": "option"
516
403
  },
517
- "ci-job-name": {
518
- "env": "SIMPLY_CICD_CI_JOB_NAME",
519
- "name": "ci-job-name",
520
- "summary": "The name of the current CI job.",
404
+ "ci-pipeline-id": {
405
+ "env": "SIMPLY_CICD_CI_PIPELINE_ID",
406
+ "name": "ci-pipeline-id",
407
+ "required": true,
408
+ "summary": "CI pipeline ID, used to name the temporary authenticated git remote.",
521
409
  "hasDynamicHelp": false,
522
410
  "multiple": false,
523
411
  "type": "option"
524
412
  },
525
- "ci-job-stage": {
526
- "env": "SIMPLY_CICD_CI_JOB_STAGE",
527
- "name": "ci-job-stage",
528
- "summary": "The stage of the current CI job.",
413
+ "ci-project-path": {
414
+ "env": "SIMPLY_CICD_CI_PROJECT_PATH",
415
+ "name": "ci-project-path",
416
+ "required": true,
417
+ "summary": "CI project's git path (e.g. group/project), used to build the authenticated git remote URL.",
529
418
  "hasDynamicHelp": false,
530
419
  "multiple": false,
531
420
  "type": "option"
532
421
  },
533
- "ci-job-status": {
534
- "env": "SIMPLY_CICD_CI_JOB_STATUS",
535
- "name": "ci-job-status",
536
- "summary": "The status of the current CI job (e.g. success, failed).",
422
+ "project-access-token": {
423
+ "env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
424
+ "name": "project-access-token",
425
+ "required": true,
426
+ "summary": "Access token used to authenticate git remote operations (tagging, pushing).",
537
427
  "hasDynamicHelp": false,
538
428
  "multiple": false,
539
429
  "type": "option"
540
430
  },
541
- "ci-job-token": {
542
- "env": "SIMPLY_CICD_CI_JOB_TOKEN",
543
- "name": "ci-job-token",
544
- "summary": "The CI job token to try first when looking up an upgraded package's origin commit history. Falls back to --project-access-token if the job token can't read that repository.",
431
+ "vcs-host": {
432
+ "env": "SIMPLY_CICD_VCS_HOST",
433
+ "name": "vcs-host",
434
+ "summary": "Hostname of the VCS instance hosting this project.",
545
435
  "hasDynamicHelp": false,
546
436
  "multiple": false,
547
437
  "type": "option"
548
438
  },
549
- "ci-pipeline-id": {
550
- "env": "SIMPLY_CICD_CI_PIPELINE_ID",
551
- "name": "ci-pipeline-id",
552
- "summary": "The ID of the current CI pipeline.",
439
+ "vcs-provider": {
440
+ "env": "SIMPLY_CICD_VCS_PROVIDER",
441
+ "name": "vcs-provider",
442
+ "summary": "The VCS platform hosting this project.",
443
+ "default": "gitlab",
553
444
  "hasDynamicHelp": false,
554
445
  "multiple": false,
446
+ "options": [
447
+ "github",
448
+ "gitlab"
449
+ ],
555
450
  "type": "option"
556
451
  },
557
- "ci-pipeline-url": {
558
- "env": "SIMPLY_CICD_CI_PIPELINE_URL",
559
- "name": "ci-pipeline-url",
560
- "summary": "The URL of the current CI pipeline.",
561
- "hasDynamicHelp": false,
562
- "multiple": false,
563
- "type": "option"
564
- },
565
- "deploy-progress-file": {
566
- "env": "SIMPLY_CICD_DEPLOY_PROGRESS_FILE",
567
- "name": "deploy-progress-file",
568
- "summary": "Path to the deployment progress file to read upgraded package information from.",
569
- "default": "DEPLOY_PROGRESS.json",
570
- "hasDynamicHelp": false,
571
- "multiple": false,
572
- "type": "option"
573
- },
574
- "enabled": {
575
- "env": "SIMPLY_CICD_ENABLED",
576
- "name": "enabled",
577
- "summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
452
+ "debug": {
453
+ "env": "SIMPLY_CICD_DEBUG",
454
+ "name": "debug",
455
+ "summary": "Enable verbose debug logging.",
578
456
  "allowNo": false,
579
457
  "type": "boolean"
580
458
  },
581
- "alm-base-url": {
582
- "env": "SIMPLY_CICD_ALM_BASE_URL",
583
- "name": "alm-base-url",
584
- "summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
585
- "hasDynamicHelp": false,
586
- "multiple": false,
587
- "type": "option"
588
- },
589
- "alm-project-key": {
590
- "env": "SIMPLY_CICD_ALM_PROJECT_KEY",
591
- "name": "alm-project-key",
592
- "summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
593
- "hasDynamicHelp": false,
594
- "multiple": false,
595
- "type": "option"
459
+ "disabled": {
460
+ "env": "SIMPLY_CICD_DISABLED",
461
+ "name": "disabled",
462
+ "summary": "Skip this job entirely, logging a warning instead of running it.",
463
+ "allowNo": false,
464
+ "type": "boolean"
596
465
  },
597
- "alm-provider": {
598
- "env": "SIMPLY_CICD_ALM_PROVIDER",
599
- "name": "alm-provider",
600
- "summary": "The issue tracker whose reference format to look for in commit messages.",
601
- "default": "jira",
466
+ "last-tag": {
467
+ "name": "last-tag",
468
+ "summary": "Manually specify the last tag to increment, instead of resolving it from git.",
602
469
  "hasDynamicHelp": false,
603
470
  "multiple": false,
604
- "options": [
605
- "gitlab-issues",
606
- "jira"
607
- ],
608
471
  "type": "option"
609
472
  },
610
- "project-access-token": {
611
- "env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
612
- "name": "project-access-token",
613
- "summary": "A personal or project access token, used to look up an upgraded package's origin commit history when --ci-job-token isn't provided or can't read that repository.",
473
+ "out": {
474
+ "name": "out",
475
+ "summary": "Output dotenv file path.",
476
+ "default": "subscriberPackageVersionId.env",
614
477
  "hasDynamicHelp": false,
615
478
  "multiple": false,
616
479
  "type": "option"
617
- },
618
- "teams-webhook-url": {
619
- "name": "teams-webhook-url",
620
- "summary": "One or more Teams webhook URLs to send the notification to.",
621
- "hasDynamicHelp": false,
622
- "multiple": true,
623
- "type": "option"
624
- },
625
- "notify-on-completion": {
626
- "name": "notify-on-completion",
627
- "summary": "Only send a notification on the final job of the pipeline, suppressing per-stage notifications.",
628
- "allowNo": false,
629
- "type": "boolean"
630
- },
631
- "is-final-job": {
632
- "name": "is-final-job",
633
- "summary": "Marks this job as the final job in the pipeline. Combined with --after-script and --notify-on-completion, this is what actually triggers the final notification.",
634
- "allowNo": false,
635
- "type": "boolean"
636
- },
637
- "debug": {
638
- "env": "SIMPLY_CICD_DEBUG",
639
- "name": "debug",
640
- "summary": "Enable verbose debug logging.",
641
- "allowNo": false,
642
- "type": "boolean"
643
480
  }
644
481
  },
645
482
  "hasDynamicHelp": false,
646
483
  "hiddenAliases": [],
647
- "id": "simply:cicd:notify:happy-soup",
484
+ "id": "simply:cicd:build:create-fallback-tag",
648
485
  "pluginAlias": "@simplysf/simply-cicd",
649
486
  "pluginName": "@simplysf/simply-cicd",
650
487
  "pluginType": "core",
651
488
  "strict": true,
652
- "summary": "Send a happy-soup deployment stage notification to Microsoft Teams, with ALM story integration for upgraded packages.",
489
+ "summary": "Create a fallback git tag carrying forward the previous package version's ID, for builds that didn't produce a new package version.",
653
490
  "enableJsonFlag": true,
654
491
  "isESM": true,
655
492
  "relativePath": [
@@ -657,44 +494,43 @@
657
494
  "commands",
658
495
  "simply",
659
496
  "cicd",
660
- "notify",
661
- "happy-soup.js"
497
+ "build",
498
+ "create-fallback-tag.js"
662
499
  ],
663
500
  "aliasPermutations": [],
664
501
  "permutations": [
665
- "simply:cicd:notify:happy-soup",
666
- "cicd:simply:notify:happy-soup",
667
- "cicd:notify:simply:happy-soup",
668
- "cicd:notify:happy-soup:simply",
669
- "simply:notify:cicd:happy-soup",
670
- "notify:simply:cicd:happy-soup",
671
- "notify:cicd:simply:happy-soup",
672
- "notify:cicd:happy-soup:simply",
673
- "simply:notify:happy-soup:cicd",
674
- "notify:simply:happy-soup:cicd",
675
- "notify:happy-soup:simply:cicd",
676
- "notify:happy-soup:cicd:simply",
677
- "simply:cicd:happy-soup:notify",
678
- "cicd:simply:happy-soup:notify",
679
- "cicd:happy-soup:simply:notify",
680
- "cicd:happy-soup:notify:simply",
681
- "simply:happy-soup:cicd:notify",
682
- "happy-soup:simply:cicd:notify",
683
- "happy-soup:cicd:simply:notify",
684
- "happy-soup:cicd:notify:simply",
685
- "simply:happy-soup:notify:cicd",
686
- "happy-soup:simply:notify:cicd",
687
- "happy-soup:notify:simply:cicd",
688
- "happy-soup:notify:cicd:simply"
502
+ "simply:cicd:build:create-fallback-tag",
503
+ "cicd:simply:build:create-fallback-tag",
504
+ "cicd:build:simply:create-fallback-tag",
505
+ "cicd:build:create-fallback-tag:simply",
506
+ "simply:build:cicd:create-fallback-tag",
507
+ "build:simply:cicd:create-fallback-tag",
508
+ "build:cicd:simply:create-fallback-tag",
509
+ "build:cicd:create-fallback-tag:simply",
510
+ "simply:build:create-fallback-tag:cicd",
511
+ "build:simply:create-fallback-tag:cicd",
512
+ "build:create-fallback-tag:simply:cicd",
513
+ "build:create-fallback-tag:cicd:simply",
514
+ "simply:cicd:create-fallback-tag:build",
515
+ "cicd:simply:create-fallback-tag:build",
516
+ "cicd:create-fallback-tag:simply:build",
517
+ "cicd:create-fallback-tag:build:simply",
518
+ "simply:create-fallback-tag:cicd:build",
519
+ "create-fallback-tag:simply:cicd:build",
520
+ "create-fallback-tag:cicd:simply:build",
521
+ "create-fallback-tag:cicd:build:simply",
522
+ "simply:create-fallback-tag:build:cicd",
523
+ "create-fallback-tag:simply:build:cicd",
524
+ "create-fallback-tag:build:simply:cicd",
525
+ "create-fallback-tag:build:cicd:simply"
689
526
  ]
690
527
  },
691
- "simply:cicd:notify:project": {
528
+ "simply:cicd:build:create-package-version": {
692
529
  "aliases": [],
693
530
  "args": {},
694
- "description": "Run once with `--before-script` at the start of a deployment pipeline (to record the previously installed and target package versions), and once with `--after-script` at the end (to post a success or failure card to Teams, including the tracked issues that shipped between those two versions).",
531
+ "description": "Skips entirely (without error) when the pipeline was triggered by a merge request, or when this isn't a release-branch build and `--always-create-package` wasn't passed. Otherwise, creates a new version of the default package directory's package, polls until creation finishes, verifies the resulting version's Apex code coverage meets `--code-coverage-minimum` (or the project's own `plugins.simply.coverageRequirement.minimumCoverageRequired`, if declared in `sfdx-project.json`), and creates/pushes a git tag annotated with the new package version's `04t` ID.\n\nThe tag is `v<major>.<minor>.<patch>.<build>` by default. A project can choose its own shape with a `plugins.simply.versionTagFormat` template in `sfdx-project.json`, or the `SIMPLY_CICD_VERSION_TAG_FORMAT` environment variable (which overrides it) — e.g. `{MAJOR}.{MINOR}.{PATCH}+{BUILD}` tags `1.2.3.4` as `1.2.3+4`. Each of `{MAJOR}`, `{MINOR}`, `{PATCH}`, and `{BUILD}` must appear exactly once, and the format is validated before any package version is created. Unless this is a release-branch build, the package directory's `branch` attribute or the CI ref is appended as `-<suffix>` after the formatted version.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
695
532
  "examples": [
696
- "<%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --alias my-org --enabled",
697
- "<%= config.bin %> <%= command.id %> --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
533
+ "<%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-commit-sha a1b2c3d --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/pipelines/123 --ci-project-path group/project --project-access-token glpat-... --packaging-devhub my-packaging-devhub"
698
534
  ],
699
535
  "flags": {
700
536
  "json": {
@@ -712,70 +548,90 @@
712
548
  "multiple": false,
713
549
  "type": "option"
714
550
  },
715
- "after-script": {
716
- "name": "after-script",
717
- "summary": "Run the after-deployment notification logic.",
718
- "allowNo": false,
719
- "type": "boolean"
720
- },
721
- "alias": {
722
- "env": "SIMPLY_CICD_ALIAS",
723
- "name": "alias",
724
- "summary": "Alias of the target Salesforce org to query for the previously installed package version. Must already be authenticated.",
551
+ "ci-commit-ref-name": {
552
+ "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
553
+ "name": "ci-commit-ref-name",
554
+ "required": true,
555
+ "summary": "Git branch or ref name being built.",
725
556
  "hasDynamicHelp": false,
726
557
  "multiple": false,
727
558
  "type": "option"
728
559
  },
729
- "before-script": {
730
- "name": "before-script",
731
- "summary": "Run the before-deployment setup logic (resolves and records package versions).",
732
- "allowNo": false,
733
- "type": "boolean"
560
+ "ci-pipeline-id": {
561
+ "env": "SIMPLY_CICD_CI_PIPELINE_ID",
562
+ "name": "ci-pipeline-id",
563
+ "required": true,
564
+ "summary": "CI pipeline ID, used to name the temporary authenticated git remote.",
565
+ "hasDynamicHelp": false,
566
+ "multiple": false,
567
+ "type": "option"
734
568
  },
735
- "ci-commit-ref-name": {
736
- "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
737
- "name": "ci-commit-ref-name",
738
- "summary": "The git branch or tag ref for this pipeline run.",
569
+ "ci-project-path": {
570
+ "env": "SIMPLY_CICD_CI_PROJECT_PATH",
571
+ "name": "ci-project-path",
572
+ "required": true,
573
+ "summary": "CI project's git path (e.g. group/project), used to build the authenticated git remote URL.",
739
574
  "hasDynamicHelp": false,
740
575
  "multiple": false,
741
576
  "type": "option"
742
577
  },
743
- "ci-environment-name": {
744
- "env": "SIMPLY_CICD_CI_ENVIRONMENT_NAME",
745
- "name": "ci-environment-name",
746
- "summary": "The name of the target CI environment.",
578
+ "project-access-token": {
579
+ "env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
580
+ "name": "project-access-token",
581
+ "required": true,
582
+ "summary": "Access token used to authenticate git remote operations (tagging, pushing).",
747
583
  "hasDynamicHelp": false,
748
584
  "multiple": false,
749
585
  "type": "option"
750
586
  },
751
- "ci-job-name": {
752
- "env": "SIMPLY_CICD_CI_JOB_NAME",
753
- "name": "ci-job-name",
754
- "summary": "The name of the current CI job.",
587
+ "vcs-host": {
588
+ "env": "SIMPLY_CICD_VCS_HOST",
589
+ "name": "vcs-host",
590
+ "summary": "Hostname of the VCS instance hosting this project.",
755
591
  "hasDynamicHelp": false,
756
592
  "multiple": false,
757
593
  "type": "option"
758
594
  },
759
- "ci-job-stage": {
760
- "env": "SIMPLY_CICD_CI_JOB_STAGE",
761
- "name": "ci-job-stage",
762
- "summary": "The stage of the current CI job (e.g. pre-destructive, post-destructive).",
595
+ "vcs-provider": {
596
+ "env": "SIMPLY_CICD_VCS_PROVIDER",
597
+ "name": "vcs-provider",
598
+ "summary": "The VCS platform hosting this project.",
599
+ "default": "gitlab",
763
600
  "hasDynamicHelp": false,
764
601
  "multiple": false,
602
+ "options": [
603
+ "github",
604
+ "gitlab"
605
+ ],
765
606
  "type": "option"
766
607
  },
767
- "ci-job-status": {
768
- "env": "SIMPLY_CICD_CI_JOB_STATUS",
769
- "name": "ci-job-status",
770
- "summary": "The status of the current CI job (e.g. success, failed, canceled).",
608
+ "debug": {
609
+ "env": "SIMPLY_CICD_DEBUG",
610
+ "name": "debug",
611
+ "summary": "Enable verbose debug logging.",
612
+ "allowNo": false,
613
+ "type": "boolean"
614
+ },
615
+ "disabled": {
616
+ "env": "SIMPLY_CICD_DISABLED",
617
+ "name": "disabled",
618
+ "summary": "Skip this job entirely, logging a warning instead of running it.",
619
+ "allowNo": false,
620
+ "type": "boolean"
621
+ },
622
+ "ci-commit-sha": {
623
+ "env": "SIMPLY_CICD_CI_COMMIT_SHA",
624
+ "name": "ci-commit-sha",
625
+ "required": true,
626
+ "summary": "Commit SHA to tag as the package version's source.",
771
627
  "hasDynamicHelp": false,
772
628
  "multiple": false,
773
629
  "type": "option"
774
630
  },
775
- "ci-pipeline-id": {
776
- "env": "SIMPLY_CICD_CI_PIPELINE_ID",
777
- "name": "ci-pipeline-id",
778
- "summary": "The ID of the current CI pipeline.",
631
+ "ci-pipeline-source": {
632
+ "env": "SIMPLY_CICD_CI_PIPELINE_SOURCE",
633
+ "name": "ci-pipeline-source",
634
+ "summary": "Source trigger of the CI pipeline (e.g. merge_request_event). When set to merge_request_event, package creation is skipped.",
779
635
  "hasDynamicHelp": false,
780
636
  "multiple": false,
781
637
  "type": "option"
@@ -783,15 +639,8 @@
783
639
  "ci-pipeline-url": {
784
640
  "env": "SIMPLY_CICD_CI_PIPELINE_URL",
785
641
  "name": "ci-pipeline-url",
786
- "summary": "The URL of the current CI pipeline.",
787
- "hasDynamicHelp": false,
788
- "multiple": false,
789
- "type": "option"
790
- },
791
- "ci-project-title": {
792
- "env": "SIMPLY_CICD_CI_PROJECT_TITLE",
793
- "name": "ci-project-title",
794
- "summary": "The project title shown in the notification card's heading.",
642
+ "required": true,
643
+ "summary": "URL of the CI pipeline, used as the package version's description.",
795
644
  "hasDynamicHelp": false,
796
645
  "multiple": false,
797
646
  "type": "option"
@@ -799,91 +648,42 @@
799
648
  "packaging-devhub": {
800
649
  "env": "SIMPLY_CICD_PACKAGING_DEVHUB",
801
650
  "name": "packaging-devhub",
802
- "summary": "Alias of the Dev Hub used to look up target package version information. Must already be authenticated.",
651
+ "required": true,
652
+ "summary": "Alias of the Dev Hub used for packaging operations like package version creation. Must already be authenticated.",
803
653
  "hasDynamicHelp": false,
804
654
  "multiple": false,
805
655
  "type": "option"
806
656
  },
807
- "enabled": {
808
- "env": "SIMPLY_CICD_ENABLED",
809
- "name": "enabled",
810
- "summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
657
+ "always-create-package": {
658
+ "name": "always-create-package",
659
+ "summary": "Create a package version even when this isn't a release-branch build.",
811
660
  "allowNo": false,
812
661
  "type": "boolean"
813
662
  },
814
- "alm-base-url": {
815
- "env": "SIMPLY_CICD_ALM_BASE_URL",
816
- "name": "alm-base-url",
817
- "summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
818
- "hasDynamicHelp": false,
819
- "multiple": false,
820
- "type": "option"
821
- },
822
- "alm-project-key": {
823
- "env": "SIMPLY_CICD_ALM_PROJECT_KEY",
824
- "name": "alm-project-key",
825
- "summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
826
- "hasDynamicHelp": false,
827
- "multiple": false,
828
- "type": "option"
829
- },
830
- "alm-provider": {
831
- "env": "SIMPLY_CICD_ALM_PROVIDER",
832
- "name": "alm-provider",
833
- "summary": "The issue tracker whose reference format to look for in commit messages.",
834
- "default": "jira",
835
- "hasDynamicHelp": false,
836
- "multiple": false,
837
- "options": [
838
- "gitlab-issues",
839
- "jira"
840
- ],
841
- "type": "option"
842
- },
843
- "prev-installed-package-version": {
844
- "name": "prev-installed-package-version",
845
- "summary": "The previously installed package version. Only needed if re-running --after-script without having run --before-script first in the same job.",
846
- "hasDynamicHelp": false,
847
- "multiple": false,
848
- "type": "option"
849
- },
850
- "subscriber-package-version-id": {
851
- "name": "subscriber-package-version-id",
852
- "summary": "The subscriber package version ID (04t...) being deployed, used to resolve the target package version from the packaging DevHub.",
663
+ "code-coverage-minimum": {
664
+ "name": "code-coverage-minimum",
665
+ "summary": "Minimum Apex code coverage percentage required for the new package version.",
666
+ "default": "75",
853
667
  "hasDynamicHelp": false,
854
668
  "multiple": false,
855
669
  "type": "option"
856
670
  },
857
- "target-package-version": {
858
- "name": "target-package-version",
859
- "summary": "The target package version. Only needed if re-running --after-script without having run --before-script first in the same job.",
671
+ "package-release-branch-prefix": {
672
+ "name": "package-release-branch-prefix",
673
+ "summary": "Prefix identifying release branches. Determines whether this build creates a package version and how the resulting git tag is named.",
860
674
  "hasDynamicHelp": false,
861
675
  "multiple": false,
862
676
  "type": "option"
863
- },
864
- "teams-webhook-url": {
865
- "name": "teams-webhook-url",
866
- "summary": "One or more Teams webhook URLs to send the notification to.",
867
- "hasDynamicHelp": false,
868
- "multiple": true,
869
- "type": "option"
870
- },
871
- "debug": {
872
- "env": "SIMPLY_CICD_DEBUG",
873
- "name": "debug",
874
- "summary": "Enable verbose debug logging.",
875
- "allowNo": false,
876
- "type": "boolean"
877
677
  }
878
678
  },
879
679
  "hasDynamicHelp": false,
880
680
  "hiddenAliases": [],
881
- "id": "simply:cicd:notify:project",
681
+ "id": "simply:cicd:build:create-package-version",
882
682
  "pluginAlias": "@simplysf/simply-cicd",
883
683
  "pluginName": "@simplysf/simply-cicd",
884
684
  "pluginType": "core",
885
685
  "strict": true,
886
- "summary": "Send a project deployment notification to Microsoft Teams, with issue-tracker integration.",
686
+ "summary": "Create a new package version, verify minimum code coverage, and create/push a version-tracking git tag.",
887
687
  "enableJsonFlag": true,
888
688
  "isESM": true,
889
689
  "relativePath": [
@@ -891,43 +691,43 @@
891
691
  "commands",
892
692
  "simply",
893
693
  "cicd",
894
- "notify",
895
- "project.js"
694
+ "build",
695
+ "create-package-version.js"
896
696
  ],
897
697
  "aliasPermutations": [],
898
698
  "permutations": [
899
- "simply:cicd:notify:project",
900
- "cicd:simply:notify:project",
901
- "cicd:notify:simply:project",
902
- "cicd:notify:project:simply",
903
- "simply:notify:cicd:project",
904
- "notify:simply:cicd:project",
905
- "notify:cicd:simply:project",
906
- "notify:cicd:project:simply",
907
- "simply:notify:project:cicd",
908
- "notify:simply:project:cicd",
909
- "notify:project:simply:cicd",
910
- "notify:project:cicd:simply",
911
- "simply:cicd:project:notify",
912
- "cicd:simply:project:notify",
913
- "cicd:project:simply:notify",
914
- "cicd:project:notify:simply",
915
- "simply:project:cicd:notify",
916
- "project:simply:cicd:notify",
917
- "project:cicd:simply:notify",
918
- "project:cicd:notify:simply",
919
- "simply:project:notify:cicd",
920
- "project:simply:notify:cicd",
921
- "project:notify:simply:cicd",
922
- "project:notify:cicd:simply"
699
+ "simply:cicd:build:create-package-version",
700
+ "cicd:simply:build:create-package-version",
701
+ "cicd:build:simply:create-package-version",
702
+ "cicd:build:create-package-version:simply",
703
+ "simply:build:cicd:create-package-version",
704
+ "build:simply:cicd:create-package-version",
705
+ "build:cicd:simply:create-package-version",
706
+ "build:cicd:create-package-version:simply",
707
+ "simply:build:create-package-version:cicd",
708
+ "build:simply:create-package-version:cicd",
709
+ "build:create-package-version:simply:cicd",
710
+ "build:create-package-version:cicd:simply",
711
+ "simply:cicd:create-package-version:build",
712
+ "cicd:simply:create-package-version:build",
713
+ "cicd:create-package-version:simply:build",
714
+ "cicd:create-package-version:build:simply",
715
+ "simply:create-package-version:cicd:build",
716
+ "create-package-version:simply:cicd:build",
717
+ "create-package-version:cicd:simply:build",
718
+ "create-package-version:cicd:build:simply",
719
+ "simply:create-package-version:build:cicd",
720
+ "create-package-version:simply:build:cicd",
721
+ "create-package-version:build:simply:cicd",
722
+ "create-package-version:build:cicd:simply"
923
723
  ]
924
724
  },
925
- "simply:cicd:notify:teams": {
725
+ "simply:cicd:build:create-scratch": {
926
726
  "aliases": [],
927
727
  "args": {},
928
- "description": "Posts a payload as-is to one or more Microsoft Teams incoming webhook URLs. Use this for custom notifications that don't fit the built-in `notify project`, `notify happy-soup`, or `notify build` card templates.",
728
+ "description": "Reads the default package directory's `definitionFile` from `sfdx-project.json` (falling back to `--scratch-definition-file`), and attempts creation against each `--dev-hub` alias in order (each must already be authenticated). A Dev Hub that has hit its daily scratch org limit is skipped in favor of the next one. Writes the resulting org's auth fields to `SCRATCH_ORG_INFO.json` for later build steps, best-effort sets a default `CountryCode`, and assigns any permission sets/licenses declared under the default package directory's `packageMetadataAccess`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
929
729
  "examples": [
930
- "<%= config.bin %> <%= command.id %> --payload '{\"text\":\"Deployment complete\"}' --webhook-url https://outlook.office.com/webhook/... --enabled"
730
+ "<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
931
731
  ],
932
732
  "flags": {
933
733
  "json": {
@@ -945,46 +745,52 @@
945
745
  "multiple": false,
946
746
  "type": "option"
947
747
  },
948
- "payload": {
949
- "name": "payload",
950
- "required": true,
951
- "summary": "The JSON payload to send to Teams, as a serialized string.",
952
- "hasDynamicHelp": false,
953
- "multiple": false,
954
- "type": "option"
955
- },
956
- "webhook-url": {
957
- "env": "SIMPLY_CICD_WEBHOOK_URL",
958
- "name": "webhook-url",
748
+ "dev-hub": {
749
+ "name": "dev-hub",
959
750
  "required": true,
960
- "summary": "The Teams webhook URL to send the payload to.",
751
+ "summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
961
752
  "hasDynamicHelp": false,
962
- "multiple": false,
753
+ "multiple": true,
963
754
  "type": "option"
964
755
  },
965
- "enabled": {
966
- "env": "SIMPLY_CICD_ENABLED",
967
- "name": "enabled",
968
- "summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
969
- "allowNo": false,
970
- "type": "boolean"
971
- },
972
756
  "debug": {
973
757
  "env": "SIMPLY_CICD_DEBUG",
974
758
  "name": "debug",
975
759
  "summary": "Enable verbose debug logging.",
976
760
  "allowNo": false,
977
761
  "type": "boolean"
762
+ },
763
+ "disabled": {
764
+ "env": "SIMPLY_CICD_DISABLED",
765
+ "name": "disabled",
766
+ "summary": "Skip this job entirely, logging a warning instead of running it.",
767
+ "allowNo": false,
768
+ "type": "boolean"
769
+ },
770
+ "scratch-definition-file": {
771
+ "name": "scratch-definition-file",
772
+ "summary": "Definition file used to create the scratch org, if not specified in sfdx-project.json.",
773
+ "hasDynamicHelp": false,
774
+ "multiple": false,
775
+ "type": "option"
776
+ },
777
+ "scratch-duration-days": {
778
+ "name": "scratch-duration-days",
779
+ "summary": "Duration of the scratch org in days.",
780
+ "default": "1",
781
+ "hasDynamicHelp": false,
782
+ "multiple": false,
783
+ "type": "option"
978
784
  }
979
785
  },
980
786
  "hasDynamicHelp": false,
981
787
  "hiddenAliases": [],
982
- "id": "simply:cicd:notify:teams",
788
+ "id": "simply:cicd:build:create-scratch",
983
789
  "pluginAlias": "@simplysf/simply-cicd",
984
790
  "pluginName": "@simplysf/simply-cicd",
985
791
  "pluginType": "core",
986
792
  "strict": true,
987
- "summary": "Send a serialized JSON payload to a Microsoft Teams webhook.",
793
+ "summary": "Create a scratch org, trying each configured Dev Hub in order.",
988
794
  "enableJsonFlag": true,
989
795
  "isESM": true,
990
796
  "relativePath": [
@@ -992,41 +798,41 @@
992
798
  "commands",
993
799
  "simply",
994
800
  "cicd",
995
- "notify",
996
- "teams.js"
801
+ "build",
802
+ "create-scratch.js"
997
803
  ],
998
804
  "aliasPermutations": [],
999
805
  "permutations": [
1000
- "simply:cicd:notify:teams",
1001
- "cicd:simply:notify:teams",
1002
- "cicd:notify:simply:teams",
1003
- "cicd:notify:teams:simply",
1004
- "simply:notify:cicd:teams",
1005
- "notify:simply:cicd:teams",
1006
- "notify:cicd:simply:teams",
1007
- "notify:cicd:teams:simply",
1008
- "simply:notify:teams:cicd",
1009
- "notify:simply:teams:cicd",
1010
- "notify:teams:simply:cicd",
1011
- "notify:teams:cicd:simply",
1012
- "simply:cicd:teams:notify",
1013
- "cicd:simply:teams:notify",
1014
- "cicd:teams:simply:notify",
1015
- "cicd:teams:notify:simply",
1016
- "simply:teams:cicd:notify",
1017
- "teams:simply:cicd:notify",
1018
- "teams:cicd:simply:notify",
1019
- "teams:cicd:notify:simply",
1020
- "simply:teams:notify:cicd",
1021
- "teams:simply:notify:cicd",
1022
- "teams:notify:simply:cicd",
1023
- "teams:notify:cicd:simply"
806
+ "simply:cicd:build:create-scratch",
807
+ "cicd:simply:build:create-scratch",
808
+ "cicd:build:simply:create-scratch",
809
+ "cicd:build:create-scratch:simply",
810
+ "simply:build:cicd:create-scratch",
811
+ "build:simply:cicd:create-scratch",
812
+ "build:cicd:simply:create-scratch",
813
+ "build:cicd:create-scratch:simply",
814
+ "simply:build:create-scratch:cicd",
815
+ "build:simply:create-scratch:cicd",
816
+ "build:create-scratch:simply:cicd",
817
+ "build:create-scratch:cicd:simply",
818
+ "simply:cicd:create-scratch:build",
819
+ "cicd:simply:create-scratch:build",
820
+ "cicd:create-scratch:simply:build",
821
+ "cicd:create-scratch:build:simply",
822
+ "simply:create-scratch:cicd:build",
823
+ "create-scratch:simply:cicd:build",
824
+ "create-scratch:cicd:simply:build",
825
+ "create-scratch:cicd:build:simply",
826
+ "simply:create-scratch:build:cicd",
827
+ "create-scratch:simply:build:cicd",
828
+ "create-scratch:build:simply:cicd",
829
+ "create-scratch:build:cicd:simply"
1024
830
  ]
1025
831
  },
1026
- "simply:cicd:build:cleanup-scratch-orgs": {
832
+ "simply:cicd:build:delete-scratch": {
1027
833
  "aliases": [],
1028
834
  "args": {},
1029
- "description": "For each Dev Hub, queries `ActiveScratchOrg` records created more than 3 hours ago and bulk-deletes them. Useful for keeping a shared Dev Hub's scratch org allotment from being exhausted by abandoned CI runs. Every `--dev-hub` alias must already be authenticated.",
835
+ "description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`) to confirm `--dev-hub` is the Dev Hub that owns the scratch org, re-authenticates to it and the scratch org as needed, and deletes it. Deletion failures are logged rather than thrown, since a scratch org left behind after a failed deletion just needs manual cleanup and shouldn't fail an otherwise-successful pipeline run.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
1030
836
  "examples": [
1031
837
  "<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
1032
838
  ],
@@ -1051,15 +857,23 @@
1051
857
  "required": true,
1052
858
  "summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
1053
859
  "hasDynamicHelp": false,
1054
- "multiple": true,
860
+ "multiple": false,
1055
861
  "type": "option"
1056
862
  },
1057
- "debug": {
1058
- "env": "SIMPLY_CICD_DEBUG",
1059
- "name": "debug",
1060
- "summary": "Enable verbose debug logging.",
1061
- "allowNo": false,
1062
- "type": "boolean"
863
+ "jwt-key-file": {
864
+ "env": "SIMPLY_CICD_JWT_KEY_FILE",
865
+ "name": "jwt-key-file",
866
+ "summary": "Path to the JWT private key file used to re-authenticate the scratch org (or its Dev Hub) when it was JWT-authenticated. Not needed when the Dev Hub was authenticated via web login or an SFDX auth URL — the scratch org's own refresh token is used instead.",
867
+ "hasDynamicHelp": false,
868
+ "multiple": false,
869
+ "type": "option"
870
+ },
871
+ "debug": {
872
+ "env": "SIMPLY_CICD_DEBUG",
873
+ "name": "debug",
874
+ "summary": "Enable verbose debug logging.",
875
+ "allowNo": false,
876
+ "type": "boolean"
1063
877
  },
1064
878
  "disabled": {
1065
879
  "env": "SIMPLY_CICD_DISABLED",
@@ -1071,12 +885,12 @@
1071
885
  },
1072
886
  "hasDynamicHelp": false,
1073
887
  "hiddenAliases": [],
1074
- "id": "simply:cicd:build:cleanup-scratch-orgs",
888
+ "id": "simply:cicd:build:delete-scratch",
1075
889
  "pluginAlias": "@simplysf/simply-cicd",
1076
890
  "pluginName": "@simplysf/simply-cicd",
1077
891
  "pluginType": "core",
1078
892
  "strict": true,
1079
- "summary": "Delete scratch orgs older than 3 hours from every configured Dev Hub.",
893
+ "summary": "Delete the scratch org created by `build create-scratch`.",
1080
894
  "enableJsonFlag": true,
1081
895
  "isESM": true,
1082
896
  "relativePath": [
@@ -1085,42 +899,42 @@
1085
899
  "simply",
1086
900
  "cicd",
1087
901
  "build",
1088
- "cleanup-scratch-orgs.js"
902
+ "delete-scratch.js"
1089
903
  ],
1090
904
  "aliasPermutations": [],
1091
905
  "permutations": [
1092
- "simply:cicd:build:cleanup-scratch-orgs",
1093
- "cicd:simply:build:cleanup-scratch-orgs",
1094
- "cicd:build:simply:cleanup-scratch-orgs",
1095
- "cicd:build:cleanup-scratch-orgs:simply",
1096
- "simply:build:cicd:cleanup-scratch-orgs",
1097
- "build:simply:cicd:cleanup-scratch-orgs",
1098
- "build:cicd:simply:cleanup-scratch-orgs",
1099
- "build:cicd:cleanup-scratch-orgs:simply",
1100
- "simply:build:cleanup-scratch-orgs:cicd",
1101
- "build:simply:cleanup-scratch-orgs:cicd",
1102
- "build:cleanup-scratch-orgs:simply:cicd",
1103
- "build:cleanup-scratch-orgs:cicd:simply",
1104
- "simply:cicd:cleanup-scratch-orgs:build",
1105
- "cicd:simply:cleanup-scratch-orgs:build",
1106
- "cicd:cleanup-scratch-orgs:simply:build",
1107
- "cicd:cleanup-scratch-orgs:build:simply",
1108
- "simply:cleanup-scratch-orgs:cicd:build",
1109
- "cleanup-scratch-orgs:simply:cicd:build",
1110
- "cleanup-scratch-orgs:cicd:simply:build",
1111
- "cleanup-scratch-orgs:cicd:build:simply",
1112
- "simply:cleanup-scratch-orgs:build:cicd",
1113
- "cleanup-scratch-orgs:simply:build:cicd",
1114
- "cleanup-scratch-orgs:build:simply:cicd",
1115
- "cleanup-scratch-orgs:build:cicd:simply"
906
+ "simply:cicd:build:delete-scratch",
907
+ "cicd:simply:build:delete-scratch",
908
+ "cicd:build:simply:delete-scratch",
909
+ "cicd:build:delete-scratch:simply",
910
+ "simply:build:cicd:delete-scratch",
911
+ "build:simply:cicd:delete-scratch",
912
+ "build:cicd:simply:delete-scratch",
913
+ "build:cicd:delete-scratch:simply",
914
+ "simply:build:delete-scratch:cicd",
915
+ "build:simply:delete-scratch:cicd",
916
+ "build:delete-scratch:simply:cicd",
917
+ "build:delete-scratch:cicd:simply",
918
+ "simply:cicd:delete-scratch:build",
919
+ "cicd:simply:delete-scratch:build",
920
+ "cicd:delete-scratch:simply:build",
921
+ "cicd:delete-scratch:build:simply",
922
+ "simply:delete-scratch:cicd:build",
923
+ "delete-scratch:simply:cicd:build",
924
+ "delete-scratch:cicd:simply:build",
925
+ "delete-scratch:cicd:build:simply",
926
+ "simply:delete-scratch:build:cicd",
927
+ "delete-scratch:simply:build:cicd",
928
+ "delete-scratch:build:simply:cicd",
929
+ "delete-scratch:build:cicd:simply"
1116
930
  ]
1117
931
  },
1118
- "simply:cicd:build:create-fallback-tag": {
932
+ "simply:cicd:build:determine-package-changes": {
1119
933
  "aliases": [],
1120
934
  "args": {},
1121
- "description": "Resolves the last tag to increment (either `--last-tag`, or the closest reachable tag matching the project's version prefix), extracts its annotated `04t` package version ID, and creates/pushes a new tag with an incremented numeric suffix (e.g. `v1.2.3.4` -> `v1.2.3.4-1` -> `v1.2.3.4-2`) annotated with that same package ID. Tags are matched and parsed in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, so only a counter after the formatted version is incremented — with `v{MAJOR}.{MINOR}.{PATCH}-{BUILD}`, `v1.2.3-4` becomes `v1.2.3-4-1`, never `v1.2.3-5`. Soft no-ops (does not error) when no last tag, or no valid package ID within it, can be found — a build with nothing to fall back to just has nothing to do here.\n\nAlso soft no-ops when HEAD already carries a tag matching the version prefix, e.g. because `build create-package-version` just created and tagged a real package version earlier in the same job. This also keeps a retried job from adding a second fallback tag to the same commit.\n\nSkipped automatically when `PACKAGE_CHANGED=TRUE` is set in the environment (see `build determine-package-changes`) — a real package version will be created instead.",
935
+ "description": "Reads the default package directory from `sfdx-project.json`, finds the closest reachable git tag for its `major.minor.patch` (in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, `v<major>.<minor>.<patch>.*` by default), and diffs that tag against `HEAD` for the package directory and `sfdx-project.json` itself. Writes `PACKAGE_CHANGED=TRUE|FALSE` and `LAST_TAG=<tag>` to the output file. Any failure during detection (missing/invalid sfdx-project.json, git errors) defaults to `PACKAGE_CHANGED=TRUE`, so a build never silently skips work it should have done.",
1122
936
  "examples": [
1123
- "<%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-project-path group/project --project-access-token glpat-... --ci-pipeline-id 123"
937
+ "<%= config.bin %> <%= command.id %> --out changes.env"
1124
938
  ],
1125
939
  "flags": {
1126
940
  "json": {
@@ -1138,63 +952,6 @@
1138
952
  "multiple": false,
1139
953
  "type": "option"
1140
954
  },
1141
- "ci-commit-ref-name": {
1142
- "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
1143
- "name": "ci-commit-ref-name",
1144
- "required": true,
1145
- "summary": "Git branch or ref name being built.",
1146
- "hasDynamicHelp": false,
1147
- "multiple": false,
1148
- "type": "option"
1149
- },
1150
- "ci-pipeline-id": {
1151
- "env": "SIMPLY_CICD_CI_PIPELINE_ID",
1152
- "name": "ci-pipeline-id",
1153
- "required": true,
1154
- "summary": "CI pipeline ID, used to name the temporary authenticated git remote.",
1155
- "hasDynamicHelp": false,
1156
- "multiple": false,
1157
- "type": "option"
1158
- },
1159
- "ci-project-path": {
1160
- "env": "SIMPLY_CICD_CI_PROJECT_PATH",
1161
- "name": "ci-project-path",
1162
- "required": true,
1163
- "summary": "CI project's git path (e.g. group/project), used to build the authenticated git remote URL.",
1164
- "hasDynamicHelp": false,
1165
- "multiple": false,
1166
- "type": "option"
1167
- },
1168
- "project-access-token": {
1169
- "env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
1170
- "name": "project-access-token",
1171
- "required": true,
1172
- "summary": "Access token used to authenticate git remote operations (tagging, pushing).",
1173
- "hasDynamicHelp": false,
1174
- "multiple": false,
1175
- "type": "option"
1176
- },
1177
- "vcs-host": {
1178
- "env": "SIMPLY_CICD_VCS_HOST",
1179
- "name": "vcs-host",
1180
- "summary": "Hostname of the VCS instance hosting this project.",
1181
- "hasDynamicHelp": false,
1182
- "multiple": false,
1183
- "type": "option"
1184
- },
1185
- "vcs-provider": {
1186
- "env": "SIMPLY_CICD_VCS_PROVIDER",
1187
- "name": "vcs-provider",
1188
- "summary": "The VCS platform hosting this project.",
1189
- "default": "gitlab",
1190
- "hasDynamicHelp": false,
1191
- "multiple": false,
1192
- "options": [
1193
- "github",
1194
- "gitlab"
1195
- ],
1196
- "type": "option"
1197
- },
1198
955
  "debug": {
1199
956
  "env": "SIMPLY_CICD_DEBUG",
1200
957
  "name": "debug",
@@ -1209,17 +966,10 @@
1209
966
  "allowNo": false,
1210
967
  "type": "boolean"
1211
968
  },
1212
- "last-tag": {
1213
- "name": "last-tag",
1214
- "summary": "Manually specify the last tag to increment, instead of resolving it from git.",
1215
- "hasDynamicHelp": false,
1216
- "multiple": false,
1217
- "type": "option"
1218
- },
1219
969
  "out": {
1220
970
  "name": "out",
1221
971
  "summary": "Output dotenv file path.",
1222
- "default": "subscriberPackageVersionId.env",
972
+ "default": "changes.env",
1223
973
  "hasDynamicHelp": false,
1224
974
  "multiple": false,
1225
975
  "type": "option"
@@ -1227,12 +977,12 @@
1227
977
  },
1228
978
  "hasDynamicHelp": false,
1229
979
  "hiddenAliases": [],
1230
- "id": "simply:cicd:build:create-fallback-tag",
980
+ "id": "simply:cicd:build:determine-package-changes",
1231
981
  "pluginAlias": "@simplysf/simply-cicd",
1232
982
  "pluginName": "@simplysf/simply-cicd",
1233
983
  "pluginType": "core",
1234
984
  "strict": true,
1235
- "summary": "Create a fallback git tag carrying forward the previous package version's ID, for builds that didn't produce a new package version.",
985
+ "summary": "Determine if any package-relevant files have changed since the last release tag.",
1236
986
  "enableJsonFlag": true,
1237
987
  "isESM": true,
1238
988
  "relativePath": [
@@ -1241,42 +991,43 @@
1241
991
  "simply",
1242
992
  "cicd",
1243
993
  "build",
1244
- "create-fallback-tag.js"
994
+ "determine-package-changes.js"
1245
995
  ],
1246
996
  "aliasPermutations": [],
1247
997
  "permutations": [
1248
- "simply:cicd:build:create-fallback-tag",
1249
- "cicd:simply:build:create-fallback-tag",
1250
- "cicd:build:simply:create-fallback-tag",
1251
- "cicd:build:create-fallback-tag:simply",
1252
- "simply:build:cicd:create-fallback-tag",
1253
- "build:simply:cicd:create-fallback-tag",
1254
- "build:cicd:simply:create-fallback-tag",
1255
- "build:cicd:create-fallback-tag:simply",
1256
- "simply:build:create-fallback-tag:cicd",
1257
- "build:simply:create-fallback-tag:cicd",
1258
- "build:create-fallback-tag:simply:cicd",
1259
- "build:create-fallback-tag:cicd:simply",
1260
- "simply:cicd:create-fallback-tag:build",
1261
- "cicd:simply:create-fallback-tag:build",
1262
- "cicd:create-fallback-tag:simply:build",
1263
- "cicd:create-fallback-tag:build:simply",
1264
- "simply:create-fallback-tag:cicd:build",
1265
- "create-fallback-tag:simply:cicd:build",
1266
- "create-fallback-tag:cicd:simply:build",
1267
- "create-fallback-tag:cicd:build:simply",
1268
- "simply:create-fallback-tag:build:cicd",
1269
- "create-fallback-tag:simply:build:cicd",
1270
- "create-fallback-tag:build:simply:cicd",
1271
- "create-fallback-tag:build:cicd:simply"
998
+ "simply:cicd:build:determine-package-changes",
999
+ "cicd:simply:build:determine-package-changes",
1000
+ "cicd:build:simply:determine-package-changes",
1001
+ "cicd:build:determine-package-changes:simply",
1002
+ "simply:build:cicd:determine-package-changes",
1003
+ "build:simply:cicd:determine-package-changes",
1004
+ "build:cicd:simply:determine-package-changes",
1005
+ "build:cicd:determine-package-changes:simply",
1006
+ "simply:build:determine-package-changes:cicd",
1007
+ "build:simply:determine-package-changes:cicd",
1008
+ "build:determine-package-changes:simply:cicd",
1009
+ "build:determine-package-changes:cicd:simply",
1010
+ "simply:cicd:determine-package-changes:build",
1011
+ "cicd:simply:determine-package-changes:build",
1012
+ "cicd:determine-package-changes:simply:build",
1013
+ "cicd:determine-package-changes:build:simply",
1014
+ "simply:determine-package-changes:cicd:build",
1015
+ "determine-package-changes:simply:cicd:build",
1016
+ "determine-package-changes:cicd:simply:build",
1017
+ "determine-package-changes:cicd:build:simply",
1018
+ "simply:determine-package-changes:build:cicd",
1019
+ "determine-package-changes:simply:build:cicd",
1020
+ "determine-package-changes:build:simply:cicd",
1021
+ "determine-package-changes:build:cicd:simply"
1272
1022
  ]
1273
1023
  },
1274
- "simply:cicd:build:create-package-version": {
1024
+ "simply:cicd:build:generate-flexipage-diff": {
1275
1025
  "aliases": [],
1276
1026
  "args": {},
1277
- "description": "Skips entirely (without error) when the pipeline was triggered by a merge request, or when this isn't a release-branch build and `--always-create-package` wasn't passed. Otherwise, creates a new version of the default package directory's package, polls until creation finishes, verifies the resulting version's Apex code coverage meets `--code-coverage-minimum` (or the project's own `plugins.simply.coverageRequirement.minimumCoverageRequired`, if declared in `sfdx-project.json`), and creates/pushes a git tag annotated with the new package version's `04t` ID.\n\nThe tag is `v<major>.<minor>.<patch>.<build>` by default. A project can choose its own shape with a `plugins.simply.versionTagFormat` template in `sfdx-project.json`, or the `SIMPLY_CICD_VERSION_TAG_FORMAT` environment variable (which overrides it) — e.g. `{MAJOR}.{MINOR}.{PATCH}+{BUILD}` tags `1.2.3.4` as `1.2.3+4`. Each of `{MAJOR}`, `{MINOR}`, `{PATCH}`, and `{BUILD}` must appear exactly once, and the format is validated before any package version is created. Unless this is a release-branch build, the package directory's `branch` attribute or the CI ref is appended as `-<suffix>` after the formatted version.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
1027
+ "description": "Runs the upstream `flexipage-delta` binary to diff `**/*.flexipage-meta.xml` files between `--from` and `--to`, then the reporter binary for the platform `--vcs-provider` selects — `flexipage-delta-gitlab` or `flexipage-delta-github` — to post the results back to the merge or pull request. Failures are logged, not thrown — a diff-posting step shouldn't fail the build.",
1278
1028
  "examples": [
1279
- "<%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-commit-sha a1b2c3d --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/pipelines/123 --ci-project-path group/project --project-access-token glpat-... --packaging-devhub my-packaging-devhub"
1029
+ "<%= config.bin %> <%= command.id %> --ci-project-id 123 --ci-merge-request-iid 45 --from abc123 --to def456 --project-access-token glpat-...",
1030
+ "<%= config.bin %> <%= command.id %> --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-..."
1280
1031
  ],
1281
1032
  "flags": {
1282
1033
  "json": {
@@ -1294,42 +1045,6 @@
1294
1045
  "multiple": false,
1295
1046
  "type": "option"
1296
1047
  },
1297
- "ci-commit-ref-name": {
1298
- "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
1299
- "name": "ci-commit-ref-name",
1300
- "required": true,
1301
- "summary": "Git branch or ref name being built.",
1302
- "hasDynamicHelp": false,
1303
- "multiple": false,
1304
- "type": "option"
1305
- },
1306
- "ci-pipeline-id": {
1307
- "env": "SIMPLY_CICD_CI_PIPELINE_ID",
1308
- "name": "ci-pipeline-id",
1309
- "required": true,
1310
- "summary": "CI pipeline ID, used to name the temporary authenticated git remote.",
1311
- "hasDynamicHelp": false,
1312
- "multiple": false,
1313
- "type": "option"
1314
- },
1315
- "ci-project-path": {
1316
- "env": "SIMPLY_CICD_CI_PROJECT_PATH",
1317
- "name": "ci-project-path",
1318
- "required": true,
1319
- "summary": "CI project's git path (e.g. group/project), used to build the authenticated git remote URL.",
1320
- "hasDynamicHelp": false,
1321
- "multiple": false,
1322
- "type": "option"
1323
- },
1324
- "project-access-token": {
1325
- "env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
1326
- "name": "project-access-token",
1327
- "required": true,
1328
- "summary": "Access token used to authenticate git remote operations (tagging, pushing).",
1329
- "hasDynamicHelp": false,
1330
- "multiple": false,
1331
- "type": "option"
1332
- },
1333
1048
  "vcs-host": {
1334
1049
  "env": "SIMPLY_CICD_VCS_HOST",
1335
1050
  "name": "vcs-host",
@@ -1351,152 +1066,92 @@
1351
1066
  ],
1352
1067
  "type": "option"
1353
1068
  },
1354
- "debug": {
1355
- "env": "SIMPLY_CICD_DEBUG",
1356
- "name": "debug",
1357
- "summary": "Enable verbose debug logging.",
1358
- "allowNo": false,
1359
- "type": "boolean"
1069
+ "ci-project-id": {
1070
+ "env": "SIMPLY_CICD_CI_PROJECT_ID",
1071
+ "name": "ci-project-id",
1072
+ "summary": "GitLab only: numeric CI project ID of the project to post the diff to.",
1073
+ "hasDynamicHelp": false,
1074
+ "multiple": false,
1075
+ "type": "option"
1360
1076
  },
1361
- "disabled": {
1362
- "env": "SIMPLY_CICD_DISABLED",
1363
- "name": "disabled",
1364
- "summary": "Skip this job entirely, logging a warning instead of running it.",
1365
- "allowNo": false,
1366
- "type": "boolean"
1367
- },
1368
- "ci-commit-sha": {
1369
- "env": "SIMPLY_CICD_CI_COMMIT_SHA",
1370
- "name": "ci-commit-sha",
1371
- "required": true,
1372
- "summary": "Commit SHA to tag as the package version's source.",
1077
+ "ci-merge-request-iid": {
1078
+ "env": "SIMPLY_CICD_CI_MERGE_REQUEST_IID",
1079
+ "name": "ci-merge-request-iid",
1080
+ "summary": "GitLab only: internal ID of the merge request to post the diff to.",
1373
1081
  "hasDynamicHelp": false,
1374
1082
  "multiple": false,
1375
1083
  "type": "option"
1376
1084
  },
1377
- "ci-pipeline-source": {
1378
- "env": "SIMPLY_CICD_CI_PIPELINE_SOURCE",
1379
- "name": "ci-pipeline-source",
1380
- "summary": "Source trigger of the CI pipeline (e.g. merge_request_event). When set to merge_request_event, package creation is skipped.",
1085
+ "ci-repository": {
1086
+ "env": "SIMPLY_CICD_CI_REPOSITORY",
1087
+ "name": "ci-repository",
1088
+ "summary": "GitHub only: repository to post the diff to, as owner/repo.",
1381
1089
  "hasDynamicHelp": false,
1382
1090
  "multiple": false,
1383
1091
  "type": "option"
1384
1092
  },
1385
- "ci-pipeline-url": {
1386
- "env": "SIMPLY_CICD_CI_PIPELINE_URL",
1387
- "name": "ci-pipeline-url",
1388
- "required": true,
1389
- "summary": "URL of the CI pipeline, used as the package version's description.",
1093
+ "ci-pull-request-number": {
1094
+ "env": "SIMPLY_CICD_CI_PULL_REQUEST_NUMBER",
1095
+ "name": "ci-pull-request-number",
1096
+ "summary": "GitHub only: number of the pull request to post the diff to.",
1390
1097
  "hasDynamicHelp": false,
1391
1098
  "multiple": false,
1392
1099
  "type": "option"
1393
1100
  },
1394
- "packaging-devhub": {
1395
- "env": "SIMPLY_CICD_PACKAGING_DEVHUB",
1396
- "name": "packaging-devhub",
1397
- "required": true,
1398
- "summary": "Alias of the Dev Hub used for packaging operations like package version creation. Must already be authenticated.",
1101
+ "ci-run-id": {
1102
+ "env": "SIMPLY_CICD_CI_RUN_ID",
1103
+ "name": "ci-run-id",
1104
+ "summary": "GitHub only: Actions run ID, used to build links back to the run's artifacts.",
1399
1105
  "hasDynamicHelp": false,
1400
1106
  "multiple": false,
1401
1107
  "type": "option"
1402
1108
  },
1403
- "always-create-package": {
1404
- "name": "always-create-package",
1405
- "summary": "Create a package version even when this isn't a release-branch build.",
1406
- "allowNo": false,
1407
- "type": "boolean"
1109
+ "ci-server-url": {
1110
+ "env": "SIMPLY_CICD_CI_SERVER_URL",
1111
+ "name": "ci-server-url",
1112
+ "summary": "GitHub only: server URL, for instances other than github.com.",
1113
+ "hasDynamicHelp": false,
1114
+ "multiple": false,
1115
+ "type": "option"
1408
1116
  },
1409
- "code-coverage-minimum": {
1410
- "name": "code-coverage-minimum",
1411
- "summary": "Minimum Apex code coverage percentage required for the new package version.",
1412
- "default": "75",
1117
+ "ci-commit-sha": {
1118
+ "env": "SIMPLY_CICD_CI_COMMIT_SHA",
1119
+ "name": "ci-commit-sha",
1120
+ "summary": "Commit SHA to attribute the posted diff to.",
1413
1121
  "hasDynamicHelp": false,
1414
1122
  "multiple": false,
1415
1123
  "type": "option"
1416
1124
  },
1417
- "package-release-branch-prefix": {
1418
- "name": "package-release-branch-prefix",
1419
- "summary": "Prefix identifying release branches. Determines whether this build creates a package version and how the resulting git tag is named.",
1125
+ "from": {
1126
+ "name": "from",
1127
+ "required": true,
1128
+ "summary": "Base commit SHA to diff from.",
1420
1129
  "hasDynamicHelp": false,
1421
1130
  "multiple": false,
1422
1131
  "type": "option"
1423
- }
1424
- },
1425
- "hasDynamicHelp": false,
1426
- "hiddenAliases": [],
1427
- "id": "simply:cicd:build:create-package-version",
1428
- "pluginAlias": "@simplysf/simply-cicd",
1429
- "pluginName": "@simplysf/simply-cicd",
1430
- "pluginType": "core",
1431
- "strict": true,
1432
- "summary": "Create a new package version, verify minimum code coverage, and create/push a version-tracking git tag.",
1433
- "enableJsonFlag": true,
1434
- "isESM": true,
1435
- "relativePath": [
1436
- "lib",
1437
- "commands",
1438
- "simply",
1439
- "cicd",
1440
- "build",
1441
- "create-package-version.js"
1442
- ],
1443
- "aliasPermutations": [],
1444
- "permutations": [
1445
- "simply:cicd:build:create-package-version",
1446
- "cicd:simply:build:create-package-version",
1447
- "cicd:build:simply:create-package-version",
1448
- "cicd:build:create-package-version:simply",
1449
- "simply:build:cicd:create-package-version",
1450
- "build:simply:cicd:create-package-version",
1451
- "build:cicd:simply:create-package-version",
1452
- "build:cicd:create-package-version:simply",
1453
- "simply:build:create-package-version:cicd",
1454
- "build:simply:create-package-version:cicd",
1455
- "build:create-package-version:simply:cicd",
1456
- "build:create-package-version:cicd:simply",
1457
- "simply:cicd:create-package-version:build",
1458
- "cicd:simply:create-package-version:build",
1459
- "cicd:create-package-version:simply:build",
1460
- "cicd:create-package-version:build:simply",
1461
- "simply:create-package-version:cicd:build",
1462
- "create-package-version:simply:cicd:build",
1463
- "create-package-version:cicd:simply:build",
1464
- "create-package-version:cicd:build:simply",
1465
- "simply:create-package-version:build:cicd",
1466
- "create-package-version:simply:build:cicd",
1467
- "create-package-version:build:simply:cicd",
1468
- "create-package-version:build:cicd:simply"
1469
- ]
1470
- },
1471
- "simply:cicd:build:create-scratch": {
1472
- "aliases": [],
1473
- "args": {},
1474
- "description": "Reads the default package directory's `definitionFile` from `sfdx-project.json` (falling back to `--scratch-definition-file`), and attempts creation against each `--dev-hub` alias in order (each must already be authenticated). A Dev Hub that has hit its daily scratch org limit is skipped in favor of the next one. Writes the resulting org's auth fields to `SCRATCH_ORG_INFO.json` for later build steps, best-effort sets a default `CountryCode`, and assigns any permission sets/licenses declared under the default package directory's `packageMetadataAccess`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
1475
- "examples": [
1476
- "<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
1477
- ],
1478
- "flags": {
1479
- "json": {
1480
- "description": "Format output as json.",
1481
- "helpGroup": "GLOBAL",
1482
- "name": "json",
1483
- "allowNo": false,
1484
- "type": "boolean"
1485
1132
  },
1486
- "flags-dir": {
1487
- "helpGroup": "GLOBAL",
1488
- "name": "flags-dir",
1489
- "summary": "Import flag values from a directory.",
1133
+ "to": {
1134
+ "name": "to",
1135
+ "required": true,
1136
+ "summary": "Head commit SHA to diff to.",
1490
1137
  "hasDynamicHelp": false,
1491
1138
  "multiple": false,
1492
1139
  "type": "option"
1493
1140
  },
1494
- "dev-hub": {
1495
- "name": "dev-hub",
1141
+ "project-access-token": {
1142
+ "env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
1143
+ "name": "project-access-token",
1496
1144
  "required": true,
1497
- "summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
1145
+ "summary": "Project access token used to post the diff results back to the merge request.",
1498
1146
  "hasDynamicHelp": false,
1499
- "multiple": true,
1147
+ "multiple": false,
1148
+ "type": "option"
1149
+ },
1150
+ "out": {
1151
+ "name": "out",
1152
+ "summary": "Output directory or file path for the delta results.",
1153
+ "hasDynamicHelp": false,
1154
+ "multiple": false,
1500
1155
  "type": "option"
1501
1156
  },
1502
1157
  "debug": {
@@ -1512,31 +1167,16 @@
1512
1167
  "summary": "Skip this job entirely, logging a warning instead of running it.",
1513
1168
  "allowNo": false,
1514
1169
  "type": "boolean"
1515
- },
1516
- "scratch-definition-file": {
1517
- "name": "scratch-definition-file",
1518
- "summary": "Definition file used to create the scratch org, if not specified in sfdx-project.json.",
1519
- "hasDynamicHelp": false,
1520
- "multiple": false,
1521
- "type": "option"
1522
- },
1523
- "scratch-duration-days": {
1524
- "name": "scratch-duration-days",
1525
- "summary": "Duration of the scratch org in days.",
1526
- "default": "1",
1527
- "hasDynamicHelp": false,
1528
- "multiple": false,
1529
- "type": "option"
1530
1170
  }
1531
1171
  },
1532
1172
  "hasDynamicHelp": false,
1533
1173
  "hiddenAliases": [],
1534
- "id": "simply:cicd:build:create-scratch",
1174
+ "id": "simply:cicd:build:generate-flexipage-diff",
1535
1175
  "pluginAlias": "@simplysf/simply-cicd",
1536
1176
  "pluginName": "@simplysf/simply-cicd",
1537
1177
  "pluginType": "core",
1538
1178
  "strict": true,
1539
- "summary": "Create a scratch org, trying each configured Dev Hub in order.",
1179
+ "summary": "Generate a Flexipage delta between two commits and post the results to the change request.",
1540
1180
  "enableJsonFlag": true,
1541
1181
  "isESM": true,
1542
1182
  "relativePath": [
@@ -1545,42 +1185,43 @@
1545
1185
  "simply",
1546
1186
  "cicd",
1547
1187
  "build",
1548
- "create-scratch.js"
1188
+ "generate-flexipage-diff.js"
1549
1189
  ],
1550
1190
  "aliasPermutations": [],
1551
1191
  "permutations": [
1552
- "simply:cicd:build:create-scratch",
1553
- "cicd:simply:build:create-scratch",
1554
- "cicd:build:simply:create-scratch",
1555
- "cicd:build:create-scratch:simply",
1556
- "simply:build:cicd:create-scratch",
1557
- "build:simply:cicd:create-scratch",
1558
- "build:cicd:simply:create-scratch",
1559
- "build:cicd:create-scratch:simply",
1560
- "simply:build:create-scratch:cicd",
1561
- "build:simply:create-scratch:cicd",
1562
- "build:create-scratch:simply:cicd",
1563
- "build:create-scratch:cicd:simply",
1564
- "simply:cicd:create-scratch:build",
1565
- "cicd:simply:create-scratch:build",
1566
- "cicd:create-scratch:simply:build",
1567
- "cicd:create-scratch:build:simply",
1568
- "simply:create-scratch:cicd:build",
1569
- "create-scratch:simply:cicd:build",
1570
- "create-scratch:cicd:simply:build",
1571
- "create-scratch:cicd:build:simply",
1572
- "simply:create-scratch:build:cicd",
1573
- "create-scratch:simply:build:cicd",
1574
- "create-scratch:build:simply:cicd",
1575
- "create-scratch:build:cicd:simply"
1192
+ "simply:cicd:build:generate-flexipage-diff",
1193
+ "cicd:simply:build:generate-flexipage-diff",
1194
+ "cicd:build:simply:generate-flexipage-diff",
1195
+ "cicd:build:generate-flexipage-diff:simply",
1196
+ "simply:build:cicd:generate-flexipage-diff",
1197
+ "build:simply:cicd:generate-flexipage-diff",
1198
+ "build:cicd:simply:generate-flexipage-diff",
1199
+ "build:cicd:generate-flexipage-diff:simply",
1200
+ "simply:build:generate-flexipage-diff:cicd",
1201
+ "build:simply:generate-flexipage-diff:cicd",
1202
+ "build:generate-flexipage-diff:simply:cicd",
1203
+ "build:generate-flexipage-diff:cicd:simply",
1204
+ "simply:cicd:generate-flexipage-diff:build",
1205
+ "cicd:simply:generate-flexipage-diff:build",
1206
+ "cicd:generate-flexipage-diff:simply:build",
1207
+ "cicd:generate-flexipage-diff:build:simply",
1208
+ "simply:generate-flexipage-diff:cicd:build",
1209
+ "generate-flexipage-diff:simply:cicd:build",
1210
+ "generate-flexipage-diff:cicd:simply:build",
1211
+ "generate-flexipage-diff:cicd:build:simply",
1212
+ "simply:generate-flexipage-diff:build:cicd",
1213
+ "generate-flexipage-diff:simply:build:cicd",
1214
+ "generate-flexipage-diff:build:simply:cicd",
1215
+ "generate-flexipage-diff:build:cicd:simply"
1576
1216
  ]
1577
1217
  },
1578
- "simply:cicd:build:delete-scratch": {
1218
+ "simply:cicd:build:generate-flow-diff": {
1579
1219
  "aliases": [],
1580
1220
  "args": {},
1581
- "description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`) to confirm `--dev-hub` is the Dev Hub that owns the scratch org, re-authenticates to it and the scratch org as needed, and deletes it. Deletion failures are logged rather than thrown, since a scratch org left behind after a failed deletion just needs manual cleanup and shouldn't fail an otherwise-successful pipeline run.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
1221
+ "description": "Runs the upstream `flow-delta` binary to diff `**/*.flow-meta.xml` files between `--from` and `--to`, then the reporter binary for the platform `--vcs-provider` selects — `flow-delta-gitlab` or `flow-delta-github` — to post the results back to the merge or pull request. Failures are logged, not thrown — a diff-posting step shouldn't fail the build.",
1582
1222
  "examples": [
1583
- "<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
1223
+ "<%= config.bin %> <%= command.id %> --ci-project-id 123 --ci-merge-request-iid 45 --from abc123 --to def456 --project-access-token glpat-...",
1224
+ "<%= config.bin %> <%= command.id %> --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-..."
1584
1225
  ],
1585
1226
  "flags": {
1586
1227
  "json": {
@@ -1598,218 +1239,25 @@
1598
1239
  "multiple": false,
1599
1240
  "type": "option"
1600
1241
  },
1601
- "dev-hub": {
1602
- "name": "dev-hub",
1603
- "required": true,
1604
- "summary": "Alias of a Dev Hub. Must already be authenticated. Repeat this flag for each Dev Hub to try, in order.",
1242
+ "vcs-host": {
1243
+ "env": "SIMPLY_CICD_VCS_HOST",
1244
+ "name": "vcs-host",
1245
+ "summary": "Hostname of the VCS instance hosting this project.",
1605
1246
  "hasDynamicHelp": false,
1606
1247
  "multiple": false,
1607
1248
  "type": "option"
1608
1249
  },
1609
- "jwt-key-file": {
1610
- "env": "SIMPLY_CICD_JWT_KEY_FILE",
1611
- "name": "jwt-key-file",
1612
- "summary": "Path to the JWT private key file used to re-authenticate the scratch org (or its Dev Hub) when it was JWT-authenticated. Not needed when the Dev Hub was authenticated via web login or an SFDX auth URL — the scratch org's own refresh token is used instead.",
1250
+ "vcs-provider": {
1251
+ "env": "SIMPLY_CICD_VCS_PROVIDER",
1252
+ "name": "vcs-provider",
1253
+ "summary": "The VCS platform hosting this project.",
1254
+ "default": "gitlab",
1613
1255
  "hasDynamicHelp": false,
1614
1256
  "multiple": false,
1615
- "type": "option"
1616
- },
1617
- "debug": {
1618
- "env": "SIMPLY_CICD_DEBUG",
1619
- "name": "debug",
1620
- "summary": "Enable verbose debug logging.",
1621
- "allowNo": false,
1622
- "type": "boolean"
1623
- },
1624
- "disabled": {
1625
- "env": "SIMPLY_CICD_DISABLED",
1626
- "name": "disabled",
1627
- "summary": "Skip this job entirely, logging a warning instead of running it.",
1628
- "allowNo": false,
1629
- "type": "boolean"
1630
- }
1631
- },
1632
- "hasDynamicHelp": false,
1633
- "hiddenAliases": [],
1634
- "id": "simply:cicd:build:delete-scratch",
1635
- "pluginAlias": "@simplysf/simply-cicd",
1636
- "pluginName": "@simplysf/simply-cicd",
1637
- "pluginType": "core",
1638
- "strict": true,
1639
- "summary": "Delete the scratch org created by `build create-scratch`.",
1640
- "enableJsonFlag": true,
1641
- "isESM": true,
1642
- "relativePath": [
1643
- "lib",
1644
- "commands",
1645
- "simply",
1646
- "cicd",
1647
- "build",
1648
- "delete-scratch.js"
1649
- ],
1650
- "aliasPermutations": [],
1651
- "permutations": [
1652
- "simply:cicd:build:delete-scratch",
1653
- "cicd:simply:build:delete-scratch",
1654
- "cicd:build:simply:delete-scratch",
1655
- "cicd:build:delete-scratch:simply",
1656
- "simply:build:cicd:delete-scratch",
1657
- "build:simply:cicd:delete-scratch",
1658
- "build:cicd:simply:delete-scratch",
1659
- "build:cicd:delete-scratch:simply",
1660
- "simply:build:delete-scratch:cicd",
1661
- "build:simply:delete-scratch:cicd",
1662
- "build:delete-scratch:simply:cicd",
1663
- "build:delete-scratch:cicd:simply",
1664
- "simply:cicd:delete-scratch:build",
1665
- "cicd:simply:delete-scratch:build",
1666
- "cicd:delete-scratch:simply:build",
1667
- "cicd:delete-scratch:build:simply",
1668
- "simply:delete-scratch:cicd:build",
1669
- "delete-scratch:simply:cicd:build",
1670
- "delete-scratch:cicd:simply:build",
1671
- "delete-scratch:cicd:build:simply",
1672
- "simply:delete-scratch:build:cicd",
1673
- "delete-scratch:simply:build:cicd",
1674
- "delete-scratch:build:simply:cicd",
1675
- "delete-scratch:build:cicd:simply"
1676
- ]
1677
- },
1678
- "simply:cicd:build:determine-package-changes": {
1679
- "aliases": [],
1680
- "args": {},
1681
- "description": "Reads the default package directory from `sfdx-project.json`, finds the closest reachable git tag for its `major.minor.patch` (in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, `v<major>.<minor>.<patch>.*` by default), and diffs that tag against `HEAD` for the package directory and `sfdx-project.json` itself. Writes `PACKAGE_CHANGED=TRUE|FALSE` and `LAST_TAG=<tag>` to the output file. Any failure during detection (missing/invalid sfdx-project.json, git errors) defaults to `PACKAGE_CHANGED=TRUE`, so a build never silently skips work it should have done.",
1682
- "examples": [
1683
- "<%= config.bin %> <%= command.id %> --out changes.env"
1684
- ],
1685
- "flags": {
1686
- "json": {
1687
- "description": "Format output as json.",
1688
- "helpGroup": "GLOBAL",
1689
- "name": "json",
1690
- "allowNo": false,
1691
- "type": "boolean"
1692
- },
1693
- "flags-dir": {
1694
- "helpGroup": "GLOBAL",
1695
- "name": "flags-dir",
1696
- "summary": "Import flag values from a directory.",
1697
- "hasDynamicHelp": false,
1698
- "multiple": false,
1699
- "type": "option"
1700
- },
1701
- "debug": {
1702
- "env": "SIMPLY_CICD_DEBUG",
1703
- "name": "debug",
1704
- "summary": "Enable verbose debug logging.",
1705
- "allowNo": false,
1706
- "type": "boolean"
1707
- },
1708
- "disabled": {
1709
- "env": "SIMPLY_CICD_DISABLED",
1710
- "name": "disabled",
1711
- "summary": "Skip this job entirely, logging a warning instead of running it.",
1712
- "allowNo": false,
1713
- "type": "boolean"
1714
- },
1715
- "out": {
1716
- "name": "out",
1717
- "summary": "Output dotenv file path.",
1718
- "default": "changes.env",
1719
- "hasDynamicHelp": false,
1720
- "multiple": false,
1721
- "type": "option"
1722
- }
1723
- },
1724
- "hasDynamicHelp": false,
1725
- "hiddenAliases": [],
1726
- "id": "simply:cicd:build:determine-package-changes",
1727
- "pluginAlias": "@simplysf/simply-cicd",
1728
- "pluginName": "@simplysf/simply-cicd",
1729
- "pluginType": "core",
1730
- "strict": true,
1731
- "summary": "Determine if any package-relevant files have changed since the last release tag.",
1732
- "enableJsonFlag": true,
1733
- "isESM": true,
1734
- "relativePath": [
1735
- "lib",
1736
- "commands",
1737
- "simply",
1738
- "cicd",
1739
- "build",
1740
- "determine-package-changes.js"
1741
- ],
1742
- "aliasPermutations": [],
1743
- "permutations": [
1744
- "simply:cicd:build:determine-package-changes",
1745
- "cicd:simply:build:determine-package-changes",
1746
- "cicd:build:simply:determine-package-changes",
1747
- "cicd:build:determine-package-changes:simply",
1748
- "simply:build:cicd:determine-package-changes",
1749
- "build:simply:cicd:determine-package-changes",
1750
- "build:cicd:simply:determine-package-changes",
1751
- "build:cicd:determine-package-changes:simply",
1752
- "simply:build:determine-package-changes:cicd",
1753
- "build:simply:determine-package-changes:cicd",
1754
- "build:determine-package-changes:simply:cicd",
1755
- "build:determine-package-changes:cicd:simply",
1756
- "simply:cicd:determine-package-changes:build",
1757
- "cicd:simply:determine-package-changes:build",
1758
- "cicd:determine-package-changes:simply:build",
1759
- "cicd:determine-package-changes:build:simply",
1760
- "simply:determine-package-changes:cicd:build",
1761
- "determine-package-changes:simply:cicd:build",
1762
- "determine-package-changes:cicd:simply:build",
1763
- "determine-package-changes:cicd:build:simply",
1764
- "simply:determine-package-changes:build:cicd",
1765
- "determine-package-changes:simply:build:cicd",
1766
- "determine-package-changes:build:simply:cicd",
1767
- "determine-package-changes:build:cicd:simply"
1768
- ]
1769
- },
1770
- "simply:cicd:build:generate-flexipage-diff": {
1771
- "aliases": [],
1772
- "args": {},
1773
- "description": "Runs the upstream `flexipage-delta` binary to diff `**/*.flexipage-meta.xml` files between `--from` and `--to`, then the reporter binary for the platform `--vcs-provider` selects — `flexipage-delta-gitlab` or `flexipage-delta-github` — to post the results back to the merge or pull request. Failures are logged, not thrown — a diff-posting step shouldn't fail the build.",
1774
- "examples": [
1775
- "<%= config.bin %> <%= command.id %> --ci-project-id 123 --ci-merge-request-iid 45 --from abc123 --to def456 --project-access-token glpat-...",
1776
- "<%= config.bin %> <%= command.id %> --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-..."
1777
- ],
1778
- "flags": {
1779
- "json": {
1780
- "description": "Format output as json.",
1781
- "helpGroup": "GLOBAL",
1782
- "name": "json",
1783
- "allowNo": false,
1784
- "type": "boolean"
1785
- },
1786
- "flags-dir": {
1787
- "helpGroup": "GLOBAL",
1788
- "name": "flags-dir",
1789
- "summary": "Import flag values from a directory.",
1790
- "hasDynamicHelp": false,
1791
- "multiple": false,
1792
- "type": "option"
1793
- },
1794
- "vcs-host": {
1795
- "env": "SIMPLY_CICD_VCS_HOST",
1796
- "name": "vcs-host",
1797
- "summary": "Hostname of the VCS instance hosting this project.",
1798
- "hasDynamicHelp": false,
1799
- "multiple": false,
1800
- "type": "option"
1801
- },
1802
- "vcs-provider": {
1803
- "env": "SIMPLY_CICD_VCS_PROVIDER",
1804
- "name": "vcs-provider",
1805
- "summary": "The VCS platform hosting this project.",
1806
- "default": "gitlab",
1807
- "hasDynamicHelp": false,
1808
- "multiple": false,
1809
- "options": [
1810
- "github",
1811
- "gitlab"
1812
- ],
1257
+ "options": [
1258
+ "github",
1259
+ "gitlab"
1260
+ ],
1813
1261
  "type": "option"
1814
1262
  },
1815
1263
  "ci-project-id": {
@@ -1917,12 +1365,12 @@
1917
1365
  },
1918
1366
  "hasDynamicHelp": false,
1919
1367
  "hiddenAliases": [],
1920
- "id": "simply:cicd:build:generate-flexipage-diff",
1368
+ "id": "simply:cicd:build:generate-flow-diff",
1921
1369
  "pluginAlias": "@simplysf/simply-cicd",
1922
1370
  "pluginName": "@simplysf/simply-cicd",
1923
1371
  "pluginType": "core",
1924
1372
  "strict": true,
1925
- "summary": "Generate a Flexipage delta between two commits and post the results to the change request.",
1373
+ "summary": "Generate a Flow delta between two commits and post the results to the change request.",
1926
1374
  "enableJsonFlag": true,
1927
1375
  "isESM": true,
1928
1376
  "relativePath": [
@@ -1931,236 +1379,42 @@
1931
1379
  "simply",
1932
1380
  "cicd",
1933
1381
  "build",
1934
- "generate-flexipage-diff.js"
1382
+ "generate-flow-diff.js"
1935
1383
  ],
1936
1384
  "aliasPermutations": [],
1937
1385
  "permutations": [
1938
- "simply:cicd:build:generate-flexipage-diff",
1939
- "cicd:simply:build:generate-flexipage-diff",
1940
- "cicd:build:simply:generate-flexipage-diff",
1941
- "cicd:build:generate-flexipage-diff:simply",
1942
- "simply:build:cicd:generate-flexipage-diff",
1943
- "build:simply:cicd:generate-flexipage-diff",
1944
- "build:cicd:simply:generate-flexipage-diff",
1945
- "build:cicd:generate-flexipage-diff:simply",
1946
- "simply:build:generate-flexipage-diff:cicd",
1947
- "build:simply:generate-flexipage-diff:cicd",
1948
- "build:generate-flexipage-diff:simply:cicd",
1949
- "build:generate-flexipage-diff:cicd:simply",
1950
- "simply:cicd:generate-flexipage-diff:build",
1951
- "cicd:simply:generate-flexipage-diff:build",
1952
- "cicd:generate-flexipage-diff:simply:build",
1953
- "cicd:generate-flexipage-diff:build:simply",
1954
- "simply:generate-flexipage-diff:cicd:build",
1955
- "generate-flexipage-diff:simply:cicd:build",
1956
- "generate-flexipage-diff:cicd:simply:build",
1957
- "generate-flexipage-diff:cicd:build:simply",
1958
- "simply:generate-flexipage-diff:build:cicd",
1959
- "generate-flexipage-diff:simply:build:cicd",
1960
- "generate-flexipage-diff:build:simply:cicd",
1961
- "generate-flexipage-diff:build:cicd:simply"
1386
+ "simply:cicd:build:generate-flow-diff",
1387
+ "cicd:simply:build:generate-flow-diff",
1388
+ "cicd:build:simply:generate-flow-diff",
1389
+ "cicd:build:generate-flow-diff:simply",
1390
+ "simply:build:cicd:generate-flow-diff",
1391
+ "build:simply:cicd:generate-flow-diff",
1392
+ "build:cicd:simply:generate-flow-diff",
1393
+ "build:cicd:generate-flow-diff:simply",
1394
+ "simply:build:generate-flow-diff:cicd",
1395
+ "build:simply:generate-flow-diff:cicd",
1396
+ "build:generate-flow-diff:simply:cicd",
1397
+ "build:generate-flow-diff:cicd:simply",
1398
+ "simply:cicd:generate-flow-diff:build",
1399
+ "cicd:simply:generate-flow-diff:build",
1400
+ "cicd:generate-flow-diff:simply:build",
1401
+ "cicd:generate-flow-diff:build:simply",
1402
+ "simply:generate-flow-diff:cicd:build",
1403
+ "generate-flow-diff:simply:cicd:build",
1404
+ "generate-flow-diff:cicd:simply:build",
1405
+ "generate-flow-diff:cicd:build:simply",
1406
+ "simply:generate-flow-diff:build:cicd",
1407
+ "generate-flow-diff:simply:build:cicd",
1408
+ "generate-flow-diff:build:simply:cicd",
1409
+ "generate-flow-diff:build:cicd:simply"
1962
1410
  ]
1963
1411
  },
1964
- "simply:cicd:build:generate-flow-diff": {
1412
+ "simply:cicd:build:install-dependencies": {
1965
1413
  "aliases": [],
1966
1414
  "args": {},
1967
- "description": "Runs the upstream `flow-delta` binary to diff `**/*.flow-meta.xml` files between `--from` and `--to`, then the reporter binary for the platform `--vcs-provider` selects — `flow-delta-gitlab` or `flow-delta-github` — to post the results back to the merge or pull request. Failures are logged, not thrown — a diff-posting step shouldn't fail the build.",
1415
+ "description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and installs its packaged dependencies.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
1968
1416
  "examples": [
1969
- "<%= config.bin %> <%= command.id %> --ci-project-id 123 --ci-merge-request-iid 45 --from abc123 --to def456 --project-access-token glpat-...",
1970
- "<%= config.bin %> <%= command.id %> --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-..."
1971
- ],
1972
- "flags": {
1973
- "json": {
1974
- "description": "Format output as json.",
1975
- "helpGroup": "GLOBAL",
1976
- "name": "json",
1977
- "allowNo": false,
1978
- "type": "boolean"
1979
- },
1980
- "flags-dir": {
1981
- "helpGroup": "GLOBAL",
1982
- "name": "flags-dir",
1983
- "summary": "Import flag values from a directory.",
1984
- "hasDynamicHelp": false,
1985
- "multiple": false,
1986
- "type": "option"
1987
- },
1988
- "vcs-host": {
1989
- "env": "SIMPLY_CICD_VCS_HOST",
1990
- "name": "vcs-host",
1991
- "summary": "Hostname of the VCS instance hosting this project.",
1992
- "hasDynamicHelp": false,
1993
- "multiple": false,
1994
- "type": "option"
1995
- },
1996
- "vcs-provider": {
1997
- "env": "SIMPLY_CICD_VCS_PROVIDER",
1998
- "name": "vcs-provider",
1999
- "summary": "The VCS platform hosting this project.",
2000
- "default": "gitlab",
2001
- "hasDynamicHelp": false,
2002
- "multiple": false,
2003
- "options": [
2004
- "github",
2005
- "gitlab"
2006
- ],
2007
- "type": "option"
2008
- },
2009
- "ci-project-id": {
2010
- "env": "SIMPLY_CICD_CI_PROJECT_ID",
2011
- "name": "ci-project-id",
2012
- "summary": "GitLab only: numeric CI project ID of the project to post the diff to.",
2013
- "hasDynamicHelp": false,
2014
- "multiple": false,
2015
- "type": "option"
2016
- },
2017
- "ci-merge-request-iid": {
2018
- "env": "SIMPLY_CICD_CI_MERGE_REQUEST_IID",
2019
- "name": "ci-merge-request-iid",
2020
- "summary": "GitLab only: internal ID of the merge request to post the diff to.",
2021
- "hasDynamicHelp": false,
2022
- "multiple": false,
2023
- "type": "option"
2024
- },
2025
- "ci-repository": {
2026
- "env": "SIMPLY_CICD_CI_REPOSITORY",
2027
- "name": "ci-repository",
2028
- "summary": "GitHub only: repository to post the diff to, as owner/repo.",
2029
- "hasDynamicHelp": false,
2030
- "multiple": false,
2031
- "type": "option"
2032
- },
2033
- "ci-pull-request-number": {
2034
- "env": "SIMPLY_CICD_CI_PULL_REQUEST_NUMBER",
2035
- "name": "ci-pull-request-number",
2036
- "summary": "GitHub only: number of the pull request to post the diff to.",
2037
- "hasDynamicHelp": false,
2038
- "multiple": false,
2039
- "type": "option"
2040
- },
2041
- "ci-run-id": {
2042
- "env": "SIMPLY_CICD_CI_RUN_ID",
2043
- "name": "ci-run-id",
2044
- "summary": "GitHub only: Actions run ID, used to build links back to the run's artifacts.",
2045
- "hasDynamicHelp": false,
2046
- "multiple": false,
2047
- "type": "option"
2048
- },
2049
- "ci-server-url": {
2050
- "env": "SIMPLY_CICD_CI_SERVER_URL",
2051
- "name": "ci-server-url",
2052
- "summary": "GitHub only: server URL, for instances other than github.com.",
2053
- "hasDynamicHelp": false,
2054
- "multiple": false,
2055
- "type": "option"
2056
- },
2057
- "ci-commit-sha": {
2058
- "env": "SIMPLY_CICD_CI_COMMIT_SHA",
2059
- "name": "ci-commit-sha",
2060
- "summary": "Commit SHA to attribute the posted diff to.",
2061
- "hasDynamicHelp": false,
2062
- "multiple": false,
2063
- "type": "option"
2064
- },
2065
- "from": {
2066
- "name": "from",
2067
- "required": true,
2068
- "summary": "Base commit SHA to diff from.",
2069
- "hasDynamicHelp": false,
2070
- "multiple": false,
2071
- "type": "option"
2072
- },
2073
- "to": {
2074
- "name": "to",
2075
- "required": true,
2076
- "summary": "Head commit SHA to diff to.",
2077
- "hasDynamicHelp": false,
2078
- "multiple": false,
2079
- "type": "option"
2080
- },
2081
- "project-access-token": {
2082
- "env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
2083
- "name": "project-access-token",
2084
- "required": true,
2085
- "summary": "Project access token used to post the diff results back to the merge request.",
2086
- "hasDynamicHelp": false,
2087
- "multiple": false,
2088
- "type": "option"
2089
- },
2090
- "out": {
2091
- "name": "out",
2092
- "summary": "Output directory or file path for the delta results.",
2093
- "hasDynamicHelp": false,
2094
- "multiple": false,
2095
- "type": "option"
2096
- },
2097
- "debug": {
2098
- "env": "SIMPLY_CICD_DEBUG",
2099
- "name": "debug",
2100
- "summary": "Enable verbose debug logging.",
2101
- "allowNo": false,
2102
- "type": "boolean"
2103
- },
2104
- "disabled": {
2105
- "env": "SIMPLY_CICD_DISABLED",
2106
- "name": "disabled",
2107
- "summary": "Skip this job entirely, logging a warning instead of running it.",
2108
- "allowNo": false,
2109
- "type": "boolean"
2110
- }
2111
- },
2112
- "hasDynamicHelp": false,
2113
- "hiddenAliases": [],
2114
- "id": "simply:cicd:build:generate-flow-diff",
2115
- "pluginAlias": "@simplysf/simply-cicd",
2116
- "pluginName": "@simplysf/simply-cicd",
2117
- "pluginType": "core",
2118
- "strict": true,
2119
- "summary": "Generate a Flow delta between two commits and post the results to the change request.",
2120
- "enableJsonFlag": true,
2121
- "isESM": true,
2122
- "relativePath": [
2123
- "lib",
2124
- "commands",
2125
- "simply",
2126
- "cicd",
2127
- "build",
2128
- "generate-flow-diff.js"
2129
- ],
2130
- "aliasPermutations": [],
2131
- "permutations": [
2132
- "simply:cicd:build:generate-flow-diff",
2133
- "cicd:simply:build:generate-flow-diff",
2134
- "cicd:build:simply:generate-flow-diff",
2135
- "cicd:build:generate-flow-diff:simply",
2136
- "simply:build:cicd:generate-flow-diff",
2137
- "build:simply:cicd:generate-flow-diff",
2138
- "build:cicd:simply:generate-flow-diff",
2139
- "build:cicd:generate-flow-diff:simply",
2140
- "simply:build:generate-flow-diff:cicd",
2141
- "build:simply:generate-flow-diff:cicd",
2142
- "build:generate-flow-diff:simply:cicd",
2143
- "build:generate-flow-diff:cicd:simply",
2144
- "simply:cicd:generate-flow-diff:build",
2145
- "cicd:simply:generate-flow-diff:build",
2146
- "cicd:generate-flow-diff:simply:build",
2147
- "cicd:generate-flow-diff:build:simply",
2148
- "simply:generate-flow-diff:cicd:build",
2149
- "generate-flow-diff:simply:cicd:build",
2150
- "generate-flow-diff:cicd:simply:build",
2151
- "generate-flow-diff:cicd:build:simply",
2152
- "simply:generate-flow-diff:build:cicd",
2153
- "generate-flow-diff:simply:build:cicd",
2154
- "generate-flow-diff:build:simply:cicd",
2155
- "generate-flow-diff:build:cicd:simply"
2156
- ]
2157
- },
2158
- "simply:cicd:build:install-dependencies": {
2159
- "aliases": [],
2160
- "args": {},
2161
- "description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and installs its packaged dependencies.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
2162
- "examples": [
2163
- "<%= config.bin %> <%= command.id %> --jwt-key-file ./server.key"
1417
+ "<%= config.bin %> <%= command.id %> --jwt-key-file ./server.key"
2164
1418
  ],
2165
1419
  "flags": {
2166
1420
  "json": {
@@ -2277,9 +1531,10 @@
2277
1531
  "simply:cicd:build:lwc-jest": {
2278
1532
  "aliases": [],
2279
1533
  "args": {},
2280
- "description": "Installs `@salesforce/sfdx-lwc-jest` and `@sa11y/jest`, then runs `sfdx-lwc-jest --coverage -- --passWithNoTests`. Failures are logged, not thrown.",
1534
+ "description": "Installs `@salesforce/sfdx-lwc-jest`, `@sa11y/jest`, and `jest-junit`, then runs `sfdx-lwc-jest --coverage -- --passWithNoTests` with the `jest-junit` reporter added to any reporters the project's own Jest config sets, writing a JUnit report to `./test-results/lwc/test-result.xml` for the pipeline to upload as an artifact. By default failures are logged, not thrown, so they don't fail the pipeline; pass `--lwc-jest-fail-on-test-failure` to make them exit non-zero.",
2281
1535
  "examples": [
2282
- "<%= config.bin %> <%= command.id %>"
1536
+ "<%= config.bin %> <%= command.id %>",
1537
+ "Fail the pipeline when a test fails:\n<%= config.bin %> <%= command.id %> --lwc-jest-fail-on-test-failure"
2283
1538
  ],
2284
1539
  "flags": {
2285
1540
  "json": {
@@ -2310,6 +1565,13 @@
2310
1565
  "summary": "Skip this job entirely, logging a warning instead of running it.",
2311
1566
  "allowNo": false,
2312
1567
  "type": "boolean"
1568
+ },
1569
+ "lwc-jest-fail-on-test-failure": {
1570
+ "env": "SIMPLY_CICD_LWC_JEST_FAIL_ON_TEST_FAILURE",
1571
+ "name": "lwc-jest-fail-on-test-failure",
1572
+ "summary": "Exit non-zero when the LWC Jest tests (or their install) fail, failing the pipeline. By default failures are only logged.",
1573
+ "allowNo": false,
1574
+ "type": "boolean"
2313
1575
  }
2314
1576
  },
2315
1577
  "hasDynamicHelp": false,
@@ -2752,6 +2014,752 @@
2752
2014
  "test-scratch:build:cicd:simply"
2753
2015
  ]
2754
2016
  },
2017
+ "simply:cicd:notify:build": {
2018
+ "aliases": [],
2019
+ "args": {},
2020
+ "description": "Run in every build job's `after_script`. Which card it posts depends on `--ci-job-status`:\n\n- `failed`: a failure card with the job, stage, branch, and pipeline, whichever build job failed.\n- `success`: a package version card, but only when the job created a package version. The card shows the new version tag, its `04t` ID, and the issue references in the commits since the previous version tag. Every other successful job sends nothing.\n- Anything else (e.g. `canceled`): nothing.\n\nThe `04t` ID comes from `--subscriber-package-version-id`, or else from the `subscriberPackageVersionId.env` file that `build create-package-version` writes to the working directory. The new version's tag is the tag at `HEAD` annotated with that ID. The previous version's tag is the nearest earlier tag in the project's version tag format (`plugins.simply.versionTagFormat` or `SIMPLY_CICD_VERSION_TAG_FORMAT`). The command fetches tags, and the full history when the clone is shallow. If a tag or the history can't be found, the card shows `N/A` instead of failing the job.",
2021
+ "examples": [
2022
+ "Post a card from a build job's after_script; it only sends one when the job failed or created a package version:\n<%= config.bin %> <%= command.id %> --ci-job-name push-scratch --ci-job-status \"$CI_JOB_STATUS\" --teams-webhook-url https://outlook.office.com/webhook/... --enabled",
2023
+ "Announce a package version with linked Jira stories:\n<%= config.bin %> <%= command.id %> --ci-job-status success --alm-base-url https://jira.example.com/browse --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
2024
+ ],
2025
+ "flags": {
2026
+ "json": {
2027
+ "description": "Format output as json.",
2028
+ "helpGroup": "GLOBAL",
2029
+ "name": "json",
2030
+ "allowNo": false,
2031
+ "type": "boolean"
2032
+ },
2033
+ "flags-dir": {
2034
+ "helpGroup": "GLOBAL",
2035
+ "name": "flags-dir",
2036
+ "summary": "Import flag values from a directory.",
2037
+ "hasDynamicHelp": false,
2038
+ "multiple": false,
2039
+ "type": "option"
2040
+ },
2041
+ "ci-commit-ref-name": {
2042
+ "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
2043
+ "name": "ci-commit-ref-name",
2044
+ "summary": "The git branch or tag ref for this pipeline run.",
2045
+ "hasDynamicHelp": false,
2046
+ "multiple": false,
2047
+ "type": "option"
2048
+ },
2049
+ "ci-job-name": {
2050
+ "env": "SIMPLY_CICD_CI_JOB_NAME",
2051
+ "name": "ci-job-name",
2052
+ "summary": "The name of the current CI job.",
2053
+ "hasDynamicHelp": false,
2054
+ "multiple": false,
2055
+ "type": "option"
2056
+ },
2057
+ "ci-job-stage": {
2058
+ "env": "SIMPLY_CICD_CI_JOB_STAGE",
2059
+ "name": "ci-job-stage",
2060
+ "summary": "The stage of the current CI job.",
2061
+ "hasDynamicHelp": false,
2062
+ "multiple": false,
2063
+ "type": "option"
2064
+ },
2065
+ "ci-job-status": {
2066
+ "env": "SIMPLY_CICD_CI_JOB_STATUS",
2067
+ "name": "ci-job-status",
2068
+ "summary": "The status of the current CI job (e.g. success, failed, canceled).",
2069
+ "hasDynamicHelp": false,
2070
+ "multiple": false,
2071
+ "type": "option"
2072
+ },
2073
+ "ci-pipeline-id": {
2074
+ "env": "SIMPLY_CICD_CI_PIPELINE_ID",
2075
+ "name": "ci-pipeline-id",
2076
+ "summary": "The ID of the current CI pipeline.",
2077
+ "hasDynamicHelp": false,
2078
+ "multiple": false,
2079
+ "type": "option"
2080
+ },
2081
+ "ci-pipeline-url": {
2082
+ "env": "SIMPLY_CICD_CI_PIPELINE_URL",
2083
+ "name": "ci-pipeline-url",
2084
+ "summary": "The URL of the current CI pipeline.",
2085
+ "hasDynamicHelp": false,
2086
+ "multiple": false,
2087
+ "type": "option"
2088
+ },
2089
+ "ci-project-title": {
2090
+ "env": "SIMPLY_CICD_CI_PROJECT_TITLE",
2091
+ "name": "ci-project-title",
2092
+ "summary": "The project title shown in the notification card's heading.",
2093
+ "hasDynamicHelp": false,
2094
+ "multiple": false,
2095
+ "type": "option"
2096
+ },
2097
+ "subscriber-package-version-id": {
2098
+ "env": "SIMPLY_CICD_SUBSCRIBER_PACKAGE_VERSION_ID",
2099
+ "name": "subscriber-package-version-id",
2100
+ "summary": "The subscriber package version ID (04t...) created by this job. Defaults to the one in subscriberPackageVersionId.env, written by build create-package-version.",
2101
+ "hasDynamicHelp": false,
2102
+ "multiple": false,
2103
+ "type": "option"
2104
+ },
2105
+ "enabled": {
2106
+ "env": "SIMPLY_CICD_ENABLED",
2107
+ "name": "enabled",
2108
+ "summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
2109
+ "allowNo": false,
2110
+ "type": "boolean"
2111
+ },
2112
+ "alm-base-url": {
2113
+ "env": "SIMPLY_CICD_ALM_BASE_URL",
2114
+ "name": "alm-base-url",
2115
+ "summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
2116
+ "hasDynamicHelp": false,
2117
+ "multiple": false,
2118
+ "type": "option"
2119
+ },
2120
+ "alm-project-key": {
2121
+ "env": "SIMPLY_CICD_ALM_PROJECT_KEY",
2122
+ "name": "alm-project-key",
2123
+ "summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
2124
+ "hasDynamicHelp": false,
2125
+ "multiple": false,
2126
+ "type": "option"
2127
+ },
2128
+ "alm-provider": {
2129
+ "env": "SIMPLY_CICD_ALM_PROVIDER",
2130
+ "name": "alm-provider",
2131
+ "summary": "The issue tracker whose reference format to look for in commit messages.",
2132
+ "default": "jira",
2133
+ "hasDynamicHelp": false,
2134
+ "multiple": false,
2135
+ "options": [
2136
+ "gitlab-issues",
2137
+ "jira"
2138
+ ],
2139
+ "type": "option"
2140
+ },
2141
+ "teams-webhook-url": {
2142
+ "name": "teams-webhook-url",
2143
+ "summary": "One or more Teams webhook URLs to send the notification to.",
2144
+ "hasDynamicHelp": false,
2145
+ "multiple": true,
2146
+ "type": "option"
2147
+ },
2148
+ "debug": {
2149
+ "env": "SIMPLY_CICD_DEBUG",
2150
+ "name": "debug",
2151
+ "summary": "Enable verbose debug logging.",
2152
+ "allowNo": false,
2153
+ "type": "boolean"
2154
+ }
2155
+ },
2156
+ "hasDynamicHelp": false,
2157
+ "hiddenAliases": [],
2158
+ "id": "simply:cicd:notify:build",
2159
+ "pluginAlias": "@simplysf/simply-cicd",
2160
+ "pluginName": "@simplysf/simply-cicd",
2161
+ "pluginType": "core",
2162
+ "strict": true,
2163
+ "summary": "Send a build job's failure, or the package version it created, to Microsoft Teams, with issue-tracker integration.",
2164
+ "enableJsonFlag": true,
2165
+ "isESM": true,
2166
+ "relativePath": [
2167
+ "lib",
2168
+ "commands",
2169
+ "simply",
2170
+ "cicd",
2171
+ "notify",
2172
+ "build.js"
2173
+ ],
2174
+ "aliasPermutations": [],
2175
+ "permutations": [
2176
+ "simply:cicd:notify:build",
2177
+ "cicd:simply:notify:build",
2178
+ "cicd:notify:simply:build",
2179
+ "cicd:notify:build:simply",
2180
+ "simply:notify:cicd:build",
2181
+ "notify:simply:cicd:build",
2182
+ "notify:cicd:simply:build",
2183
+ "notify:cicd:build:simply",
2184
+ "simply:notify:build:cicd",
2185
+ "notify:simply:build:cicd",
2186
+ "notify:build:simply:cicd",
2187
+ "notify:build:cicd:simply",
2188
+ "simply:cicd:build:notify",
2189
+ "cicd:simply:build:notify",
2190
+ "cicd:build:simply:notify",
2191
+ "cicd:build:notify:simply",
2192
+ "simply:build:cicd:notify",
2193
+ "build:simply:cicd:notify",
2194
+ "build:cicd:simply:notify",
2195
+ "build:cicd:notify:simply",
2196
+ "simply:build:notify:cicd",
2197
+ "build:simply:notify:cicd",
2198
+ "build:notify:simply:cicd",
2199
+ "build:notify:cicd:simply"
2200
+ ]
2201
+ },
2202
+ "simply:cicd:notify:happy-soup": {
2203
+ "aliases": [],
2204
+ "args": {},
2205
+ "description": "Run with `--before-script` at the start of a stage to post a \"starting\" card, and with `--after-script` at the end to post a success or failure card. With `--notify-on-completion`, intermediate stage notifications are suppressed and only the final job (`--is-final-job` combined with `--after-script`) posts a card.\n\nOn a successful `--after-script`, reads the packages upgraded by `deploy happy-soup install-packaged` from the deploy progress file, looks up the commit history between each package's previous and target version in its own origin repository, and includes any matched issue references per package in the notification.",
2206
+ "examples": [
2207
+ "<%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --teams-webhook-url https://outlook.office.com/webhook/... --enabled",
2208
+ "<%= config.bin %> <%= command.id %> --after-script --is-final-job --notify-on-completion --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
2209
+ ],
2210
+ "flags": {
2211
+ "json": {
2212
+ "description": "Format output as json.",
2213
+ "helpGroup": "GLOBAL",
2214
+ "name": "json",
2215
+ "allowNo": false,
2216
+ "type": "boolean"
2217
+ },
2218
+ "flags-dir": {
2219
+ "helpGroup": "GLOBAL",
2220
+ "name": "flags-dir",
2221
+ "summary": "Import flag values from a directory.",
2222
+ "hasDynamicHelp": false,
2223
+ "multiple": false,
2224
+ "type": "option"
2225
+ },
2226
+ "after-script": {
2227
+ "name": "after-script",
2228
+ "summary": "Run the after-stage notification logic.",
2229
+ "allowNo": false,
2230
+ "type": "boolean"
2231
+ },
2232
+ "before-script": {
2233
+ "name": "before-script",
2234
+ "summary": "Run the before-stage (starting) notification logic.",
2235
+ "allowNo": false,
2236
+ "type": "boolean"
2237
+ },
2238
+ "ci-commit-ref-name": {
2239
+ "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
2240
+ "name": "ci-commit-ref-name",
2241
+ "summary": "The git branch or tag ref for this pipeline run.",
2242
+ "hasDynamicHelp": false,
2243
+ "multiple": false,
2244
+ "type": "option"
2245
+ },
2246
+ "ci-environment-name": {
2247
+ "env": "SIMPLY_CICD_CI_ENVIRONMENT_NAME",
2248
+ "name": "ci-environment-name",
2249
+ "summary": "The name of the target CI environment.",
2250
+ "hasDynamicHelp": false,
2251
+ "multiple": false,
2252
+ "type": "option"
2253
+ },
2254
+ "ci-job-name": {
2255
+ "env": "SIMPLY_CICD_CI_JOB_NAME",
2256
+ "name": "ci-job-name",
2257
+ "summary": "The name of the current CI job.",
2258
+ "hasDynamicHelp": false,
2259
+ "multiple": false,
2260
+ "type": "option"
2261
+ },
2262
+ "ci-job-stage": {
2263
+ "env": "SIMPLY_CICD_CI_JOB_STAGE",
2264
+ "name": "ci-job-stage",
2265
+ "summary": "The stage of the current CI job.",
2266
+ "hasDynamicHelp": false,
2267
+ "multiple": false,
2268
+ "type": "option"
2269
+ },
2270
+ "ci-job-status": {
2271
+ "env": "SIMPLY_CICD_CI_JOB_STATUS",
2272
+ "name": "ci-job-status",
2273
+ "summary": "The status of the current CI job (e.g. success, failed).",
2274
+ "hasDynamicHelp": false,
2275
+ "multiple": false,
2276
+ "type": "option"
2277
+ },
2278
+ "ci-job-token": {
2279
+ "env": "SIMPLY_CICD_CI_JOB_TOKEN",
2280
+ "name": "ci-job-token",
2281
+ "summary": "The CI job token to try first when looking up an upgraded package's origin commit history. Falls back to --project-access-token if the job token can't read that repository.",
2282
+ "hasDynamicHelp": false,
2283
+ "multiple": false,
2284
+ "type": "option"
2285
+ },
2286
+ "ci-pipeline-id": {
2287
+ "env": "SIMPLY_CICD_CI_PIPELINE_ID",
2288
+ "name": "ci-pipeline-id",
2289
+ "summary": "The ID of the current CI pipeline.",
2290
+ "hasDynamicHelp": false,
2291
+ "multiple": false,
2292
+ "type": "option"
2293
+ },
2294
+ "ci-pipeline-url": {
2295
+ "env": "SIMPLY_CICD_CI_PIPELINE_URL",
2296
+ "name": "ci-pipeline-url",
2297
+ "summary": "The URL of the current CI pipeline.",
2298
+ "hasDynamicHelp": false,
2299
+ "multiple": false,
2300
+ "type": "option"
2301
+ },
2302
+ "deploy-progress-file": {
2303
+ "env": "SIMPLY_CICD_DEPLOY_PROGRESS_FILE",
2304
+ "name": "deploy-progress-file",
2305
+ "summary": "Path to the deployment progress file to read upgraded package information from.",
2306
+ "default": "DEPLOY_PROGRESS.json",
2307
+ "hasDynamicHelp": false,
2308
+ "multiple": false,
2309
+ "type": "option"
2310
+ },
2311
+ "enabled": {
2312
+ "env": "SIMPLY_CICD_ENABLED",
2313
+ "name": "enabled",
2314
+ "summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
2315
+ "allowNo": false,
2316
+ "type": "boolean"
2317
+ },
2318
+ "alm-base-url": {
2319
+ "env": "SIMPLY_CICD_ALM_BASE_URL",
2320
+ "name": "alm-base-url",
2321
+ "summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
2322
+ "hasDynamicHelp": false,
2323
+ "multiple": false,
2324
+ "type": "option"
2325
+ },
2326
+ "alm-project-key": {
2327
+ "env": "SIMPLY_CICD_ALM_PROJECT_KEY",
2328
+ "name": "alm-project-key",
2329
+ "summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
2330
+ "hasDynamicHelp": false,
2331
+ "multiple": false,
2332
+ "type": "option"
2333
+ },
2334
+ "alm-provider": {
2335
+ "env": "SIMPLY_CICD_ALM_PROVIDER",
2336
+ "name": "alm-provider",
2337
+ "summary": "The issue tracker whose reference format to look for in commit messages.",
2338
+ "default": "jira",
2339
+ "hasDynamicHelp": false,
2340
+ "multiple": false,
2341
+ "options": [
2342
+ "gitlab-issues",
2343
+ "jira"
2344
+ ],
2345
+ "type": "option"
2346
+ },
2347
+ "project-access-token": {
2348
+ "env": "SIMPLY_CICD_PROJECT_ACCESS_TOKEN",
2349
+ "name": "project-access-token",
2350
+ "summary": "A personal or project access token, used to look up an upgraded package's origin commit history when --ci-job-token isn't provided or can't read that repository.",
2351
+ "hasDynamicHelp": false,
2352
+ "multiple": false,
2353
+ "type": "option"
2354
+ },
2355
+ "teams-webhook-url": {
2356
+ "name": "teams-webhook-url",
2357
+ "summary": "One or more Teams webhook URLs to send the notification to.",
2358
+ "hasDynamicHelp": false,
2359
+ "multiple": true,
2360
+ "type": "option"
2361
+ },
2362
+ "notify-on-completion": {
2363
+ "name": "notify-on-completion",
2364
+ "summary": "Only send a notification on the final job of the pipeline, suppressing per-stage notifications.",
2365
+ "allowNo": false,
2366
+ "type": "boolean"
2367
+ },
2368
+ "is-final-job": {
2369
+ "name": "is-final-job",
2370
+ "summary": "Marks this job as the final job in the pipeline. Combined with --after-script and --notify-on-completion, this is what actually triggers the final notification.",
2371
+ "allowNo": false,
2372
+ "type": "boolean"
2373
+ },
2374
+ "debug": {
2375
+ "env": "SIMPLY_CICD_DEBUG",
2376
+ "name": "debug",
2377
+ "summary": "Enable verbose debug logging.",
2378
+ "allowNo": false,
2379
+ "type": "boolean"
2380
+ }
2381
+ },
2382
+ "hasDynamicHelp": false,
2383
+ "hiddenAliases": [],
2384
+ "id": "simply:cicd:notify:happy-soup",
2385
+ "pluginAlias": "@simplysf/simply-cicd",
2386
+ "pluginName": "@simplysf/simply-cicd",
2387
+ "pluginType": "core",
2388
+ "strict": true,
2389
+ "summary": "Send a happy-soup deployment stage notification to Microsoft Teams, with ALM story integration for upgraded packages.",
2390
+ "enableJsonFlag": true,
2391
+ "isESM": true,
2392
+ "relativePath": [
2393
+ "lib",
2394
+ "commands",
2395
+ "simply",
2396
+ "cicd",
2397
+ "notify",
2398
+ "happy-soup.js"
2399
+ ],
2400
+ "aliasPermutations": [],
2401
+ "permutations": [
2402
+ "simply:cicd:notify:happy-soup",
2403
+ "cicd:simply:notify:happy-soup",
2404
+ "cicd:notify:simply:happy-soup",
2405
+ "cicd:notify:happy-soup:simply",
2406
+ "simply:notify:cicd:happy-soup",
2407
+ "notify:simply:cicd:happy-soup",
2408
+ "notify:cicd:simply:happy-soup",
2409
+ "notify:cicd:happy-soup:simply",
2410
+ "simply:notify:happy-soup:cicd",
2411
+ "notify:simply:happy-soup:cicd",
2412
+ "notify:happy-soup:simply:cicd",
2413
+ "notify:happy-soup:cicd:simply",
2414
+ "simply:cicd:happy-soup:notify",
2415
+ "cicd:simply:happy-soup:notify",
2416
+ "cicd:happy-soup:simply:notify",
2417
+ "cicd:happy-soup:notify:simply",
2418
+ "simply:happy-soup:cicd:notify",
2419
+ "happy-soup:simply:cicd:notify",
2420
+ "happy-soup:cicd:simply:notify",
2421
+ "happy-soup:cicd:notify:simply",
2422
+ "simply:happy-soup:notify:cicd",
2423
+ "happy-soup:simply:notify:cicd",
2424
+ "happy-soup:notify:simply:cicd",
2425
+ "happy-soup:notify:cicd:simply"
2426
+ ]
2427
+ },
2428
+ "simply:cicd:notify:project": {
2429
+ "aliases": [],
2430
+ "args": {},
2431
+ "description": "Run once with `--before-script` at the start of a deployment pipeline (to record the previously installed and target package versions), and once with `--after-script` at the end (to post a success or failure card to Teams, including the tracked issues that shipped between those two versions).",
2432
+ "examples": [
2433
+ "<%= config.bin %> <%= command.id %> --before-script --ci-job-stage pre-destructive --alias my-org --enabled",
2434
+ "<%= config.bin %> <%= command.id %> --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled"
2435
+ ],
2436
+ "flags": {
2437
+ "json": {
2438
+ "description": "Format output as json.",
2439
+ "helpGroup": "GLOBAL",
2440
+ "name": "json",
2441
+ "allowNo": false,
2442
+ "type": "boolean"
2443
+ },
2444
+ "flags-dir": {
2445
+ "helpGroup": "GLOBAL",
2446
+ "name": "flags-dir",
2447
+ "summary": "Import flag values from a directory.",
2448
+ "hasDynamicHelp": false,
2449
+ "multiple": false,
2450
+ "type": "option"
2451
+ },
2452
+ "after-script": {
2453
+ "name": "after-script",
2454
+ "summary": "Run the after-deployment notification logic.",
2455
+ "allowNo": false,
2456
+ "type": "boolean"
2457
+ },
2458
+ "alias": {
2459
+ "env": "SIMPLY_CICD_ALIAS",
2460
+ "name": "alias",
2461
+ "summary": "Alias of the target Salesforce org to query for the previously installed package version. Must already be authenticated.",
2462
+ "hasDynamicHelp": false,
2463
+ "multiple": false,
2464
+ "type": "option"
2465
+ },
2466
+ "before-script": {
2467
+ "name": "before-script",
2468
+ "summary": "Run the before-deployment setup logic (resolves and records package versions).",
2469
+ "allowNo": false,
2470
+ "type": "boolean"
2471
+ },
2472
+ "ci-commit-ref-name": {
2473
+ "env": "SIMPLY_CICD_CI_COMMIT_REF_NAME",
2474
+ "name": "ci-commit-ref-name",
2475
+ "summary": "The git branch or tag ref for this pipeline run.",
2476
+ "hasDynamicHelp": false,
2477
+ "multiple": false,
2478
+ "type": "option"
2479
+ },
2480
+ "ci-environment-name": {
2481
+ "env": "SIMPLY_CICD_CI_ENVIRONMENT_NAME",
2482
+ "name": "ci-environment-name",
2483
+ "summary": "The name of the target CI environment.",
2484
+ "hasDynamicHelp": false,
2485
+ "multiple": false,
2486
+ "type": "option"
2487
+ },
2488
+ "ci-job-name": {
2489
+ "env": "SIMPLY_CICD_CI_JOB_NAME",
2490
+ "name": "ci-job-name",
2491
+ "summary": "The name of the current CI job.",
2492
+ "hasDynamicHelp": false,
2493
+ "multiple": false,
2494
+ "type": "option"
2495
+ },
2496
+ "ci-job-stage": {
2497
+ "env": "SIMPLY_CICD_CI_JOB_STAGE",
2498
+ "name": "ci-job-stage",
2499
+ "summary": "The stage of the current CI job (e.g. pre-destructive, post-destructive).",
2500
+ "hasDynamicHelp": false,
2501
+ "multiple": false,
2502
+ "type": "option"
2503
+ },
2504
+ "ci-job-status": {
2505
+ "env": "SIMPLY_CICD_CI_JOB_STATUS",
2506
+ "name": "ci-job-status",
2507
+ "summary": "The status of the current CI job (e.g. success, failed, canceled).",
2508
+ "hasDynamicHelp": false,
2509
+ "multiple": false,
2510
+ "type": "option"
2511
+ },
2512
+ "ci-pipeline-id": {
2513
+ "env": "SIMPLY_CICD_CI_PIPELINE_ID",
2514
+ "name": "ci-pipeline-id",
2515
+ "summary": "The ID of the current CI pipeline.",
2516
+ "hasDynamicHelp": false,
2517
+ "multiple": false,
2518
+ "type": "option"
2519
+ },
2520
+ "ci-pipeline-url": {
2521
+ "env": "SIMPLY_CICD_CI_PIPELINE_URL",
2522
+ "name": "ci-pipeline-url",
2523
+ "summary": "The URL of the current CI pipeline.",
2524
+ "hasDynamicHelp": false,
2525
+ "multiple": false,
2526
+ "type": "option"
2527
+ },
2528
+ "ci-project-title": {
2529
+ "env": "SIMPLY_CICD_CI_PROJECT_TITLE",
2530
+ "name": "ci-project-title",
2531
+ "summary": "The project title shown in the notification card's heading.",
2532
+ "hasDynamicHelp": false,
2533
+ "multiple": false,
2534
+ "type": "option"
2535
+ },
2536
+ "packaging-devhub": {
2537
+ "env": "SIMPLY_CICD_PACKAGING_DEVHUB",
2538
+ "name": "packaging-devhub",
2539
+ "summary": "Alias of the Dev Hub used to look up target package version information. Must already be authenticated.",
2540
+ "hasDynamicHelp": false,
2541
+ "multiple": false,
2542
+ "type": "option"
2543
+ },
2544
+ "enabled": {
2545
+ "env": "SIMPLY_CICD_ENABLED",
2546
+ "name": "enabled",
2547
+ "summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
2548
+ "allowNo": false,
2549
+ "type": "boolean"
2550
+ },
2551
+ "alm-base-url": {
2552
+ "env": "SIMPLY_CICD_ALM_BASE_URL",
2553
+ "name": "alm-base-url",
2554
+ "summary": "Base URL that an issue reference is appended to, e.g. https://jira.example.com/browse for Jira or https://gitlab.com/group/project/-/issues for GitLab Issues. References are shown without links if not provided.",
2555
+ "hasDynamicHelp": false,
2556
+ "multiple": false,
2557
+ "type": "option"
2558
+ },
2559
+ "alm-project-key": {
2560
+ "env": "SIMPLY_CICD_ALM_PROJECT_KEY",
2561
+ "name": "alm-project-key",
2562
+ "summary": "Fallback project key(s) used to search commit messages for issue references, if none are configured in .sfdevrc.json. Only used by prefix-keyed trackers such as Jira.",
2563
+ "hasDynamicHelp": false,
2564
+ "multiple": false,
2565
+ "type": "option"
2566
+ },
2567
+ "alm-provider": {
2568
+ "env": "SIMPLY_CICD_ALM_PROVIDER",
2569
+ "name": "alm-provider",
2570
+ "summary": "The issue tracker whose reference format to look for in commit messages.",
2571
+ "default": "jira",
2572
+ "hasDynamicHelp": false,
2573
+ "multiple": false,
2574
+ "options": [
2575
+ "gitlab-issues",
2576
+ "jira"
2577
+ ],
2578
+ "type": "option"
2579
+ },
2580
+ "prev-installed-package-version": {
2581
+ "name": "prev-installed-package-version",
2582
+ "summary": "The previously installed package version. Only needed if re-running --after-script without having run --before-script first in the same job.",
2583
+ "hasDynamicHelp": false,
2584
+ "multiple": false,
2585
+ "type": "option"
2586
+ },
2587
+ "subscriber-package-version-id": {
2588
+ "name": "subscriber-package-version-id",
2589
+ "summary": "The subscriber package version ID (04t...) being deployed, used to resolve the target package version from the packaging DevHub.",
2590
+ "hasDynamicHelp": false,
2591
+ "multiple": false,
2592
+ "type": "option"
2593
+ },
2594
+ "target-package-version": {
2595
+ "name": "target-package-version",
2596
+ "summary": "The target package version. Only needed if re-running --after-script without having run --before-script first in the same job.",
2597
+ "hasDynamicHelp": false,
2598
+ "multiple": false,
2599
+ "type": "option"
2600
+ },
2601
+ "teams-webhook-url": {
2602
+ "name": "teams-webhook-url",
2603
+ "summary": "One or more Teams webhook URLs to send the notification to.",
2604
+ "hasDynamicHelp": false,
2605
+ "multiple": true,
2606
+ "type": "option"
2607
+ },
2608
+ "debug": {
2609
+ "env": "SIMPLY_CICD_DEBUG",
2610
+ "name": "debug",
2611
+ "summary": "Enable verbose debug logging.",
2612
+ "allowNo": false,
2613
+ "type": "boolean"
2614
+ }
2615
+ },
2616
+ "hasDynamicHelp": false,
2617
+ "hiddenAliases": [],
2618
+ "id": "simply:cicd:notify:project",
2619
+ "pluginAlias": "@simplysf/simply-cicd",
2620
+ "pluginName": "@simplysf/simply-cicd",
2621
+ "pluginType": "core",
2622
+ "strict": true,
2623
+ "summary": "Send a project deployment notification to Microsoft Teams, with issue-tracker integration.",
2624
+ "enableJsonFlag": true,
2625
+ "isESM": true,
2626
+ "relativePath": [
2627
+ "lib",
2628
+ "commands",
2629
+ "simply",
2630
+ "cicd",
2631
+ "notify",
2632
+ "project.js"
2633
+ ],
2634
+ "aliasPermutations": [],
2635
+ "permutations": [
2636
+ "simply:cicd:notify:project",
2637
+ "cicd:simply:notify:project",
2638
+ "cicd:notify:simply:project",
2639
+ "cicd:notify:project:simply",
2640
+ "simply:notify:cicd:project",
2641
+ "notify:simply:cicd:project",
2642
+ "notify:cicd:simply:project",
2643
+ "notify:cicd:project:simply",
2644
+ "simply:notify:project:cicd",
2645
+ "notify:simply:project:cicd",
2646
+ "notify:project:simply:cicd",
2647
+ "notify:project:cicd:simply",
2648
+ "simply:cicd:project:notify",
2649
+ "cicd:simply:project:notify",
2650
+ "cicd:project:simply:notify",
2651
+ "cicd:project:notify:simply",
2652
+ "simply:project:cicd:notify",
2653
+ "project:simply:cicd:notify",
2654
+ "project:cicd:simply:notify",
2655
+ "project:cicd:notify:simply",
2656
+ "simply:project:notify:cicd",
2657
+ "project:simply:notify:cicd",
2658
+ "project:notify:simply:cicd",
2659
+ "project:notify:cicd:simply"
2660
+ ]
2661
+ },
2662
+ "simply:cicd:notify:teams": {
2663
+ "aliases": [],
2664
+ "args": {},
2665
+ "description": "Posts a payload as-is to one or more Microsoft Teams incoming webhook URLs. Use this for custom notifications that don't fit the built-in `notify project`, `notify happy-soup`, or `notify build` card templates.",
2666
+ "examples": [
2667
+ "<%= config.bin %> <%= command.id %> --payload '{\"text\":\"Deployment complete\"}' --webhook-url https://outlook.office.com/webhook/... --enabled"
2668
+ ],
2669
+ "flags": {
2670
+ "json": {
2671
+ "description": "Format output as json.",
2672
+ "helpGroup": "GLOBAL",
2673
+ "name": "json",
2674
+ "allowNo": false,
2675
+ "type": "boolean"
2676
+ },
2677
+ "flags-dir": {
2678
+ "helpGroup": "GLOBAL",
2679
+ "name": "flags-dir",
2680
+ "summary": "Import flag values from a directory.",
2681
+ "hasDynamicHelp": false,
2682
+ "multiple": false,
2683
+ "type": "option"
2684
+ },
2685
+ "payload": {
2686
+ "name": "payload",
2687
+ "required": true,
2688
+ "summary": "The JSON payload to send to Teams, as a serialized string.",
2689
+ "hasDynamicHelp": false,
2690
+ "multiple": false,
2691
+ "type": "option"
2692
+ },
2693
+ "webhook-url": {
2694
+ "env": "SIMPLY_CICD_WEBHOOK_URL",
2695
+ "name": "webhook-url",
2696
+ "required": true,
2697
+ "summary": "The Teams webhook URL to send the payload to.",
2698
+ "hasDynamicHelp": false,
2699
+ "multiple": false,
2700
+ "type": "option"
2701
+ },
2702
+ "enabled": {
2703
+ "env": "SIMPLY_CICD_ENABLED",
2704
+ "name": "enabled",
2705
+ "summary": "Whether the notification is actually sent. Defaults to false so pipelines can gate this behind their own condition.",
2706
+ "allowNo": false,
2707
+ "type": "boolean"
2708
+ },
2709
+ "debug": {
2710
+ "env": "SIMPLY_CICD_DEBUG",
2711
+ "name": "debug",
2712
+ "summary": "Enable verbose debug logging.",
2713
+ "allowNo": false,
2714
+ "type": "boolean"
2715
+ }
2716
+ },
2717
+ "hasDynamicHelp": false,
2718
+ "hiddenAliases": [],
2719
+ "id": "simply:cicd:notify:teams",
2720
+ "pluginAlias": "@simplysf/simply-cicd",
2721
+ "pluginName": "@simplysf/simply-cicd",
2722
+ "pluginType": "core",
2723
+ "strict": true,
2724
+ "summary": "Send a serialized JSON payload to a Microsoft Teams webhook.",
2725
+ "enableJsonFlag": true,
2726
+ "isESM": true,
2727
+ "relativePath": [
2728
+ "lib",
2729
+ "commands",
2730
+ "simply",
2731
+ "cicd",
2732
+ "notify",
2733
+ "teams.js"
2734
+ ],
2735
+ "aliasPermutations": [],
2736
+ "permutations": [
2737
+ "simply:cicd:notify:teams",
2738
+ "cicd:simply:notify:teams",
2739
+ "cicd:notify:simply:teams",
2740
+ "cicd:notify:teams:simply",
2741
+ "simply:notify:cicd:teams",
2742
+ "notify:simply:cicd:teams",
2743
+ "notify:cicd:simply:teams",
2744
+ "notify:cicd:teams:simply",
2745
+ "simply:notify:teams:cicd",
2746
+ "notify:simply:teams:cicd",
2747
+ "notify:teams:simply:cicd",
2748
+ "notify:teams:cicd:simply",
2749
+ "simply:cicd:teams:notify",
2750
+ "cicd:simply:teams:notify",
2751
+ "cicd:teams:simply:notify",
2752
+ "cicd:teams:notify:simply",
2753
+ "simply:teams:cicd:notify",
2754
+ "teams:simply:cicd:notify",
2755
+ "teams:cicd:simply:notify",
2756
+ "teams:cicd:notify:simply",
2757
+ "simply:teams:notify:cicd",
2758
+ "teams:simply:notify:cicd",
2759
+ "teams:notify:simply:cicd",
2760
+ "teams:notify:cicd:simply"
2761
+ ]
2762
+ },
2755
2763
  "simply:cicd:deploy:happy-soup:deploy-unpackaged": {
2756
2764
  "aliases": [],
2757
2765
  "args": {},
@@ -6704,5 +6712,5 @@
6704
6712
  ]
6705
6713
  }
6706
6714
  },
6707
- "version": "0.16.0"
6715
+ "version": "0.17.0"
6708
6716
  }