feat: add Higgsfield AI video generation integration#9
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
feat: add Higgsfield AI video generation integration#9devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
62cef75 to
70edb08
Compare
Contributor
Author
|
Merge conflict check: This branch was already up to date with |
20b66d6 to
63f1bd1
Compare
Add a new skill (HiggsFieldSkill) that lets the agent generate cinematic videos through the Higgsfield Cloud API (https://cloud.higgsfield.ai/). New agent tools: - higgsfield_generate_video: kick off a generation job (returns request_id) - higgsfield_check_video: poll job status (queued → completed → video_url) - higgsfield_list_models: enumerate available models (Sora 2, Veo 3, Kling 2.1, Seedance, DoP, Flux, Soul) Keychain / Settings: - New KeyStore.Key.higgsfield + Service.higgsfield - Added to Info.plist (iOS + Mac) and Secrets.xcconfig.example - Surfaced in list_api_keys / set_api_key via IntegrationSkill - Higgsfield appears in list_integrations and connect_integration Wiring (all five dispatch points): - Messaging.swift global tools array - AgentHarness system prompt + skill catalog - SkillDispatcher (headless / sub-agent / scheduled runs) - MessagingVC shimmer label (iOS) - VoiceLoopCoordinator dispatch + shimmer (Mac) Missing-key handling: tools return {error: "higgsfield_not_connected"} with a hint to set the key in Settings → Keys. Docs: new Integrations section in README.md. Co-Authored-By: bot_apk <apk@cognition.ai>
63f1bd1 to
8d99f34
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
HiggsFieldSkillthat lets the agent generate cinematic videos through the Higgsfield Cloud API. The integration follows the same pattern as existing skills (Exa, Devin, Cursor, etc.) and is wired into all five dispatch points.New agent tools:
higgsfield_generate_video— POSTs to the Higgsfield v2 REST API, returns arequest_idimmediately.higgsfield_check_video— polls/requests/{request_id}/status; returns{status, video_url?, thumbnail_url?, error?}.higgsfield_list_models— returns a curated catalog of available models (Sora 2, Veo 3, Kling 2.1 Pro/Std, Seedance, DoP, Wan, Flux, Soul).Keychain / Settings:
KeyStore.Key.higgsfield+Service.higgsfield(KEY_ID:KEY_SECRET format)Info.plistfiles andSecrets.xcconfig.exampleIntegrationSkill: surfaced inlist_api_keys/set_api_key/list_integrations/connect_integrationWiring (all five dispatch points):
toolsarray (Messaging.swift)AgentHarness.swift)SkillDispatcher(headless / sub-agent / scheduled runs)MessagingVCshimmer label (iOS)VoiceLoopCoordinatordispatch + shimmer (Mac)Missing-key handling: all tools return
{"error": "higgsfield_not_connected"}with a hint to set the key in Settings → Keys.API details: derived from the official
@higgsfield/clientnpm SDK source (v0.2.1). Uses the v2 REST API:Authorization: Key KEY_ID:KEY_SECRETheader,POST /{model-slug}for generation,GET /requests/{id}/statusfor polling. Base URL:https://platform.higgsfield.ai.Review & Testing Checklist for Human
HiggsFieldSkillreferencesKEY_ID:KEY_SECRETcredential, then ask the agent to generate a video — confirm the async flow (generate → poll → video_url) works end-to-endhiggsfield_generate_videoand confirm you get thehiggsfield_not_connectederror with the Settings hintlist_integrationsshows Higgsfield with the correct connected/not_connected statusSuggested test plan: Build → run on simulator → open Settings → Keys → verify Higgsfield row → go back to chat → type "list my integrations" → confirm Higgsfield shows up → type "generate a cinematic video of a sunset" → confirm either the not-connected error (no key) or the request_id response (with key).
Notes
higgsfield_list_modelsis static (curated from Higgsfield Cloud docs and SDK). If Higgsfield adds new models, this list can be updated independently.@higgsfield/clientv0.2.1 npm package source — the v2 client usesAuthorization: Key ID:SECRETauth and sends input fields at the top level of the POST body (not wrapped inparamslike v1).Link to Devin session: https://app.devin.ai/sessions/1d716602b55642729e099c13f192a601