Metadata-Version: 2.5
Name: fluidgrids-node-sdk
Version: 2026.1022.1
Summary: Build, validate, smoke-test and package FluidGrids workflow nodes.
Project-URL: Homepage, https://www.fluidgrids.ai
Project-URL: Documentation, https://docs.fluidgrids.ai/developers/custom-nodes
Author-email: "Burdenoff Consultancy Services Pvt. Ltd." <contact@fluidgrids.ai>
License: Proprietary
Keywords: automation,fluidgrids,node,sdk,workflow
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.11
Requires-Dist: graphql-core<3.3,>=3.2.6
Description-Content-Type: text/markdown

# fluidgrids-node-sdk

The FluidGrids custom-node contract as a package: a JSON Schema for
`manifest.json`, the validator and smoke gate the FluidGrids catalog itself runs,
a scaffold for new nodes, and the packager for the zip you publish.

```bash
pip install fluidgrids-node-sdk

fluidgrids-node new acme_crm --title "Acme CRM"   # acme_crm_node/1.0.0
cd acme_crm_node/1.0.0
pip install -r requirements.txt pytest && pytest
fluidgrids-node validate . --strict               # manifest, SDL and package checks
fluidgrids-node smoke .                           # docker build + call every operation
fluidgrids-node package .                         # store-acme_crm-1.0.0.zip + SHA-256
```

Then publish it from FluidGrids: **Developer Portal > Applications**, create an
application of type **Node**, open **Versions**, upload the zip and
`manifest.json`, and submit the version for review. Once a platform admin
approves it, the platform builds the node (from its own Dockerfile; any
Dockerfile in your zip is discarded) and it appears in the Node Store.

| Command | What it does |
|---|---|
| `new NAME` | Generate a working Python node: manifest, SDL, resolvers, handlers, AI-Agent tool adapter, tests, Dockerfile, compose file. |
| `validate [DIR ...] [--strict] [--json]` | Manifest rules, the SDL contract (every operation is an SDL field `op(context: ExecutionContextInput, state: JSON): <Result>!` whose result has `error: String`), and what the platform build needs. A catalog root checks every `nodes/*/*/manifest.json`. `--strict` fails on warnings too; new nodes should pass it. |
| `smoke DIR [--url URL]` | Build the node's Dockerfile (`development` target), start it, and call every operation with an empty state. A typed result passes; a GraphQL or resolver error fails. `--url` smokes a node that is already running. |
| `register DIR [--write \| --check]` | Render `register.gql` (the `registerNode` mutation) from the manifest. |
| `package DIR [-o ZIP]` | Validate, then write a deterministic zip with the node's files at its root, leaving out `.env` files and the platform-owned `Dockerfile`, `hooks.py` and `entrypoint.sh`. Prints the size and SHA-256. |
| `schema` | Print the manifest JSON Schema (for editor validation). |

The full guide is at https://docs.fluidgrids.ai/developers/custom-nodes. The
contract it enforces is `docs/node-standard.md` in the fluidgrids-nodes repo,
whose CI runs this same code.
