@synap-core/workspace-templates 0.76.0 → 0.77.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.
- package/dist/index.js +219 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__fixtures__/dev-facts.merged.json +87 -0
- package/src/builder.yaml +80 -0
- package/src/content-os.relations.template.test.ts +83 -0
- package/src/content-os.yaml +66 -0
- package/src/dev-flow-change.template.test.ts +129 -0
- package/src/templates.ts +219 -0
package/dist/index.js
CHANGED
|
@@ -6149,6 +6149,7 @@ var DATA = {
|
|
|
6149
6149
|
"label": "App",
|
|
6150
6150
|
"valueType": "entity_id",
|
|
6151
6151
|
"targetProfileSlug": "devplane_app",
|
|
6152
|
+
"relation": "belongs_to",
|
|
6152
6153
|
"inputType": "entity_select",
|
|
6153
6154
|
"description": "The app this design is for (one devplane_app, filed into the design's project). The Design app lists an app's designs by it; target-surface stays the screen's name."
|
|
6154
6155
|
},
|
|
@@ -6216,6 +6217,7 @@ var DATA = {
|
|
|
6216
6217
|
"label": "Screenshot",
|
|
6217
6218
|
"valueType": "entity_id",
|
|
6218
6219
|
"targetProfileSlug": "file",
|
|
6220
|
+
"relation": "references",
|
|
6219
6221
|
"inputType": "entity_select",
|
|
6220
6222
|
"description": "A render of the design, for review at a glance."
|
|
6221
6223
|
},
|
|
@@ -6365,6 +6367,7 @@ var DATA = {
|
|
|
6365
6367
|
"label": "Screenshot",
|
|
6366
6368
|
"valueType": "entity_id",
|
|
6367
6369
|
"targetProfileSlug": "file",
|
|
6370
|
+
"relation": "references",
|
|
6368
6371
|
"inputType": "entity_select",
|
|
6369
6372
|
"description": "A render of its main story, for review at a glance."
|
|
6370
6373
|
},
|
|
@@ -6394,6 +6397,7 @@ var DATA = {
|
|
|
6394
6397
|
"label": "App",
|
|
6395
6398
|
"valueType": "entity_id",
|
|
6396
6399
|
"targetProfileSlug": "devplane_app",
|
|
6400
|
+
"relation": "belongs_to",
|
|
6397
6401
|
"inputType": "entity_select",
|
|
6398
6402
|
"description": "The app (devplane_app) whose Storybook it comes from."
|
|
6399
6403
|
},
|
|
@@ -10434,6 +10438,133 @@ var DATA = {
|
|
|
10434
10438
|
}
|
|
10435
10439
|
]
|
|
10436
10440
|
}
|
|
10441
|
+
},
|
|
10442
|
+
{
|
|
10443
|
+
"key": "merged-pull-request-settles-change",
|
|
10444
|
+
"name": "A merged pull request settles its change",
|
|
10445
|
+
"description": "A dev.pr_merged fact into the default branch moves the pull request's change to Merged when GitHub's own event did not: a change already Merged, or a pull request with no change, moves nothing.",
|
|
10446
|
+
"triggerType": "event",
|
|
10447
|
+
"triggerConfig": {
|
|
10448
|
+
"eventPattern": "dev.pr_merged"
|
|
10449
|
+
},
|
|
10450
|
+
"status": "active",
|
|
10451
|
+
"flow": {
|
|
10452
|
+
"nodes": [
|
|
10453
|
+
{
|
|
10454
|
+
"id": "t",
|
|
10455
|
+
"type": "trigger",
|
|
10456
|
+
"position": {
|
|
10457
|
+
"x": 0,
|
|
10458
|
+
"y": 0
|
|
10459
|
+
},
|
|
10460
|
+
"data": {
|
|
10461
|
+
"label": "A pull request merged",
|
|
10462
|
+
"triggerType": "event",
|
|
10463
|
+
"config": {
|
|
10464
|
+
"eventPattern": "dev.pr_merged"
|
|
10465
|
+
}
|
|
10466
|
+
}
|
|
10467
|
+
},
|
|
10468
|
+
{
|
|
10469
|
+
"id": "into-default",
|
|
10470
|
+
"type": "condition",
|
|
10471
|
+
"position": {
|
|
10472
|
+
"x": 0,
|
|
10473
|
+
"y": 120
|
|
10474
|
+
},
|
|
10475
|
+
"data": {
|
|
10476
|
+
"label": "It merged into the default branch",
|
|
10477
|
+
"expression": 'trigger.payload.data.intoDefault == "true"'
|
|
10478
|
+
}
|
|
10479
|
+
},
|
|
10480
|
+
{
|
|
10481
|
+
"id": "find",
|
|
10482
|
+
"type": "query",
|
|
10483
|
+
"position": {
|
|
10484
|
+
"x": 0,
|
|
10485
|
+
"y": 240
|
|
10486
|
+
},
|
|
10487
|
+
"data": {
|
|
10488
|
+
"label": "Its change",
|
|
10489
|
+
"profileSlug": "change",
|
|
10490
|
+
"limit": 1,
|
|
10491
|
+
"filter": '{"prRef": "{{trigger.payload.data.repo}}#{{trigger.payload.data.number}}"}'
|
|
10492
|
+
}
|
|
10493
|
+
},
|
|
10494
|
+
{
|
|
10495
|
+
"id": "has-change",
|
|
10496
|
+
"type": "condition",
|
|
10497
|
+
"position": {
|
|
10498
|
+
"x": 0,
|
|
10499
|
+
"y": 360
|
|
10500
|
+
},
|
|
10501
|
+
"data": {
|
|
10502
|
+
"label": "It has a change",
|
|
10503
|
+
"expression": "steps.find.output.count >= 1"
|
|
10504
|
+
}
|
|
10505
|
+
},
|
|
10506
|
+
{
|
|
10507
|
+
"id": "not-merged",
|
|
10508
|
+
"type": "condition",
|
|
10509
|
+
"position": {
|
|
10510
|
+
"x": 0,
|
|
10511
|
+
"y": 480
|
|
10512
|
+
},
|
|
10513
|
+
"data": {
|
|
10514
|
+
"label": "Its change is not Merged yet",
|
|
10515
|
+
"expression": 'steps.find.output.entities[0].properties.changeStatus != "merged"'
|
|
10516
|
+
}
|
|
10517
|
+
},
|
|
10518
|
+
{
|
|
10519
|
+
"id": "settle",
|
|
10520
|
+
"type": "output",
|
|
10521
|
+
"position": {
|
|
10522
|
+
"x": 0,
|
|
10523
|
+
"y": 600
|
|
10524
|
+
},
|
|
10525
|
+
"data": {
|
|
10526
|
+
"label": "The change is Merged",
|
|
10527
|
+
"outputType": "entity_update",
|
|
10528
|
+
"config": {
|
|
10529
|
+
"entityId": "{{steps.find.output.entities[0].id}}",
|
|
10530
|
+
"properties": {
|
|
10531
|
+
"changeStatus": "merged"
|
|
10532
|
+
}
|
|
10533
|
+
}
|
|
10534
|
+
}
|
|
10535
|
+
}
|
|
10536
|
+
],
|
|
10537
|
+
"edges": [
|
|
10538
|
+
{
|
|
10539
|
+
"id": "t--into-default",
|
|
10540
|
+
"source": "t",
|
|
10541
|
+
"target": "into-default"
|
|
10542
|
+
},
|
|
10543
|
+
{
|
|
10544
|
+
"id": "into-default--find",
|
|
10545
|
+
"source": "into-default",
|
|
10546
|
+
"target": "find",
|
|
10547
|
+
"sourceHandle": "yes"
|
|
10548
|
+
},
|
|
10549
|
+
{
|
|
10550
|
+
"id": "find--has-change",
|
|
10551
|
+
"source": "find",
|
|
10552
|
+
"target": "has-change"
|
|
10553
|
+
},
|
|
10554
|
+
{
|
|
10555
|
+
"id": "has-change--not-merged",
|
|
10556
|
+
"source": "has-change",
|
|
10557
|
+
"target": "not-merged",
|
|
10558
|
+
"sourceHandle": "yes"
|
|
10559
|
+
},
|
|
10560
|
+
{
|
|
10561
|
+
"id": "not-merged--settle",
|
|
10562
|
+
"source": "not-merged",
|
|
10563
|
+
"target": "settle",
|
|
10564
|
+
"sourceHandle": "yes"
|
|
10565
|
+
}
|
|
10566
|
+
]
|
|
10567
|
+
}
|
|
10437
10568
|
}
|
|
10438
10569
|
],
|
|
10439
10570
|
"skills": [
|
|
@@ -12515,6 +12646,7 @@ var DATA = {
|
|
|
12515
12646
|
"label": "Sponsor",
|
|
12516
12647
|
"valueType": "entity_id",
|
|
12517
12648
|
"targetProfileSlug": "sponsor",
|
|
12649
|
+
"relation": "sponsored_by",
|
|
12518
12650
|
"inputType": "entity_select"
|
|
12519
12651
|
},
|
|
12520
12652
|
{
|
|
@@ -12522,6 +12654,7 @@ var DATA = {
|
|
|
12522
12654
|
"label": "Journey Stage",
|
|
12523
12655
|
"valueType": "entity_id",
|
|
12524
12656
|
"targetProfileSlug": "journey-stage",
|
|
12657
|
+
"relation": "at_journey_stage",
|
|
12525
12658
|
"inputType": "entity_select"
|
|
12526
12659
|
},
|
|
12527
12660
|
{
|
|
@@ -12544,6 +12677,7 @@ var DATA = {
|
|
|
12544
12677
|
"label": "Offer",
|
|
12545
12678
|
"valueType": "entity_id",
|
|
12546
12679
|
"targetProfileSlug": "offer",
|
|
12680
|
+
"relation": "teaches_toward",
|
|
12547
12681
|
"inputType": "entity_select"
|
|
12548
12682
|
},
|
|
12549
12683
|
{
|
|
@@ -12594,6 +12728,7 @@ var DATA = {
|
|
|
12594
12728
|
"label": "Repurposed From",
|
|
12595
12729
|
"valueType": "entity_id",
|
|
12596
12730
|
"targetProfileSlug": "post",
|
|
12731
|
+
"relation": "derived_from",
|
|
12597
12732
|
"inputType": "entity_select"
|
|
12598
12733
|
},
|
|
12599
12734
|
{
|
|
@@ -12810,6 +12945,7 @@ var DATA = {
|
|
|
12810
12945
|
"label": "Journey Stage",
|
|
12811
12946
|
"valueType": "entity_id",
|
|
12812
12947
|
"targetProfileSlug": "journey-stage",
|
|
12948
|
+
"relation": "at_journey_stage",
|
|
12813
12949
|
"inputType": "entity_select"
|
|
12814
12950
|
},
|
|
12815
12951
|
{
|
|
@@ -12886,6 +13022,7 @@ var DATA = {
|
|
|
12886
13022
|
"label": "Audience",
|
|
12887
13023
|
"valueType": "entity_id",
|
|
12888
13024
|
"targetProfileSlug": "audience",
|
|
13025
|
+
"relation": "targets",
|
|
12889
13026
|
"inputType": "entity_select"
|
|
12890
13027
|
},
|
|
12891
13028
|
{
|
|
@@ -12979,6 +13116,7 @@ var DATA = {
|
|
|
12979
13116
|
"label": "Audience",
|
|
12980
13117
|
"valueType": "entity_id",
|
|
12981
13118
|
"targetProfileSlug": "audience",
|
|
13119
|
+
"relation": "targets",
|
|
12982
13120
|
"inputType": "entity_select"
|
|
12983
13121
|
},
|
|
12984
13122
|
{
|
|
@@ -13057,6 +13195,7 @@ var DATA = {
|
|
|
13057
13195
|
"label": "Pillar",
|
|
13058
13196
|
"valueType": "entity_id",
|
|
13059
13197
|
"targetProfileSlug": "pillar",
|
|
13198
|
+
"relation": "belongs_to_pillar",
|
|
13060
13199
|
"inputType": "entity_select"
|
|
13061
13200
|
}
|
|
13062
13201
|
]
|
|
@@ -13317,6 +13456,7 @@ var DATA = {
|
|
|
13317
13456
|
"label": "Sponsor",
|
|
13318
13457
|
"valueType": "entity_id",
|
|
13319
13458
|
"targetProfileSlug": "sponsor",
|
|
13459
|
+
"relation": "sponsored_by",
|
|
13320
13460
|
"inputType": "entity_select"
|
|
13321
13461
|
},
|
|
13322
13462
|
{
|
|
@@ -13324,6 +13464,7 @@ var DATA = {
|
|
|
13324
13464
|
"label": "Campaign",
|
|
13325
13465
|
"valueType": "entity_id",
|
|
13326
13466
|
"targetProfileSlug": "campaign",
|
|
13467
|
+
"relation": "part_of_campaign",
|
|
13327
13468
|
"inputType": "entity_select"
|
|
13328
13469
|
},
|
|
13329
13470
|
{
|
|
@@ -13331,6 +13472,7 @@ var DATA = {
|
|
|
13331
13472
|
"label": "Primary Pillar",
|
|
13332
13473
|
"valueType": "entity_id",
|
|
13333
13474
|
"targetProfileSlug": "pillar",
|
|
13475
|
+
"relation": "belongs_to_pillar",
|
|
13334
13476
|
"inputType": "entity_select"
|
|
13335
13477
|
},
|
|
13336
13478
|
{
|
|
@@ -13600,6 +13742,7 @@ var DATA = {
|
|
|
13600
13742
|
"label": "Audience",
|
|
13601
13743
|
"valueType": "entity_id",
|
|
13602
13744
|
"targetProfileSlug": "audience",
|
|
13745
|
+
"relation": "affects",
|
|
13603
13746
|
"inputType": "entity_select"
|
|
13604
13747
|
},
|
|
13605
13748
|
{
|
|
@@ -13721,6 +13864,7 @@ var DATA = {
|
|
|
13721
13864
|
"label": "Audience",
|
|
13722
13865
|
"valueType": "entity_id",
|
|
13723
13866
|
"targetProfileSlug": "audience",
|
|
13867
|
+
"relation": "targets",
|
|
13724
13868
|
"inputType": "entity_select"
|
|
13725
13869
|
},
|
|
13726
13870
|
{
|
|
@@ -13923,6 +14067,7 @@ var DATA = {
|
|
|
13923
14067
|
"label": "Template",
|
|
13924
14068
|
"valueType": "entity_id",
|
|
13925
14069
|
"targetProfileSlug": "brand-template",
|
|
14070
|
+
"relation": "uses",
|
|
13926
14071
|
"inputType": "entity_select",
|
|
13927
14072
|
"description": "The reusable brand-template shell this started from."
|
|
13928
14073
|
},
|
|
@@ -14103,6 +14248,7 @@ var DATA = {
|
|
|
14103
14248
|
"label": "Cut from take",
|
|
14104
14249
|
"valueType": "entity_id",
|
|
14105
14250
|
"targetProfileSlug": "content-asset",
|
|
14251
|
+
"relation": "derived_from",
|
|
14106
14252
|
"inputType": "entity_select"
|
|
14107
14253
|
},
|
|
14108
14254
|
{
|
|
@@ -14203,6 +14349,7 @@ var DATA = {
|
|
|
14203
14349
|
"label": "Output",
|
|
14204
14350
|
"valueType": "entity_id",
|
|
14205
14351
|
"targetProfileSlug": "file",
|
|
14352
|
+
"relation": "references",
|
|
14206
14353
|
"inputType": "entity_select"
|
|
14207
14354
|
},
|
|
14208
14355
|
{
|
|
@@ -14582,6 +14729,78 @@ var DATA = {
|
|
|
14582
14729
|
}
|
|
14583
14730
|
},
|
|
14584
14731
|
"entityLinks": [
|
|
14732
|
+
{
|
|
14733
|
+
"sourceProfileSlug": "idea",
|
|
14734
|
+
"targetProfileSlug": "journey-stage",
|
|
14735
|
+
"type": "at_journey_stage",
|
|
14736
|
+
"label": "Journey Stage"
|
|
14737
|
+
},
|
|
14738
|
+
{
|
|
14739
|
+
"sourceProfileSlug": "pillar",
|
|
14740
|
+
"targetProfileSlug": "audience",
|
|
14741
|
+
"type": "targets",
|
|
14742
|
+
"label": "Audience"
|
|
14743
|
+
},
|
|
14744
|
+
{
|
|
14745
|
+
"sourceProfileSlug": "journey-stage",
|
|
14746
|
+
"targetProfileSlug": "audience",
|
|
14747
|
+
"type": "targets",
|
|
14748
|
+
"label": "Audience"
|
|
14749
|
+
},
|
|
14750
|
+
{
|
|
14751
|
+
"sourceProfileSlug": "series",
|
|
14752
|
+
"targetProfileSlug": "pillar",
|
|
14753
|
+
"type": "belongs_to_pillar",
|
|
14754
|
+
"label": "Pillar"
|
|
14755
|
+
},
|
|
14756
|
+
{
|
|
14757
|
+
"sourceProfileSlug": "newsletter",
|
|
14758
|
+
"targetProfileSlug": "sponsor",
|
|
14759
|
+
"type": "sponsored_by",
|
|
14760
|
+
"label": "Sponsor"
|
|
14761
|
+
},
|
|
14762
|
+
{
|
|
14763
|
+
"sourceProfileSlug": "newsletter",
|
|
14764
|
+
"targetProfileSlug": "campaign",
|
|
14765
|
+
"type": "part_of_campaign",
|
|
14766
|
+
"label": "Campaign"
|
|
14767
|
+
},
|
|
14768
|
+
{
|
|
14769
|
+
"sourceProfileSlug": "newsletter",
|
|
14770
|
+
"targetProfileSlug": "pillar",
|
|
14771
|
+
"type": "belongs_to_pillar",
|
|
14772
|
+
"label": "Pillar"
|
|
14773
|
+
},
|
|
14774
|
+
{
|
|
14775
|
+
"sourceProfileSlug": "offer",
|
|
14776
|
+
"targetProfileSlug": "audience",
|
|
14777
|
+
"type": "targets",
|
|
14778
|
+
"label": "Audience"
|
|
14779
|
+
},
|
|
14780
|
+
{
|
|
14781
|
+
"sourceProfileSlug": "content-composition",
|
|
14782
|
+
"targetProfileSlug": "brand-template",
|
|
14783
|
+
"type": "uses",
|
|
14784
|
+
"label": "Template"
|
|
14785
|
+
},
|
|
14786
|
+
{
|
|
14787
|
+
"sourceProfileSlug": "content-asset",
|
|
14788
|
+
"targetProfileSlug": "content-asset",
|
|
14789
|
+
"type": "derived_from",
|
|
14790
|
+
"label": "Taken from"
|
|
14791
|
+
},
|
|
14792
|
+
{
|
|
14793
|
+
"sourceProfileSlug": "pain-point",
|
|
14794
|
+
"targetProfileSlug": "audience",
|
|
14795
|
+
"type": "affects",
|
|
14796
|
+
"label": "Audience"
|
|
14797
|
+
},
|
|
14798
|
+
{
|
|
14799
|
+
"sourceProfileSlug": "render-job",
|
|
14800
|
+
"targetProfileSlug": "file",
|
|
14801
|
+
"type": "references",
|
|
14802
|
+
"label": "Output file"
|
|
14803
|
+
},
|
|
14585
14804
|
{
|
|
14586
14805
|
"sourceProfileSlug": "post",
|
|
14587
14806
|
"targetProfileSlug": "campaign",
|