hostinger-api-mcp 4.15.2 → 4.17.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 (54) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +31 -6
  3. package/gemini-extension.json +1 -1
  4. package/package.json +1 -1
  5. package/server.json +2 -2
  6. package/skills/headless/SKILL.md +23 -0
  7. package/skills/headless/VERSION +2 -2
  8. package/skills/headless/local-server.mjs +64 -0
  9. package/skills/headless/processes.mjs +62 -0
  10. package/skills/headless/report.schema.json +16 -0
  11. package/skills/headless/run-log.mjs +27 -54
  12. package/skills/headless/servers.mjs +169 -0
  13. package/skills/headless/steps/06-frontend/SKILL.md +3 -1
  14. package/skills/headless/steps/06-frontend/bring-your-own-frontend.md +5 -0
  15. package/skills/headless/steps/07-validate/SKILL.md +5 -4
  16. package/skills/headless/steps/09-done/SKILL.md +3 -0
  17. package/skills/headless/workspace.mjs +28 -0
  18. package/src/core/runtime.js +1 -1
  19. package/src/core/runtime.ts +1 -1
  20. package/src/core/skills.js +49 -21
  21. package/src/core/skills.ts +49 -21
  22. package/src/core/tools/all.js +39 -4
  23. package/src/core/tools/all.ts +39 -4
  24. package/src/core/tools/horizons.js +39 -4
  25. package/src/core/tools/horizons.ts +39 -4
  26. package/src/servers/agency-hosting.js +1 -1
  27. package/src/servers/agency-hosting.ts +1 -1
  28. package/src/servers/agent-readiness.js +1 -1
  29. package/src/servers/agent-readiness.ts +1 -1
  30. package/src/servers/all.js +1 -1
  31. package/src/servers/all.ts +1 -1
  32. package/src/servers/billing.js +1 -1
  33. package/src/servers/billing.ts +1 -1
  34. package/src/servers/dns.js +1 -1
  35. package/src/servers/dns.ts +1 -1
  36. package/src/servers/domains.js +1 -1
  37. package/src/servers/domains.ts +1 -1
  38. package/src/servers/ecommerce.js +1 -1
  39. package/src/servers/ecommerce.ts +1 -1
  40. package/src/servers/gpu.js +1 -1
  41. package/src/servers/gpu.ts +1 -1
  42. package/src/servers/horizons.js +1 -1
  43. package/src/servers/horizons.ts +1 -1
  44. package/src/servers/hosting.js +1 -1
  45. package/src/servers/hosting.ts +1 -1
  46. package/src/servers/mail.js +1 -1
  47. package/src/servers/mail.ts +1 -1
  48. package/src/servers/reach.js +1 -1
  49. package/src/servers/reach.ts +1 -1
  50. package/src/servers/vps.js +1 -1
  51. package/src/servers/vps.ts +1 -1
  52. package/src/servers/wordpress.js +1 -1
  53. package/src/servers/wordpress.ts +1 -1
  54. package/types.d.ts +39 -4
package/types.d.ts CHANGED
@@ -3735,8 +3735,10 @@ The complete list of websites is returned in a single response - it is not pagin
3735
3735
  * Create new Hostinger AI Builder website from the given message.\n
3736
3736
  Use this tool when user asks you to create a website, landing page, blog
3737
3737
  or any other type of application.\n
3738
- This tool initiates the website creation process and returns a website URL and ID.
3739
- The generation happens asynchronously.\n
3738
+ This tool initiates the website creation process and returns a website URL, ID and build `task`.
3739
+ The generation happens asynchronously. To learn whether it succeeded, poll the
3740
+ `Get website build task` tool with `task.id`; `is_generating` turning false on `Get website`
3741
+ happens whether the build completed or failed.\n
3740
3742
  After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing
3741
3743
  that Hostinger AI Builder is now creating their website and it will be ready in a few minutes
3742
3744
  and you should provide the website URL to the user immediately
@@ -3781,8 +3783,10 @@ MAPS:\n
3781
3783
  /**
3782
3784
  * Edit an existing Hostinger AI Builder website with a follow-up message.\n
3783
3785
  Use this tool when the user wants to change, extend or fix a website that already exists.\n
3784
- This tool queues the requested changes and returns the website URL and ID.
3785
- The changes are applied asynchronously.\n
3786
+ This tool queues the requested changes and returns the website URL, ID and build `task`.
3787
+ The changes are applied asynchronously. To learn whether they were applied, poll the
3788
+ `Get website build task` tool with `task.id`; `is_generating` turning false on `Get website`
3789
+ happens whether the build completed or failed.\n
3786
3790
  After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing
3787
3791
  that Hostinger AI Builder is now applying the requested changes and they will be ready
3788
3792
  in a few minutes, and you should provide the website URL to the user immediately.
@@ -3807,6 +3811,9 @@ and do not generate code yourself in the chat.
3807
3811
  /**
3808
3812
  * Publish a Hostinger AI Builder website so its latest changes go live.\n
3809
3813
  Use this tool when the user asks to publish, deploy or make their website live.\n
3814
+ If you created or edited the website in this conversation, first check its build with the
3815
+ `Get website build task` tool and publish only when its `state` is `TASK_STATE_COMPLETED`.
3816
+ After a failed build, tell the user instead of publishing.\n
3810
3817
  This tool starts the publish process and returns the URL the website will be live on.
3811
3818
  Publishing happens asynchronously and takes a few minutes.\n
3812
3819
  Set `is_template` only when the user explicitly asks to share the website as a template:
@@ -3838,6 +3845,8 @@ website URL before or after editing it.\n
3838
3845
  `is_in_progress` is true while changes are being generated or the website is being published;
3839
3846
  wait until it is false before publishing. `is_generating` is true while changes are being generated,
3840
3847
  and `actions_in_progress` has `website_publish` while the website is being published.
3848
+ `is_generating` turns false whether the build completed or failed: use the `Get website build task`
3849
+ tool to learn its outcome.
3841
3850
  `published_at` is when the website was last published,
3842
3851
  `is_template` is whether its published pages show the "Use template" banner, and
3843
3852
  `has_ecommerce_store` is whether it has an online store.\n
@@ -3854,6 +3863,32 @@ interface in the provided website URL.
3854
3863
  response: any; // Response structure will depend on the API
3855
3864
  };
3856
3865
 
3866
+ /**
3867
+ * Get the state and outcome of a website build started by the `Create website` or `Edit website` tool.\n
3868
+ Use this tool with the `task.id` those tools return to find out whether the build completed or failed.
3869
+ Poll it every 30 seconds or so while `state` is `TASK_STATE_SUBMITTED` or `TASK_STATE_WORKING`.\n
3870
+ When `state` is `TASK_STATE_FAILED` or `TASK_STATE_REJECTED`, the website does not contain the requested
3871
+ changes: tell the user, using `message` and `reason_code`, and do not publish it.
3872
+ When `state` is `TASK_STATE_CANCELED`, the user stopped the build and changes made before that may be kept:
3873
+ publish only if the user asks to.
3874
+ `reason_code` `insufficient_credits` means the user must get more credits before building again.\n
3875
+ When `state` is `TASK_STATE_COMPLETED`, the website can be published. A `reason_code` of
3876
+ `iteration_limit` on a completed build means it stopped early and kept the work done so far.
3877
+ */
3878
+ "horizons_websites_build-task": {
3879
+ params: {
3880
+ /**
3881
+ * The website ID
3882
+ */
3883
+ websiteId: string;
3884
+ /**
3885
+ * The build task ID, returned as `task.id` by the `Create website` and `Edit website` tools
3886
+ */
3887
+ taskId: string;
3888
+ };
3889
+ response: any; // Response structure will depend on the API
3890
+ };
3891
+
3857
3892
  /**
3858
3893
  * Permanently clears all server-side cache for the website at once. Use it when content was
3859
3894
  updated and needs to be visible immediately, or after making major changes.