feat(flint): add Flint integration with agent task tools, block, and docs#5641
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
@cursor review |
PR SummaryMedium Risk Overview Three new tools cover the task lifecycle: create task from a natural-language prompt, generate pages (1–10 items from a template slug, with JSON parse/validation at execution time), and get task (status plus created/modified/deleted page URLs). A new Flint canvas block wires those operations with conditional fields, advanced publish / callback options, and Reviewed by Cursor Bugbot for commit 4458216. Configure here. |
Greptile SummaryThis PR adds a Flint integration for running and polling background agent tasks. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (6): Last reviewed commit: "fix(flint): drop json-object generation ..." | Re-trigger Greptile |
Greptile SummaryThis PR adds Flint as a new Sim integration. The main changes are:
Confidence Score: 4/5The Flint publish mapping needs a fix before merging.
apps/sim/blocks/blocks/flint.ts
|
| Filename | Overview |
|---|---|
| apps/sim/blocks/blocks/flint.ts | Adds the Flint block, UI fields, tool mapping, metadata templates, and skills; the publish mapping drops explicit false values. |
| apps/sim/tools/flint/create_task.ts | Adds the create task ToolConfig with bearer auth, POST body construction, and task-created output mapping. |
| apps/sim/tools/flint/generate_pages.ts | Adds the generate pages ToolConfig with item parsing, validation, and request body construction. |
| apps/sim/tools/flint/get_task.ts | Adds the task polling ToolConfig and normalizes returned page arrays into nullable page objects. |
| apps/sim/tools/flint/utils.ts | Adds shared Flint API URL, bearer headers, and user-only API key parameter metadata. |
| apps/sim/tools/registry.ts | Registers the three Flint tools under matching snake_case IDs. |
| apps/sim/blocks/registry-maps.ts | Registers the Flint block and metadata in the block registries. |
| apps/sim/components/icons.tsx | Adds the Sim Flint icon with currentColor fills. |
| apps/docs/components/icons.tsx | Adds the docs Flint icon with currentColor fills. |
| apps/docs/content/docs/en/integrations/flint.mdx | Adds the Flint integration documentation page. |
Reviews (2): Last reviewed commit: "feat(flint): add Flint integration with ..." | Re-trigger Greptile
…gn default params branch with tool fallback
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit ee0eead. Configure here.
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 4458216. Configure here.
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4458216. Configure here.
| if (value === true || value === 'true') return true | ||
| if (value === false || value === 'false') return false | ||
| return undefined | ||
| } |
There was a problem hiding this comment.
Off publish switch still omits field
Medium Severity
coercePublish returns undefined when Publish on Completion was never toggled, so publish is omitted from the Flint request. The switch still renders off via Boolean(null/undefined), so the UI looks unpublished while Flint can apply its server default. Basic-mode runs never show the switch, so they always hit that omit path.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 4458216. Configure here.


Summary
flint_create_task(prompt tasks),flint_generate_pages(template-based page generation, 1-10 pages),flint_get_task(status + created/modified/deleted pages)https://app.tryflint.com/api/v1; items JSON parsed/validated at execution time so block references survive serializationcurrentColorfor bare/theme-safe rendering), registered in tool/block registries and icon mappings, generated docs pageManual Description
Flint is an AI website builder — this integration lets workflows drive its background agent over the Agent Tasks API (two endpoints:
POST /agent/tasks,GET /agent/tasks/{taskId}).To exercise it manually:
ak_..., from Flint team settings).taskIdwith statusrunning./case-studies/template), and a JSON array of 1-10{targetPageSlug, context}items (the wand can generate it) — returns ataskId.taskIduntil status iscompleted(exposespagesCreated/pagesModified/pagesDeletedwith preview/edit/published URLs) orfailed(exposeserrorMessage).Type of Change
Testing
Typecheck, biome,
check:bare-icons, and block/tool registry test suites (168 tests) pass; tools validated against https://www.flint.com/docs/apiChecklist