@pipefy/pipefy-process-coder 0.1.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.
Files changed (92) hide show
  1. package/.agents/skills/ppc-pipefy-flow-authoring/SKILL.md +262 -0
  2. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-danfe-consulta.json +247 -0
  3. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-webhook-retorno-consulta.json +589 -0
  4. package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-4-recebimento-barramento.json +1391 -0
  5. package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-2-danfe-retorno.json +623 -0
  6. package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-4-criacao-operacao.json +636 -0
  7. package/.agents/skills/ppc-pipefy-flow-authoring/examples/03-subflow-4-criacao-titulo.json +3642 -0
  8. package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-cedente.json +863 -0
  9. package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-sacado.json +799 -0
  10. package/.agents/skills/ppc-pipefy-flow-authoring/examples/README.md +42 -0
  11. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-acompanhamento-cobranca.json +581 -0
  12. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-nfe-monitoramento.json +503 -0
  13. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-retorno-bancario.json +562 -0
  14. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-cedente.json +557 -0
  15. package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-sacado.json +609 -0
  16. package/.agents/skills/ppc-pipefy-pipe-authoring/SKILL.md +146 -0
  17. package/.agents/skills/ppc-pipefy-process-design/SKILL.md +127 -0
  18. package/.agents/skills/ppc-pipefy-workspace/SKILL.md +91 -0
  19. package/AGENTS.md +456 -0
  20. package/README.md +808 -0
  21. package/bin/pipe.js +13 -0
  22. package/package.json +35 -0
  23. package/src/apply/adopt.ts +150 -0
  24. package/src/apply/agentops.ts +71 -0
  25. package/src/apply/compile.ts +875 -0
  26. package/src/apply/execute.ts +336 -0
  27. package/src/apply/flowops.ts +399 -0
  28. package/src/apply/idmap.ts +241 -0
  29. package/src/apply/mutations.ts +955 -0
  30. package/src/apply/registry.ts +430 -0
  31. package/src/apply/types.ts +134 -0
  32. package/src/cli/args.ts +88 -0
  33. package/src/cli.ts +211 -0
  34. package/src/codec/flow.ts +199 -0
  35. package/src/codec/pack.ts +103 -0
  36. package/src/codec/roundtrip.ts +94 -0
  37. package/src/codec/unpack.ts +198 -0
  38. package/src/commands/agents.ts +184 -0
  39. package/src/commands/apply.ts +1144 -0
  40. package/src/commands/context.ts +119 -0
  41. package/src/commands/create.ts +79 -0
  42. package/src/commands/diff.ts +314 -0
  43. package/src/commands/flows.ts +414 -0
  44. package/src/commands/misc.ts +644 -0
  45. package/src/commands/plan.ts +331 -0
  46. package/src/commands/pull.ts +567 -0
  47. package/src/commands/runs.ts +83 -0
  48. package/src/commands/skills.ts +137 -0
  49. package/src/commands/verify.ts +253 -0
  50. package/src/config.ts +168 -0
  51. package/src/diff/agents.ts +122 -0
  52. package/src/diff/diff.ts +1130 -0
  53. package/src/diff/flow.ts +318 -0
  54. package/src/diff/html.ts +322 -0
  55. package/src/diff/render.ts +101 -0
  56. package/src/model/payload.ts +154 -0
  57. package/src/model/tree.ts +99 -0
  58. package/src/model/volatile.ts +55 -0
  59. package/src/pipefy/agents.ts +165 -0
  60. package/src/pipefy/automations.ts +219 -0
  61. package/src/pipefy/capability.ts +119 -0
  62. package/src/pipefy/client.ts +267 -0
  63. package/src/pipefy/discovery.ts +209 -0
  64. package/src/pipefy/internal.ts +380 -0
  65. package/src/pipefy/ipaas.ts +365 -0
  66. package/src/pipefy/reconstruct.ts +775 -0
  67. package/src/pipefy/reference.ts +251 -0
  68. package/src/pipefy/snapshot.ts +245 -0
  69. package/src/pipefy/toolkit.ts +200 -0
  70. package/src/pipefy/toolkit_bearer.py +137 -0
  71. package/src/report/integrations.ts +231 -0
  72. package/src/report/run.ts +475 -0
  73. package/src/util/fsx.ts +45 -0
  74. package/src/util/git.ts +32 -0
  75. package/src/util/json.ts +55 -0
  76. package/src/util/log.ts +76 -0
  77. package/src/util/pool.ts +48 -0
  78. package/src/util/slug.ts +26 -0
  79. package/src/util/tui.ts +335 -0
  80. package/src/validate/index.ts +123 -0
  81. package/src/validate/integrity.ts +387 -0
  82. package/src/validate/reference.ts +136 -0
  83. package/src/validate/schema.ts +328 -0
  84. package/src/workspace/agents.ts +290 -0
  85. package/src/workspace/docs.ts +407 -0
  86. package/src/workspace/flows.ts +191 -0
  87. package/src/workspace/layout.ts +165 -0
  88. package/src/workspace/lock.ts +148 -0
  89. package/src/workspace/read.ts +165 -0
  90. package/src/workspace/reference.ts +24 -0
  91. package/src/workspace/stamp.ts +301 -0
  92. package/src/workspace/write.ts +225 -0
@@ -0,0 +1,503 @@
1
+ {
2
+ "name": "✅[PRD][HML][1/1 SUBFLOW][CRIAÇÃO] TÍTULO - NFE MONITORAMENTO",
3
+ "type": "SHARED",
4
+ "summary": "",
5
+ "description": "",
6
+ "tags": [],
7
+ "blogUrl": "",
8
+ "metadata": {
9
+ "externalId": "exampleFlowId13aaaaaa"
10
+ },
11
+ "author": "Integrações Ipaas 000000000",
12
+ "categories": [],
13
+ "pieces": [
14
+ "@activepieces/piece-subflows",
15
+ "@activepieces/piece-pipefy",
16
+ "@activepieces/piece-store"
17
+ ],
18
+ "flows": [
19
+ {
20
+ "displayName": "✅[PRD][HML][1/1 SUBFLOW][CRIAÇÃO] TÍTULO - NFE MONITORAMENTO",
21
+ "trigger": {
22
+ "name": "trigger",
23
+ "valid": true,
24
+ "displayName": "Objeto nfeMonitoramento",
25
+ "nextAction": {
26
+ "name": "step_1",
27
+ "skip": false,
28
+ "type": "LOOP_ON_ITEMS",
29
+ "valid": true,
30
+ "settings": {
31
+ "items": "{{trigger['output']['data']['nfeMonitoramento']}}",
32
+ "sampleData": {}
33
+ },
34
+ "nextAction": {
35
+ "name": "step_5",
36
+ "skip": false,
37
+ "type": "PIECE",
38
+ "valid": true,
39
+ "settings": {
40
+ "input": {
41
+ "key": "listCardId",
42
+ "store_scope": "RUN"
43
+ },
44
+ "pieceName": "@activepieces/piece-store",
45
+ "actionName": "get",
46
+ "sampleData": {},
47
+ "pieceVersion": "0.6.15",
48
+ "propertySettings": {
49
+ "key": {
50
+ "type": "MANUAL"
51
+ },
52
+ "store_scope": {
53
+ "type": "MANUAL"
54
+ },
55
+ "defaultValue": {
56
+ "type": "example"
57
+ }
58
+ },
59
+ "errorHandlingOptions": {
60
+ "retryOnFailure": {
61
+ "value": false
62
+ },
63
+ "continueOnFailure": {
64
+ "value": false
65
+ }
66
+ }
67
+ },
68
+ "nextAction": {
69
+ "name": "step_8",
70
+ "skip": false,
71
+ "type": "ROUTER",
72
+ "valid": true,
73
+ "children": [
74
+ {
75
+ "name": "step_6",
76
+ "skip": false,
77
+ "type": "CODE",
78
+ "valid": true,
79
+ "settings": {
80
+ "input": {
81
+ "listCardId": "{{step_5['output']}}"
82
+ },
83
+ "sampleData": {},
84
+ "sourceCode": {
85
+ "code": "export const code = async (inputs) => {\n const ids = inputs.listCardId ?? [];\n const unique = [...new Set(ids.map(String))];\n\n return {\n arrayString: JSON.stringify(unique)\n };\n};",
86
+ "packageJson": "{}"
87
+ },
88
+ "errorHandlingOptions": {
89
+ "retryOnFailure": {
90
+ "value": false
91
+ },
92
+ "continueOnFailure": {
93
+ "value": false
94
+ }
95
+ }
96
+ },
97
+ "nextAction": {
98
+ "name": "step_7",
99
+ "skip": false,
100
+ "type": "PIECE",
101
+ "valid": true,
102
+ "settings": {
103
+ "input": {
104
+ "url": {
105
+ "url": "https://api.pipefy.com/graphql"
106
+ },
107
+ "auth": "{{connections['exampleConnectionId3']}}",
108
+ "body": {
109
+ "data": {
110
+ "query": "mutation {\n updateCardField(input: {card_id:\"{{trigger['output']['data']['cardIdTitulo']}}\", field_id:\"nfe_monitoramento\", new_value:{{step_6['output']['arrayString']}}}) {\n clientMutationId\n } \n\t\n}\n",
111
+ "variables": null
112
+ }
113
+ },
114
+ "method": "POST",
115
+ "headers": {},
116
+ "failsafe": false,
117
+ "body_type": "json",
118
+ "queryParams": {},
119
+ "followRedirects": false,
120
+ "response_is_binary": false
121
+ },
122
+ "pieceName": "@activepieces/piece-pipefy",
123
+ "actionName": "custom_api_call",
124
+ "sampleData": {},
125
+ "pieceVersion": "0.1.8",
126
+ "propertySettings": {
127
+ "url": {
128
+ "type": "MANUAL",
129
+ "schema": {
130
+ "url": {
131
+ "type": "SHORT_TEXT",
132
+ "required": true,
133
+ "description": "You can either use the full URL or the relative path to the base URL\ni.e https://api.pipefy.com/graphql/resource or /resource",
134
+ "displayName": "URL",
135
+ "defaultValue": "https://api.pipefy.com/graphql"
136
+ }
137
+ }
138
+ },
139
+ "body": {
140
+ "type": "MANUAL",
141
+ "schema": {
142
+ "data": {
143
+ "type": "JSON",
144
+ "required": true,
145
+ "displayName": "JSON Body"
146
+ }
147
+ }
148
+ },
149
+ "method": {
150
+ "type": "MANUAL"
151
+ },
152
+ "headers": {
153
+ "type": "MANUAL"
154
+ },
155
+ "timeout": {
156
+ "type": "MANUAL"
157
+ },
158
+ "failsafe": {
159
+ "type": "MANUAL"
160
+ },
161
+ "body_type": {
162
+ "type": "MANUAL"
163
+ },
164
+ "queryParams": {
165
+ "type": "MANUAL"
166
+ },
167
+ "followRedirects": {
168
+ "type": "MANUAL"
169
+ },
170
+ "response_is_binary": {
171
+ "type": "MANUAL"
172
+ }
173
+ },
174
+ "errorHandlingOptions": {
175
+ "retryOnFailure": {
176
+ "value": true
177
+ },
178
+ "continueOnFailure": {
179
+ "value": false
180
+ }
181
+ }
182
+ },
183
+ "nextAction": {
184
+ "name": "step_4",
185
+ "type": "PIECE",
186
+ "valid": true,
187
+ "settings": {
188
+ "input": {
189
+ "mode": "simple",
190
+ "response": {
191
+ "response": {}
192
+ }
193
+ },
194
+ "pieceName": "@activepieces/piece-subflows",
195
+ "actionName": "returnResponse",
196
+ "pieceVersion": "0.4.15",
197
+ "propertySettings": {
198
+ "mode": {
199
+ "type": "MANUAL"
200
+ },
201
+ "response": {
202
+ "type": "MANUAL",
203
+ "schema": {
204
+ "response": {
205
+ "type": "OBJECT",
206
+ "required": true,
207
+ "displayName": "Response"
208
+ }
209
+ }
210
+ }
211
+ },
212
+ "errorHandlingOptions": {
213
+ "retryOnFailure": {
214
+ "value": false
215
+ },
216
+ "continueOnFailure": {
217
+ "value": false
218
+ }
219
+ }
220
+ },
221
+ "displayName": "Return Response",
222
+ "lastUpdatedDate": "2026-07-14T11:59:45.023Z"
223
+ },
224
+ "displayName": "Atualização NFE Monitoramento",
225
+ "lastUpdatedDate": "2026-07-14T11:59:45.023Z"
226
+ },
227
+ "displayName": "arrayString",
228
+ "lastUpdatedDate": "2026-07-14T11:59:45.023Z"
229
+ },
230
+ {
231
+ "name": "step_9",
232
+ "type": "PIECE",
233
+ "valid": true,
234
+ "settings": {
235
+ "input": {
236
+ "mode": "simple",
237
+ "response": {
238
+ "response": {}
239
+ }
240
+ },
241
+ "pieceName": "@activepieces/piece-subflows",
242
+ "actionName": "returnResponse",
243
+ "pieceVersion": "0.4.15",
244
+ "propertySettings": {
245
+ "mode": {
246
+ "type": "MANUAL"
247
+ },
248
+ "response": {
249
+ "type": "MANUAL",
250
+ "schema": {
251
+ "response": {
252
+ "type": "OBJECT",
253
+ "required": true,
254
+ "displayName": "Response"
255
+ }
256
+ }
257
+ }
258
+ },
259
+ "errorHandlingOptions": {
260
+ "retryOnFailure": {
261
+ "value": false
262
+ },
263
+ "continueOnFailure": {
264
+ "value": false
265
+ }
266
+ }
267
+ },
268
+ "displayName": "Return Response",
269
+ "lastUpdatedDate": "2026-07-14T11:59:45.023Z"
270
+ }
271
+ ],
272
+ "settings": {
273
+ "branches": [
274
+ {
275
+ "branchName": "Is not empty",
276
+ "branchType": "CONDITION",
277
+ "conditions": [
278
+ [
279
+ {
280
+ "operator": "LIST_IS_NOT_EMPTY",
281
+ "firstValue": "{{step_5['output']}}"
282
+ }
283
+ ]
284
+ ]
285
+ },
286
+ {
287
+ "branchName": "Otherwise",
288
+ "branchType": "FALLBACK"
289
+ }
290
+ ],
291
+ "executionType": "EXECUTE_FIRST_MATCH"
292
+ },
293
+ "displayName": "Verificar lista",
294
+ "lastUpdatedDate": "2026-07-14T11:59:45.023Z"
295
+ },
296
+ "displayName": "Get - listCardId",
297
+ "lastUpdatedDate": "2026-07-14T11:59:45.022Z"
298
+ },
299
+ "displayName": "Iteração nfeMonitoramento",
300
+ "firstLoopAction": {
301
+ "name": "step_2",
302
+ "skip": false,
303
+ "type": "PIECE",
304
+ "valid": true,
305
+ "settings": {
306
+ "input": {
307
+ "auth": "{{connections['exampleConnectionId3']}}",
308
+ "pipeId": "200000007",
309
+ "organizationId": "100000001",
310
+ "startFormFields": {
311
+ "descri_o": "{{step_1['output']['item']['ernDescricao']}}",
312
+ "data_e_hora": "{{step_1['output']['item']['nlmData']}} {{step_1['output']['item']['nlmHora']}}",
313
+ "nlmchaveretorno": "{{step_1['output']['item']['nlmChaveRetorno']}}",
314
+ "nlmcodigoeventoretorno": "{{step_1['output']['item']['nlmCodigoEventoRetorno']}}",
315
+ "descri_o_evento_retorno": "{{step_1['output']['item']['nlmDescricaoEventoRetorno']}}"
316
+ }
317
+ },
318
+ "pieceName": "@activepieces/piece-pipefy",
319
+ "actionName": "createCard",
320
+ "sampleData": {},
321
+ "pieceVersion": "0.1.8",
322
+ "propertySettings": {
323
+ "pipeId": {
324
+ "type": "MANUAL"
325
+ },
326
+ "organizationId": {
327
+ "type": "MANUAL"
328
+ },
329
+ "startFormFields": {
330
+ "type": "MANUAL",
331
+ "schema": {
332
+ "descri_o": {
333
+ "type": "SHORT_TEXT",
334
+ "required": false,
335
+ "description": "\"ernDescricao\"",
336
+ "displayName": "Descrição"
337
+ },
338
+ "data_e_hora": {
339
+ "type": "SHORT_TEXT",
340
+ "required": false,
341
+ "description": "\"nlmData\"\n\"nlmHora\"",
342
+ "displayName": "Data e hora"
343
+ },
344
+ "nlmchaveretorno": {
345
+ "type": "SHORT_TEXT",
346
+ "required": false,
347
+ "description": "",
348
+ "displayName": "Chave retorno"
349
+ },
350
+ "nlmcodigoeventoretorno": {
351
+ "type": "SHORT_TEXT",
352
+ "required": true,
353
+ "description": "",
354
+ "displayName": "Código evento retorno"
355
+ },
356
+ "descri_o_evento_retorno": {
357
+ "type": "LONG_TEXT",
358
+ "required": false,
359
+ "description": "\"nlmDescricaoEventoRetorno\"",
360
+ "displayName": "Descrição evento retorno"
361
+ }
362
+ }
363
+ }
364
+ },
365
+ "errorHandlingOptions": {
366
+ "retryOnFailure": {
367
+ "value": false
368
+ },
369
+ "continueOnFailure": {
370
+ "value": true
371
+ }
372
+ }
373
+ },
374
+ "nextAction": {
375
+ "name": "step_3",
376
+ "skip": false,
377
+ "type": "PIECE",
378
+ "valid": true,
379
+ "settings": {
380
+ "input": {
381
+ "key": "listCardId",
382
+ "value": [
383
+ "{{step_2['output']['data']['createCard']['card']['id']}}"
384
+ ],
385
+ "store_scope": "RUN",
386
+ "ignore_if_exists": false
387
+ },
388
+ "pieceName": "@activepieces/piece-store",
389
+ "actionName": "add_to_list",
390
+ "sampleData": {},
391
+ "pieceVersion": "0.6.15",
392
+ "propertySettings": {
393
+ "key": {
394
+ "type": "MANUAL"
395
+ },
396
+ "value": {
397
+ "type": "MANUAL"
398
+ },
399
+ "store_scope": {
400
+ "type": "MANUAL"
401
+ },
402
+ "ignore_if_exists": {
403
+ "type": "MANUAL"
404
+ }
405
+ },
406
+ "errorHandlingOptions": {
407
+ "retryOnFailure": {
408
+ "value": false
409
+ },
410
+ "continueOnFailure": {
411
+ "value": false
412
+ }
413
+ }
414
+ },
415
+ "displayName": "Add To List - listCardId",
416
+ "lastUpdatedDate": "2026-07-14T11:59:45.022Z"
417
+ },
418
+ "displayName": "Criação NFE Monitoramento - 200000007",
419
+ "lastUpdatedDate": "2026-07-14T11:59:45.103Z"
420
+ },
421
+ "lastUpdatedDate": "2026-07-14T11:59:45.022Z"
422
+ },
423
+ "lastUpdatedDate": "2026-07-14T11:59:45.022Z",
424
+ "type": "PIECE_TRIGGER",
425
+ "settings": {
426
+ "sampleData": {},
427
+ "propertySettings": {
428
+ "mode": {
429
+ "type": "MANUAL"
430
+ },
431
+ "exampleData": {
432
+ "type": "MANUAL",
433
+ "schema": {
434
+ "sampleData": {
435
+ "type": "example",
436
+ "required": false,
437
+ "displayName": "example"
438
+ }
439
+ }
440
+ }
441
+ },
442
+ "pieceName": "@activepieces/piece-subflows",
443
+ "pieceVersion": "0.4.15",
444
+ "triggerName": "callableFlow",
445
+ "input": {
446
+ "mode": "advanced",
447
+ "exampleData": {
448
+ "sampleData": {
449
+ "cardIdTitulo": "example",
450
+ "nfeMonitoramento": [
451
+ {
452
+ "nlmData": "example",
453
+ "nlmHora": "example",
454
+ "ernDescricao": "example",
455
+ "nlmChaveRetorno": "example",
456
+ "nlmCodigoEventoRetorno": 0,
457
+ "nlmDescricaoEventoRetorno": "example"
458
+ },
459
+ {
460
+ "nlmData": "example",
461
+ "nlmHora": "example",
462
+ "ernDescricao": "example",
463
+ "nlmChaveRetorno": "example",
464
+ "nlmCodigoEventoRetorno": 0,
465
+ "nlmDescricaoEventoRetorno": "example"
466
+ },
467
+ {
468
+ "nlmData": "example",
469
+ "nlmHora": "example",
470
+ "ernDescricao": "example",
471
+ "nlmChaveRetorno": "example",
472
+ "nlmCodigoEventoRetorno": 0,
473
+ "nlmDescricaoEventoRetorno": "example"
474
+ },
475
+ {
476
+ "nlmData": "example",
477
+ "nlmHora": "example",
478
+ "ernDescricao": "example",
479
+ "nlmChaveRetorno": "example",
480
+ "nlmCodigoEventoRetorno": 0,
481
+ "nlmDescricaoEventoRetorno": "example"
482
+ },
483
+ {
484
+ "nlmData": "example",
485
+ "nlmHora": "example",
486
+ "ernDescricao": "example",
487
+ "nlmChaveRetorno": "example",
488
+ "nlmCodigoEventoRetorno": 0,
489
+ "nlmDescricaoEventoRetorno": "example"
490
+ }
491
+ ]
492
+ }
493
+ }
494
+ }
495
+ }
496
+ },
497
+ "valid": true,
498
+ "schemaVersion": "22",
499
+ "notes": []
500
+ }
501
+ ],
502
+ "status": "PUBLISHED"
503
+ }