@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/src/templates.ts
CHANGED
|
@@ -6081,6 +6081,7 @@ const DATA = {
|
|
|
6081
6081
|
"label": "App",
|
|
6082
6082
|
"valueType": "entity_id",
|
|
6083
6083
|
"targetProfileSlug": "devplane_app",
|
|
6084
|
+
"relation": "belongs_to",
|
|
6084
6085
|
"inputType": "entity_select",
|
|
6085
6086
|
"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."
|
|
6086
6087
|
},
|
|
@@ -6148,6 +6149,7 @@ const DATA = {
|
|
|
6148
6149
|
"label": "Screenshot",
|
|
6149
6150
|
"valueType": "entity_id",
|
|
6150
6151
|
"targetProfileSlug": "file",
|
|
6152
|
+
"relation": "references",
|
|
6151
6153
|
"inputType": "entity_select",
|
|
6152
6154
|
"description": "A render of the design, for review at a glance."
|
|
6153
6155
|
},
|
|
@@ -6297,6 +6299,7 @@ const DATA = {
|
|
|
6297
6299
|
"label": "Screenshot",
|
|
6298
6300
|
"valueType": "entity_id",
|
|
6299
6301
|
"targetProfileSlug": "file",
|
|
6302
|
+
"relation": "references",
|
|
6300
6303
|
"inputType": "entity_select",
|
|
6301
6304
|
"description": "A render of its main story, for review at a glance."
|
|
6302
6305
|
},
|
|
@@ -6326,6 +6329,7 @@ const DATA = {
|
|
|
6326
6329
|
"label": "App",
|
|
6327
6330
|
"valueType": "entity_id",
|
|
6328
6331
|
"targetProfileSlug": "devplane_app",
|
|
6332
|
+
"relation": "belongs_to",
|
|
6329
6333
|
"inputType": "entity_select",
|
|
6330
6334
|
"description": "The app (devplane_app) whose Storybook it comes from."
|
|
6331
6335
|
},
|
|
@@ -10366,6 +10370,133 @@ const DATA = {
|
|
|
10366
10370
|
}
|
|
10367
10371
|
]
|
|
10368
10372
|
}
|
|
10373
|
+
},
|
|
10374
|
+
{
|
|
10375
|
+
"key": "merged-pull-request-settles-change",
|
|
10376
|
+
"name": "A merged pull request settles its change",
|
|
10377
|
+
"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.",
|
|
10378
|
+
"triggerType": "event",
|
|
10379
|
+
"triggerConfig": {
|
|
10380
|
+
"eventPattern": "dev.pr_merged"
|
|
10381
|
+
},
|
|
10382
|
+
"status": "active",
|
|
10383
|
+
"flow": {
|
|
10384
|
+
"nodes": [
|
|
10385
|
+
{
|
|
10386
|
+
"id": "t",
|
|
10387
|
+
"type": "trigger",
|
|
10388
|
+
"position": {
|
|
10389
|
+
"x": 0,
|
|
10390
|
+
"y": 0
|
|
10391
|
+
},
|
|
10392
|
+
"data": {
|
|
10393
|
+
"label": "A pull request merged",
|
|
10394
|
+
"triggerType": "event",
|
|
10395
|
+
"config": {
|
|
10396
|
+
"eventPattern": "dev.pr_merged"
|
|
10397
|
+
}
|
|
10398
|
+
}
|
|
10399
|
+
},
|
|
10400
|
+
{
|
|
10401
|
+
"id": "into-default",
|
|
10402
|
+
"type": "condition",
|
|
10403
|
+
"position": {
|
|
10404
|
+
"x": 0,
|
|
10405
|
+
"y": 120
|
|
10406
|
+
},
|
|
10407
|
+
"data": {
|
|
10408
|
+
"label": "It merged into the default branch",
|
|
10409
|
+
"expression": "trigger.payload.data.intoDefault == \"true\""
|
|
10410
|
+
}
|
|
10411
|
+
},
|
|
10412
|
+
{
|
|
10413
|
+
"id": "find",
|
|
10414
|
+
"type": "query",
|
|
10415
|
+
"position": {
|
|
10416
|
+
"x": 0,
|
|
10417
|
+
"y": 240
|
|
10418
|
+
},
|
|
10419
|
+
"data": {
|
|
10420
|
+
"label": "Its change",
|
|
10421
|
+
"profileSlug": "change",
|
|
10422
|
+
"limit": 1,
|
|
10423
|
+
"filter": "{\"prRef\": \"{{trigger.payload.data.repo}}#{{trigger.payload.data.number}}\"}"
|
|
10424
|
+
}
|
|
10425
|
+
},
|
|
10426
|
+
{
|
|
10427
|
+
"id": "has-change",
|
|
10428
|
+
"type": "condition",
|
|
10429
|
+
"position": {
|
|
10430
|
+
"x": 0,
|
|
10431
|
+
"y": 360
|
|
10432
|
+
},
|
|
10433
|
+
"data": {
|
|
10434
|
+
"label": "It has a change",
|
|
10435
|
+
"expression": "steps.find.output.count >= 1"
|
|
10436
|
+
}
|
|
10437
|
+
},
|
|
10438
|
+
{
|
|
10439
|
+
"id": "not-merged",
|
|
10440
|
+
"type": "condition",
|
|
10441
|
+
"position": {
|
|
10442
|
+
"x": 0,
|
|
10443
|
+
"y": 480
|
|
10444
|
+
},
|
|
10445
|
+
"data": {
|
|
10446
|
+
"label": "Its change is not Merged yet",
|
|
10447
|
+
"expression": "steps.find.output.entities[0].properties.changeStatus != \"merged\""
|
|
10448
|
+
}
|
|
10449
|
+
},
|
|
10450
|
+
{
|
|
10451
|
+
"id": "settle",
|
|
10452
|
+
"type": "output",
|
|
10453
|
+
"position": {
|
|
10454
|
+
"x": 0,
|
|
10455
|
+
"y": 600
|
|
10456
|
+
},
|
|
10457
|
+
"data": {
|
|
10458
|
+
"label": "The change is Merged",
|
|
10459
|
+
"outputType": "entity_update",
|
|
10460
|
+
"config": {
|
|
10461
|
+
"entityId": "{{steps.find.output.entities[0].id}}",
|
|
10462
|
+
"properties": {
|
|
10463
|
+
"changeStatus": "merged"
|
|
10464
|
+
}
|
|
10465
|
+
}
|
|
10466
|
+
}
|
|
10467
|
+
}
|
|
10468
|
+
],
|
|
10469
|
+
"edges": [
|
|
10470
|
+
{
|
|
10471
|
+
"id": "t--into-default",
|
|
10472
|
+
"source": "t",
|
|
10473
|
+
"target": "into-default"
|
|
10474
|
+
},
|
|
10475
|
+
{
|
|
10476
|
+
"id": "into-default--find",
|
|
10477
|
+
"source": "into-default",
|
|
10478
|
+
"target": "find",
|
|
10479
|
+
"sourceHandle": "yes"
|
|
10480
|
+
},
|
|
10481
|
+
{
|
|
10482
|
+
"id": "find--has-change",
|
|
10483
|
+
"source": "find",
|
|
10484
|
+
"target": "has-change"
|
|
10485
|
+
},
|
|
10486
|
+
{
|
|
10487
|
+
"id": "has-change--not-merged",
|
|
10488
|
+
"source": "has-change",
|
|
10489
|
+
"target": "not-merged",
|
|
10490
|
+
"sourceHandle": "yes"
|
|
10491
|
+
},
|
|
10492
|
+
{
|
|
10493
|
+
"id": "not-merged--settle",
|
|
10494
|
+
"source": "not-merged",
|
|
10495
|
+
"target": "settle",
|
|
10496
|
+
"sourceHandle": "yes"
|
|
10497
|
+
}
|
|
10498
|
+
]
|
|
10499
|
+
}
|
|
10369
10500
|
}
|
|
10370
10501
|
],
|
|
10371
10502
|
"skills": [
|
|
@@ -12438,6 +12569,7 @@ const DATA = {
|
|
|
12438
12569
|
"label": "Sponsor",
|
|
12439
12570
|
"valueType": "entity_id",
|
|
12440
12571
|
"targetProfileSlug": "sponsor",
|
|
12572
|
+
"relation": "sponsored_by",
|
|
12441
12573
|
"inputType": "entity_select"
|
|
12442
12574
|
},
|
|
12443
12575
|
{
|
|
@@ -12445,6 +12577,7 @@ const DATA = {
|
|
|
12445
12577
|
"label": "Journey Stage",
|
|
12446
12578
|
"valueType": "entity_id",
|
|
12447
12579
|
"targetProfileSlug": "journey-stage",
|
|
12580
|
+
"relation": "at_journey_stage",
|
|
12448
12581
|
"inputType": "entity_select"
|
|
12449
12582
|
},
|
|
12450
12583
|
{
|
|
@@ -12467,6 +12600,7 @@ const DATA = {
|
|
|
12467
12600
|
"label": "Offer",
|
|
12468
12601
|
"valueType": "entity_id",
|
|
12469
12602
|
"targetProfileSlug": "offer",
|
|
12603
|
+
"relation": "teaches_toward",
|
|
12470
12604
|
"inputType": "entity_select"
|
|
12471
12605
|
},
|
|
12472
12606
|
{
|
|
@@ -12517,6 +12651,7 @@ const DATA = {
|
|
|
12517
12651
|
"label": "Repurposed From",
|
|
12518
12652
|
"valueType": "entity_id",
|
|
12519
12653
|
"targetProfileSlug": "post",
|
|
12654
|
+
"relation": "derived_from",
|
|
12520
12655
|
"inputType": "entity_select"
|
|
12521
12656
|
},
|
|
12522
12657
|
{
|
|
@@ -12733,6 +12868,7 @@ const DATA = {
|
|
|
12733
12868
|
"label": "Journey Stage",
|
|
12734
12869
|
"valueType": "entity_id",
|
|
12735
12870
|
"targetProfileSlug": "journey-stage",
|
|
12871
|
+
"relation": "at_journey_stage",
|
|
12736
12872
|
"inputType": "entity_select"
|
|
12737
12873
|
},
|
|
12738
12874
|
{
|
|
@@ -12809,6 +12945,7 @@ const DATA = {
|
|
|
12809
12945
|
"label": "Audience",
|
|
12810
12946
|
"valueType": "entity_id",
|
|
12811
12947
|
"targetProfileSlug": "audience",
|
|
12948
|
+
"relation": "targets",
|
|
12812
12949
|
"inputType": "entity_select"
|
|
12813
12950
|
},
|
|
12814
12951
|
{
|
|
@@ -12902,6 +13039,7 @@ const DATA = {
|
|
|
12902
13039
|
"label": "Audience",
|
|
12903
13040
|
"valueType": "entity_id",
|
|
12904
13041
|
"targetProfileSlug": "audience",
|
|
13042
|
+
"relation": "targets",
|
|
12905
13043
|
"inputType": "entity_select"
|
|
12906
13044
|
},
|
|
12907
13045
|
{
|
|
@@ -12980,6 +13118,7 @@ const DATA = {
|
|
|
12980
13118
|
"label": "Pillar",
|
|
12981
13119
|
"valueType": "entity_id",
|
|
12982
13120
|
"targetProfileSlug": "pillar",
|
|
13121
|
+
"relation": "belongs_to_pillar",
|
|
12983
13122
|
"inputType": "entity_select"
|
|
12984
13123
|
}
|
|
12985
13124
|
]
|
|
@@ -13240,6 +13379,7 @@ const DATA = {
|
|
|
13240
13379
|
"label": "Sponsor",
|
|
13241
13380
|
"valueType": "entity_id",
|
|
13242
13381
|
"targetProfileSlug": "sponsor",
|
|
13382
|
+
"relation": "sponsored_by",
|
|
13243
13383
|
"inputType": "entity_select"
|
|
13244
13384
|
},
|
|
13245
13385
|
{
|
|
@@ -13247,6 +13387,7 @@ const DATA = {
|
|
|
13247
13387
|
"label": "Campaign",
|
|
13248
13388
|
"valueType": "entity_id",
|
|
13249
13389
|
"targetProfileSlug": "campaign",
|
|
13390
|
+
"relation": "part_of_campaign",
|
|
13250
13391
|
"inputType": "entity_select"
|
|
13251
13392
|
},
|
|
13252
13393
|
{
|
|
@@ -13254,6 +13395,7 @@ const DATA = {
|
|
|
13254
13395
|
"label": "Primary Pillar",
|
|
13255
13396
|
"valueType": "entity_id",
|
|
13256
13397
|
"targetProfileSlug": "pillar",
|
|
13398
|
+
"relation": "belongs_to_pillar",
|
|
13257
13399
|
"inputType": "entity_select"
|
|
13258
13400
|
},
|
|
13259
13401
|
{
|
|
@@ -13523,6 +13665,7 @@ const DATA = {
|
|
|
13523
13665
|
"label": "Audience",
|
|
13524
13666
|
"valueType": "entity_id",
|
|
13525
13667
|
"targetProfileSlug": "audience",
|
|
13668
|
+
"relation": "affects",
|
|
13526
13669
|
"inputType": "entity_select"
|
|
13527
13670
|
},
|
|
13528
13671
|
{
|
|
@@ -13644,6 +13787,7 @@ const DATA = {
|
|
|
13644
13787
|
"label": "Audience",
|
|
13645
13788
|
"valueType": "entity_id",
|
|
13646
13789
|
"targetProfileSlug": "audience",
|
|
13790
|
+
"relation": "targets",
|
|
13647
13791
|
"inputType": "entity_select"
|
|
13648
13792
|
},
|
|
13649
13793
|
{
|
|
@@ -13846,6 +13990,7 @@ const DATA = {
|
|
|
13846
13990
|
"label": "Template",
|
|
13847
13991
|
"valueType": "entity_id",
|
|
13848
13992
|
"targetProfileSlug": "brand-template",
|
|
13993
|
+
"relation": "uses",
|
|
13849
13994
|
"inputType": "entity_select",
|
|
13850
13995
|
"description": "The reusable brand-template shell this started from."
|
|
13851
13996
|
},
|
|
@@ -14026,6 +14171,7 @@ const DATA = {
|
|
|
14026
14171
|
"label": "Cut from take",
|
|
14027
14172
|
"valueType": "entity_id",
|
|
14028
14173
|
"targetProfileSlug": "content-asset",
|
|
14174
|
+
"relation": "derived_from",
|
|
14029
14175
|
"inputType": "entity_select"
|
|
14030
14176
|
},
|
|
14031
14177
|
{
|
|
@@ -14126,6 +14272,7 @@ const DATA = {
|
|
|
14126
14272
|
"label": "Output",
|
|
14127
14273
|
"valueType": "entity_id",
|
|
14128
14274
|
"targetProfileSlug": "file",
|
|
14275
|
+
"relation": "references",
|
|
14129
14276
|
"inputType": "entity_select"
|
|
14130
14277
|
},
|
|
14131
14278
|
{
|
|
@@ -14505,6 +14652,78 @@ const DATA = {
|
|
|
14505
14652
|
}
|
|
14506
14653
|
},
|
|
14507
14654
|
"entityLinks": [
|
|
14655
|
+
{
|
|
14656
|
+
"sourceProfileSlug": "idea",
|
|
14657
|
+
"targetProfileSlug": "journey-stage",
|
|
14658
|
+
"type": "at_journey_stage",
|
|
14659
|
+
"label": "Journey Stage"
|
|
14660
|
+
},
|
|
14661
|
+
{
|
|
14662
|
+
"sourceProfileSlug": "pillar",
|
|
14663
|
+
"targetProfileSlug": "audience",
|
|
14664
|
+
"type": "targets",
|
|
14665
|
+
"label": "Audience"
|
|
14666
|
+
},
|
|
14667
|
+
{
|
|
14668
|
+
"sourceProfileSlug": "journey-stage",
|
|
14669
|
+
"targetProfileSlug": "audience",
|
|
14670
|
+
"type": "targets",
|
|
14671
|
+
"label": "Audience"
|
|
14672
|
+
},
|
|
14673
|
+
{
|
|
14674
|
+
"sourceProfileSlug": "series",
|
|
14675
|
+
"targetProfileSlug": "pillar",
|
|
14676
|
+
"type": "belongs_to_pillar",
|
|
14677
|
+
"label": "Pillar"
|
|
14678
|
+
},
|
|
14679
|
+
{
|
|
14680
|
+
"sourceProfileSlug": "newsletter",
|
|
14681
|
+
"targetProfileSlug": "sponsor",
|
|
14682
|
+
"type": "sponsored_by",
|
|
14683
|
+
"label": "Sponsor"
|
|
14684
|
+
},
|
|
14685
|
+
{
|
|
14686
|
+
"sourceProfileSlug": "newsletter",
|
|
14687
|
+
"targetProfileSlug": "campaign",
|
|
14688
|
+
"type": "part_of_campaign",
|
|
14689
|
+
"label": "Campaign"
|
|
14690
|
+
},
|
|
14691
|
+
{
|
|
14692
|
+
"sourceProfileSlug": "newsletter",
|
|
14693
|
+
"targetProfileSlug": "pillar",
|
|
14694
|
+
"type": "belongs_to_pillar",
|
|
14695
|
+
"label": "Pillar"
|
|
14696
|
+
},
|
|
14697
|
+
{
|
|
14698
|
+
"sourceProfileSlug": "offer",
|
|
14699
|
+
"targetProfileSlug": "audience",
|
|
14700
|
+
"type": "targets",
|
|
14701
|
+
"label": "Audience"
|
|
14702
|
+
},
|
|
14703
|
+
{
|
|
14704
|
+
"sourceProfileSlug": "content-composition",
|
|
14705
|
+
"targetProfileSlug": "brand-template",
|
|
14706
|
+
"type": "uses",
|
|
14707
|
+
"label": "Template"
|
|
14708
|
+
},
|
|
14709
|
+
{
|
|
14710
|
+
"sourceProfileSlug": "content-asset",
|
|
14711
|
+
"targetProfileSlug": "content-asset",
|
|
14712
|
+
"type": "derived_from",
|
|
14713
|
+
"label": "Taken from"
|
|
14714
|
+
},
|
|
14715
|
+
{
|
|
14716
|
+
"sourceProfileSlug": "pain-point",
|
|
14717
|
+
"targetProfileSlug": "audience",
|
|
14718
|
+
"type": "affects",
|
|
14719
|
+
"label": "Audience"
|
|
14720
|
+
},
|
|
14721
|
+
{
|
|
14722
|
+
"sourceProfileSlug": "render-job",
|
|
14723
|
+
"targetProfileSlug": "file",
|
|
14724
|
+
"type": "references",
|
|
14725
|
+
"label": "Output file"
|
|
14726
|
+
},
|
|
14508
14727
|
{
|
|
14509
14728
|
"sourceProfileSlug": "post",
|
|
14510
14729
|
"targetProfileSlug": "campaign",
|