@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,562 @@
1
+ {
2
+ "name": "✅[PRD][HML][1/1 SUBFLOW][CRIAÇÃO] TÍTULO - RETORNO BANCÁRIO",
3
+ "type": "SHARED",
4
+ "summary": "",
5
+ "description": "",
6
+ "tags": [],
7
+ "blogUrl": "",
8
+ "metadata": {
9
+ "externalId": "exampleFlowId14aaaaaa"
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 - RETORNO BANCÁRIO",
21
+ "trigger": {
22
+ "name": "trigger",
23
+ "valid": true,
24
+ "displayName": "Objeto retornosBancarios",
25
+ "nextAction": {
26
+ "name": "step_1",
27
+ "skip": false,
28
+ "type": "LOOP_ON_ITEMS",
29
+ "valid": true,
30
+ "settings": {
31
+ "items": "{{trigger['output']['data']['retornosBancarios']}}",
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_4",
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:\"retorno_banc_rio\", 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": false
177
+ },
178
+ "continueOnFailure": {
179
+ "value": false
180
+ }
181
+ }
182
+ },
183
+ "nextAction": {
184
+ "name": "step_8",
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-08-11T12:59:38.217Z"
223
+ },
224
+ "displayName": "Atualização Retorno Bancário",
225
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
226
+ },
227
+ "displayName": "arrayString",
228
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
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-08-11T12:59:38.217Z"
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-08-11T12:59:38.216Z"
295
+ },
296
+ "displayName": "Get - listCardId",
297
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
298
+ },
299
+ "displayName": "Iteração retornosBancarios",
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": "200000008",
309
+ "organizationId": "100000001",
310
+ "startFormFields": {
311
+ "data": "{{step_1['output']['item']['movData']}}",
312
+ "c_digo": "{{step_1['output']['item']['movCodigo']}}",
313
+ "origem": "{{step_1['output']['item']['movOrigem']}}",
314
+ "usu_rio": "{{step_1['output']['item']['movUsuario']}}",
315
+ "descri_o": "{{step_1['output']['item']['movDescricao']}}",
316
+ "empresa_c_digo": "{{step_1['output']['item']['empCodigo']}}",
317
+ "identifica_origem": "{{step_1['output']['item']['movIdentificaOrigem']}}",
318
+ "id_retorno_banc_rio_barramento": "{{step_1['output']['item']['id']}}"
319
+ }
320
+ },
321
+ "pieceName": "@activepieces/piece-pipefy",
322
+ "actionName": "createCard",
323
+ "sampleData": {},
324
+ "pieceVersion": "0.1.8",
325
+ "propertySettings": {
326
+ "pipeId": {
327
+ "type": "MANUAL"
328
+ },
329
+ "organizationId": {
330
+ "type": "MANUAL"
331
+ },
332
+ "startFormFields": {
333
+ "type": "MANUAL",
334
+ "schema": {
335
+ "data": {
336
+ "type": "SHORT_TEXT",
337
+ "required": false,
338
+ "description": "",
339
+ "displayName": "Data"
340
+ },
341
+ "c_digo": {
342
+ "type": "SHORT_TEXT",
343
+ "required": false,
344
+ "description": "",
345
+ "displayName": "Código"
346
+ },
347
+ "origem": {
348
+ "type": "SHORT_TEXT",
349
+ "required": false,
350
+ "description": "",
351
+ "displayName": "Origem"
352
+ },
353
+ "usu_rio": {
354
+ "type": "SHORT_TEXT",
355
+ "required": false,
356
+ "description": "",
357
+ "displayName": "Usuário"
358
+ },
359
+ "descri_o": {
360
+ "type": "LONG_TEXT",
361
+ "required": false,
362
+ "description": "",
363
+ "displayName": "Descrição"
364
+ },
365
+ "empresa_c_digo": {
366
+ "type": "NUMBER",
367
+ "required": false,
368
+ "description": "",
369
+ "displayName": "Empresa código"
370
+ },
371
+ "identifica_origem": {
372
+ "type": "SHORT_TEXT",
373
+ "required": false,
374
+ "description": "",
375
+ "displayName": "Identificação Origem"
376
+ },
377
+ "id_retorno_banc_rio_barramento": {
378
+ "type": "SHORT_TEXT",
379
+ "required": false,
380
+ "description": "",
381
+ "displayName": "ID Retorno bancário (Barramento)"
382
+ }
383
+ }
384
+ }
385
+ },
386
+ "errorHandlingOptions": {
387
+ "retryOnFailure": {
388
+ "value": false
389
+ },
390
+ "continueOnFailure": {
391
+ "value": true
392
+ }
393
+ }
394
+ },
395
+ "nextAction": {
396
+ "name": "step_3",
397
+ "skip": false,
398
+ "type": "PIECE",
399
+ "valid": true,
400
+ "settings": {
401
+ "input": {
402
+ "key": "listCardId",
403
+ "value": [
404
+ "{{step_2['output']['data']['createCard']['card']['id']}}"
405
+ ],
406
+ "store_scope": "RUN",
407
+ "ignore_if_exists": false
408
+ },
409
+ "pieceName": "@activepieces/piece-store",
410
+ "actionName": "add_to_list",
411
+ "sampleData": {},
412
+ "pieceVersion": "0.6.15",
413
+ "propertySettings": {
414
+ "key": {
415
+ "type": "MANUAL"
416
+ },
417
+ "value": {
418
+ "type": "MANUAL"
419
+ },
420
+ "store_scope": {
421
+ "type": "MANUAL"
422
+ },
423
+ "ignore_if_exists": {
424
+ "type": "MANUAL"
425
+ }
426
+ },
427
+ "errorHandlingOptions": {
428
+ "retryOnFailure": {
429
+ "value": false
430
+ },
431
+ "continueOnFailure": {
432
+ "value": false
433
+ }
434
+ }
435
+ },
436
+ "displayName": "Add To List - listCardId",
437
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
438
+ },
439
+ "displayName": "Criação Retorno Bancário - 200000008",
440
+ "lastUpdatedDate": "2026-08-11T12:59:38.216Z"
441
+ },
442
+ "lastUpdatedDate": "2026-08-11T12:59:38.215Z"
443
+ },
444
+ "lastUpdatedDate": "2026-08-11T12:59:38.215Z",
445
+ "type": "PIECE_TRIGGER",
446
+ "settings": {
447
+ "sampleData": {},
448
+ "propertySettings": {
449
+ "mode": {
450
+ "type": "MANUAL"
451
+ },
452
+ "exampleData": {
453
+ "type": "MANUAL",
454
+ "schema": {
455
+ "sampleData": {
456
+ "type": "example",
457
+ "required": false,
458
+ "displayName": "example"
459
+ }
460
+ }
461
+ }
462
+ },
463
+ "pieceName": "@activepieces/piece-subflows",
464
+ "pieceVersion": "0.4.15",
465
+ "triggerName": "callableFlow",
466
+ "input": {
467
+ "mode": "advanced",
468
+ "exampleData": {
469
+ "sampleData": {
470
+ "cardIdTitulo": "example",
471
+ "retornosBancarios": [
472
+ {
473
+ "id": "example",
474
+ "valor": 0,
475
+ "evento": "example",
476
+ "movData": "example",
477
+ "empCodigo": 0,
478
+ "movCodigo": "example",
479
+ "movOrigem": "example",
480
+ "movUsuario": "example",
481
+ "dataPContato": "example",
482
+ "movDescricao": "example",
483
+ "movIdentificaOrigem": "example"
484
+ },
485
+ {
486
+ "id": "example",
487
+ "valor": 0,
488
+ "evento": "example",
489
+ "movData": "example",
490
+ "empCodigo": 0,
491
+ "movCodigo": "example",
492
+ "movOrigem": "example",
493
+ "movUsuario": "example",
494
+ "dataPContato": "example",
495
+ "movDescricao": "example",
496
+ "movIdentificaOrigem": "example"
497
+ },
498
+ {
499
+ "id": "example",
500
+ "valor": 0,
501
+ "evento": "example",
502
+ "movData": "example",
503
+ "empCodigo": 0,
504
+ "movCodigo": "example",
505
+ "movOrigem": "example",
506
+ "movUsuario": "example",
507
+ "dataPContato": "example",
508
+ "movDescricao": "example",
509
+ "movIdentificaOrigem": "example"
510
+ },
511
+ {
512
+ "id": "example",
513
+ "valor": 0,
514
+ "evento": "example",
515
+ "movData": "example",
516
+ "empCodigo": 0,
517
+ "movCodigo": "example",
518
+ "movOrigem": "example",
519
+ "movUsuario": "example",
520
+ "dataPContato": "example",
521
+ "movDescricao": "example",
522
+ "movIdentificaOrigem": "example"
523
+ },
524
+ {
525
+ "id": "example",
526
+ "valor": 0,
527
+ "evento": "example",
528
+ "movData": "example",
529
+ "empCodigo": 0,
530
+ "movCodigo": "example",
531
+ "movOrigem": "example",
532
+ "movUsuario": "example",
533
+ "dataPContato": "example",
534
+ "movDescricao": "example",
535
+ "movIdentificaOrigem": "example"
536
+ },
537
+ {
538
+ "id": "example",
539
+ "valor": 0,
540
+ "evento": "example",
541
+ "movData": "example",
542
+ "empCodigo": 0,
543
+ "movCodigo": "example",
544
+ "movOrigem": "example",
545
+ "movUsuario": "example",
546
+ "dataPContato": "example",
547
+ "movDescricao": "example",
548
+ "movIdentificaOrigem": "example"
549
+ }
550
+ ]
551
+ }
552
+ }
553
+ }
554
+ }
555
+ },
556
+ "valid": true,
557
+ "schemaVersion": "22",
558
+ "notes": []
559
+ }
560
+ ],
561
+ "status": "PUBLISHED"
562
+ }