@synap-core/workspace-templates 0.52.0 → 0.55.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.
@@ -273,6 +273,9 @@
273
273
  "provision_compute",
274
274
  "release_compute",
275
275
  "fetch_record"
276
+ ],
277
+ "fills": [
278
+ "compute"
276
279
  ]
277
280
  }
278
281
  }
package/dist/index.js CHANGED
@@ -5958,6 +5958,14 @@ var DATA = {
5958
5958
  "inputType": "text",
5959
5959
  "placeholder": "The app and screen it is for, e.g. browser \u203A Settings \u203A Agents"
5960
5960
  },
5961
+ {
5962
+ "slug": "design-app",
5963
+ "label": "App",
5964
+ "valueType": "entity_id",
5965
+ "targetProfileSlug": "devplane_app",
5966
+ "inputType": "entity_select",
5967
+ "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."
5968
+ },
5961
5969
  {
5962
5970
  "slug": "design-scope",
5963
5971
  "label": "Scope",
@@ -6048,10 +6056,17 @@ var DATA = {
6048
6056
  {
6049
6057
  "slug": "implemented-story-id",
6050
6058
  "label": "Implemented story",
6051
- "description": 'The Storybook story id of the built screen \u2014 the "after" of the compare.',
6059
+ "description": 'The Storybook story id of the built screen \u2014 the "after" of the compare. For a single-frame design; a multi-frame design records its stories per frame in frame-stories.',
6052
6060
  "valueType": "string",
6053
6061
  "inputType": "text"
6054
6062
  },
6063
+ {
6064
+ "slug": "frame-stories",
6065
+ "label": "Frame stories",
6066
+ "description": 'The built stories of a design with several frames, as a map { "<frameId>": ["<storyId>", ...] }: each key is a frame id of design-json, each value the Storybook story ids built for that screen (one frame may serve several stories, for its states). For a single-frame design leave it empty and use implemented-story-id; for a multi-frame design this map is the record and implemented-story-id is left empty. Existing designs are not migrated: a reader falls back to implemented-story-id when the map is empty.',
6067
+ "valueType": "json",
6068
+ "inputType": "json"
6069
+ },
6055
6070
  {
6056
6071
  "slug": "design-notes",
6057
6072
  "label": "Notes",
@@ -6320,7 +6335,7 @@ var DATA = {
6320
6335
  {
6321
6336
  "name": "Design to implementation",
6322
6337
  "description": "Take a UI design request from three variants built only of real Storybook components, through a rubric critique and a person's review on the canvas, to a pull request verified by the gates, a before/after compare and a walk in the running app.",
6323
- "goalTemplate": "Take this UI design ({design}) for {surface} from draft to implemented. Load the designing-with-real-components skill first, and design-critique for the Critique stage. GENERATE: read the Storybook component manifest (/manifests/components.json, or the Storybook MCP), the design's goal and scope and the entities it references, and write THREE variants as Puck JSON as a canvas of frames, one per screen (one frame for a single screen) \u2014 this design and two sibling ui-designs sharing its variant-group \u2014 using ONLY components the manifest lists, with props each one declares, design tokens and named motion presets only; each variant lays out every state the screen has (empty, loading, failed, full, long content); fill components-used from the JSON (across every frame of a canvas) and set schema-version (always 3: a canvas of frames, one per screen; never 1 or 2). CRITIQUE: judge each variant with the design-critique rubric and write the findings into its critique; a checked or pattern blocker sends the run back to Generate; opinions are never applied. REVIEW: a person compares the variants on the canvas and approves one; nothing is implemented from an unapproved design, and only a person sets approved. IMPLEMENT: read design-json and the Storybook MCP, build the screen from those same real components, open a pull request and record its URL in implementation-pr and the built screen's story in implemented-story-id. VERIFY: typecheck, story coverage, interaction and accessibility tests, visual regression and the token guards are green, the implemented story was captured and compared with the design and the current story, and the screen was walked in the running app. Move the design's status only through its lifecycle (update_entity with expectedStatus); never invent a status.",
6338
+ "goalTemplate": "Take this UI design ({design}) for {surface} from draft to implemented. Load the designing-with-real-components skill first, and design-critique for the Critique stage. GENERATE: read the Storybook component manifest (/manifests/components.json, or the Storybook MCP), the design's goal and scope and the entities it references, and write THREE variants as Puck JSON as a canvas of frames, one per screen (one frame for a single screen) \u2014 this design and two sibling ui-designs sharing its variant-group \u2014 using ONLY components the manifest lists, with props each one declares, design tokens and named motion presets only; each variant lays out every state the screen has (empty, loading, failed, full, long content); fill components-used from the JSON (across every frame of a canvas) and set schema-version (always 3: a canvas of frames, one per screen; never 1 or 2). CRITIQUE: judge each variant with the design-critique rubric and write the findings into its critique; a checked or pattern blocker sends the run back to Generate; opinions are never applied. REVIEW: a person compares the variants on the canvas and approves one; nothing is implemented from an unapproved design, and only a person sets approved. IMPLEMENT: read design-json and the Storybook MCP, build the screen from those same real components, open a pull request and record its URL in implementation-pr and the built screen's story in implemented-story-id (a single-frame design) or, for a design of several frames, each frame's stories in frame-stories ({ frameId: [storyId, ...] }). VERIFY: typecheck, story coverage, interaction and accessibility tests, visual regression and the token guards are green, the implemented story was captured and compared with the design and the current story, and the screen was walked in the running app. Move the design's status only through its lifecycle (update_entity with expectedStatus); never invent a status.",
6324
6339
  "subjectProfile": {
6325
6340
  "profileSlug": "ui-design"
6326
6341
  },
@@ -6457,10 +6472,9 @@ var DATA = {
6457
6472
  },
6458
6473
  {
6459
6474
  "key": "implemented-story-linked",
6460
- "statement": "The Storybook story id of the built screen is recorded in implemented-story-id.",
6475
+ "statement": "The built stories are recorded on the design, in implemented-story-id for a single-frame design, or in frame-stories for each frame of a multi-frame design (every frame of design-json has at least one story).",
6461
6476
  "check": {
6462
- "kind": "evidence",
6463
- "evidenceKey": "implemented-story-id"
6477
+ "kind": "judge"
6464
6478
  }
6465
6479
  },
6466
6480
  {
@@ -16698,6 +16712,138 @@ var DATA = {
16698
16712
  ]
16699
16713
  }
16700
16714
  ],
16715
+ "automations": [
16716
+ {
16717
+ "key": "lead-converted-becomes-client",
16718
+ "name": "A lead signs: it becomes a client",
16719
+ "description": `When a lead moves to converted (the client signed; a person's move, so an agent's move is a proposal the person approves first), the lead is stamped with the date it converted and the same person or company gets the client role at onboarding, handed off to Operations. Operations' "Onboard a client" starts when the client role is attached. The converted lead role stays as the history of the sale. Attaching the client role again is a no-op, so the CRM app's own handoff and this rule never add a second client role.`,
16720
+ "triggerType": "event",
16721
+ "triggerConfig": {
16722
+ "eventPattern": "entity.transition.completed",
16723
+ "filters": {
16724
+ "lifecycleProfile": "lead",
16725
+ "to": "converted"
16726
+ }
16727
+ },
16728
+ "status": "active",
16729
+ "flow": {
16730
+ "nodes": [
16731
+ {
16732
+ "id": "t",
16733
+ "type": "trigger",
16734
+ "position": {
16735
+ "x": 0,
16736
+ "y": 0
16737
+ },
16738
+ "data": {
16739
+ "label": "A lead moved to converted",
16740
+ "triggerType": "event",
16741
+ "config": {
16742
+ "eventPattern": "entity.transition.completed",
16743
+ "filters": {
16744
+ "lifecycleProfile": "lead",
16745
+ "to": "converted"
16746
+ }
16747
+ }
16748
+ }
16749
+ },
16750
+ {
16751
+ "id": "has-entity",
16752
+ "type": "guard",
16753
+ "position": {
16754
+ "x": 0,
16755
+ "y": 120
16756
+ },
16757
+ "data": {
16758
+ "label": "The move names the person or company that signed",
16759
+ "checks": [
16760
+ {
16761
+ "path": "trigger.payload.data.entityId",
16762
+ "minLength": 36,
16763
+ "message": "The lead's move names no person or company: there is no one to make a client."
16764
+ }
16765
+ ]
16766
+ }
16767
+ },
16768
+ {
16769
+ "id": "now",
16770
+ "type": "compute",
16771
+ "position": {
16772
+ "x": 0,
16773
+ "y": 240
16774
+ },
16775
+ "data": {
16776
+ "label": "When the lead signed",
16777
+ "operation": "now"
16778
+ }
16779
+ },
16780
+ {
16781
+ "id": "stamp-lead",
16782
+ "type": "output",
16783
+ "position": {
16784
+ "x": 0,
16785
+ "y": 360
16786
+ },
16787
+ "data": {
16788
+ "label": "Stamp the lead with the date it converted",
16789
+ "outputType": "facet_update",
16790
+ "config": {
16791
+ "entityId": "{{trigger.payload.data.entityId}}",
16792
+ "facetSlug": "lead",
16793
+ "properties": {
16794
+ "convertedAt": "{{steps.now.output.result}}"
16795
+ }
16796
+ }
16797
+ }
16798
+ },
16799
+ {
16800
+ "id": "become-client",
16801
+ "type": "output",
16802
+ "position": {
16803
+ "x": 0,
16804
+ "y": 480
16805
+ },
16806
+ "data": {
16807
+ "label": "Attach the client role at onboarding, handed off to Operations",
16808
+ "outputType": "facet_attach",
16809
+ "config": {
16810
+ "entityId": "{{trigger.payload.data.entityId}}",
16811
+ "facetSlug": "client",
16812
+ "properties": {
16813
+ "clientStatus": "onboarding",
16814
+ "becameClientAt": "{{steps.now.output.result}}",
16815
+ "handoffStatus": "handed_off",
16816
+ "handoffDestination": "Operations"
16817
+ }
16818
+ }
16819
+ }
16820
+ }
16821
+ ],
16822
+ "edges": [
16823
+ {
16824
+ "id": "e1",
16825
+ "source": "t",
16826
+ "target": "has-entity"
16827
+ },
16828
+ {
16829
+ "id": "e2",
16830
+ "source": "has-entity",
16831
+ "target": "now"
16832
+ },
16833
+ {
16834
+ "id": "e3",
16835
+ "source": "now",
16836
+ "target": "stamp-lead"
16837
+ },
16838
+ {
16839
+ "id": "e4",
16840
+ "source": "stamp-lead",
16841
+ "target": "become-client"
16842
+ }
16843
+ ]
16844
+ }
16845
+ }
16846
+ ],
16701
16847
  "actionPlacements": [
16702
16848
  {
16703
16849
  "profileSlug": "person",