@pipefy/pipefy-process-coder 0.1.0 → 0.1.1
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/.agents/skills/ppc-pipefy-flow-authoring/SKILL.md +262 -262
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-danfe-consulta.json +247 -247
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-2-webhook-retorno-consulta.json +589 -589
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/01-main-4-recebimento-barramento.json +1391 -1391
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-2-danfe-retorno.json +623 -623
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/02-subflow-4-criacao-operacao.json +636 -636
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/03-subflow-4-criacao-titulo.json +3642 -3642
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-cedente.json +863 -863
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/04-subflow-4-criacao-sacado.json +799 -799
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/README.md +42 -42
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-acompanhamento-cobranca.json +581 -581
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-nfe-monitoramento.json +503 -503
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-01-subflow-1-titulo-retorno-bancario.json +562 -562
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-cedente.json +557 -557
- package/.agents/skills/ppc-pipefy-flow-authoring/examples/hml-02-subflow-2-retorno-consulta-sacado.json +609 -609
- package/.agents/skills/ppc-pipefy-pipe-authoring/SKILL.md +146 -146
- package/.agents/skills/ppc-pipefy-process-design/SKILL.md +127 -127
- package/.agents/skills/ppc-pipefy-workspace/SKILL.md +91 -91
- package/AGENTS.md +465 -456
- package/README.md +825 -807
- package/bin/pipe.js +25 -4
- package/dist/apply/adopt.js +128 -0
- package/dist/apply/agentops.js +42 -0
- package/dist/apply/compile.js +722 -0
- package/dist/apply/execute.js +277 -0
- package/dist/apply/flowops.js +293 -0
- package/dist/apply/idmap.js +233 -0
- package/dist/apply/mutations.js +704 -0
- package/dist/apply/registry.js +348 -0
- package/dist/apply/types.js +18 -0
- package/dist/cli/args.js +79 -0
- package/dist/cli.js +187 -0
- package/dist/codec/flow.js +164 -0
- package/dist/codec/pack.js +88 -0
- package/dist/codec/roundtrip.js +86 -0
- package/dist/codec/unpack.js +181 -0
- package/dist/commands/agents.js +145 -0
- package/dist/commands/apply.js +982 -0
- package/dist/commands/context.js +79 -0
- package/dist/commands/create.js +63 -0
- package/dist/commands/diff.js +294 -0
- package/dist/commands/flows.js +348 -0
- package/dist/commands/misc.js +528 -0
- package/dist/commands/plan.js +301 -0
- package/dist/commands/pull.js +511 -0
- package/dist/commands/runs.js +74 -0
- package/dist/commands/skills.js +131 -0
- package/dist/commands/verify.js +205 -0
- package/dist/config.js +125 -0
- package/dist/diff/agents.js +80 -0
- package/dist/diff/diff.js +983 -0
- package/dist/diff/flow.js +258 -0
- package/{src/diff/html.ts → dist/diff/html.js} +274 -322
- package/dist/diff/render.js +90 -0
- package/dist/model/payload.js +84 -0
- package/dist/model/tree.js +7 -0
- package/dist/model/volatile.js +54 -0
- package/dist/pipefy/agents.js +122 -0
- package/dist/pipefy/automations.js +155 -0
- package/dist/pipefy/capability.js +84 -0
- package/dist/pipefy/client.js +204 -0
- package/dist/pipefy/discovery.js +148 -0
- package/dist/pipefy/internal.js +315 -0
- package/dist/pipefy/ipaas.js +269 -0
- package/dist/pipefy/reconstruct.js +674 -0
- package/dist/pipefy/reference.js +172 -0
- package/dist/pipefy/snapshot.js +185 -0
- package/dist/pipefy/toolkit.js +158 -0
- package/dist/report/integrations.js +165 -0
- package/dist/report/run.js +355 -0
- package/dist/util/fsx.js +50 -0
- package/dist/util/git.js +25 -0
- package/dist/util/json.js +56 -0
- package/dist/util/log.js +69 -0
- package/dist/util/pool.js +42 -0
- package/dist/util/slug.js +23 -0
- package/dist/util/tui.js +287 -0
- package/dist/validate/index.js +86 -0
- package/dist/validate/integrity.js +370 -0
- package/dist/validate/reference.js +120 -0
- package/dist/validate/schema.js +278 -0
- package/dist/workspace/agents.js +245 -0
- package/{src/workspace/docs.ts → dist/workspace/docs.js} +367 -407
- package/dist/workspace/flows.js +149 -0
- package/dist/workspace/layout.js +146 -0
- package/dist/workspace/lock.js +83 -0
- package/dist/workspace/read.js +168 -0
- package/dist/workspace/reference.js +24 -0
- package/dist/workspace/stamp.js +234 -0
- package/dist/workspace/write.js +194 -0
- package/package.json +37 -35
- package/src/apply/adopt.ts +0 -150
- package/src/apply/agentops.ts +0 -71
- package/src/apply/compile.ts +0 -875
- package/src/apply/execute.ts +0 -336
- package/src/apply/flowops.ts +0 -399
- package/src/apply/idmap.ts +0 -241
- package/src/apply/mutations.ts +0 -955
- package/src/apply/registry.ts +0 -430
- package/src/apply/types.ts +0 -134
- package/src/cli/args.ts +0 -88
- package/src/cli.ts +0 -211
- package/src/codec/flow.ts +0 -199
- package/src/codec/pack.ts +0 -103
- package/src/codec/roundtrip.ts +0 -94
- package/src/codec/unpack.ts +0 -198
- package/src/commands/agents.ts +0 -184
- package/src/commands/apply.ts +0 -1144
- package/src/commands/context.ts +0 -119
- package/src/commands/create.ts +0 -79
- package/src/commands/diff.ts +0 -314
- package/src/commands/flows.ts +0 -414
- package/src/commands/misc.ts +0 -644
- package/src/commands/plan.ts +0 -331
- package/src/commands/pull.ts +0 -567
- package/src/commands/runs.ts +0 -83
- package/src/commands/skills.ts +0 -137
- package/src/commands/verify.ts +0 -253
- package/src/config.ts +0 -168
- package/src/diff/agents.ts +0 -122
- package/src/diff/diff.ts +0 -1130
- package/src/diff/flow.ts +0 -318
- package/src/diff/render.ts +0 -101
- package/src/model/payload.ts +0 -154
- package/src/model/tree.ts +0 -99
- package/src/model/volatile.ts +0 -55
- package/src/pipefy/agents.ts +0 -165
- package/src/pipefy/automations.ts +0 -219
- package/src/pipefy/capability.ts +0 -119
- package/src/pipefy/client.ts +0 -267
- package/src/pipefy/discovery.ts +0 -209
- package/src/pipefy/internal.ts +0 -380
- package/src/pipefy/ipaas.ts +0 -365
- package/src/pipefy/reconstruct.ts +0 -775
- package/src/pipefy/reference.ts +0 -251
- package/src/pipefy/snapshot.ts +0 -245
- package/src/pipefy/toolkit.ts +0 -200
- package/src/report/integrations.ts +0 -231
- package/src/report/run.ts +0 -475
- package/src/util/fsx.ts +0 -45
- package/src/util/git.ts +0 -32
- package/src/util/json.ts +0 -55
- package/src/util/log.ts +0 -76
- package/src/util/pool.ts +0 -48
- package/src/util/slug.ts +0 -26
- package/src/util/tui.ts +0 -335
- package/src/validate/index.ts +0 -123
- package/src/validate/integrity.ts +0 -387
- package/src/validate/reference.ts +0 -136
- package/src/validate/schema.ts +0 -328
- package/src/workspace/agents.ts +0 -290
- package/src/workspace/flows.ts +0 -191
- package/src/workspace/layout.ts +0 -165
- package/src/workspace/lock.ts +0 -148
- package/src/workspace/read.ts +0 -165
- package/src/workspace/reference.ts +0 -24
- package/src/workspace/stamp.ts +0 -301
- package/src/workspace/write.ts +0 -225
- /package/{src → dist}/pipefy/toolkit_bearer.py +0 -0
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
# Reference flows
|
|
2
|
-
|
|
3
|
-
Thirteen real flows from a production trade-finance integration, sanitized
|
|
4
|
-
before being added here — every company name, personal name, email, CNPJ,
|
|
5
|
-
phone number, and address was replaced, and every cached `sampleData` /
|
|
6
|
-
object-shaped `defaultValue` (a captured real API response, not part of the
|
|
7
|
-
flow's structure) was blanked to placeholder values while keeping its shape
|
|
8
|
-
and field names. The scrub was a one-off script, not kept in the repo; a
|
|
9
|
-
future batch needs its own token list built by hand from that batch's real
|
|
10
|
-
values, not a blind re-run of this one's.
|
|
11
|
-
|
|
12
|
-
**Field names inside the blanked sample data are real and informative** —
|
|
13
|
-
e.g. `cnpjOuCpf`, `idCedente`, `telefoneContato` — only the *values* are
|
|
14
|
-
placeholders. The business logic, node chaining, and CODE steps are
|
|
15
|
-
otherwise unchanged from production.
|
|
16
|
-
|
|
17
|
-
Two chains, by filename prefix:
|
|
18
|
-
|
|
19
|
-
## PRD — the live, always-connected chain
|
|
20
|
-
|
|
21
|
-
| File | What it demonstrates |
|
|
22
|
-
| --- | --- |
|
|
23
|
-
| `01-main-2-webhook-retorno-consulta.json` | `WEBHOOK` trigger → `ROUTER` with an empty branch → calling two subflows (`piece-subflows`) from different branches |
|
|
24
|
-
| `01-main-2-danfe-consulta.json` | `CALLABLE_FLOW` trigger (a subflow's entry point) → `piece-date-helper` → `piece-http-oauth2` (an authenticated external call) → `piece-tables` write |
|
|
25
|
-
| `01-main-4-recebimento-barramento.json` | `WEBHOOK` trigger → `LOOP_ON_ITEMS` over a batch payload → `ROUTER` *inside* the loop with an empty branch → calling a subflow per iteration. The loop-then-router-then-subflow nesting this tool's own compiler had never written before (see `research/ipaas/probe-loop-shape*.ts` and the `AGENTS.md` note on `ADD_ACTION` into a loop) |
|
|
26
|
-
| `02-subflow-2-danfe-retorno.json` | `WEBHOOK` trigger receiving an async callback, `piece-tables` lookup/update, several `CODE` steps formatting Brazilian currency/date/percent values for a Pipefy card update |
|
|
27
|
-
| `02-subflow-4-criacao-operacao.json` | `CALLABLE_FLOW` subflow, `piece-pipefy` `createCard` + `updateCard`, calling a further subflow |
|
|
28
|
-
| `03-subflow-4-criacao-titulo.json` | The deepest one: `LOOP_ON_ITEMS` with a `ROUTER` in its body, `piece-store` for cross-step state (the same `get`/`put`/`remove_value` shape as this project's own CS-request pagination example), `piece-file-helper`, several chained `CALLABLE_FLOW` calls |
|
|
29
|
-
| `04-subflow-4-criacao-cedente.json`, `04-subflow-4-criacao-sacado.json` | Near-identical pair (creditor vs. debtor side of the same process) — good for seeing how two flows built from the same template diverge |
|
|
30
|
-
|
|
31
|
-
## HML — the staging/monitoring chain
|
|
32
|
-
|
|
33
|
-
Same business domain, built as standalone monitoring flows rather than
|
|
34
|
-
inline subflows — useful as a *second* worked example of the same node
|
|
35
|
-
types without being a copy-paste of the PRD chain:
|
|
36
|
-
|
|
37
|
-
| File | What it demonstrates |
|
|
38
|
-
| --- | --- |
|
|
39
|
-
| `hml-01-subflow-1-titulo-acompanhamento-cobranca.json` | `piece-store` state machine, `piece-date-helper`, single-purpose monitoring flow |
|
|
40
|
-
| `hml-01-subflow-1-titulo-nfe-monitoramento.json` | Similar shape, different business event |
|
|
41
|
-
| `hml-01-subflow-1-titulo-retorno-bancario.json` | Similar shape, a bank-return event |
|
|
42
|
-
| `hml-02-subflow-2-retorno-consulta-cedente.json`, `hml-02-subflow-2-retorno-consulta-sacado.json` | `WEBHOOK` trigger + `piece-pipefy` card update, the creditor/debtor pair again |
|
|
1
|
+
# Reference flows
|
|
2
|
+
|
|
3
|
+
Thirteen real flows from a production trade-finance integration, sanitized
|
|
4
|
+
before being added here — every company name, personal name, email, CNPJ,
|
|
5
|
+
phone number, and address was replaced, and every cached `sampleData` /
|
|
6
|
+
object-shaped `defaultValue` (a captured real API response, not part of the
|
|
7
|
+
flow's structure) was blanked to placeholder values while keeping its shape
|
|
8
|
+
and field names. The scrub was a one-off script, not kept in the repo; a
|
|
9
|
+
future batch needs its own token list built by hand from that batch's real
|
|
10
|
+
values, not a blind re-run of this one's.
|
|
11
|
+
|
|
12
|
+
**Field names inside the blanked sample data are real and informative** —
|
|
13
|
+
e.g. `cnpjOuCpf`, `idCedente`, `telefoneContato` — only the *values* are
|
|
14
|
+
placeholders. The business logic, node chaining, and CODE steps are
|
|
15
|
+
otherwise unchanged from production.
|
|
16
|
+
|
|
17
|
+
Two chains, by filename prefix:
|
|
18
|
+
|
|
19
|
+
## PRD — the live, always-connected chain
|
|
20
|
+
|
|
21
|
+
| File | What it demonstrates |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| `01-main-2-webhook-retorno-consulta.json` | `WEBHOOK` trigger → `ROUTER` with an empty branch → calling two subflows (`piece-subflows`) from different branches |
|
|
24
|
+
| `01-main-2-danfe-consulta.json` | `CALLABLE_FLOW` trigger (a subflow's entry point) → `piece-date-helper` → `piece-http-oauth2` (an authenticated external call) → `piece-tables` write |
|
|
25
|
+
| `01-main-4-recebimento-barramento.json` | `WEBHOOK` trigger → `LOOP_ON_ITEMS` over a batch payload → `ROUTER` *inside* the loop with an empty branch → calling a subflow per iteration. The loop-then-router-then-subflow nesting this tool's own compiler had never written before (see `research/ipaas/probe-loop-shape*.ts` and the `AGENTS.md` note on `ADD_ACTION` into a loop) |
|
|
26
|
+
| `02-subflow-2-danfe-retorno.json` | `WEBHOOK` trigger receiving an async callback, `piece-tables` lookup/update, several `CODE` steps formatting Brazilian currency/date/percent values for a Pipefy card update |
|
|
27
|
+
| `02-subflow-4-criacao-operacao.json` | `CALLABLE_FLOW` subflow, `piece-pipefy` `createCard` + `updateCard`, calling a further subflow |
|
|
28
|
+
| `03-subflow-4-criacao-titulo.json` | The deepest one: `LOOP_ON_ITEMS` with a `ROUTER` in its body, `piece-store` for cross-step state (the same `get`/`put`/`remove_value` shape as this project's own CS-request pagination example), `piece-file-helper`, several chained `CALLABLE_FLOW` calls |
|
|
29
|
+
| `04-subflow-4-criacao-cedente.json`, `04-subflow-4-criacao-sacado.json` | Near-identical pair (creditor vs. debtor side of the same process) — good for seeing how two flows built from the same template diverge |
|
|
30
|
+
|
|
31
|
+
## HML — the staging/monitoring chain
|
|
32
|
+
|
|
33
|
+
Same business domain, built as standalone monitoring flows rather than
|
|
34
|
+
inline subflows — useful as a *second* worked example of the same node
|
|
35
|
+
types without being a copy-paste of the PRD chain:
|
|
36
|
+
|
|
37
|
+
| File | What it demonstrates |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| `hml-01-subflow-1-titulo-acompanhamento-cobranca.json` | `piece-store` state machine, `piece-date-helper`, single-purpose monitoring flow |
|
|
40
|
+
| `hml-01-subflow-1-titulo-nfe-monitoramento.json` | Similar shape, different business event |
|
|
41
|
+
| `hml-01-subflow-1-titulo-retorno-bancario.json` | Similar shape, a bank-return event |
|
|
42
|
+
| `hml-02-subflow-2-retorno-consulta-cedente.json`, `hml-02-subflow-2-retorno-consulta-sacado.json` | `WEBHOOK` trigger + `piece-pipefy` card update, the creditor/debtor pair again |
|