@withgateway/sdk 0.1.20 → 0.2.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.
Files changed (1222) hide show
  1. package/README.md +165 -2
  2. package/dist/cli.js +14075 -1326
  3. package/dist/cli.js.map +1 -1
  4. package/dist/cli.mjs +14073 -1325
  5. package/dist/cli.mjs.map +1 -1
  6. package/dist/files/index.d.mts +2 -0
  7. package/dist/files/index.d.ts +2 -0
  8. package/dist/files/index.js +446 -0
  9. package/dist/files/index.js.map +1 -0
  10. package/dist/files/index.mjs +395 -0
  11. package/dist/files/index.mjs.map +1 -0
  12. package/dist/index-BgvvQ3BC.d.ts +170 -0
  13. package/dist/index-CLkMr6VG.d.ts +171 -0
  14. package/dist/index-CdbmO4aX.d.mts +171 -0
  15. package/dist/index-CiKWoroJ.d.mts +170 -0
  16. package/dist/index.d.mts +3 -1
  17. package/dist/index.d.ts +3 -1
  18. package/dist/index.js +3341 -241
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +3279 -235
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/traces/index.d.mts +2 -0
  23. package/dist/traces/index.d.ts +2 -0
  24. package/dist/traces/index.js +320 -0
  25. package/dist/traces/index.js.map +1 -0
  26. package/dist/traces/index.mjs +278 -0
  27. package/dist/traces/index.mjs.map +1 -0
  28. package/dist/tracing/index.js +24 -2
  29. package/dist/tracing/index.js.map +1 -1
  30. package/dist/tracing/index.mjs +24 -2
  31. package/dist/tracing/index.mjs.map +1 -1
  32. package/dist/worlds/index.d.mts +1419 -25
  33. package/dist/worlds/index.d.ts +1419 -25
  34. package/dist/worlds/index.js +2829 -87
  35. package/dist/worlds/index.js.map +1 -1
  36. package/dist/worlds/index.mjs +2824 -83
  37. package/dist/worlds/index.mjs.map +1 -1
  38. package/package.json +24 -2
  39. package/runtime/gatewaysdk/__init__.py +0 -0
  40. package/runtime/gatewaysdk/environment/__init__.py +108 -0
  41. package/runtime/gatewaysdk/environment/_bundle.py +281 -0
  42. package/runtime/gatewaysdk/environment/_harbor.py +276 -0
  43. package/runtime/gatewaysdk/environment/_materialize.py +97 -0
  44. package/runtime/gatewaysdk/environment/_tar.py +33 -0
  45. package/runtime/gatewaysdk/environment/_world.py +359 -0
  46. package/runtime/gatewaysdk/environment/core.py +527 -0
  47. package/runtime/gatewaysdk/environment/errors.py +58 -0
  48. package/runtime/gatewaysdk/environment/runtime.py +150 -0
  49. package/runtime/gatewaysdk/environment/schema/__init__.py +43 -0
  50. package/runtime/gatewaysdk/environment/schema/__main__.py +360 -0
  51. package/runtime/gatewaysdk/environment/schema/_slack_fidelity.py +116 -0
  52. package/runtime/gatewaysdk/environment/schema/_slack_scenario.py +183 -0
  53. package/runtime/gatewaysdk/environment/schema/api.py +1824 -0
  54. package/runtime/gatewaysdk/environment/schema/batch.py +785 -0
  55. package/runtime/gatewaysdk/environment/schema/compiler.py +693 -0
  56. package/runtime/gatewaysdk/environment/schema/conform.py +520 -0
  57. package/runtime/gatewaysdk/environment/schema/connector.py +1116 -0
  58. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/api/handlers.py +778 -0
  59. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/connector.toml +671 -0
  60. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/handlers.py +18 -0
  61. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/parity.json +34 -0
  62. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/provenance.json +1768 -0
  63. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/instruction.md +7 -0
  64. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/scenario.toml +2 -0
  65. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_activities.json +24 -0
  66. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_activity_devices.json +12 -0
  67. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_applecare_coverages.json +52 -0
  68. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_apps.json +35 -0
  69. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_audit_events.json +139 -0
  70. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_apps.json +12 -0
  71. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_configurations.json +20 -0
  72. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_devices.json +16 -0
  73. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_packages.json +8 -0
  74. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_user_groups.json +12 -0
  75. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprint_users.json +12 -0
  76. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_blueprints.json +39 -0
  77. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_configurations.json +64 -0
  78. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_device_assignments.json +20 -0
  79. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_device_details.json +55 -0
  80. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_devices.json +33 -0
  81. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_mdm_servers.json +56 -0
  82. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_org_devices.json +178 -0
  83. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_organizational_unit_memberships.json +16 -0
  84. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_organizational_units.json +24 -0
  85. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_packages.json +20 -0
  86. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_user_group_memberships.json +16 -0
  87. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_user_groups.json +30 -0
  88. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scenarios/default/seed/abm_users.json +115 -0
  89. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/scope.toml +139 -0
  90. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/tests/tools.json +48 -0
  91. package/runtime/gatewaysdk/environment/schema/connectors/apple-business-manager/world.json +2366 -0
  92. package/runtime/gatewaysdk/environment/schema/connectors/asana/api/handlers.py +1026 -0
  93. package/runtime/gatewaysdk/environment/schema/connectors/asana/connector.toml +511 -0
  94. package/runtime/gatewaysdk/environment/schema/connectors/asana/fidelity.json +89 -0
  95. package/runtime/gatewaysdk/environment/schema/connectors/asana/handlers.py +40 -0
  96. package/runtime/gatewaysdk/environment/schema/connectors/asana/provenance.json +101 -0
  97. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/scenario.toml +2 -0
  98. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/account_settings.json +12 -0
  99. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/custom_field_settings.json +60 -0
  100. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/custom_fields.json +43 -0
  101. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/enum_options.json +52 -0
  102. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/notifications.json +103 -0
  103. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/project_favorites.json +12 -0
  104. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/project_memberships.json +144 -0
  105. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/projects.json +120 -0
  106. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/recent_projects.json +19 -0
  107. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/sections.json +102 -0
  108. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/stories.json +852 -0
  109. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_custom_fields.json +508 -0
  110. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_followers.json +368 -0
  111. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/task_memberships.json +184 -0
  112. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/tasks.json +1921 -0
  113. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/teams.json +22 -0
  114. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/user_task_list_sections.json +32 -0
  115. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/user_task_lists.json +11 -0
  116. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/users.json +60 -0
  117. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/workspace_memberships.json +76 -0
  118. package/runtime/gatewaysdk/environment/schema/connectors/asana/scenarios/default/seed/workspaces.json +13 -0
  119. package/runtime/gatewaysdk/environment/schema/connectors/asana/scope.toml +156 -0
  120. package/runtime/gatewaysdk/environment/schema/connectors/asana/tests/routes.json +298 -0
  121. package/runtime/gatewaysdk/environment/schema/connectors/asana/tests/tools.json +152 -0
  122. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/assets/index-DTTTJ6a4.css +1 -0
  123. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/assets/index-WS8dLEjv.js +67 -0
  124. package/runtime/gatewaysdk/environment/schema/connectors/asana/ui/static/index.html +40 -0
  125. package/runtime/gatewaysdk/environment/schema/connectors/asana/world.json +1911 -0
  126. package/runtime/gatewaysdk/environment/schema/connectors/base.json +28 -0
  127. package/runtime/gatewaysdk/environment/schema/connectors/confluence/api/handlers.py +847 -0
  128. package/runtime/gatewaysdk/environment/schema/connectors/confluence/connector.toml +457 -0
  129. package/runtime/gatewaysdk/environment/schema/connectors/confluence/handlers.py +176 -0
  130. package/runtime/gatewaysdk/environment/schema/connectors/confluence/provenance.json +187 -0
  131. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/instruction.md +39 -0
  132. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/scenario.toml +3 -0
  133. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_favourites.json +29 -0
  134. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_footer_comments.json +984 -0
  135. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_inline_comments.json +355 -0
  136. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_labels.json +99 -0
  137. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_notifications.json +40 -0
  138. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_page_labels.json +209 -0
  139. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_page_versions.json +828 -0
  140. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_pages.json +949 -0
  141. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_recently_viewed_pages.json +59 -0
  142. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_sites.json +12 -0
  143. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_spaces.json +128 -0
  144. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_users.json +100 -0
  145. package/runtime/gatewaysdk/environment/schema/connectors/confluence/scenarios/default/seed/confluence_watches.json +96 -0
  146. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/routes.json +212 -0
  147. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/tools.json +140 -0
  148. package/runtime/gatewaysdk/environment/schema/connectors/confluence/tests/writes.json +201 -0
  149. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/assets/index-BWaOVdpn.js +70 -0
  150. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/assets/index-CKyfi3i5.css +1 -0
  151. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-01.svg +1 -0
  152. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-02.svg +1 -0
  153. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-03.svg +1 -0
  154. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-04.svg +1 -0
  155. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-05.svg +1 -0
  156. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/acct-06.svg +1 -0
  157. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-DES.svg +1 -0
  158. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-ENG.svg +1 -0
  159. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-OPS.svg +1 -0
  160. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-ORB.svg +1 -0
  161. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/avatars/space-PN.svg +1 -0
  162. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianMono-latin.woff2 +0 -0
  163. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianSans-latin.woff2 +0 -0
  164. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/fonts/AtlassianSansItalic-latin.woff2 +0 -0
  165. package/runtime/gatewaysdk/environment/schema/connectors/confluence/ui/static/index.html +47 -0
  166. package/runtime/gatewaysdk/environment/schema/connectors/confluence/world.json +1346 -0
  167. package/runtime/gatewaysdk/environment/schema/connectors/custom/handlers.py +18 -0
  168. package/runtime/gatewaysdk/environment/schema/connectors/custom/provenance.json +35 -0
  169. package/runtime/gatewaysdk/environment/schema/connectors/custom/tests/tools.json +123 -0
  170. package/runtime/gatewaysdk/environment/schema/connectors/custom/world.json +211 -0
  171. package/runtime/gatewaysdk/environment/schema/connectors/github/api/handlers.py +2923 -0
  172. package/runtime/gatewaysdk/environment/schema/connectors/github/connector.toml +2091 -0
  173. package/runtime/gatewaysdk/environment/schema/connectors/github/handlers.py +81 -0
  174. package/runtime/gatewaysdk/environment/schema/connectors/github/parity.json +37 -0
  175. package/runtime/gatewaysdk/environment/schema/connectors/github/provenance.json +162 -0
  176. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/instruction.md +18 -0
  177. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/scenario.toml +2 -0
  178. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_apps.json +49 -0
  179. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_artifacts.json +26 -0
  180. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_branches.json +443 -0
  181. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_check_runs.json +220 -0
  182. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_check_suites.json +404 -0
  183. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_code_scanning_alerts.json +126 -0
  184. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_collaborators.json +100 -0
  185. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commit_comments.json +43 -0
  186. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commit_statuses.json +80 -0
  187. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_commits.json +461 -0
  188. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_dependabot_alerts.json +168 -0
  189. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_deployment_statuses.json +86 -0
  190. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_deployments.json +94 -0
  191. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_environments.json +31 -0
  192. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_gist_comments.json +38 -0
  193. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_gists.json +118 -0
  194. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_git_refs.json +59 -0
  195. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_installations.json +54 -0
  196. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_comments.json +151 -0
  197. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_events.json +606 -0
  198. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issue_types.json +26 -0
  199. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_issues.json +758 -0
  200. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_labels.json +64 -0
  201. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_licenses.json +54 -0
  202. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_milestones.json +130 -0
  203. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_organization_memberships.json +139 -0
  204. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_organizations.json +38 -0
  205. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_pull_requests.json +874 -0
  206. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_release_assets.json +45 -0
  207. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_releases.json +92 -0
  208. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_repositories.json +797 -0
  209. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_repository_invitations.json +184 -0
  210. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_review_comments.json +66 -0
  211. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_reviews.json +138 -0
  212. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_secret_scanning_alerts.json +50 -0
  213. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_stargazers.json +88 -0
  214. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_tags.json +28 -0
  215. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_team_memberships.json +25 -0
  216. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_team_repositories.json +258 -0
  217. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_teams.json +130 -0
  218. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_users.json +174 -0
  219. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_webhooks.json +31 -0
  220. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflow_jobs.json +115 -0
  221. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflow_runs.json +1021 -0
  222. package/runtime/gatewaysdk/environment/schema/connectors/github/scenarios/default/seed/github_workflows.json +30 -0
  223. package/runtime/gatewaysdk/environment/schema/connectors/github/scope.toml +597 -0
  224. package/runtime/gatewaysdk/environment/schema/connectors/github/tests/tools.json +79 -0
  225. package/runtime/gatewaysdk/environment/schema/connectors/github/vendor-openapi.json +1 -0
  226. package/runtime/gatewaysdk/environment/schema/connectors/github/world.json +15762 -0
  227. package/runtime/gatewaysdk/environment/schema/connectors/gmail/api/handlers.py +1413 -0
  228. package/runtime/gatewaysdk/environment/schema/connectors/gmail/connector.toml +630 -0
  229. package/runtime/gatewaysdk/environment/schema/connectors/gmail/handlers.py +136 -0
  230. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/scenario.toml +1 -0
  231. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/10-gmail_profiles.json +10 -0
  232. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/20-gmail_labels.json +205 -0
  233. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/30-gmail_contacts.json +234 -0
  234. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/40-gmail_threads.json +374 -0
  235. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/50-gmail_messages.json +1015 -0
  236. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/60-gmail_message_parts.json +3039 -0
  237. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/70-gmail_attachments.json +28 -0
  238. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/80-gmail_drafts.json +39 -0
  239. package/runtime/gatewaysdk/environment/schema/connectors/gmail/scenarios/default/seed/90-gmail_client_settings.json +103 -0
  240. package/runtime/gatewaysdk/environment/schema/connectors/gmail/world.json +784 -0
  241. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/api/handlers.py +454 -0
  242. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/connector.toml +519 -0
  243. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/handlers.py +23 -0
  244. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/provenance.json +229 -0
  245. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/instruction.md +25 -0
  246. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/scenario.toml +1 -0
  247. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/10-calendar_calendars.json +75 -0
  248. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/20-calendar_calendar_list_entries.json +115 -0
  249. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/30-calendar_acl_rules.json +124 -0
  250. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/40-calendar_events.json +810 -0
  251. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/50-calendar_settings.json +76 -0
  252. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/60-calendar_channels.json +26 -0
  253. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scenarios/default/seed/70-calendar_colors.json +48 -0
  254. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/scope.toml +105 -0
  255. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/tests/tools.json +53 -0
  256. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/vendor-openapi.json +4185 -0
  257. package/runtime/gatewaysdk/environment/schema/connectors/google-calendar/world.json +1384 -0
  258. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/api/handlers.py +782 -0
  259. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/connector.toml +373 -0
  260. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/google-docs-types.json +4939 -0
  261. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/handlers.py +197 -0
  262. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/provenance.json +191 -0
  263. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/instruction.md +29 -0
  264. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/scenario.toml +2 -0
  265. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_comments.json +50 -0
  266. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_documents.json +8096 -0
  267. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_files.json +1187 -0
  268. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_permissions.json +543 -0
  269. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_replies.json +22 -0
  270. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_revisions.json +643 -0
  271. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scenarios/default/seed/gdocs_users.json +32 -0
  272. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/scope.toml +148 -0
  273. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/tests/api.json +319 -0
  274. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/tests/tools.json +262 -0
  275. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/assets/index-BH9fmZSS.css +1 -0
  276. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/assets/index-CU4Fk9dX.js +67 -0
  277. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/README.md +20 -0
  278. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/google-sans-variable.woff2 +0 -0
  279. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-italic-variable-latin.woff2 +0 -0
  280. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-variable-latin-ext.woff2 +0 -0
  281. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/fonts/roboto-variable-latin.woff2 +0 -0
  282. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/icons/material_common_sprite1038_gm3_grey_medium.svg +1 -0
  283. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/ui/static/index.html +13 -0
  284. package/runtime/gatewaysdk/environment/schema/connectors/google-docs/world.json +4489 -0
  285. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/api/handlers.py +466 -0
  286. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/connector.toml +626 -0
  287. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/handlers.py +55 -0
  288. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/provenance.json +342 -0
  289. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/instruction.md +11 -0
  290. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/scenario.toml +2 -0
  291. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_access_proposals.json +31 -0
  292. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_approvals.json +145 -0
  293. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_apps.json +81 -0
  294. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_comments.json +70 -0
  295. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_drives.json +71 -0
  296. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_files.json +700 -0
  297. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_labels.json +75 -0
  298. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_permissions.json +93 -0
  299. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_replies.json +66 -0
  300. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scenarios/default/seed/drive_revisions.json +82 -0
  301. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/scope.toml +126 -0
  302. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/tests/tools.json +101 -0
  303. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/vendor-openapi.json +6193 -0
  304. package/runtime/gatewaysdk/environment/schema/connectors/google-drive/world.json +2150 -0
  305. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/api/handlers.py +1645 -0
  306. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/connector.toml +414 -0
  307. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/handlers.py +200 -0
  308. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/scenario.toml +2 -0
  309. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_cells.json +10252 -0
  310. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_charts.json +103 -0
  311. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_conditional_formats.json +138 -0
  312. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_dimensions.json +256 -0
  313. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_named_ranges.json +16 -0
  314. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_permissions.json +31 -0
  315. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_sheets.json +95 -0
  316. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_spreadsheets.json +14 -0
  317. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/scenarios/default/seed/gsheets_view_states.json +26 -0
  318. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/tests/page.json +311 -0
  319. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/tests/vendor.json +843 -0
  320. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/assets/index-CUpfKgm_.js +40 -0
  321. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/assets/index-D3VhwBIC.css +1 -0
  322. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-400.woff2 +0 -0
  323. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-500.woff2 +0 -0
  324. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSans-700.woff2 +0 -0
  325. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-400.woff2 +0 -0
  326. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-500.woff2 +0 -0
  327. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/GoogleSansText-700.woff2 +0 -0
  328. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-400.woff2 +0 -0
  329. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-500.woff2 +0 -0
  330. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/fonts/Roboto-700.woff2 +0 -0
  331. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/ui/static/index.html +26 -0
  332. package/runtime/gatewaysdk/environment/schema/connectors/google-sheets/world.json +4029 -0
  333. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/api/handlers.py +800 -0
  334. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/connector.toml +776 -0
  335. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/handlers.py +226 -0
  336. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/instruction.md +11 -0
  337. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/scenario.toml +2 -0
  338. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_accounts.json +17 -0
  339. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_associations.json +1478 -0
  340. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_calls.json +147 -0
  341. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_companies.json +144 -0
  342. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_contacts.json +284 -0
  343. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_deals.json +204 -0
  344. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_emails.json +160 -0
  345. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_meetings.json +147 -0
  346. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_nav_items.json +204 -0
  347. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_notes.json +160 -0
  348. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_notifications.json +25 -0
  349. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_object_views.json +334 -0
  350. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_owners.json +76 -0
  351. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_pipeline_stages.json +109 -0
  352. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_pipelines.json +13 -0
  353. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_properties.json +1220 -0
  354. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_tasks.json +394 -0
  355. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/scenarios/default/seed/hubspot_tickets.json +34 -0
  356. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/assets/index-hdb5vB78.css +1 -0
  357. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/assets/index-xhg5ASqE.js +68 -0
  358. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-300.ttf +0 -0
  359. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-400.ttf +0 -0
  360. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-500.ttf +0 -0
  361. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-600.ttf +0 -0
  362. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-700.ttf +0 -0
  363. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/fonts/lexend-deca-latin.woff2 +0 -0
  364. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/add.svg +1 -0
  365. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/avatar.svg +1 -0
  366. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/bell.svg +3 -0
  367. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/breeze.svg +4 -0
  368. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/call.svg +1 -0
  369. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/chevron-up.svg +3 -0
  370. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/companies.svg +1 -0
  371. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/contact.svg +1 -0
  372. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/contacts.svg +1 -0
  373. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/date.svg +1 -0
  374. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/deals.svg +1 -0
  375. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/duplicate.svg +1 -0
  376. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/export.svg +3 -0
  377. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/external-link.svg +1 -0
  378. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/filter-lines.svg +3 -0
  379. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/frame-expand.svg +3 -0
  380. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/funnel.svg +3 -0
  381. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/help.svg +1 -0
  382. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/hierarchy.svg +4 -0
  383. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/home.svg +1 -0
  384. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/hubspot-logo.svg +1 -0
  385. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/info.svg +1 -0
  386. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/kanban.svg +1 -0
  387. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/marketing-email.svg +1 -0
  388. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/marketplace.svg +1 -0
  389. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/meetings.svg +1 -0
  390. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/more.svg +1 -0
  391. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/pencil.svg +3 -0
  392. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/pin.svg +3 -0
  393. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/prospecting.svg +1 -0
  394. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/refresh.svg +1 -0
  395. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/search.svg +1 -0
  396. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/settings.svg +1 -0
  397. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/sidebar-collapse.svg +3 -0
  398. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/sort.svg +3 -0
  399. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/table.svg +1 -0
  400. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/tasks.svg +1 -0
  401. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/thumbs-down.svg +1 -0
  402. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/thumbs-up.svg +1 -0
  403. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/undo.svg +3 -0
  404. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/upgrade-arrow.svg +1 -0
  405. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/vertical-dots.svg +5 -0
  406. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/icons/workflows.svg +1 -0
  407. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/ui/static/index.html +37 -0
  408. package/runtime/gatewaysdk/environment/schema/connectors/hubspot/world.json +1347 -0
  409. package/runtime/gatewaysdk/environment/schema/connectors/jamf/api/handlers.py +987 -0
  410. package/runtime/gatewaysdk/environment/schema/connectors/jamf/connector.toml +3057 -0
  411. package/runtime/gatewaysdk/environment/schema/connectors/jamf/handlers.py +34 -0
  412. package/runtime/gatewaysdk/environment/schema/connectors/jamf/parity.json +49 -0
  413. package/runtime/gatewaysdk/environment/schema/connectors/jamf/provenance.json +9495 -0
  414. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/scenario.toml +4 -0
  415. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_account_groups.json +64 -0
  416. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_accounts.json +58 -0
  417. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_computer_searches.json +139 -0
  418. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_mobile_device_searches.json +61 -0
  419. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_user_content_searches.json +61 -0
  420. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_advanced_user_searches.json +124 -0
  421. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_api_integrations.json +37 -0
  422. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_api_roles.json +25 -0
  423. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_app_request_form_input_fields.json +22 -0
  424. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_buildings.json +34 -0
  425. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_byo_profiles.json +46 -0
  426. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_categories.json +19 -0
  427. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_classes.json +217 -0
  428. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_cloud_idps.json +19 -0
  429. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_group_members.json +16 -0
  430. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_groups.json +38 -0
  431. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_invitations.json +82 -0
  432. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computer_prestages.json +274 -0
  433. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_computers.json +1537 -0
  434. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_configuration_profiles.json +649 -0
  435. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_departments.json +16 -0
  436. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_device_enrollment_devices.json +70 -0
  437. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_device_enrollments.json +46 -0
  438. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_directory_bindings.json +34 -0
  439. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_disk_encryption_configurations.json +22 -0
  440. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_distribution_points.json +91 -0
  441. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_dock_items.json +25 -0
  442. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ebooks.json +43 -0
  443. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_enrollment_customizations.json +43 -0
  444. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_extension_attributes.json +52 -0
  445. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ibeacons.json +25 -0
  446. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_inventory_preload_records.json +100 -0
  447. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ios_branding_configurations.json +31 -0
  448. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_ldap_servers.json +16 -0
  449. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_licensed_software_records.json +244 -0
  450. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mac_applications.json +610 -0
  451. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_macos_branding_configurations.json +34 -0
  452. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_managed_software_update_plans.json +67 -0
  453. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mdm_commands.json +58 -0
  454. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_applications.json +700 -0
  455. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_configuration_profiles.json +652 -0
  456. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_enrollment_profiles.json +160 -0
  457. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_extension_attributes.json +43 -0
  458. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_group_members.json +16 -0
  459. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_groups.json +38 -0
  460. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_prestages.json +280 -0
  461. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_device_provisioning_profiles.json +31 -0
  462. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_mobile_devices.json +1558 -0
  463. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_network_segments.json +46 -0
  464. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_packages.json +118 -0
  465. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_patch_software_title_configurations.json +88 -0
  466. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_policies.json +1054 -0
  467. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_printers.json +52 -0
  468. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_removable_mac_addresses.json +16 -0
  469. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_restricted_software_titles.json +289 -0
  470. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_return_to_service_configurations.json +19 -0
  471. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_scripts.json +61 -0
  472. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_sites.json +19 -0
  473. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_software_update_servers.json +25 -0
  474. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_supervision_identities.json +22 -0
  475. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_user_extension_attributes.json +31 -0
  476. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_user_groups.json +112 -0
  477. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_users.json +37 -0
  478. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_volume_purchasing_locations.json +106 -0
  479. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_volume_purchasing_subscriptions.json +76 -0
  480. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scenarios/default/seed/jamf_webhooks.json +70 -0
  481. package/runtime/gatewaysdk/environment/schema/connectors/jamf/scope.toml +900 -0
  482. package/runtime/gatewaysdk/environment/schema/connectors/jamf/tests/tools.json +95 -0
  483. package/runtime/gatewaysdk/environment/schema/connectors/jamf/vendor-openapi.json +1 -0
  484. package/runtime/gatewaysdk/environment/schema/connectors/jamf/world.json +11559 -0
  485. package/runtime/gatewaysdk/environment/schema/connectors/jira/api/handlers.py +1056 -0
  486. package/runtime/gatewaysdk/environment/schema/connectors/jira/connector.toml +955 -0
  487. package/runtime/gatewaysdk/environment/schema/connectors/jira/handlers.py +87 -0
  488. package/runtime/gatewaysdk/environment/schema/connectors/jira/parity.json +27 -0
  489. package/runtime/gatewaysdk/environment/schema/connectors/jira/provenance.json +166 -0
  490. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/instruction.md +22 -0
  491. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/scenario.toml +3 -0
  492. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_boards.json +61 -0
  493. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_changelogs.json +136 -0
  494. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_comments.json +205 -0
  495. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_components.json +78 -0
  496. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_fields.json +498 -0
  497. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_link_types.json +25 -0
  498. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_links.json +190 -0
  499. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issue_types.json +44 -0
  500. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_issues.json +1448 -0
  501. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_priorities.json +40 -0
  502. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_project_categories.json +16 -0
  503. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_projects.json +111 -0
  504. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_resolutions.json +22 -0
  505. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_sprint_issues.json +20 -0
  506. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_sprints.json +39 -0
  507. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_status_categories.json +25 -0
  508. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_statuses.json +60 -0
  509. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_transitions.json +179 -0
  510. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_users.json +83 -0
  511. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_versions.json +30 -0
  512. package/runtime/gatewaysdk/environment/schema/connectors/jira/scenarios/default/seed/jira_worklogs.json +96 -0
  513. package/runtime/gatewaysdk/environment/schema/connectors/jira/scope.toml +255 -0
  514. package/runtime/gatewaysdk/environment/schema/connectors/jira/tests/tools.json +151 -0
  515. package/runtime/gatewaysdk/environment/schema/connectors/jira/vendor-openapi.json +13562 -0
  516. package/runtime/gatewaysdk/environment/schema/connectors/jira/world.json +3587 -0
  517. package/runtime/gatewaysdk/environment/schema/connectors/kandji/api/handlers.py +406 -0
  518. package/runtime/gatewaysdk/environment/schema/connectors/kandji/connector.toml +531 -0
  519. package/runtime/gatewaysdk/environment/schema/connectors/kandji/handlers.py +38 -0
  520. package/runtime/gatewaysdk/environment/schema/connectors/kandji/parity.json +29 -0
  521. package/runtime/gatewaysdk/environment/schema/connectors/kandji/provenance.json +335 -0
  522. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/scenario.toml +2 -0
  523. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_items.json +22 -0
  524. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_template_categories.json +14 -0
  525. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprint_templates.json +38 -0
  526. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_blueprints.json +52 -0
  527. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_apps.json +45 -0
  528. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_profiles.json +32 -0
  529. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_custom_scripts.json +27 -0
  530. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_activities.json +43 -0
  531. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_apps.json +52 -0
  532. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_commands.json +41 -0
  533. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_notes.json +20 -0
  534. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_parameters.json +28 -0
  535. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_device_tags.json +16 -0
  536. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_devices.json +122 -0
  537. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_in_house_apps.json +33 -0
  538. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_item_activities.json +33 -0
  539. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_item_statuses.json +98 -0
  540. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_library_items.json +24 -0
  541. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_self_service_categories.json +12 -0
  542. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_tags.json +16 -0
  543. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scenarios/default/seed/kandji_users.json +61 -0
  544. package/runtime/gatewaysdk/environment/schema/connectors/kandji/scope.toml +199 -0
  545. package/runtime/gatewaysdk/environment/schema/connectors/kandji/tests/tools.json +64 -0
  546. package/runtime/gatewaysdk/environment/schema/connectors/kandji/vendor-openapi.json +5463 -0
  547. package/runtime/gatewaysdk/environment/schema/connectors/kandji/world.json +1817 -0
  548. package/runtime/gatewaysdk/environment/schema/connectors/linear/api/handlers.py +139 -0
  549. package/runtime/gatewaysdk/environment/schema/connectors/linear/connector.toml +1574 -0
  550. package/runtime/gatewaysdk/environment/schema/connectors/linear/handlers.py +23 -0
  551. package/runtime/gatewaysdk/environment/schema/connectors/linear/provenance.json +142 -0
  552. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/scenario.toml +2 -0
  553. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/attachments.json +21 -0
  554. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/comments.json +79 -0
  555. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_needs.json +21 -0
  556. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_statuses.json +26 -0
  557. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customer_tiers.json +26 -0
  558. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/customers.json +48 -0
  559. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/cycles.json +86 -0
  560. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/documents.json +27 -0
  561. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiative_projects.json +13 -0
  562. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiative_updates.json +23 -0
  563. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/initiatives.json +41 -0
  564. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issue_labels.json +16 -0
  565. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issue_relations.json +13 -0
  566. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/issues.json +264 -0
  567. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/labels.json +52 -0
  568. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/organizations.json +53 -0
  569. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_labels.json +34 -0
  570. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_members.json +16 -0
  571. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_milestones.json +30 -0
  572. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_relations.json +18 -0
  573. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_statuses.json +76 -0
  574. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/project_updates.json +42 -0
  575. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/projects.json +110 -0
  576. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/reactions.json +28 -0
  577. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/roadmap_projects.json +13 -0
  578. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/roadmaps.json +19 -0
  579. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/team_memberships.json +34 -0
  580. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/teams.json +114 -0
  581. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/templates.json +27 -0
  582. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/users.json +106 -0
  583. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/webhooks.json +21 -0
  584. package/runtime/gatewaysdk/environment/schema/connectors/linear/scenarios/default/seed/workflow_states.json +108 -0
  585. package/runtime/gatewaysdk/environment/schema/connectors/linear/scope.toml +87 -0
  586. package/runtime/gatewaysdk/environment/schema/connectors/linear/tests/tools.json +52 -0
  587. package/runtime/gatewaysdk/environment/schema/connectors/linear/world.json +6148 -0
  588. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/api/handlers.py +1218 -0
  589. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/connector.toml +1246 -0
  590. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/fidelity.json +75 -0
  591. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/handlers.py +1 -0
  592. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/provenance.json +1632 -0
  593. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/instruction.md +12 -0
  594. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/scenario.toml +2 -0
  595. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_async_operations.json +47 -0
  596. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_hosted_contents.json +12 -0
  597. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_members.json +88 -0
  598. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_messages.json +313 -0
  599. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channel_replies.json +128 -0
  600. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_channels.json +319 -0
  601. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_hosted_contents.json +18 -0
  602. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_members.json +155 -0
  603. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_messages.json +265 -0
  604. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chat_views.json +37 -0
  605. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_chats.json +167 -0
  606. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_incoming_channels.json +25 -0
  607. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_pinned_messages.json +9 -0
  608. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_reply_hosted_contents.json +13 -0
  609. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_shared_channel_teams.json +32 -0
  610. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_tag_members.json +31 -0
  611. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_tags.json +32 -0
  612. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_team_members.json +117 -0
  613. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scenarios/default/seed/teams_teams.json +193 -0
  614. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/scope.md +303 -0
  615. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/teams-types.json +1739 -0
  616. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/tests/routes.json +101 -0
  617. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/vendor-openapi.json +11280 -0
  618. package/runtime/gatewaysdk/environment/schema/connectors/microsoft-teams/world.json +926 -0
  619. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/api/handlers.py +571 -0
  620. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/connector.toml +1484 -0
  621. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/handlers.py +32 -0
  622. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/parity.json +77 -0
  623. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/provenance.json +303 -0
  624. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/instruction.md +11 -0
  625. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/scenario.toml +2 -0
  626. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_accounting_periods.json +107 -0
  627. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_accounts.json +514 -0
  628. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_classifications.json +64 -0
  629. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_contacts.json +90 -0
  630. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_credit_memos.json +112 -0
  631. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_currencies.json +37 -0
  632. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_customer_payments.json +108 -0
  633. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_customers.json +232 -0
  634. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_departments.json +80 -0
  635. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_employees.json +124 -0
  636. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_invoices.json +229 -0
  637. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_item_fulfillments.json +85 -0
  638. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_items.json +237 -0
  639. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_journal_entries.json +217 -0
  640. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_locations.json +62 -0
  641. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_price_levels.json +28 -0
  642. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_purchase_orders.json +152 -0
  643. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_sales_order_lines.json +235 -0
  644. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_sales_orders.json +219 -0
  645. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_subsidiaries.json +85 -0
  646. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_terms.json +48 -0
  647. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_vendor_bills.json +170 -0
  648. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scenarios/default/seed/netsuite_vendors.json +140 -0
  649. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/scope.toml +296 -0
  650. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/tests/tools.json +82 -0
  651. package/runtime/gatewaysdk/environment/schema/connectors/netsuite/world.json +39076 -0
  652. package/runtime/gatewaysdk/environment/schema/connectors/notion/api/handlers.py +1330 -0
  653. package/runtime/gatewaysdk/environment/schema/connectors/notion/connector.toml +386 -0
  654. package/runtime/gatewaysdk/environment/schema/connectors/notion/handlers.py +54 -0
  655. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/scenario.toml +2 -0
  656. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/blocks.json +4197 -0
  657. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/calendar_events.json +18 -0
  658. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/collection_views.json +175 -0
  659. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/comments.json +109 -0
  660. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/databases.json +417 -0
  661. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/favorites.json +3 -0
  662. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/notifications.json +49 -0
  663. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/pages.json +3758 -0
  664. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/spaces.json +28 -0
  665. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/teamspaces.json +3 -0
  666. package/runtime/gatewaysdk/environment/schema/connectors/notion/scenarios/default/seed/users.json +92 -0
  667. package/runtime/gatewaysdk/environment/schema/connectors/notion/tests/01-reads.json +165 -0
  668. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/assets/index-DQ36W7RG.css +1 -0
  669. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/assets/index-DythuuUy.js +67 -0
  670. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000002.svg +1 -0
  671. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000003.svg +1 -0
  672. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000004.svg +1 -0
  673. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000005.svg +1 -0
  674. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000006.svg +1 -0
  675. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000007.svg +1 -0
  676. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/avatars/eeee0000000000000000000000000008.svg +1 -0
  677. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/dusk-harbor.png +0 -0
  678. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/ember-coast.png +0 -0
  679. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/covers/green-ridge.png +0 -0
  680. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f30a.svg +1 -0
  681. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f331.svg +1 -0
  682. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f373.svg +1 -0
  683. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3a7.svg +1 -0
  684. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3a8.svg +1 -0
  685. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3ac.svg +1 -0
  686. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3af.svg +1 -0
  687. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3c4.svg +1 -0
  688. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3d6.svg +1 -0
  689. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f3e0.svg +1 -0
  690. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f44b.svg +1 -0
  691. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4a1.svg +1 -0
  692. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4b0.svg +1 -0
  693. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4bc.svg +1 -0
  694. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4c5.svg +1 -0
  695. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4c8.svg +1 -0
  696. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4cb.svg +1 -0
  697. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4ce.svg +1 -0
  698. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d1.svg +1 -0
  699. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d3.svg +1 -0
  700. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4d6.svg +1 -0
  701. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4da.svg +1 -0
  702. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4dd.svg +1 -0
  703. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4ec.svg +1 -0
  704. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f4f7.svg +1 -0
  705. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f527.svg +1 -0
  706. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f55b.svg +1 -0
  707. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f5c2.svg +1 -0
  708. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f5d3.svg +1 -0
  709. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f680.svg +1 -0
  710. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f6a2.svg +1 -0
  711. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ca.svg +1 -0
  712. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9e0.svg +1 -0
  713. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ea.svg +1 -0
  714. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9ed.svg +1 -0
  715. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1f9f0.svg +1 -0
  716. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/1fab6.svg +1 -0
  717. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2600.svg +1 -0
  718. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2693.svg +1 -0
  719. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2705.svg +1 -0
  720. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2708.svg +1 -0
  721. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/270f.svg +1 -0
  722. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/emoji/2b50.svg +1 -0
  723. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/favicon.svg +1 -0
  724. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/fonts/SourceSerif4-latin.woff2 +0 -0
  725. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/index.html +31 -0
  726. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/content-blocks.png +0 -0
  727. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/databases.png +0 -0
  728. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/sharing.png +0 -0
  729. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/learn/style-content.png +0 -0
  730. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/home-icon.png +0 -0
  731. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/viewer.png +0 -0
  732. package/runtime/gatewaysdk/environment/schema/connectors/notion/ui/static/photos/workspace.png +0 -0
  733. package/runtime/gatewaysdk/environment/schema/connectors/notion/world.json +2796 -0
  734. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_admin_role_assignments.json +44 -0
  735. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_app_assignments.json +40 -0
  736. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_app_group_assignments.json +59 -0
  737. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_applications.json +265 -0
  738. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_console_dashboards.json +91 -0
  739. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_device_users.json +32 -0
  740. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_devices.json +89 -0
  741. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_group_memberships.json +156 -0
  742. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_groups.json +100 -0
  743. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_orgs.json +20 -0
  744. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_policies.json +84 -0
  745. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_system_log_events.json +9656 -0
  746. package/runtime/gatewaysdk/environment/schema/connectors/okta/scenarios/default/seed/okta_users.json +744 -0
  747. package/runtime/gatewaysdk/environment/schema/connectors/outlook/api/handlers.py +624 -0
  748. package/runtime/gatewaysdk/environment/schema/connectors/outlook/connector.toml +381 -0
  749. package/runtime/gatewaysdk/environment/schema/connectors/outlook/handlers.py +54 -0
  750. package/runtime/gatewaysdk/environment/schema/connectors/outlook/provenance.json +408 -0
  751. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/instruction.md +22 -0
  752. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/scenario.toml +2 -0
  753. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_attachments.json +44 -0
  754. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_calendars.json +52 -0
  755. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_contacts.json +326 -0
  756. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_events.json +3050 -0
  757. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mail_folders.json +84 -0
  758. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mailbox_settings.json +35 -0
  759. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_mailboxes.json +14 -0
  760. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_messages.json +1400 -0
  761. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_system_senders.json +44 -0
  762. package/runtime/gatewaysdk/environment/schema/connectors/outlook/scenarios/default/seed/outlook_users.json +256 -0
  763. package/runtime/gatewaysdk/environment/schema/connectors/outlook/tests/routes.json +333 -0
  764. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/assets/index-DRVA5ahH.js +67 -0
  765. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/assets/index-kOnvVBhA.css +1 -0
  766. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Filled.woff2 +0 -0
  767. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Regular.woff2 +0 -0
  768. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/FluentSystemIcons-Resizable.woff2 +0 -0
  769. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/controlIcons.woff +0 -0
  770. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-bold.woff2 +0 -0
  771. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-light.woff2 +0 -0
  772. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-regular.woff2 +0 -0
  773. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-semibold.woff2 +0 -0
  774. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/fonts/segoeui-semilight.woff2 +0 -0
  775. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/bookings.svg +1 -0
  776. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/calendar.svg +35 -0
  777. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/copilot.png +0 -0
  778. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/excel.svg +1 -0
  779. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/mail.svg +32 -0
  780. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/my-day.svg +1 -0
  781. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/newsletters.svg +37 -0
  782. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/no-mail-selected-dark.svg +1 -0
  783. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/no-mail-selected.svg +1 -0
  784. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/onedrive.svg +1 -0
  785. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/onenote.svg +1 -0
  786. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/org-explorer.png +0 -0
  787. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/outlook.svg +1 -0
  788. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/people.svg +34 -0
  789. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/powerpoint.svg +1 -0
  790. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/ribbon-layout.svg +1 -0
  791. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/sharepoint.svg +1 -0
  792. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/teams-chat.svg +1 -0
  793. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/teams.svg +1 -0
  794. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/to-do.png +0 -0
  795. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/viva.svg +1 -0
  796. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/img/word.svg +1 -0
  797. package/runtime/gatewaysdk/environment/schema/connectors/outlook/ui/static/index.html +34 -0
  798. package/runtime/gatewaysdk/environment/schema/connectors/outlook/world.json +686 -0
  799. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/api/handlers.py +447 -0
  800. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/connector.toml +3478 -0
  801. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/handlers.py +885 -0
  802. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/parity.json +46 -0
  803. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/provenance.json +4286 -0
  804. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/instruction.md +8 -0
  805. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/scenario.toml +2 -0
  806. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_contact_relations.json +20 -0
  807. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_contact_roles.json +16 -0
  808. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_partners.json +18 -0
  809. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_account_team_members.json +16 -0
  810. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_accounts.json +38 -0
  811. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_assets.json +35 -0
  812. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_attachments.json +16 -0
  813. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_business_hours.json +16 -0
  814. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaign_member_statuses.json +16 -0
  815. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaign_members.json +38 -0
  816. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_campaigns.json +35 -0
  817. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_comments.json +14 -0
  818. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_histories.json +18 -0
  819. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_milestones.json +18 -0
  820. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_statuses.json +16 -0
  821. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_team_members.json +14 -0
  822. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_case_team_roles.json +12 -0
  823. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_cases.json +42 -0
  824. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_collaboration_group_members.json +16 -0
  825. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_collaboration_groups.json +16 -0
  826. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_addresses.json +14 -0
  827. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_emails.json +14 -0
  828. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contact_point_phones.json +14 -0
  829. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contacts.json +34 -0
  830. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_document_links.json +14 -0
  831. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_documents.json +18 -0
  832. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_folders.json +13 -0
  833. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_notes.json +12 -0
  834. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_versions.json +24 -0
  835. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_content_workspaces.json +16 -0
  836. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contract_contact_roles.json +16 -0
  837. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contract_line_items.json +32 -0
  838. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_contracts.json +40 -0
  839. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_dashboards.json +20 -0
  840. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_documents.json +22 -0
  841. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_message_relations.json +14 -0
  842. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_messages.json +21 -0
  843. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_email_templates.json +24 -0
  844. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_entitlements.json +32 -0
  845. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_events.json +26 -0
  846. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_feed_comments.json +19 -0
  847. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_feed_items.json +24 -0
  848. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_fiscal_year_settings.json +20 -0
  849. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_folders.json +18 -0
  850. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_group_members.json +12 -0
  851. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_groups.json +20 -0
  852. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_holidays.json +16 -0
  853. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_individuals.json +21 -0
  854. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_lead_statuses.json +14 -0
  855. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_leads.json +45 -0
  856. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_list_views.json +16 -0
  857. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_login_histories.json +18 -0
  858. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_milestone_types.json +14 -0
  859. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_notes.json +16 -0
  860. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_object_territory_associations.json +14 -0
  861. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunities.json +48 -0
  862. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_competitors.json +12 -0
  863. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_contact_roles.json +16 -0
  864. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_field_histories.json +18 -0
  865. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_histories.json +20 -0
  866. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_line_items.json +32 -0
  867. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_partners.json +16 -0
  868. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_stages.json +22 -0
  869. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_opportunity_team_members.json +18 -0
  870. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_order_items.json +33 -0
  871. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_orders.json +44 -0
  872. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_organizations.json +18 -0
  873. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_partners.json +18 -0
  874. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_periods.json +18 -0
  875. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_permission_set_assignments.json +16 -0
  876. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_permission_sets.json +18 -0
  877. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_pricebook_entries.json +22 -0
  878. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_pricebooks.json +16 -0
  879. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_products.json +20 -0
  880. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_profiles.json +14 -0
  881. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_queue_sobjects.json +12 -0
  882. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_quote_line_items.json +43 -0
  883. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_quotes.json +40 -0
  884. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_record_actions.json +16 -0
  885. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_record_types.json +18 -0
  886. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_reports.json +18 -0
  887. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_service_contracts.json +32 -0
  888. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_sla_processes.json +18 -0
  889. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_solutions.json +18 -0
  890. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_priorities.json +14 -0
  891. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_relations.json +14 -0
  892. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_task_statuses.json +16 -0
  893. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_tasks.json +26 -0
  894. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territories.json +20 -0
  895. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territory_models.json +16 -0
  896. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_territory_types.json +18 -0
  897. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_topic_assignments.json +12 -0
  898. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_topics.json +14 -0
  899. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_user_roles.json +16 -0
  900. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_user_territory_associations.json +16 -0
  901. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_users.json +57 -0
  902. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_web_links.json +26 -0
  903. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_work_order_line_items.json +42 -0
  904. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scenarios/default/seed/sf_work_orders.json +46 -0
  905. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/scope.toml +694 -0
  906. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/tests/tools.json +69 -0
  907. package/runtime/gatewaysdk/environment/schema/connectors/salesforce/world.json +21263 -0
  908. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/api/handlers.py +630 -0
  909. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/connector.toml +266 -0
  910. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/handlers.py +3 -0
  911. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/provenance.json +245 -0
  912. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/instruction.md +15 -0
  913. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/scenario.toml +1 -0
  914. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/10-snow_users.json +268 -0
  915. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/11-snow_user_groups.json +40 -0
  916. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/20-snow_configuration_items.json +684 -0
  917. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/30-snow_catalog_categories.json +52 -0
  918. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/31-snow_catalog_items.json +334 -0
  919. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/40-snow_incidents.json +3086 -0
  920. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/41-snow_incident_tasks.json +54 -0
  921. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/42-snow_task_slas.json +64 -0
  922. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/43-snow_problems.json +148 -0
  923. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/44-snow_change_requests.json +364 -0
  924. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/45-snow_knowledge_articles.json +214 -0
  925. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/46-snow_journal_entries.json +1612 -0
  926. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/60-snow_ui_current_users.json +19 -0
  927. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/61-snow_ui_navigation_applications.json +187 -0
  928. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/62-snow_ui_home_widgets.json +91 -0
  929. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/63-snow_ui_notifications.json +3 -0
  930. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/64-snow_ui_employee_center_pages.json +74 -0
  931. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/65-snow_ui_list_layouts.json +54 -0
  932. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/66-snow_ui_search_facets.json +29 -0
  933. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/67-snow_ui_activity_entries.json +1076 -0
  934. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scenarios/default/seed/68-snow_ui_instances.json +9 -0
  935. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/scope.toml +166 -0
  936. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/tests/routes.json +272 -0
  937. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/assets/index-5QHcQLCI.css +1 -0
  938. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/assets/index-BzeVnzFt.js +67 -0
  939. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/cabin-400-700-italic.woff2 +0 -0
  940. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/cabin-400-700.woff2 +0 -0
  941. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-0-lato-v17-latin-ext_latin-100.woff2 +0 -0
  942. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-1-lato-v17-latin-ext_latin-100.woff +0 -0
  943. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-10-lato-v17-latin-ext_latin-italic.woff2 +0 -0
  944. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-11-lato-v17-latin-ext_latin-italic.woff +0 -0
  945. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-12-lato-v17-latin-ext_latin-700.woff2 +0 -0
  946. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-13-lato-v17-latin-ext_latin-700.woff +0 -0
  947. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-14-lato-v17-latin-ext_latin-700italic.woff2 +0 -0
  948. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-15-lato-v17-latin-ext_latin-700italic.woff +0 -0
  949. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-16-source-sans-pro-v11-latin-300.woff2 +0 -0
  950. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-17-source-sans-pro-v11-latin-300.woff +0 -0
  951. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-18-source-sans-pro-v11-latin-regular.woff2 +0 -0
  952. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-19-source-sans-pro-v11-latin-regular.woff +0 -0
  953. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-2-lato-v17-latin-ext_latin-100italic.woff2 +0 -0
  954. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-20-source-sans-pro-v11-latin-600.woff2 +0 -0
  955. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-21-source-sans-pro-v11-latin-600.woff +0 -0
  956. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-22-source-sans-pro-v11-latin-700.woff2 +0 -0
  957. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-23-source-sans-pro-v11-latin-700.woff +0 -0
  958. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-3-lato-v17-latin-ext_latin-100italic.woff +0 -0
  959. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-4-lato-v17-latin-ext_latin-300.woff2 +0 -0
  960. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-5-lato-v17-latin-ext_latin-300.woff +0 -0
  961. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-6-lato-v17-latin-ext_latin-300italic.woff2 +0 -0
  962. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-7-lato-v17-latin-ext_latin-300italic.woff +0 -0
  963. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-8-lato-v17-latin-ext_latin-regular.woff2 +0 -0
  964. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/font-9-lato-v17-latin-ext_latin-regular.woff +0 -0
  965. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/index.json +122 -0
  966. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-300.woff2 +0 -0
  967. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-600-italic.woff2 +0 -0
  968. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-600.woff2 +0 -0
  969. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-bold-italic.woff2 +0 -0
  970. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-bold.woff2 +0 -0
  971. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-normal-italic.woff2 +0 -0
  972. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/fonts/lato-normal.woff2 +0 -0
  973. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/appsee-outline.svg +1 -0
  974. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/arrow-up-outline.svg +1 -0
  975. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/available.svg +1 -0
  976. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/bell-outline.svg +1 -0
  977. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/caret-down-fill.svg +1 -0
  978. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/check-fill.svg +1 -0
  979. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/chevron-right-outline.svg +1 -0
  980. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-close-outline.svg +1 -0
  981. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-info-outline.svg +1 -0
  982. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circle-question-outline.svg +1 -0
  983. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/circleinfooutline.svg +1 -0
  984. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/ellipsis-v-outline.svg +1 -0
  985. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/eye-outline.svg +1 -0
  986. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-bell-fill.svg +1 -0
  987. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-caret-down-fill.svg +1 -0
  988. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-check-square.svg +1 -0
  989. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-chevron-right.svg +1 -0
  990. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-clock-outline.svg +1 -0
  991. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-comment-chat.svg +1 -0
  992. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-external-link.svg +1 -0
  993. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-facebook.svg +1 -0
  994. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-heart-fill.svg +1 -0
  995. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-heart-outline.svg +1 -0
  996. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-home-fill-teal.svg +1 -0
  997. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-home-fill.svg +1 -0
  998. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-linkedin.svg +1 -0
  999. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-list-alt-fill.svg +1 -0
  1000. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-pencil-square.svg +1 -0
  1001. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-question-circle-fill.svg +1 -0
  1002. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-times.svg +1 -0
  1003. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/fa-twitter.svg +1 -0
  1004. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/filter-outline.svg +1 -0
  1005. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/gear-outline.svg +1 -0
  1006. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/globe-outline.svg +1 -0
  1007. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/home-outline.svg +1 -0
  1008. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-2.svg +17 -0
  1009. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-3.svg +1 -0
  1010. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon-4.svg +1 -0
  1011. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/icon.svg +45 -0
  1012. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/keyboard-outline.svg +1 -0
  1013. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/link-icon-associated-to-view-all-adoption-blueprints.svg +1 -0
  1014. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/link-icon-associated-to-view-all-applications.svg +1 -0
  1015. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/list-fill.svg +1 -0
  1016. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/loading-2.svg +1 -0
  1017. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/loading.svg +1 -0
  1018. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/magnifying-glass-outline.svg +1 -0
  1019. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/ongoing-outline.svg +1 -0
  1020. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/open-link-right-fill.svg +1 -0
  1021. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/open-link-right-outline.svg +1 -0
  1022. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/pencil-page-outline.svg +1 -0
  1023. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/plus-fill.svg +1 -0
  1024. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/serverbox-outline.svg +1 -0
  1025. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/servicenow-wordmark.svg +20 -0
  1026. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/signal-live-outline.svg +1 -0
  1027. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/square-arrow-left-outline.svg +1 -0
  1028. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/star-outline.svg +1 -0
  1029. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/sync-outline.svg +1 -0
  1030. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/task-slas-related-list.svg +24 -0
  1031. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/thumbtack-outline.svg +1 -0
  1032. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/trending-downward.svg +1 -0
  1033. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/trending-neutral.svg +1 -0
  1034. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-all-menu.svg +1 -0
  1035. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-favorites-menu.svg +1 -0
  1036. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/unpinned-history-menu.svg +1 -0
  1037. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/icons/user-outline.svg +1 -0
  1038. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/adoption-blueprints.svg +40 -0
  1039. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/avatar-admin.jpg +0 -0
  1040. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/now-assist-admin.svg +17 -0
  1041. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-desk.jpg +0 -0
  1042. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-password.jpg +0 -0
  1043. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/quick-link-status.jpg +0 -0
  1044. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-accessories.svg +1 -0
  1045. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-computers.svg +1 -0
  1046. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-developer.svg +1 -0
  1047. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-email.svg +1 -0
  1048. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-phone.svg +1 -0
  1049. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-software-catalog.svg +1 -0
  1050. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-software.svg +1 -0
  1051. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/img/topic-technology.svg +1 -0
  1052. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/ui/static/index.html +36 -0
  1053. package/runtime/gatewaysdk/environment/schema/connectors/servicenow/world.json +2004 -0
  1054. package/runtime/gatewaysdk/environment/schema/connectors/slack/MODEL.md +264 -0
  1055. package/runtime/gatewaysdk/environment/schema/connectors/slack/api/handlers.py +1880 -0
  1056. package/runtime/gatewaysdk/environment/schema/connectors/slack/capabilities.json +1056 -0
  1057. package/runtime/gatewaysdk/environment/schema/connectors/slack/connector.toml +892 -0
  1058. package/runtime/gatewaysdk/environment/schema/connectors/slack/handlers.py +762 -0
  1059. package/runtime/gatewaysdk/environment/schema/connectors/slack/parity.json +65 -0
  1060. package/runtime/gatewaysdk/environment/schema/connectors/slack/provenance.json +349 -0
  1061. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/scenario.toml +1 -0
  1062. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_apps.json +22 -0
  1063. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_bookmarks.json +22 -0
  1064. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_bots.json +19 -0
  1065. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_channels.json +206 -0
  1066. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_conversation_states.json +50 -0
  1067. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_emojis.json +19 -0
  1068. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_message_files.json +12 -0
  1069. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_message_threads.json +11 -0
  1070. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_ephemeral_messages.json +16 -0
  1071. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_channel_observations.json +16 -0
  1072. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_reaction_summaries.json +10 -0
  1073. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_reaction_users.json +10 -0
  1074. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_shares.json +29 -0
  1075. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_file_user_states.json +10 -0
  1076. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_files.json +64 -0
  1077. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_memberships.json +79 -0
  1078. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_files.json +18 -0
  1079. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_threads.json +10 -0
  1080. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_message_user_states.json +14 -0
  1081. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_messages.json +127 -0
  1082. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_pins.json +11 -0
  1083. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_presence.json +35 -0
  1084. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_reaction_summaries.json +25 -0
  1085. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_reaction_users.json +32 -0
  1086. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_scheduled_message_threads.json +10 -0
  1087. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_scheduled_messages.json +15 -0
  1088. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_unavailable_message_files.json +14 -0
  1089. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_user_profile_fields.json +28 -0
  1090. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroup_channels.json +10 -0
  1091. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroup_memberships.json +14 -0
  1092. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_usergroups.json +33 -0
  1093. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_users.json +228 -0
  1094. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_view_state_entries.json +22 -0
  1095. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_views.json +53 -0
  1096. package/runtime/gatewaysdk/environment/schema/connectors/slack/scenarios/default/seed/slack_workspaces.json +37 -0
  1097. package/runtime/gatewaysdk/environment/schema/connectors/slack/scope.toml +48 -0
  1098. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/api.json +177 -0
  1099. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/test_threads.py +49 -0
  1100. package/runtime/gatewaysdk/environment/schema/connectors/slack/tests/tools.json +92 -0
  1101. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/assets/index-BSqGskph.css +1 -0
  1102. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/assets/index-CKQh1igo.js +81 -0
  1103. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/README.md +15 -0
  1104. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-black.woff2 +0 -0
  1105. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-bold.woff2 +0 -0
  1106. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-black.woff2 +0 -0
  1107. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-bold.woff2 +0 -0
  1108. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic-light.woff2 +0 -0
  1109. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-italic.woff2 +0 -0
  1110. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-light.woff2 +0 -0
  1111. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/lato-regular.woff2 +0 -0
  1112. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/fonts/slack-icons-v2.woff2 +0 -0
  1113. package/runtime/gatewaysdk/environment/schema/connectors/slack/ui/static/index.html +35 -0
  1114. package/runtime/gatewaysdk/environment/schema/connectors/slack/vendor-openapi.json +12515 -0
  1115. package/runtime/gatewaysdk/environment/schema/connectors/slack/world.json +5381 -0
  1116. package/runtime/gatewaysdk/environment/schema/connectors/workday/api/handlers.py +175 -0
  1117. package/runtime/gatewaysdk/environment/schema/connectors/workday/connector.toml +610 -0
  1118. package/runtime/gatewaysdk/environment/schema/connectors/workday/handlers.py +75 -0
  1119. package/runtime/gatewaysdk/environment/schema/connectors/workday/parity.json +69 -0
  1120. package/runtime/gatewaysdk/environment/schema/connectors/workday/provenance.json +407 -0
  1121. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/instruction.md +10 -0
  1122. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/scenario.toml +2 -0
  1123. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_compensations.json +219 -0
  1124. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_job_profiles.json +76 -0
  1125. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_locations.json +142 -0
  1126. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_organizations.json +124 -0
  1127. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_positions.json +280 -0
  1128. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_absence_leaves.json +66 -0
  1129. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_business_title_changes.json +44 -0
  1130. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_check_in_topics.json +48 -0
  1131. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_check_ins.json +46 -0
  1132. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_countries.json +28 -0
  1133. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_currencies.json +25 -0
  1134. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_change_reasons.json +28 -0
  1135. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_families.json +40 -0
  1136. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_job_profiles.json +202 -0
  1137. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_jobs.json +120 -0
  1138. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_organization_types.json +19 -0
  1139. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_organizations.json +24 -0
  1140. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_persons.json +100 -0
  1141. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_scorecard_results.json +57 -0
  1142. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_scorecards.json +68 -0
  1143. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_supervisory_organizations.json +64 -0
  1144. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_time_off_details.json +112 -0
  1145. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_time_off_entries.json +91 -0
  1146. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_worker_history_events.json +58 -0
  1147. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_rest_workers.json +90 -0
  1148. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_time_off_requests.json +181 -0
  1149. package/runtime/gatewaysdk/environment/schema/connectors/workday/scenarios/default/seed/workday_workers.json +492 -0
  1150. package/runtime/gatewaysdk/environment/schema/connectors/workday/scope.toml +344 -0
  1151. package/runtime/gatewaysdk/environment/schema/connectors/workday/tests/tools.json +81 -0
  1152. package/runtime/gatewaysdk/environment/schema/connectors/workday/vendor-openapi.json +10646 -0
  1153. package/runtime/gatewaysdk/environment/schema/connectors/workday/world.json +4186 -0
  1154. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/api/handlers.py +1183 -0
  1155. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/connector.toml +645 -0
  1156. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/handlers.py +377 -0
  1157. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/instruction.md +22 -0
  1158. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/scenario.toml +3 -0
  1159. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_brands.json +25 -0
  1160. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_group_memberships.json +49 -0
  1161. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_groups.json +37 -0
  1162. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_macros.json +154 -0
  1163. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_organizations.json +65 -0
  1164. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_ticket_audits.json +3328 -0
  1165. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_ticket_comments.json +2642 -0
  1166. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_tickets.json +1439 -0
  1167. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_users.json +624 -0
  1168. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_views.json +510 -0
  1169. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/scenarios/default/seed/zendesk_workspace_tabs.json +10 -0
  1170. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/assets/index-JWq7XNO5.css +1 -0
  1171. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/assets/index-bn8ezNTi.js +67 -0
  1172. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/ui/static/index.html +22 -0
  1173. package/runtime/gatewaysdk/environment/schema/connectors/zendesk/world.json +1707 -0
  1174. package/runtime/gatewaysdk/environment/schema/data.py +907 -0
  1175. package/runtime/gatewaysdk/environment/schema/dependencies.py +235 -0
  1176. package/runtime/gatewaysdk/environment/schema/extract.py +263 -0
  1177. package/runtime/gatewaysdk/environment/schema/host.py +2571 -0
  1178. package/runtime/gatewaysdk/environment/schema/host_surfaces.py +320 -0
  1179. package/runtime/gatewaysdk/environment/schema/ingest.py +528 -0
  1180. package/runtime/gatewaysdk/environment/schema/local.py +536 -0
  1181. package/runtime/gatewaysdk/environment/schema/mapping.py +944 -0
  1182. package/runtime/gatewaysdk/environment/schema/platform.py +1748 -0
  1183. package/runtime/gatewaysdk/environment/schema/reconcile.py +202 -0
  1184. package/runtime/gatewaysdk/environment/schema/redaction.py +378 -0
  1185. package/runtime/gatewaysdk/environment/schema/scaffold.py +311 -0
  1186. package/runtime/gatewaysdk/environment/schema/skill.py +119 -0
  1187. package/runtime/gatewaysdk/environment/schema/skills/agents/connector-template-author.md +202 -0
  1188. package/runtime/gatewaysdk/environment/schema/skills/benchmarks-getting-started/SKILL.md +391 -0
  1189. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONNECTORS.md +364 -0
  1190. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/CONVENTIONS.md +100 -0
  1191. package/runtime/gatewaysdk/environment/schema/skills/connector-schema-authoring/SKILL.md +363 -0
  1192. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/ROWS.md +243 -0
  1193. package/runtime/gatewaysdk/environment/schema/skills/world-data-ingestion/SKILL.md +460 -0
  1194. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +500 -0
  1195. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
  1196. package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/references/ui-map.md +18 -0
  1197. package/runtime/gatewaysdk/environment/schema/slack.py +757 -0
  1198. package/runtime/gatewaysdk/environment/schema/snapshot.py +479 -0
  1199. package/runtime/gatewaysdk/environment/schema/store.py +1004 -0
  1200. package/runtime/gatewaysdk/environment/schema/tasks.py +530 -0
  1201. package/runtime/gatewaysdk/environment/schema/tools_world.py +689 -0
  1202. package/runtime/gatewaysdk/environment/schema/transform.py +200 -0
  1203. package/runtime/gatewaysdk/environment/schema/transforms.py +103 -0
  1204. package/runtime/gatewaysdk/environment/schema/ui.py +455 -0
  1205. package/runtime/gatewaysdk/environment/schema/ui_static/app.js +581 -0
  1206. package/runtime/gatewaysdk/environment/schema/ui_static/index.html +72 -0
  1207. package/runtime/gatewaysdk/environment/schema/validation.py +624 -0
  1208. package/runtime/gatewaysdk/environment/schema/worker.py +78 -0
  1209. package/runtime/gatewaysdk/environment/schema/workers.py +500 -0
  1210. package/runtime/gatewaysdk/environment/schema/world_tests.py +530 -0
  1211. package/skills/agents/connector-template-author.md +202 -0
  1212. package/skills/benchmarks-getting-started/SKILL.md +391 -0
  1213. package/skills/connector-schema-authoring/CONNECTORS.md +364 -0
  1214. package/skills/connector-schema-authoring/CONVENTIONS.md +100 -0
  1215. package/skills/connector-schema-authoring/SKILL.md +363 -0
  1216. package/skills/connector-schema-authoring/connector-worlds.md +355 -0
  1217. package/skills/connector-schema-authoring/world-schema.md +620 -0
  1218. package/skills/world-data-ingestion/ROWS.md +243 -0
  1219. package/skills/world-data-ingestion/SKILL.md +460 -0
  1220. package/skills/worlds-getting-started/SKILL.md +500 -0
  1221. package/skills/worlds-getting-started/references/cli-mcp-map.md +49 -0
  1222. package/skills/worlds-getting-started/references/ui-map.md +18 -0
@@ -16,6 +16,483 @@ var __export = (target, all) => {
16
16
  __defProp(target, name, { get: all[name], enumerable: true });
17
17
  };
18
18
 
19
+ // src/worlds/browser.ts
20
+ function surfaceKinds(s) {
21
+ const kinds = ["tools"];
22
+ if (s.api) kinds.push("api");
23
+ if (s.ui) kinds.push("ui");
24
+ if (s.browser) kinds.push("browser");
25
+ return kinds;
26
+ }
27
+ function uiUrl(ui, path8) {
28
+ const base = ui.url.replace(/\/+$/, "");
29
+ const rel = path8.startsWith("/") ? path8 : `/${path8}`;
30
+ if (!ui.token) return base + rel;
31
+ const [beforeHash, hash] = splitHash(rel);
32
+ const joiner = beforeHash.includes("?") ? "&" : "?";
33
+ const query = `${UI_TOKEN_QUERY}=${encodeURIComponent(ui.token)}`;
34
+ return base + beforeHash + joiner + query + hash;
35
+ }
36
+ function uiEntryUrl(ui) {
37
+ return uiUrl(ui, ui.entry || "/");
38
+ }
39
+ function withoutUiToken(url) {
40
+ const [beforeHash, hash] = splitHash(url);
41
+ const q = beforeHash.indexOf("?");
42
+ if (q < 0) return url;
43
+ const kept = beforeHash.slice(q + 1).split("&").filter((pair) => pair !== "" && pair.split("=")[0] !== UI_TOKEN_QUERY);
44
+ return beforeHash.slice(0, q) + (kept.length ? `?${kept.join("&")}` : "") + hash;
45
+ }
46
+ function splitHash(url) {
47
+ const h = url.indexOf("#");
48
+ return h < 0 ? [url, ""] : [url.slice(0, h), url.slice(h)];
49
+ }
50
+ function redactActionArgs(action, args) {
51
+ const secretField = action === "browser_type" && SECRET_KEY.test(String(args.selector ?? ""));
52
+ const out = {};
53
+ for (const [key, value] of Object.entries(args)) {
54
+ if (value === null || value === void 0) out[key] = null;
55
+ else if (typeof value === "boolean" || typeof value === "number")
56
+ out[key] = value;
57
+ else if (typeof value === "string") {
58
+ if (SECRET_KEY.test(key) || SECRET_VALUE.test(value) || secretField && key === "text")
59
+ out[key] = "[redacted]";
60
+ else
61
+ out[key] = value.length <= EVENT_MAX_STRING ? value : value.slice(0, EVENT_MAX_STRING) + "\u2026";
62
+ } else out[key] = "[omitted]";
63
+ }
64
+ return out;
65
+ }
66
+ async function loadPlaywright() {
67
+ try {
68
+ const name = "playwright";
69
+ return await import(name);
70
+ } catch (error) {
71
+ throw new Error(
72
+ "Driving a world UI needs Playwright: npm install playwright (and `npx playwright install chromium` for local mode).",
73
+ { cause: error }
74
+ );
75
+ }
76
+ }
77
+ function resolveBrowserMode(surfaces, mode) {
78
+ if (!surfaces.ui && !surfaces.browser)
79
+ throw new WorldSurfaceUnavailable(
80
+ "ui",
81
+ "open the session with surfaces: ['ui'] on a world that declares [ui]"
82
+ );
83
+ const resolved = mode === "auto" ? surfaces.browser ? "hosted" : "local" : mode;
84
+ if (resolved === "hosted" && !surfaces.browser)
85
+ throw new WorldSurfaceUnavailable(
86
+ "browser",
87
+ "open the session with surfaces: ['browser'] to get a hosted browser"
88
+ );
89
+ return resolved;
90
+ }
91
+ async function openBrowser(surfaces, opts = {}) {
92
+ const mode = resolveBrowserMode(surfaces, opts.mode ?? "auto");
93
+ const pw = opts.playwright ?? await loadPlaywright();
94
+ const viewport = surfaces.browser?.viewport ?? DEFAULT_VIEWPORT;
95
+ const browser = mode === "hosted" ? surfaces.browser.protocol === "playwright" ? await pw.chromium.connect(surfaces.browser.wsUrl) : await pw.chromium.connectOverCDP(surfaces.browser.wsUrl) : await pw.chromium.launch({ headless: opts.headless ?? true });
96
+ const context = await browser.newContext({ viewport });
97
+ const page = await context.newPage();
98
+ return new WorldBrowser(
99
+ page,
100
+ surfaces.ui,
101
+ mode,
102
+ async () => {
103
+ await context.close();
104
+ await browser.close();
105
+ },
106
+ viewport,
107
+ opts.recorder ?? null
108
+ );
109
+ }
110
+ function computerUseToolkit(browser, opts = {}) {
111
+ const maxText = opts.maxText ?? 2e4;
112
+ const observe = async (selector = "body") => {
113
+ const text2 = await browser.text(selector);
114
+ return {
115
+ url: browser.url,
116
+ title: await browser.title(),
117
+ text: text2.slice(0, maxText),
118
+ truncated: text2.length > maxText
119
+ };
120
+ };
121
+ const impls = {
122
+ browser_goto: async (a) => {
123
+ await browser.goto(typeof a.path === "string" ? a.path : void 0);
124
+ return observe();
125
+ },
126
+ browser_click: async (a) => {
127
+ await browser.click(str(a.selector, ""));
128
+ return observe();
129
+ },
130
+ browser_type: async (a) => {
131
+ await browser.type(str(a.selector, ""), String(a.text ?? ""));
132
+ return { ok: true, url: browser.url };
133
+ },
134
+ browser_press: async (a) => {
135
+ await browser.press(str(a.key, "Enter"));
136
+ return observe();
137
+ },
138
+ browser_scroll: async (a) => {
139
+ await browser.scroll(typeof a.dy === "number" ? a.dy : 600);
140
+ return { ok: true, url: browser.url };
141
+ },
142
+ browser_screenshot: async (a) => ({
143
+ image_base64: await browser.screenshotBase64(a.full_page === true),
144
+ url: browser.url
145
+ }),
146
+ browser_read: async (a) => observe(str(a.selector, "body")),
147
+ browser_back: async () => {
148
+ await browser.back();
149
+ return observe();
150
+ }
151
+ };
152
+ const specs = COMPUTER_USE_SPECS.map((s) => ({ ...s }));
153
+ return {
154
+ schemas: specs.map((spec) => schemaFromSignature(spec)),
155
+ impls,
156
+ specs
157
+ };
158
+ }
159
+ var SURFACE_KINDS, DEFAULT_VIEWPORT, SETTLE_TIMEOUT_MS, SETTLE_QUIET_MS, SETTLE_POLL_MS, EVENT_BATCH_SIZE, EVENT_FLUSH_INTERVAL_MS, EVENT_MAX_RETRIES, EVENT_SCREENSHOT_QUALITY, EVENT_MAX_STRING, SECRET_KEY, SECRET_VALUE, WorldSurfaceUnavailable, UI_TOKEN_QUERY, BrowserActionRecorder, WorldBrowser, COMPUTER_USE_SPECS, str;
160
+ var init_browser = __esm({
161
+ "src/worlds/browser.ts"() {
162
+ "use strict";
163
+ init_session();
164
+ SURFACE_KINDS = ["tools", "api", "ui", "browser"];
165
+ DEFAULT_VIEWPORT = { width: 1280, height: 800 };
166
+ SETTLE_TIMEOUT_MS = 5e3;
167
+ SETTLE_QUIET_MS = 150;
168
+ SETTLE_POLL_MS = 25;
169
+ EVENT_BATCH_SIZE = 10;
170
+ EVENT_FLUSH_INTERVAL_MS = 1e3;
171
+ EVENT_MAX_RETRIES = 3;
172
+ EVENT_SCREENSHOT_QUALITY = 60;
173
+ EVENT_MAX_STRING = 500;
174
+ SECRET_KEY = /pass(word|wd)?|secret|token|api[-_]?key|authorization|cookie|(^|[-_ #.\["'=])(otp|pin|cvv|ssn)([-_ \]"']|$)/i;
175
+ SECRET_VALUE = /^((sk|pk|ghp|xox[abp])[-_][-_A-Za-z0-9]{8,}|AKIA[0-9A-Z]{12,}|Bearer [-_.A-Za-z0-9]{8,})/;
176
+ WorldSurfaceUnavailable = class extends Error {
177
+ constructor(surface, reason) {
178
+ super(`World surface '${surface}' is unavailable: ${reason}`);
179
+ this.surface = surface;
180
+ }
181
+ };
182
+ UI_TOKEN_QUERY = "token";
183
+ BrowserActionRecorder = class {
184
+ constructor(post, agentId, opts = {}) {
185
+ this.post = post;
186
+ this.agentId = agentId;
187
+ this.opts = opts;
188
+ }
189
+ seq = 0;
190
+ base = null;
191
+ queue = [];
192
+ timer = null;
193
+ inflight = Promise.resolve();
194
+ sent = 0;
195
+ dropped = 0;
196
+ /** This recorder's next position; the wire seq is `resumeFrom() + this`. */
197
+ nextSeq() {
198
+ return this.seq++;
199
+ }
200
+ resolveBase() {
201
+ if (this.base === null) {
202
+ const resolve6 = this.opts.resumeFrom ?? (async () => 0);
203
+ this.base = resolve6().then((n) => {
204
+ if (!Number.isInteger(n) || n < 0)
205
+ throw new Error(
206
+ `browser event base seq must be a non-negative integer, got ${String(n)}`
207
+ );
208
+ return n;
209
+ });
210
+ this.base.catch(() => {
211
+ this.base = null;
212
+ });
213
+ }
214
+ return this.base;
215
+ }
216
+ record(event) {
217
+ this.queue.push(event);
218
+ if (this.queue.length >= (this.opts.batchSize ?? EVENT_BATCH_SIZE)) {
219
+ this.drain();
220
+ } else if (this.timer === null) {
221
+ this.timer = setTimeout(
222
+ () => this.drain(),
223
+ this.opts.flushIntervalMs ?? EVENT_FLUSH_INTERVAL_MS
224
+ );
225
+ if (typeof this.timer === "object" && "unref" in this.timer)
226
+ this.timer.unref();
227
+ }
228
+ }
229
+ /** Resolve once everything recorded so far has been posted (or dropped). */
230
+ async flush() {
231
+ this.drain();
232
+ await this.inflight;
233
+ }
234
+ async close() {
235
+ await this.flush();
236
+ }
237
+ drain() {
238
+ if (this.timer !== null) {
239
+ clearTimeout(this.timer);
240
+ this.timer = null;
241
+ }
242
+ if (this.queue.length === 0) return;
243
+ const batch = this.queue;
244
+ this.queue = [];
245
+ this.inflight = this.inflight.then(() => this.send(batch));
246
+ }
247
+ async send(batch) {
248
+ const retries = this.opts.maxRetries ?? EVENT_MAX_RETRIES;
249
+ const sleep2 = this.opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
250
+ for (let attempt = 0; attempt < retries; attempt++) {
251
+ try {
252
+ const base = await this.resolveBase();
253
+ await this.post(
254
+ base === 0 ? batch : batch.map((e) => ({ ...e, seq: base + e.seq }))
255
+ );
256
+ this.sent += batch.length;
257
+ return;
258
+ } catch (error) {
259
+ if (attempt + 1 === retries) {
260
+ this.dropped += batch.length;
261
+ (this.opts.warn ?? console.warn)(
262
+ `dropping ${batch.length} browser events after ${attempt + 1} attempts: ${String(error)}`
263
+ );
264
+ return;
265
+ }
266
+ await sleep2(500 * 2 ** attempt);
267
+ }
268
+ }
269
+ }
270
+ };
271
+ WorldBrowser = class {
272
+ constructor(page, ui, mode, teardown, viewport = DEFAULT_VIEWPORT, recorder = null) {
273
+ this.page = page;
274
+ this.ui = ui;
275
+ this.mode = mode;
276
+ this.teardown = teardown;
277
+ this.viewport = viewport;
278
+ this.recorder = recorder;
279
+ page.on("request", () => {
280
+ this.inflight += 1;
281
+ this.lastNetwork = Date.now();
282
+ });
283
+ const done = () => {
284
+ this.inflight = Math.max(0, this.inflight - 1);
285
+ this.lastNetwork = Date.now();
286
+ };
287
+ page.on("requestfinished", done);
288
+ page.on("requestfailed", done);
289
+ }
290
+ inflight = 0;
291
+ lastNetwork = Date.now();
292
+ get agentId() {
293
+ return this.recorder?.agentId ?? null;
294
+ }
295
+ /** Run one action and report it: the event carries what was asked,
296
+ * whether it worked, and the screen after — for failures too, so a
297
+ * reviewer sees what the agent saw when the selector did not match. */
298
+ async act(action, args, fn) {
299
+ const recorder = this.recorder;
300
+ if (!recorder) return fn();
301
+ const started = Date.now();
302
+ let ok = true;
303
+ let error = null;
304
+ try {
305
+ return await fn();
306
+ } catch (err) {
307
+ ok = false;
308
+ error = (err instanceof Error ? `${err.name}: ${err.message}` : String(err)).slice(0, 4e3);
309
+ throw err;
310
+ } finally {
311
+ recorder.record({
312
+ agentId: recorder.agentId,
313
+ seq: recorder.nextSeq(),
314
+ ts: (/* @__PURE__ */ new Date()).toISOString(),
315
+ action,
316
+ args: redactActionArgs(action, args),
317
+ ok,
318
+ error,
319
+ durationMs: Date.now() - started,
320
+ mode: this.mode,
321
+ viewport: { ...this.viewport },
322
+ ...await this.observeForEvent()
323
+ });
324
+ }
325
+ }
326
+ async observeForEvent() {
327
+ const out = {
328
+ url: null,
329
+ title: null,
330
+ screenshot: null
331
+ };
332
+ try {
333
+ out.url = this.page.url();
334
+ out.title = await this.page.title();
335
+ const jpeg = await this.page.screenshot({
336
+ type: "jpeg",
337
+ quality: EVENT_SCREENSHOT_QUALITY
338
+ });
339
+ out.screenshot = jpeg.toString("base64");
340
+ } catch {
341
+ }
342
+ return out;
343
+ }
344
+ /** Open a UI path (`/customers`), a full URL, or — with no argument — the
345
+ * UI's declared entry page. */
346
+ async goto(pathOrUrl) {
347
+ let target;
348
+ if (pathOrUrl === void 0) {
349
+ if (!this.ui)
350
+ throw new WorldSurfaceUnavailable(
351
+ "ui",
352
+ "this session has no UI to navigate to"
353
+ );
354
+ target = uiEntryUrl(this.ui);
355
+ } else if (/^https?:\/\//.test(pathOrUrl)) {
356
+ target = pathOrUrl;
357
+ } else {
358
+ if (!this.ui)
359
+ throw new WorldSurfaceUnavailable(
360
+ "ui",
361
+ "relative paths need a UI surface"
362
+ );
363
+ target = uiUrl(this.ui, pathOrUrl);
364
+ }
365
+ return this.act(
366
+ "browser_goto",
367
+ { path: pathOrUrl ?? null, url: withoutUiToken(target) },
368
+ async () => {
369
+ await this.page.goto(target, { waitUntil: "load" });
370
+ await this.settle();
371
+ return this.page.url();
372
+ }
373
+ );
374
+ }
375
+ async back() {
376
+ return this.act("browser_back", {}, async () => {
377
+ await this.page.goBack({ waitUntil: "load" });
378
+ await this.settle();
379
+ return this.page.url();
380
+ });
381
+ }
382
+ /** Wait for the page to finish reacting to an action. `load` alone is not
383
+ * enough for client-rendered UIs (React et al.): a click returns before the
384
+ * fetch that re-renders the page, so an agent would read stale text.
385
+ * Playwright's `networkidle` is per navigation and resolves at once after
386
+ * the first one, so this tracks requests itself: done when nothing is in
387
+ * flight and the network has been quiet for `SETTLE_QUIET_MS`, bounded so
388
+ * long-polling UIs cannot hang us. */
389
+ async settle() {
390
+ await this.page.waitForLoadState("load");
391
+ const deadline = Date.now() + SETTLE_TIMEOUT_MS;
392
+ while (Date.now() < deadline) {
393
+ const quiet = Date.now() - this.lastNetwork >= SETTLE_QUIET_MS;
394
+ if (this.inflight === 0 && quiet) return;
395
+ await this.page.waitForTimeout(SETTLE_POLL_MS);
396
+ }
397
+ }
398
+ async click(selector) {
399
+ await this.act("browser_click", { selector }, async () => {
400
+ await this.page.click(selector);
401
+ await this.settle();
402
+ });
403
+ }
404
+ async type(selector, text2) {
405
+ await this.act(
406
+ "browser_type",
407
+ { selector, text: text2 },
408
+ () => this.page.fill(selector, text2)
409
+ );
410
+ }
411
+ async press(key) {
412
+ await this.act("browser_press", { key }, async () => {
413
+ await this.page.keyboard.press(key);
414
+ await this.settle();
415
+ });
416
+ }
417
+ async scroll(dy) {
418
+ await this.act(
419
+ "browser_scroll",
420
+ { dy },
421
+ () => this.page.mouse.wheel(0, dy)
422
+ );
423
+ }
424
+ async screenshot(fullPage = false) {
425
+ return this.page.screenshot({ type: "png", fullPage });
426
+ }
427
+ async screenshotBase64(fullPage = false) {
428
+ return (await this.screenshot(fullPage)).toString("base64");
429
+ }
430
+ async text(selector = "body") {
431
+ return this.page.innerText(selector);
432
+ }
433
+ async html() {
434
+ return this.page.content();
435
+ }
436
+ get url() {
437
+ return this.page.url();
438
+ }
439
+ async title() {
440
+ return this.page.title();
441
+ }
442
+ async close() {
443
+ try {
444
+ await this.teardown();
445
+ } finally {
446
+ await this.recorder?.close();
447
+ }
448
+ }
449
+ };
450
+ COMPUTER_USE_SPECS = [
451
+ {
452
+ name: "browser_goto",
453
+ signature: "browser_goto(path=None)",
454
+ doc: "Open a page of the world's UI. `path` is a UI path like /customers, a full URL, or omitted for the entry page. Returns the URL and page text."
455
+ },
456
+ {
457
+ name: "browser_click",
458
+ signature: "browser_click(selector)",
459
+ doc: "Click an element by Playwright selector (CSS, `text=Refund`, `role=button[name=Save]`). Returns the page text after the click."
460
+ },
461
+ {
462
+ name: "browser_type",
463
+ signature: "browser_type(selector, text)",
464
+ doc: "Replace the value of an input/textarea found by selector with `text`."
465
+ },
466
+ {
467
+ name: "browser_press",
468
+ signature: "browser_press(key)",
469
+ doc: "Press a key (Enter, Tab, Escape, ArrowDown, ...). Returns the page text after."
470
+ },
471
+ {
472
+ name: "browser_scroll",
473
+ signature: "browser_scroll(dy=600)",
474
+ doc: "Scroll the page vertically by `dy` pixels (negative scrolls up)."
475
+ },
476
+ {
477
+ name: "browser_screenshot",
478
+ signature: "browser_screenshot(full_page=False)",
479
+ doc: "Take a PNG screenshot; returns {image_base64, url}."
480
+ },
481
+ {
482
+ name: "browser_read",
483
+ signature: "browser_read(selector='body')",
484
+ doc: "Return the visible text of an element (default: whole page) plus the URL and title."
485
+ },
486
+ {
487
+ name: "browser_back",
488
+ signature: "browser_back()",
489
+ doc: "Go back one page in history."
490
+ }
491
+ ];
492
+ str = (v, fallback) => typeof v === "string" && v.length > 0 ? v : fallback;
493
+ }
494
+ });
495
+
19
496
  // src/worlds/session.ts
20
497
  var session_exports = {};
21
498
  __export(session_exports, {
@@ -23,11 +500,24 @@ __export(session_exports, {
23
500
  WorldSessionCallError: () => WorldSessionCallError,
24
501
  WorldSessionTimeout: () => WorldSessionTimeout,
25
502
  attachSession: () => attachSession,
503
+ isTaskIdRef: () => isTaskIdRef,
504
+ isTaskSpec: () => isTaskSpec,
26
505
  openSession: () => openSession,
27
506
  runSessions: () => runSessions,
28
- schemaFromSignature: () => schemaFromSignature
507
+ schemaFromSignature: () => schemaFromSignature,
508
+ taskLabel: () => taskLabel
29
509
  });
510
+ import { randomUUID } from "crypto";
30
511
  function schemaFromSignature(spec) {
512
+ if (spec.inputSchema)
513
+ return {
514
+ type: "function",
515
+ function: {
516
+ name: modelToolName(spec.name),
517
+ description: spec.doc ?? spec.name,
518
+ parameters: spec.inputSchema
519
+ }
520
+ };
31
521
  const inside = /\(([\s\S]*)\)\s*$/.exec(spec.signature.trim())?.[1] ?? "";
32
522
  const properties = {};
33
523
  const required = [];
@@ -63,7 +553,7 @@ function schemaFromSignature(spec) {
63
553
  return {
64
554
  type: "function",
65
555
  function: {
66
- name: spec.name,
556
+ name: modelToolName(spec.name),
67
557
  description: spec.doc ?? spec.name,
68
558
  parameters: { type: "object", properties, required }
69
559
  }
@@ -77,8 +567,20 @@ async function attachSession(sessionId, options = {}) {
77
567
  );
78
568
  return new WorldSession(sessionId, state, options);
79
569
  }
80
- async function openSession(slugOrRef, task, opts = {}) {
570
+ async function openSession(slugOrRef, taskOrOpts, positionalOpts = {}) {
571
+ const { task, ...opts } = typeof taskOrOpts === "object" && "task" in taskOrOpts ? taskOrOpts : { task: taskOrOpts, ...positionalOpts };
572
+ if (task === void 0 || task === null || typeof task === "string" && !task || isTaskIdRef(task) && !task.id || isTaskSpec(task) && !task.instruction || typeof task === "object" && !isTaskIdRef(task) && !isTaskSpec(task))
573
+ throw new Error(
574
+ "openSession needs a task: a bundled task name, a stored task { id, version? } or { instruction, seed?, grader?, metadata? }"
575
+ );
81
576
  const options = opts.options ?? {};
577
+ const unknown = (opts.surfaces ?? []).filter(
578
+ (s) => !SURFACE_KINDS.includes(s)
579
+ );
580
+ if (unknown.length)
581
+ throw new Error(
582
+ `Unknown world surfaces: ${unknown.join(", ")}; choose from ${SURFACE_KINDS.join(", ")}`
583
+ );
82
584
  const at = slugOrRef.indexOf("@");
83
585
  const slug = at === -1 ? slugOrRef : slugOrRef.slice(0, at);
84
586
  const state = await apiRequest(
@@ -88,7 +590,8 @@ async function openSession(slugOrRef, task, opts = {}) {
88
590
  {
89
591
  ...opts.versionId ? { versionId: opts.versionId } : { slug },
90
592
  task,
91
- ...opts.reuseWarm === void 0 ? {} : { reuseWarm: opts.reuseWarm }
593
+ ...opts.reuseWarm === void 0 ? {} : { reuseWarm: opts.reuseWarm },
594
+ ...opts.surfaces?.length ? { surfaces: opts.surfaces } : {}
92
595
  }
93
596
  );
94
597
  return new WorldSession(state.sessionId, state, options);
@@ -109,20 +612,24 @@ async function runSessions(opts) {
109
612
  await Promise.all(
110
613
  Array.from({ length: Math.min(concurrency, tasks.length) }, async () => {
111
614
  while (next < tasks.length) {
112
- const task = tasks[next++];
615
+ const taskRef = tasks[next++];
616
+ let task = taskLabel(taskRef);
113
617
  let session = null;
114
618
  try {
115
- session = await openSession(opts.world, task, {
619
+ session = await openSession(opts.world, {
620
+ task: taskRef,
116
621
  versionId,
117
622
  options
118
623
  });
624
+ task = taskLabel(taskRef, session.taskInfo);
119
625
  await session.ready();
120
626
  const toolkit = await session.toolkit();
121
627
  await opts.agent({
122
628
  session,
123
629
  toolkit,
124
- instruction: session.instruction ?? task,
125
- task
630
+ instruction: session.instruction ?? (isTaskSpec(taskRef) ? taskRef.instruction : task),
631
+ task,
632
+ taskRef
126
633
  });
127
634
  const graded = await session.grade();
128
635
  const result = {
@@ -158,35 +665,147 @@ async function runSessions(opts) {
158
665
  passed: opts.failUnder === void 0 ? true : mean >= opts.failUnder
159
666
  };
160
667
  }
161
- var READY_TIMEOUT_MS, READY_POLL_MS, CALL_TIMEOUT_MS, CALL_POLL_MS, sleep, WorldSessionTimeout, WorldSessionCallError, WorldSession;
668
+ var isTaskIdRef, isTaskSpec, taskLabel, READY_TIMEOUT_MS, READY_POLL_MS, CALL_TIMEOUT_MS, CALL_POLL_MS, JUDGED_GRADE_TIMEOUT_MS, JUDGED_GRADE_POLL_MS, EXPORT_PAGE, sleep, modelToolName, WorldSessionTimeout, WorldSessionCallError, WorldSession;
162
669
  var init_session = __esm({
163
670
  "src/worlds/session.ts"() {
164
671
  "use strict";
165
672
  init_worlds();
673
+ init_browser();
674
+ isTaskIdRef = (task) => typeof task === "object" && task !== null && "id" in task;
675
+ isTaskSpec = (task) => typeof task === "object" && task !== null && "instruction" in task;
676
+ taskLabel = (task, info) => {
677
+ if (typeof task === "string") return task;
678
+ if (isTaskIdRef(task)) return info?.name ?? task.id;
679
+ if (task.name) return task.name;
680
+ return info?.hash ? `inline:${info.hash.slice(0, 12)}` : "inline";
681
+ };
166
682
  READY_TIMEOUT_MS = 10 * 6e4;
167
683
  READY_POLL_MS = 2e3;
168
684
  CALL_TIMEOUT_MS = 3 * 6e4;
169
685
  CALL_POLL_MS = 400;
686
+ JUDGED_GRADE_TIMEOUT_MS = 15 * 6e4;
687
+ JUDGED_GRADE_POLL_MS = 2e3;
688
+ EXPORT_PAGE = 500;
170
689
  sleep = (ms) => new Promise((r) => setTimeout(r, ms));
690
+ modelToolName = (name) => name.replace(/[^A-Za-z0-9_-]/g, "_").slice(0, 64) || "tool";
171
691
  WorldSessionTimeout = class extends Error {
172
692
  };
173
693
  WorldSessionCallError = class extends Error {
174
694
  };
175
695
  WorldSession = class {
176
- constructor(sessionId, state, options) {
696
+ constructor(sessionId, current, options) {
177
697
  this.sessionId = sessionId;
178
- this.state = state;
698
+ this.current = current;
179
699
  this.options = options;
180
700
  }
701
+ /** The task's display name: a bundled scenario's, or the inline spec's
702
+ * `name` (null when the spec was unnamed). Same as `taskName`. */
181
703
  get task() {
182
- return this.state.taskName;
704
+ return this.current.taskName;
705
+ }
706
+ /** The task's display name: a bundled scenario's, or the inline spec's
707
+ * `name` (null when the spec was unnamed). */
708
+ get taskName() {
709
+ return this.current.taskName;
710
+ }
711
+ /** The platform's notices about the world this session runs on (empty
712
+ * for a schema world). Printed by the CLI on stderr at open. */
713
+ get deprecations() {
714
+ return this.current.deprecations ?? [];
715
+ }
716
+ /** The task this session runs: bundled scenario, stored task or inline
717
+ * spec, its name, hash and the caller's metadata. */
718
+ get taskInfo() {
719
+ return this.current.task ?? {
720
+ source: "bundled",
721
+ name: this.current.taskName,
722
+ hash: null,
723
+ metadata: {}
724
+ };
183
725
  }
184
- /** What this task asks for — the bundle's own instruction.md. */
726
+ /** What this task asks for — the bundle's instruction.md, or the inline
727
+ * spec's `instruction`. */
185
728
  get instruction() {
186
- return this.state.instruction ?? null;
729
+ return this.current.instruction ?? null;
187
730
  }
188
731
  get versionId() {
189
- return this.state.versionId;
732
+ return this.current.versionId;
733
+ }
734
+ /** Whether the session answered ready as of the last state read (the open,
735
+ * a `status()`, or the poll inside `ready()`); no request is made. */
736
+ get isReady() {
737
+ return this.current.ready;
738
+ }
739
+ /** `api` / `ui` / `browser` are present exactly when the world declares
740
+ * them AND the session was opened asking for them. */
741
+ async surfaces() {
742
+ if (!this.current.surfaces) await this.status();
743
+ return this.current.surfaces ?? { tools: { kind: "rendezvous" } };
744
+ }
745
+ /** Base URL of the world's own HTTP API for this session. */
746
+ async api() {
747
+ const { api: api2 } = await this.surfaces();
748
+ if (!api2)
749
+ throw new WorldSurfaceUnavailable(
750
+ "api",
751
+ "open the session with surfaces: ['api'] on an api-type world"
752
+ );
753
+ return api2.url;
754
+ }
755
+ /** Headers every request to `api()` needs. A World Host session gates its
756
+ * api surface on a per-session token; a pod or hosted twin answers with the
757
+ * world's own declared auth and this is `{}`. */
758
+ async apiHeaders() {
759
+ const { api: api2 } = await this.surfaces();
760
+ return api2?.token ? { Authorization: `Bearer ${api2.token}` } : {};
761
+ }
762
+ /** URL of the world's UI entry page for this session. */
763
+ async ui() {
764
+ const { ui } = await this.surfaces();
765
+ if (!ui)
766
+ throw new WorldSurfaceUnavailable(
767
+ "ui",
768
+ "open the session with surfaces: ['ui'] on a world that declares [ui]"
769
+ );
770
+ return uiEntryUrl(ui);
771
+ }
772
+ /** A Playwright browser on this session's UI: `hosted` drives the one the
773
+ * platform runs next to the world, `local` launches one here, `auto`
774
+ * prefers hosted. Call `close()` when done.
775
+ *
776
+ * Every action is reported to the platform under `agentId` (default:
777
+ * `GATEWAY_AGENT_ID` or a fresh `agent-<hex>`) so the session page shows
778
+ * this agent's own timeline — several agents may share one session and
779
+ * one hosted browser. `record: false` opts out. */
780
+ async browser(opts = {}) {
781
+ const { agentId, record = true, ...rest } = opts;
782
+ return openBrowser(await this.surfaces(), {
783
+ ...rest,
784
+ recorder: record ? this.browserRecorder(agentId) : null
785
+ });
786
+ }
787
+ /** The reporter `browser()` uses; exposed for a page you drive yourself. */
788
+ browserRecorder(agentId) {
789
+ const path8 = `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}/browser-events`;
790
+ const id = agentId ?? process.env.GATEWAY_AGENT_ID ?? `agent-${randomUUID().replace(/-/g, "").slice(0, 8)}`;
791
+ return new BrowserActionRecorder(
792
+ async (events) => {
793
+ await apiRequest(this.options, "POST", path8, { events });
794
+ },
795
+ id,
796
+ {
797
+ // Continue this agent's timeline where the platform has it, so the
798
+ // same id reopened later never re-numbers from zero.
799
+ resumeFrom: async () => {
800
+ const summary = await apiRequest(this.options, "GET", path8);
801
+ return summary.agents.find((a) => a.agentId === id)?.nextSeq ?? 0;
802
+ }
803
+ }
804
+ );
805
+ }
806
+ /** Browser actions as model tools, in the same shape as `toolkit()`. */
807
+ computerUseTools(browser) {
808
+ return computerUseToolkit(browser);
190
809
  }
191
810
  /** The session's latest platform state (one request, no waiting). */
192
811
  async status() {
@@ -195,12 +814,14 @@ var init_session = __esm({
195
814
  "GET",
196
815
  `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}`
197
816
  );
198
- this.state = {
199
- instruction: this.state.instruction,
200
- tools: this.state.tools,
817
+ this.current = {
818
+ instruction: this.current.instruction,
819
+ tools: this.current.tools,
820
+ surfaces: this.current.surfaces,
821
+ task: this.current.task,
201
822
  ...fresh
202
823
  };
203
- return this.state;
824
+ return this.current;
204
825
  }
205
826
  /**
206
827
  * Wait until the container is warm — meaning the process inside it has
@@ -223,14 +844,18 @@ var init_session = __esm({
223
844
  }
224
845
  }
225
846
  /** Enqueue one interaction and wait for the container's answer. */
226
- async exchange(body, timeoutMs = CALL_TIMEOUT_MS) {
227
- const { callId } = await apiRequest(
847
+ async exchange(body, timeoutMs) {
848
+ const enqueued = await apiRequest(
228
849
  this.options,
229
850
  "POST",
230
851
  `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}/calls`,
231
852
  body
232
853
  );
233
- const deadline = Date.now() + timeoutMs;
854
+ const { callId } = enqueued;
855
+ const judged = enqueued.pending === true;
856
+ const budgetMs = timeoutMs ?? (judged ? JUDGED_GRADE_TIMEOUT_MS : CALL_TIMEOUT_MS);
857
+ const pollMs2 = judged ? JUDGED_GRADE_POLL_MS : CALL_POLL_MS;
858
+ const deadline = Date.now() + budgetMs;
234
859
  for (; ; ) {
235
860
  const call = await apiRequest(
236
861
  this.options,
@@ -243,9 +868,9 @@ var init_session = __esm({
243
868
  }
244
869
  if (Date.now() > deadline)
245
870
  throw new WorldSessionTimeout(
246
- `Call ${callId} still ${call.state} after ${Math.round(timeoutMs / 1e3)}s \u2014 the container may have died.`
871
+ judged ? `Grade ${callId} still ${call.state} after ${Math.round(budgetMs / 1e3)}s \u2014 the judge has not answered; the platform finalizes the call on its own, read it back with export().` : `Call ${callId} still ${call.state} after ${Math.round(budgetMs / 1e3)}s \u2014 the container may have died.`
247
872
  );
248
- await sleep(CALL_POLL_MS);
873
+ await sleep(pollMs2);
249
874
  }
250
875
  }
251
876
  /**
@@ -269,15 +894,27 @@ var init_session = __esm({
269
894
  * hand-written map that still remembers the old name.
270
895
  */
271
896
  async toolkit() {
272
- let specs = this.state.tools;
897
+ let specs = this.current.tools;
273
898
  if (!specs) specs = (await this.status()).tools ?? [];
274
- const impls = {};
899
+ const impls = /* @__PURE__ */ Object.create(null);
275
900
  for (const spec of specs) {
276
- impls[spec.name] = (args = {}) => this.call(spec.name, args);
901
+ const alias = modelToolName(spec.name);
902
+ if (Object.hasOwn(impls, alias))
903
+ throw new WorldSessionCallError(`Model tool name collision: ${alias}`);
904
+ impls[alias] = (args = {}) => this.call(spec.name, args);
277
905
  }
278
906
  return { schemas: specs.map(schemaFromSignature), impls, specs };
279
907
  }
280
- /** Run the task's grader against the container's END STATE. */
908
+ /** Run the task's grader against the container's END STATE. Graders answer
909
+ * in one of two shapes: the scalar with named rewards beside it
910
+ * (`{reward, check_a, check_b}`, a task's own `grade.py`), or the named
911
+ * rewards nested under `rewards` (the api, mock-tools and World Host
912
+ * runners). Both land in `rewards`.
913
+ *
914
+ * A rubric grade is finalized by the platform's judge, not the container:
915
+ * the platform answers the enqueue with `pending: true`, and this waits on
916
+ * the judge's budget (15 min) instead of a call's. `timeoutMs` overrides
917
+ * either. */
281
918
  async grade(opts = {}) {
282
919
  const raw = await this.exchange(
283
920
  { kind: "grade" },
@@ -285,6 +922,12 @@ var init_session = __esm({
285
922
  );
286
923
  const record = raw && typeof raw === "object" ? raw : {};
287
924
  const rewards = {};
925
+ const nested = record.rewards;
926
+ if (nested && typeof nested === "object") {
927
+ for (const [key, value] of Object.entries(nested)) {
928
+ if (typeof value === "number") rewards[key] = value;
929
+ }
930
+ }
288
931
  for (const [key, value] of Object.entries(record)) {
289
932
  if (key !== "reward" && typeof value === "number") rewards[key] = value;
290
933
  }
@@ -294,6 +937,95 @@ var init_session = __esm({
294
937
  raw
295
938
  };
296
939
  }
940
+ /**
941
+ * Put rows into the LIVE world through its contract, in one batch:
942
+ * `append` (default) upserts by primary key, `replace` makes the named
943
+ * entities hold exactly these rows. Atomic — a refused row leaves the
944
+ * session unchanged and the error names the entity, row and field.
945
+ */
946
+ async seed(rows, opts = {}) {
947
+ const mode = opts.mode ?? "append";
948
+ const redact = opts.redact ?? "off";
949
+ return await this.exchange(
950
+ {
951
+ kind: "seed",
952
+ args: { mode, rows, ...redact !== "off" ? { redact } : {} }
953
+ },
954
+ opts.timeoutMs
955
+ );
956
+ }
957
+ /** Every entity's rows as the world holds them now — the same dump a
958
+ * grader reads. The shape is the world runtime's: a schema world answers
959
+ * `{<entity>: {<key>: row}, snapshot}`, a mock-tools world
960
+ * `{entities: {<entity>: [row]}}`. */
961
+ async state(opts = {}) {
962
+ return this.exchange({ kind: "state" }, opts.timeoutMs);
963
+ }
964
+ /** Back to the opening state: the version's data plus the bundled
965
+ * scenario's or the inline task's seed. Rows written since are gone; the
966
+ * call log stays. */
967
+ async reset(opts = {}) {
968
+ await this.exchange({ kind: "reset" }, opts.timeoutMs);
969
+ }
970
+ /** The session's call log, oldest first: every tool call, seed, reset,
971
+ * grade with its result — the record of the episode. */
972
+ async export() {
973
+ const calls = [];
974
+ let cursor;
975
+ do {
976
+ const params = new URLSearchParams({ limit: String(EXPORT_PAGE) });
977
+ if (cursor) params.set("cursor", cursor);
978
+ const page = await apiRequest(
979
+ this.options,
980
+ "GET",
981
+ `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}/calls?${params.toString()}`
982
+ );
983
+ for (const call of page.calls) {
984
+ calls.push({
985
+ seq: Number(call.seq),
986
+ kind: String(call.kind ?? "call"),
987
+ tool: typeof call.tool === "string" ? call.tool : null,
988
+ args: call.args ?? null,
989
+ result: call.result ?? null,
990
+ error: typeof call.error === "string" ? call.error : null,
991
+ completedAt: typeof call.completedAt === "string" ? call.completedAt : null
992
+ });
993
+ }
994
+ cursor = page.nextCursor ?? void 0;
995
+ } while (cursor);
996
+ return calls;
997
+ }
998
+ /**
999
+ * Promote this session's inline task into a stored task of the project
1000
+ * (version 1, pinned to the session's world unless `world` says otherwise),
1001
+ * so a task written for one end user can be reused and its grades
1002
+ * compared. The session then records the new task's id. A session on a
1003
+ * bundled task has nothing to save; one on a stored task is already saved.
1004
+ */
1005
+ async saveTask(opts = {}) {
1006
+ const task = await apiRequest(
1007
+ this.options,
1008
+ "POST",
1009
+ `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}/task`,
1010
+ {
1011
+ ...opts.name !== void 0 ? { name: opts.name } : {},
1012
+ ...opts.world !== void 0 ? { world: opts.world } : {},
1013
+ ...opts.message !== void 0 ? { message: opts.message } : {}
1014
+ }
1015
+ );
1016
+ this.current = {
1017
+ ...this.current,
1018
+ taskName: task.name,
1019
+ task: {
1020
+ ...this.taskInfo,
1021
+ source: "stored",
1022
+ name: task.name,
1023
+ id: task.id,
1024
+ version: task.version
1025
+ }
1026
+ };
1027
+ return task;
1028
+ }
297
1029
  /**
298
1030
  * End the session. `keepWarm` hands the container back to the pool instead
299
1031
  * of tearing it down, so the next session for the same task starts warm —
@@ -311,7 +1043,100 @@ var init_session = __esm({
311
1043
  }
312
1044
  });
313
1045
 
1046
+ // src/worlds/tasks.ts
1047
+ async function createTask(input, options = {}) {
1048
+ return apiRequest(
1049
+ options,
1050
+ "POST",
1051
+ TASKS,
1052
+ compact({
1053
+ spec: input.spec,
1054
+ name: input.name,
1055
+ world: input.world,
1056
+ message: input.message
1057
+ })
1058
+ );
1059
+ }
1060
+ async function updateTask(taskId, input, options = {}) {
1061
+ if (input.spec === void 0 && input.name === void 0 && input.world === void 0)
1062
+ throw new Error("updateTask: nothing to update \u2014 pass spec, name or world");
1063
+ return apiRequest(
1064
+ options,
1065
+ "PATCH",
1066
+ taskRoute(taskId),
1067
+ compact({
1068
+ spec: input.spec,
1069
+ name: input.name,
1070
+ world: input.world,
1071
+ message: input.message
1072
+ })
1073
+ );
1074
+ }
1075
+ async function listTasks(filter = {}, options = {}) {
1076
+ const params = new URLSearchParams();
1077
+ if (filter.world) params.set("world", filter.world);
1078
+ if (filter.page !== void 0) params.set("page", String(filter.page));
1079
+ if (filter.limit !== void 0) params.set("limit", String(filter.limit));
1080
+ for (const [key, value] of Object.entries(filter.metadata ?? {}))
1081
+ params.set(`metadata.${key}`, value);
1082
+ const query = params.toString();
1083
+ return apiRequest(
1084
+ options,
1085
+ "GET",
1086
+ query ? `${TASKS}?${query}` : TASKS
1087
+ );
1088
+ }
1089
+ async function getTask(taskId, opts = {}, options = {}) {
1090
+ const query = opts.version === void 0 ? "" : `?version=${String(opts.version)}`;
1091
+ return apiRequest(
1092
+ options,
1093
+ "GET",
1094
+ `${taskRoute(taskId)}${query}`
1095
+ );
1096
+ }
1097
+ async function deleteTask(taskId, options = {}) {
1098
+ return apiRequest(options, "DELETE", taskRoute(taskId));
1099
+ }
1100
+ async function validateTask(taskId, target = {}, options = {}) {
1101
+ return apiRequest(
1102
+ options,
1103
+ "POST",
1104
+ `${taskRoute(taskId)}/validate`,
1105
+ compact({
1106
+ version: target.version,
1107
+ slug: target.slug,
1108
+ versionId: target.versionId
1109
+ })
1110
+ );
1111
+ }
1112
+ var TASKS, taskRoute, compact;
1113
+ var init_tasks = __esm({
1114
+ "src/worlds/tasks.ts"() {
1115
+ "use strict";
1116
+ init_worlds();
1117
+ TASKS = "/api/public/world-tasks";
1118
+ taskRoute = (id) => `${TASKS}/${encodeURIComponent(id)}`;
1119
+ compact = (body) => Object.fromEntries(Object.entries(body).filter(([, v]) => v !== void 0));
1120
+ }
1121
+ });
1122
+
314
1123
  // src/worlds/hub.ts
1124
+ var hub_exports = {};
1125
+ __export(hub_exports, {
1126
+ DEFAULT_BRANCH: () => DEFAULT_BRANCH,
1127
+ buildSourceTarball: () => buildSourceTarball,
1128
+ collectArchiveRelPaths: () => collectArchiveRelPaths,
1129
+ computeContentHash: () => computeContentHash,
1130
+ createRef: () => createRef,
1131
+ isIncludedInContentHash: () => isIncludedInContentHash,
1132
+ localTreeState: () => localTreeState,
1133
+ propose: () => propose,
1134
+ pull: () => pull,
1135
+ push: () => push,
1136
+ readLocalMeta: () => readLocalMeta,
1137
+ snapshotTreeHashes: () => snapshotTreeHashes,
1138
+ writeLocalMeta: () => writeLocalMeta
1139
+ });
315
1140
  import { createHash } from "crypto";
316
1141
  import { gzipSync, gunzipSync } from "zlib";
317
1142
  import * as fs from "fs";
@@ -449,8 +1274,8 @@ function localTreeState(dir) {
449
1274
  }
450
1275
  function readPyproject(dir) {
451
1276
  try {
452
- const text = fs.readFileSync(path.join(dir, "pyproject.toml"), "utf-8");
453
- const section = /\[project\]([\s\S]*?)(\n\[|$)/.exec(text)?.[1] ?? "";
1277
+ const text2 = fs.readFileSync(path.join(dir, "pyproject.toml"), "utf-8");
1278
+ const section = /\[project\]([\s\S]*?)(\n\[|$)/.exec(text2)?.[1] ?? "";
454
1279
  const name = /\bname\s*=\s*"([^"]+)"/.exec(section)?.[1];
455
1280
  const version = /\bversion\s*=\s*"([^"]+)"/.exec(section)?.[1];
456
1281
  return { name, version };
@@ -458,6 +1283,17 @@ function readPyproject(dir) {
458
1283
  return {};
459
1284
  }
460
1285
  }
1286
+ function readWorldContractVersion(dir) {
1287
+ for (const rel of ["schema/world.json", path.join("server", "world", "schema", "world.json")]) {
1288
+ try {
1289
+ const parsed = JSON.parse(fs.readFileSync(path.join(dir, rel), "utf-8"));
1290
+ const pkg = parsed["x-gateway"]?.package;
1291
+ if (pkg?.version) return { name: pkg.id, version: pkg.version };
1292
+ } catch {
1293
+ }
1294
+ }
1295
+ return {};
1296
+ }
461
1297
  function buildFileManifest(dir) {
462
1298
  const entries = [];
463
1299
  const walk = (rel) => {
@@ -503,17 +1339,25 @@ async function push(dir, opts = {}) {
503
1339
  const baseVersionId = opts.baseVersionId ?? localMeta.versionId ?? null;
504
1340
  const contentHash = computeContentHash(dir);
505
1341
  const pyproject = readPyproject(dir);
1342
+ const contractVersion = pyproject.version ? void 0 : readWorldContractVersion(dir).version;
1343
+ if (contractVersion) pyproject.version = contractVersion;
506
1344
  const slug = opts.slug ?? pyproject.name ?? path.basename(path.resolve(dir));
507
- const resolve2 = await apiRequest(
1345
+ const resolve6 = await apiRequest(
508
1346
  options,
509
1347
  "POST",
510
1348
  "/api/public/benchmark-containers/resolve",
511
- { slug, name: pyproject.name ?? slug }
1349
+ {
1350
+ slug,
1351
+ name: opts.name ?? pyproject.name ?? slug,
1352
+ ...opts.description ? { description: opts.description } : {},
1353
+ ...opts.tags?.length ? { tags: opts.tags } : {},
1354
+ ...opts.visibility ? { visibility: opts.visibility } : {}
1355
+ }
512
1356
  );
513
1357
  const tarball = buildSourceTarball(dir);
514
1358
  const bundleSha256 = sha256b64(tarball);
515
1359
  const version = await apiRequest(options, "POST", "/api/public/benchmark-containers/versions", {
516
- containerId: resolve2.containerId,
1360
+ containerId: resolve6.containerId,
517
1361
  contentHash,
518
1362
  bundleSha256,
519
1363
  bundleSizeBytes: tarball.length,
@@ -524,10 +1368,11 @@ async function push(dir, opts = {}) {
524
1368
  baseVersionId,
525
1369
  ...opts.force ? { force: true } : {},
526
1370
  ...opts.message ? { changeReason: opts.message } : {},
527
- ...opts.author ? { author: opts.author } : {}
1371
+ ...opts.author ? { author: opts.author } : {},
1372
+ ...opts.imageRef ? { imageRef: opts.imageRef } : {}
528
1373
  });
529
1374
  if (version.uploadUrl) await putObject(version.uploadUrl, tarball, bundleSha256);
530
- await apiRequest(
1375
+ const final = await apiRequest(
531
1376
  options,
532
1377
  "POST",
533
1378
  `/api/public/benchmark-containers/versions/${version.versionId}/finalize`,
@@ -544,7 +1389,15 @@ async function push(dir, opts = {}) {
544
1389
  forkedFromVersionId: baseVersionId,
545
1390
  baseFiles: snapshotTreeHashes(dir)
546
1391
  });
547
- return { slug, versionId: version.versionId, contentHash, branch };
1392
+ return {
1393
+ containerId: resolve6.containerId,
1394
+ slug,
1395
+ versionId: version.versionId,
1396
+ contentHash,
1397
+ branch: final.branch ?? branch,
1398
+ state: final.state ?? null,
1399
+ alreadyUploaded: Boolean(version.alreadyUploaded)
1400
+ };
548
1401
  }
549
1402
  function extractBundle(bundle, dir) {
550
1403
  const tar = gunzipSync(bundle);
@@ -860,43 +1713,1845 @@ var init_validate = __esm({
860
1713
  }
861
1714
  });
862
1715
 
863
- // src/worlds/index.ts
864
- var worlds_exports = {};
865
- __export(worlds_exports, {
866
- DEFAULT_BRANCH: () => DEFAULT_BRANCH,
867
- WorldSession: () => WorldSession,
868
- WorldSessionCallError: () => WorldSessionCallError,
869
- WorldSessionTimeout: () => WorldSessionTimeout,
870
- WorldSet: () => WorldSet,
871
- WorldTask: () => WorldTask,
872
- apiRequest: () => apiRequest,
873
- attachSession: () => attachSession,
874
- buildSourceTarball: () => buildSourceTarball,
875
- collectArchiveRelPaths: () => collectArchiveRelPaths,
876
- computeContentHash: () => computeContentHash,
877
- createRef: () => createRef,
878
- deleteEnvSecret: () => deleteEnvSecret,
879
- detectProvenance: () => detectProvenance,
880
- getRun: () => getRun,
881
- isIncludedInContentHash: () => isIncludedInContentHash,
882
- listEnvSecretKeys: () => listEnvSecretKeys,
883
- listRunConfigs: () => listRunConfigs,
884
- localTreeState: () => localTreeState,
885
- openSession: () => openSession,
886
- openWorld: () => openWorld,
887
- propose: () => propose,
888
- pull: () => pull,
889
- push: () => push,
890
- readLocalMeta: () => readLocalMeta,
891
- runSessions: () => runSessions,
892
- schemaFromSignature: () => schemaFromSignature,
893
- setEnvSecret: () => setEnvSecret,
894
- snapshotTreeHashes: () => snapshotTreeHashes,
895
- validateWorld: () => validateWorld,
896
- waitForRun: () => waitForRun,
897
- writeLocalMeta: () => writeLocalMeta
898
- });
899
- function resolveEnv(options) {
1716
+ // src/worlds/describe.ts
1717
+ async function describeWorld(slug, options = {}) {
1718
+ if (slug.includes("@"))
1719
+ throw new Error(
1720
+ `describeWorld reads a world's head version: pass the slug without @ref (got ${slug})`
1721
+ );
1722
+ return apiRequest(
1723
+ options,
1724
+ "GET",
1725
+ `/api/public/worlds/${encodeURIComponent(slug)}`
1726
+ );
1727
+ }
1728
+ var init_describe = __esm({
1729
+ "src/worlds/describe.ts"() {
1730
+ "use strict";
1731
+ init_worlds();
1732
+ }
1733
+ });
1734
+
1735
+ // src/cli/platform/worldData/json.ts
1736
+ function parseJson(text2) {
1737
+ const p = new Parser(text2);
1738
+ p.skipWs();
1739
+ const value = p.value();
1740
+ p.skipWs();
1741
+ if (p.i < text2.length) throw new JsonSyntaxError(`Extra data at ${p.i}`);
1742
+ return value;
1743
+ }
1744
+ function dumps(value) {
1745
+ if (value === null) return "null";
1746
+ if (value === true) return "true";
1747
+ if (value === false) return "false";
1748
+ if (typeof value === "string") return JSON.stringify(value);
1749
+ if (value instanceof JsonNumber) return numberText(value);
1750
+ if (Array.isArray(value)) return "[" + value.map(dumps).join(",") + "]";
1751
+ const parts = [];
1752
+ for (const [key, item] of value) parts.push(JSON.stringify(key) + ":" + dumps(item));
1753
+ return "{" + parts.join(",") + "}";
1754
+ }
1755
+ function numberText(n) {
1756
+ if (!n.isFloat) return /^-0+$/.test(n.text) ? "0" : n.text;
1757
+ const value = n.value;
1758
+ if (Number.isNaN(value)) return "NaN";
1759
+ if (value === Infinity) return "Infinity";
1760
+ if (value === -Infinity) return "-Infinity";
1761
+ return pyFloatRepr(value);
1762
+ }
1763
+ function pyFloatRepr(x) {
1764
+ if (x === 0) return Object.is(x, -0) ? "-0.0" : "0.0";
1765
+ const sign = x < 0 ? "-" : "";
1766
+ const js = String(Math.abs(x));
1767
+ const [mantissa, exponentPart] = js.split("e");
1768
+ let exponent = exponentPart ? Number(exponentPart) : 0;
1769
+ const [intPart, fracPart = ""] = mantissa.split(".");
1770
+ let digits = intPart + fracPart;
1771
+ let decpt = intPart.length + exponent;
1772
+ const leading = digits.match(/^0*/)[0].length;
1773
+ digits = digits.slice(leading);
1774
+ decpt -= leading;
1775
+ digits = digits.replace(/0+$/, "");
1776
+ if (digits === "") return sign + "0.0";
1777
+ const sci = decpt - 1;
1778
+ if (sci >= -4 && sci < 16) {
1779
+ if (decpt <= 0) return sign + "0." + "0".repeat(-decpt) + digits;
1780
+ if (decpt >= digits.length) return sign + digits + "0".repeat(decpt - digits.length) + ".0";
1781
+ return sign + digits.slice(0, decpt) + "." + digits.slice(decpt);
1782
+ }
1783
+ exponent = sci;
1784
+ const mag = String(Math.abs(exponent)).padStart(2, "0");
1785
+ return sign + digits[0] + (digits.length > 1 ? "." + digits.slice(1) : "") + "e" + (exponent < 0 ? "-" : "+") + mag;
1786
+ }
1787
+ function pyRound(n, ndigits) {
1788
+ if (!n.isFloat) return n;
1789
+ const x = n.value;
1790
+ if (!Number.isFinite(x)) return n;
1791
+ const sign = x < 0 ? -1 : 1;
1792
+ const magnitude = Math.abs(x);
1793
+ if (magnitude >= 9007199254740992) return new JsonNumber(pyFloatRepr(x));
1794
+ const { m, k } = exactFraction(magnitude);
1795
+ let rounded;
1796
+ if (k <= ndigits) rounded = magnitude;
1797
+ else if (k !== ndigits + 1) rounded = Number(magnitude.toFixed(ndigits));
1798
+ else {
1799
+ const scaled = m * 5n ** BigInt(k);
1800
+ let kept = scaled / 10n;
1801
+ if (kept % 2n === 1n) kept += 1n;
1802
+ const text2 = kept.toString().padStart(ndigits + 1, "0");
1803
+ rounded = ndigits === 0 ? Number(text2) : Number(text2.slice(0, -ndigits) + "." + text2.slice(-ndigits));
1804
+ }
1805
+ return new JsonNumber(pyFloatRepr(sign * rounded));
1806
+ }
1807
+ function exactFraction(x) {
1808
+ if (x === 0) return { m: 0n, k: 0 };
1809
+ const view = new DataView(new ArrayBuffer(8));
1810
+ view.setFloat64(0, x);
1811
+ const bits = view.getBigUint64(0);
1812
+ const exponent = Number(bits >> 52n & 0x7ffn);
1813
+ let mantissa = bits & (1n << 52n) - 1n;
1814
+ let e;
1815
+ if (exponent === 0) e = -1074;
1816
+ else {
1817
+ mantissa |= 1n << 52n;
1818
+ e = exponent - 1075;
1819
+ }
1820
+ while (mantissa !== 0n && (mantissa & 1n) === 0n) {
1821
+ mantissa >>= 1n;
1822
+ e += 1;
1823
+ }
1824
+ if (e >= 0) return { m: mantissa << BigInt(e), k: 0 };
1825
+ return { m: mantissa, k: -e };
1826
+ }
1827
+ var JsonNumber, JsonSyntaxError, Parser, isDigit;
1828
+ var init_json = __esm({
1829
+ "src/cli/platform/worldData/json.ts"() {
1830
+ "use strict";
1831
+ JsonNumber = class {
1832
+ /** The lexeme as it appeared, e.g. "1.0", "-0", "1e21". */
1833
+ constructor(text2) {
1834
+ this.text = text2;
1835
+ }
1836
+ /** A float in Python's eyes: a fraction, an exponent, or a non-finite literal. */
1837
+ get isFloat() {
1838
+ return /[.eE]/.test(this.text) || /[nN]/.test(this.text);
1839
+ }
1840
+ get value() {
1841
+ return Number(this.text);
1842
+ }
1843
+ };
1844
+ JsonSyntaxError = class extends Error {
1845
+ };
1846
+ Parser = class {
1847
+ constructor(s) {
1848
+ this.s = s;
1849
+ }
1850
+ i = 0;
1851
+ skipWs() {
1852
+ const s = this.s;
1853
+ while (this.i < s.length) {
1854
+ const c = s.charCodeAt(this.i);
1855
+ if (c === 32 || c === 10 || c === 13 || c === 9) this.i++;
1856
+ else break;
1857
+ }
1858
+ }
1859
+ fail(what) {
1860
+ throw new JsonSyntaxError(`${what} at ${this.i}`);
1861
+ }
1862
+ value() {
1863
+ const s = this.s;
1864
+ if (this.i >= s.length) this.fail("Expecting value");
1865
+ const c = s[this.i];
1866
+ if (c === "{") return this.object();
1867
+ if (c === "[") return this.array();
1868
+ if (c === '"') return this.string();
1869
+ if (c === "t") return this.literal("true", true);
1870
+ if (c === "f") return this.literal("false", false);
1871
+ if (c === "n") return this.literal("null", null);
1872
+ if (c === "N") return this.literal("NaN", new JsonNumber("NaN"));
1873
+ if (c === "I") return this.literal("Infinity", new JsonNumber("Infinity"));
1874
+ return this.number();
1875
+ }
1876
+ literal(word, value) {
1877
+ if (!this.s.startsWith(word, this.i)) this.fail("Expecting value");
1878
+ this.i += word.length;
1879
+ return value;
1880
+ }
1881
+ number() {
1882
+ const s = this.s;
1883
+ const start = this.i;
1884
+ if (s[this.i] === "-") {
1885
+ this.i++;
1886
+ if (s.startsWith("Infinity", this.i)) {
1887
+ this.i += 8;
1888
+ return new JsonNumber("-Infinity");
1889
+ }
1890
+ }
1891
+ const intStart = this.i;
1892
+ if (s[this.i] === "0") this.i++;
1893
+ else {
1894
+ while (this.i < s.length && isDigit(s.charCodeAt(this.i))) this.i++;
1895
+ if (this.i === intStart) this.fail("Expecting value");
1896
+ }
1897
+ if (s[this.i] === ".") {
1898
+ this.i++;
1899
+ const fracStart = this.i;
1900
+ while (this.i < s.length && isDigit(s.charCodeAt(this.i))) this.i++;
1901
+ if (this.i === fracStart) this.fail("Invalid number");
1902
+ }
1903
+ if (s[this.i] === "e" || s[this.i] === "E") {
1904
+ this.i++;
1905
+ if (s[this.i] === "+" || s[this.i] === "-") this.i++;
1906
+ const expStart = this.i;
1907
+ while (this.i < s.length && isDigit(s.charCodeAt(this.i))) this.i++;
1908
+ if (this.i === expStart) this.fail("Invalid number");
1909
+ }
1910
+ return new JsonNumber(s.slice(start, this.i));
1911
+ }
1912
+ string() {
1913
+ const s = this.s;
1914
+ this.i++;
1915
+ let out = "";
1916
+ let runStart = this.i;
1917
+ for (; ; ) {
1918
+ if (this.i >= s.length) this.fail("Unterminated string");
1919
+ const c = s.charCodeAt(this.i);
1920
+ if (c === 34) {
1921
+ out += s.slice(runStart, this.i);
1922
+ this.i++;
1923
+ return out;
1924
+ }
1925
+ if (c < 32) this.fail("Invalid control character");
1926
+ if (c !== 92) {
1927
+ this.i++;
1928
+ continue;
1929
+ }
1930
+ out += s.slice(runStart, this.i);
1931
+ this.i++;
1932
+ const e = s[this.i];
1933
+ switch (e) {
1934
+ case '"':
1935
+ case "\\":
1936
+ case "/":
1937
+ out += e;
1938
+ break;
1939
+ case "b":
1940
+ out += "\b";
1941
+ break;
1942
+ case "f":
1943
+ out += "\f";
1944
+ break;
1945
+ case "n":
1946
+ out += "\n";
1947
+ break;
1948
+ case "r":
1949
+ out += "\r";
1950
+ break;
1951
+ case "t":
1952
+ out += " ";
1953
+ break;
1954
+ case "u": {
1955
+ const hex2 = s.slice(this.i + 1, this.i + 5);
1956
+ if (!/^[0-9a-fA-F]{4}$/.test(hex2)) this.fail("Invalid \\u escape");
1957
+ out += String.fromCharCode(parseInt(hex2, 16));
1958
+ this.i += 4;
1959
+ break;
1960
+ }
1961
+ default:
1962
+ this.fail("Invalid escape");
1963
+ }
1964
+ this.i++;
1965
+ runStart = this.i;
1966
+ }
1967
+ }
1968
+ array() {
1969
+ this.i++;
1970
+ const out = [];
1971
+ this.skipWs();
1972
+ if (this.s[this.i] === "]") {
1973
+ this.i++;
1974
+ return out;
1975
+ }
1976
+ for (; ; ) {
1977
+ this.skipWs();
1978
+ out.push(this.value());
1979
+ this.skipWs();
1980
+ const c = this.s[this.i];
1981
+ if (c === ",") {
1982
+ this.i++;
1983
+ continue;
1984
+ }
1985
+ if (c === "]") {
1986
+ this.i++;
1987
+ return out;
1988
+ }
1989
+ this.fail("Expecting ',' delimiter");
1990
+ }
1991
+ }
1992
+ object() {
1993
+ this.i++;
1994
+ const out = /* @__PURE__ */ new Map();
1995
+ this.skipWs();
1996
+ if (this.s[this.i] === "}") {
1997
+ this.i++;
1998
+ return out;
1999
+ }
2000
+ for (; ; ) {
2001
+ this.skipWs();
2002
+ if (this.s[this.i] !== '"') this.fail("Expecting property name enclosed in double quotes");
2003
+ const key = this.string();
2004
+ this.skipWs();
2005
+ if (this.s[this.i] !== ":") this.fail("Expecting ':' delimiter");
2006
+ this.i++;
2007
+ this.skipWs();
2008
+ out.set(key, this.value());
2009
+ this.skipWs();
2010
+ const c = this.s[this.i];
2011
+ if (c === ",") {
2012
+ this.i++;
2013
+ continue;
2014
+ }
2015
+ if (c === "}") {
2016
+ this.i++;
2017
+ return out;
2018
+ }
2019
+ this.fail("Expecting ',' delimiter");
2020
+ }
2021
+ }
2022
+ };
2023
+ isDigit = (c) => c >= 48 && c <= 57;
2024
+ }
2025
+ });
2026
+
2027
+ // src/worlds/transforms.ts
2028
+ import { createHash as createHash2 } from "crypto";
2029
+ function parseTransform(name) {
2030
+ const simple = Object.prototype.hasOwnProperty.call(SIMPLE, name) ? SIMPLE[name] : void 0;
2031
+ if (simple) return simple;
2032
+ const colon = name.indexOf(":");
2033
+ if (colon !== -1) {
2034
+ const head = name.slice(0, colon);
2035
+ const prefix = name.slice(colon + 1);
2036
+ if (head === STRIP_PREFIX && prefix && !prefix.includes(",")) return stripPrefix(prefix);
2037
+ }
2038
+ throw new Error(`Unknown transform '${name}'; choose one of ${TRANSFORMS.join(", ")}`);
2039
+ }
2040
+ function applyTransforms(value, chain) {
2041
+ const steps = chain.map(parseTransform);
2042
+ let out = text(value);
2043
+ for (const step of steps) out = step(out);
2044
+ return out;
2045
+ }
2046
+ var WHITESPACE, WHITESPACE_EDGES, WHITESPACE_RUN, NOT_DIGIT, STRIP_PREFIX, trim, emailLocalPart, emailDomain, stripPrefix, hex, SIMPLE, TRANSFORMS, text;
2047
+ var init_transforms = __esm({
2048
+ "src/worlds/transforms.ts"() {
2049
+ "use strict";
2050
+ init_json();
2051
+ WHITESPACE = " \n\r\f\v";
2052
+ WHITESPACE_EDGES = /^[ \t\n\r\f\v]+|[ \t\n\r\f\v]+$/g;
2053
+ WHITESPACE_RUN = /[ \t\n\r\f\v]+/g;
2054
+ NOT_DIGIT = /[^0-9]/g;
2055
+ STRIP_PREFIX = "strip_prefix";
2056
+ trim = (value) => value.replace(WHITESPACE_EDGES, "");
2057
+ emailLocalPart = (value) => {
2058
+ const at = value.lastIndexOf("@");
2059
+ return at === -1 ? value : value.slice(0, at);
2060
+ };
2061
+ emailDomain = (value) => {
2062
+ const at = value.lastIndexOf("@");
2063
+ return at === -1 ? "" : value.slice(at + 1).toLowerCase();
2064
+ };
2065
+ stripPrefix = (prefix) => (value) => value.startsWith(prefix) ? value.slice(prefix.length) : value;
2066
+ hex = (algorithm, value) => createHash2(algorithm).update(value, "utf8").digest("hex");
2067
+ SIMPLE = {
2068
+ lower: (value) => value.toLowerCase(),
2069
+ upper: (value) => value.toUpperCase(),
2070
+ trim,
2071
+ collapse_ws: (value) => trim(value).replace(WHITESPACE_RUN, " "),
2072
+ nfkc: (value) => value.normalize("NFKC"),
2073
+ digits: (value) => value.replace(NOT_DIGIT, ""),
2074
+ email_local_part: emailLocalPart,
2075
+ email_domain: emailDomain,
2076
+ // Vendor-style digests: lowercase hex of the utf-8 bytes, unsalted. This is
2077
+ // how SpyCloud accepts a hashed selector (`_digests` in its api_handlers).
2078
+ sha1: (value) => hex("sha1", value),
2079
+ sha256: (value) => hex("sha256", value)
2080
+ };
2081
+ TRANSFORMS = [...Object.keys(SIMPLE), `${STRIP_PREFIX}:<prefix>`];
2082
+ text = (value) => {
2083
+ if (typeof value === "string") return value;
2084
+ return Number.isInteger(value) ? String(value) : pyFloatRepr(value);
2085
+ };
2086
+ }
2087
+ });
2088
+
2089
+ // src/worlds/redaction.ts
2090
+ import { createHash as createHash3 } from "crypto";
2091
+ function pyText(value) {
2092
+ if (typeof value === "string") return value;
2093
+ if (Number.isInteger(value)) return String(value);
2094
+ if (Number.isNaN(value)) return "nan";
2095
+ if (!Number.isFinite(value)) return value > 0 ? "inf" : "-inf";
2096
+ return pyFloatRepr(value);
2097
+ }
2098
+ function hashForm(slug, plaintext) {
2099
+ return "sha256:" + createHash3("sha256").update(`${slug}:${pyText(plaintext)}`, "utf8").digest("hex");
2100
+ }
2101
+ function preserveForm(slug, plaintext) {
2102
+ const kind = typeof plaintext === "string" ? "str" : isInt(plaintext) ? "int" : "float";
2103
+ const shaped = shapeText(slug, pyText(plaintext), kind);
2104
+ return kind === "str" ? shaped : Number(shaped);
2105
+ }
2106
+ function shapeText(slug, text2, kind) {
2107
+ const seed = Buffer.from(`${slug}:${text2}`, "utf8");
2108
+ let digest = createHash3("sha256").update(seed).digest();
2109
+ let cursor = 0;
2110
+ const out = [];
2111
+ for (const char of text2) {
2112
+ if (cursor === digest.length) {
2113
+ digest = createHash3("sha256").update(Buffer.concat([digest, seed])).digest();
2114
+ cursor = 0;
2115
+ }
2116
+ const byte = digest[cursor];
2117
+ cursor += 1;
2118
+ if (char >= "0" && char <= "9") out.push(String(byte % 10));
2119
+ else if (kind === "str" && char >= "a" && char <= "z") out.push(String.fromCharCode(97 + byte % 26));
2120
+ else if (kind === "str" && char >= "A" && char <= "Z") out.push(String.fromCharCode(65 + byte % 26));
2121
+ else out.push(char);
2122
+ }
2123
+ if (kind === "int" && out.length > 1 && out[0] === "0") out[0] = String(1 + digest[0] % 9);
2124
+ return out.join("");
2125
+ }
2126
+ function roundForm(plaintext, decimals) {
2127
+ if (typeof plaintext === "string" || isInt(plaintext) || !Number.isFinite(plaintext)) return plaintext;
2128
+ return pyRound(new JsonNumber(pyFloatRepr(plaintext)), decimals).value;
2129
+ }
2130
+ function redactionOf(redact, field) {
2131
+ if (!redact) return null;
2132
+ const named = (names) => (names ?? []).some((name) => name === field || name.slice(name.lastIndexOf(".") + 1) === field);
2133
+ if (named(redact.drop)) return "drop";
2134
+ if (named(redact.hash)) return "hash";
2135
+ if (named(redact.preserve)) return "preserve";
2136
+ const decimals = redact.round?.[field];
2137
+ if (typeof decimals === "number") return `round:${decimals}`;
2138
+ return null;
2139
+ }
2140
+ function storedForms(world, field, plaintext, transform) {
2141
+ if (transform?.length) plaintext = applyTransforms(plaintext, transform);
2142
+ const policy = redactionOf(world.redact, field);
2143
+ const salt = world.redact?.slug ?? world.slug;
2144
+ if (policy === "drop") return [];
2145
+ if (policy === "hash") return [hashForm(salt, plaintext)];
2146
+ if (policy === "preserve") return [preserveForm(salt, plaintext)];
2147
+ if (policy !== null) return [roundForm(plaintext, world.redact.round[field])];
2148
+ return [plaintext];
2149
+ }
2150
+ var isInt;
2151
+ var init_redaction = __esm({
2152
+ "src/worlds/redaction.ts"() {
2153
+ "use strict";
2154
+ init_json();
2155
+ init_transforms();
2156
+ isInt = (value) => typeof value === "number" && Number.isInteger(value);
2157
+ }
2158
+ });
2159
+
2160
+ // src/worlds/query.ts
2161
+ function queryRowsSearch(entity, opts = {}) {
2162
+ const search = new URLSearchParams();
2163
+ search.set("entity", entity);
2164
+ if (opts.where && Object.keys(opts.where).length) search.set("where", JSON.stringify(opts.where));
2165
+ if (opts.limit !== void 0) search.set("limit", String(opts.limit));
2166
+ if (opts.offset !== void 0) search.set("offset", String(opts.offset));
2167
+ if (opts.resolve) search.set("resolve", "true");
2168
+ if (opts.across) search.set("across", "true");
2169
+ if (opts.compare) search.set("compare", "true");
2170
+ return `?${search.toString()}`;
2171
+ }
2172
+ async function queryRows(slug, entity, opts = {}, options = {}) {
2173
+ if (slug.includes("@"))
2174
+ throw new Error(
2175
+ `queryRows reads a world's head version: pass the slug without @ref (got ${slug})`
2176
+ );
2177
+ if (!entity) throw new Error("queryRows needs an entity");
2178
+ if (opts.compare && !opts.across) throw new Error("queryRows: compare needs across");
2179
+ return apiRequest(
2180
+ options,
2181
+ "GET",
2182
+ `/api/public/worlds/${encodeURIComponent(slug)}/data${queryRowsSearch(entity, opts)}`
2183
+ );
2184
+ }
2185
+ var init_query = __esm({
2186
+ "src/worlds/query.ts"() {
2187
+ "use strict";
2188
+ init_worlds();
2189
+ }
2190
+ });
2191
+
2192
+ // src/worlds/migrate.ts
2193
+ async function migrateWorld(slug, input = {}, options = {}) {
2194
+ if (slug.includes("@"))
2195
+ throw new Error(
2196
+ `migrateWorld converts a world's head version: pass the slug without @ref (got ${slug})`
2197
+ );
2198
+ return apiRequest(
2199
+ options,
2200
+ "POST",
2201
+ `/api/public/worlds/${encodeURIComponent(slug)}/migrate`,
2202
+ {
2203
+ ...input.apply === void 0 ? {} : { apply: input.apply },
2204
+ ...input.force === void 0 ? {} : { force: input.force }
2205
+ }
2206
+ );
2207
+ }
2208
+ async function migrateProjectWorlds(input = {}, options = {}) {
2209
+ return apiRequest(
2210
+ options,
2211
+ "POST",
2212
+ "/api/public/worlds/migrate",
2213
+ input.apply === void 0 ? {} : { apply: input.apply }
2214
+ );
2215
+ }
2216
+ var init_migrate = __esm({
2217
+ "src/worlds/migrate.ts"() {
2218
+ "use strict";
2219
+ init_worlds();
2220
+ }
2221
+ });
2222
+
2223
+ // src/cli/router.ts
2224
+ var CliError;
2225
+ var init_router = __esm({
2226
+ "src/cli/router.ts"() {
2227
+ "use strict";
2228
+ CliError = class extends Error {
2229
+ constructor(message, exitCode = 2) {
2230
+ super(message);
2231
+ this.exitCode = exitCode;
2232
+ }
2233
+ };
2234
+ }
2235
+ });
2236
+
2237
+ // src/cli/config.ts
2238
+ import * as fs2 from "fs";
2239
+ import * as os from "os";
2240
+ import * as path2 from "path";
2241
+ async function api(creds, method, route, body, init = {}) {
2242
+ const controller = new AbortController();
2243
+ const timer = setTimeout(() => controller.abort(), init.timeoutMs ?? 12e4);
2244
+ try {
2245
+ const res = await fetch(`${creds.host}${route}`, {
2246
+ method,
2247
+ headers: {
2248
+ "content-type": "application/json",
2249
+ accept: "application/json",
2250
+ authorization: "Basic " + Buffer.from(`${creds.publicKey}:${creds.secretKey}`).toString("base64")
2251
+ },
2252
+ ...body === void 0 ? {} : { body: JSON.stringify(body) },
2253
+ signal: controller.signal
2254
+ });
2255
+ const text2 = await res.text();
2256
+ if (!res.ok) throw new ApiError(res.status, method, route, text2);
2257
+ return text2 ? JSON.parse(text2) : {};
2258
+ } finally {
2259
+ clearTimeout(timer);
2260
+ }
2261
+ }
2262
+ var ApiError;
2263
+ var init_config = __esm({
2264
+ "src/cli/config.ts"() {
2265
+ "use strict";
2266
+ init_router();
2267
+ ApiError = class extends CliError {
2268
+ constructor(status, method, route, text2) {
2269
+ super(`${method} ${route} -> ${status}: ${text2.slice(0, 600)}`, 1);
2270
+ this.status = status;
2271
+ this.method = method;
2272
+ this.route = route;
2273
+ this.text = text2;
2274
+ }
2275
+ };
2276
+ }
2277
+ });
2278
+
2279
+ // src/cli/runtime/local.ts
2280
+ import { spawn, spawnSync } from "child_process";
2281
+ import * as fs3 from "fs";
2282
+ import * as net from "net";
2283
+ import * as path3 from "path";
2284
+ function tailOf(output) {
2285
+ return output.length > DIAGNOSTIC_TAIL ? `\u2026${output.slice(-DIAGNOSTIC_TAIL)}` : output;
2286
+ }
2287
+ function runtimeMode() {
2288
+ const raw = (process.env.GATEWAY_RUNTIME ?? "auto").toLowerCase();
2289
+ if (raw === "local" || raw === "platform" || raw === "auto") return raw;
2290
+ throw new CliError(
2291
+ `GATEWAY_RUNTIME must be local, platform or auto (got ${raw})`
2292
+ );
2293
+ }
2294
+ function runtimeRoot() {
2295
+ const candidates = [];
2296
+ if (process.env.GATEWAY_RUNTIME_PATH)
2297
+ candidates.push(process.env.GATEWAY_RUNTIME_PATH);
2298
+ const entry = process.argv[1] && fs3.existsSync(process.argv[1]) ? path3.dirname(fs3.realpathSync(process.argv[1])) : null;
2299
+ if (entry) {
2300
+ candidates.push(path3.resolve(entry, "..", "runtime"));
2301
+ candidates.push(path3.resolve(entry, "..", "..", "runtime"));
2302
+ candidates.push(path3.resolve(entry, "..", "..", "sdk", "src"));
2303
+ }
2304
+ candidates.push(path3.resolve(process.cwd(), "runtime"));
2305
+ for (const root of candidates)
2306
+ if (fs3.existsSync(
2307
+ path3.join(root, "gatewaysdk", "environment", "schema", "platform.py")
2308
+ ))
2309
+ return root;
2310
+ return null;
2311
+ }
2312
+ function probeVersion(name) {
2313
+ const probe = spawnSync(
2314
+ name,
2315
+ ["-c", "import sys;print(sys.version_info[0],sys.version_info[1])"],
2316
+ { encoding: "utf8", timeout: 1e4 }
2317
+ );
2318
+ if (probe.status !== 0) return null;
2319
+ const [major, minor] = probe.stdout.trim().split(/\s+/).map(Number);
2320
+ return Number.isInteger(major) && Number.isInteger(minor) ? `${major}.${minor}` : null;
2321
+ }
2322
+ function atLeastMinimum(version) {
2323
+ const [major, minor] = version.split(".").map(Number);
2324
+ return major > MIN_PYTHON[0] || major === MIN_PYTHON[0] && minor >= MIN_PYTHON[1];
2325
+ }
2326
+ function uvPython() {
2327
+ const found = spawnSync("uv", UV_FIND, { encoding: "utf8", timeout: 1e4 });
2328
+ if (found.status !== 0) return null;
2329
+ const line = found.stdout.trim().split(/\r?\n/)[0] ?? "";
2330
+ return line || null;
2331
+ }
2332
+ function findPython() {
2333
+ if (pythonCache !== void 0) return pythonCache;
2334
+ const named = process.env.GATEWAY_PYTHON;
2335
+ const candidates = named ? [named] : PYTHON_CANDIDATES;
2336
+ for (const name of candidates) {
2337
+ const version = probeVersion(name);
2338
+ pythonProbes.push({ name, version });
2339
+ if (version && atLeastMinimum(version)) {
2340
+ pythonCache = name;
2341
+ return name;
2342
+ }
2343
+ }
2344
+ if (!named) {
2345
+ const fromUv = uvPython();
2346
+ const version = fromUv ? probeVersion(fromUv) : null;
2347
+ pythonProbes.push({ name: fromUv ?? "uv python find", version });
2348
+ if (fromUv && version && atLeastMinimum(version)) {
2349
+ pythonCache = fromUv;
2350
+ return fromUv;
2351
+ }
2352
+ }
2353
+ pythonCache = null;
2354
+ return null;
2355
+ }
2356
+ function pythonAdvice() {
2357
+ findPython();
2358
+ const floor = MIN_PYTHON.join(".");
2359
+ const named = process.env.GATEWAY_PYTHON;
2360
+ const seen = pythonProbes.filter((probe) => probe.version).map((probe) => `${probe.name} is ${probe.version}`);
2361
+ const found = seen.length ? seen.join(", ") : named ? `${named} did not run` : "none on PATH";
2362
+ return `No python3 >= ${floor} usable (${found}); set GATEWAY_PYTHON to a newer interpreter, e.g. GATEWAY_PYTHON="$(brew --prefix python@3.12)/bin/python3.12" or GATEWAY_PYTHON="$(uv python find 3.12)".`;
2363
+ }
2364
+ function localRuntimeReason() {
2365
+ if (runtimeMode() === "platform")
2366
+ return "GATEWAY_RUNTIME=platform forces the hosted side.";
2367
+ if (!findPython()) return pythonAdvice();
2368
+ if (!runtimeRoot())
2369
+ return "The bundled runtime is missing (set GATEWAY_RUNTIME_PATH).";
2370
+ return "";
2371
+ }
2372
+ function localRuntime() {
2373
+ if (runtimeMode() === "platform") return null;
2374
+ const python = findPython();
2375
+ const root = runtimeRoot();
2376
+ if (!python || !root) {
2377
+ if (runtimeMode() === "local")
2378
+ throw new CliError(
2379
+ !python ? `GATEWAY_RUNTIME=local but ${pythonAdvice()}` : "GATEWAY_RUNTIME=local but the bundled runtime is missing (set GATEWAY_RUNTIME_PATH)"
2380
+ );
2381
+ return null;
2382
+ }
2383
+ return { python, root };
2384
+ }
2385
+ function localPythonHasYaml(python) {
2386
+ return spawnSync(python, ["-c", "import yaml"], { timeout: 1e4 }).status === 0;
2387
+ }
2388
+ async function localBridge(request, local, opts = {}) {
2389
+ const input = JSON.stringify(request);
2390
+ return await new Promise((resolve6, reject) => {
2391
+ const child = spawn(
2392
+ local.python,
2393
+ ["-I", "-B", "-c", BRIDGE_BOOTSTRAP, local.root],
2394
+ {
2395
+ stdio: ["pipe", "pipe", "pipe"],
2396
+ // This is the author's machine running the author's world: the one
2397
+ // place the runtime may import and run a world's own Python (check's
2398
+ // handler execution, `worlds call`, `worlds test` tool cases).
2399
+ env: {
2400
+ PATH: process.env.PATH ?? "",
2401
+ HOME: process.env.HOME ?? "",
2402
+ TMPDIR: process.env.TMPDIR ?? "",
2403
+ GATEWAY_RUNTIME_EXECUTE: "1"
2404
+ }
2405
+ }
2406
+ );
2407
+ const out = [];
2408
+ const err = [];
2409
+ const timer = setTimeout(
2410
+ () => child.kill("SIGKILL"),
2411
+ opts.timeoutMs ?? 3e5
2412
+ );
2413
+ child.stdout.on("data", (chunk) => out.push(chunk));
2414
+ child.stderr.on("data", (chunk) => err.push(chunk));
2415
+ child.on("error", (error) => {
2416
+ clearTimeout(timer);
2417
+ reject(
2418
+ new CliError(
2419
+ `local runtime could not start (${local.python}): ${error.message}`,
2420
+ 1
2421
+ )
2422
+ );
2423
+ });
2424
+ child.on("close", (code) => {
2425
+ clearTimeout(timer);
2426
+ const text2 = Buffer.concat(out).toString("utf8");
2427
+ const stderr = Buffer.concat(err).toString("utf8");
2428
+ let payload = null;
2429
+ try {
2430
+ payload = text2 ? JSON.parse(text2) : null;
2431
+ } catch {
2432
+ payload = null;
2433
+ }
2434
+ if (payload && typeof payload === "object") {
2435
+ resolve6(payload);
2436
+ return;
2437
+ }
2438
+ reject(
2439
+ new CliError(
2440
+ `local runtime (${request.command}) exited ${code}: ${tailOf((stderr || text2).trim()) || "no output"}`,
2441
+ 1
2442
+ )
2443
+ );
2444
+ });
2445
+ child.stdin.end(input);
2446
+ });
2447
+ }
2448
+ var MIN_PYTHON, DIAGNOSTIC_TAIL, BRIDGE_BOOTSTRAP, pythonCache, pythonProbes, PYTHON_CANDIDATES, UV_FIND;
2449
+ var init_local = __esm({
2450
+ "src/cli/runtime/local.ts"() {
2451
+ "use strict";
2452
+ init_router();
2453
+ init_config();
2454
+ MIN_PYTHON = [3, 11];
2455
+ DIAGNOSTIC_TAIL = 600;
2456
+ BRIDGE_BOOTSTRAP = `import sys,runpy,types,os
2457
+ root=sys.argv[1]
2458
+ package=types.ModuleType('gatewaysdk')
2459
+ package.__path__=[os.path.join(root,'gatewaysdk')]
2460
+ sys.modules['gatewaysdk']=package
2461
+ runpy.run_module('gatewaysdk.environment.schema.platform',run_name='__main__')`;
2462
+ pythonProbes = [];
2463
+ PYTHON_CANDIDATES = [
2464
+ "python3.13",
2465
+ "python3.12",
2466
+ "python3.11",
2467
+ "python3",
2468
+ "python"
2469
+ ];
2470
+ UV_FIND = ["python", "find", `>=${MIN_PYTHON.join(".")}`];
2471
+ }
2472
+ });
2473
+
2474
+ // src/cli/runtime/client.ts
2475
+ import * as fs4 from "fs";
2476
+ import * as path4 from "path";
2477
+ function isBuildOutput(relPath) {
2478
+ return BUILD_OUTPUT.test(relPath);
2479
+ }
2480
+ function readWorldFiles(dir, opts = {}) {
2481
+ if (!fs4.existsSync(dir) || !fs4.statSync(dir).isDirectory())
2482
+ throw new CliError(`Not a directory: ${dir}`);
2483
+ const out = [];
2484
+ const walk = (rel) => {
2485
+ const abs = rel ? path4.join(dir, rel) : dir;
2486
+ const entries = fs4.readdirSync(abs, { withFileTypes: true });
2487
+ entries.sort((a, b) => a.name.localeCompare(b.name));
2488
+ for (const entry of entries) {
2489
+ const childRel = rel ? `${rel}/${entry.name}` : entry.name;
2490
+ if (entry.isDirectory()) {
2491
+ if (!SKIP_DIRS2.has(entry.name)) walk(childRel);
2492
+ } else if (entry.isFile()) {
2493
+ if (!opts.buildOutputs && isBuildOutput(childRel)) continue;
2494
+ out.push({
2495
+ path: childRel,
2496
+ content: fs4.readFileSync(path4.join(dir, childRel)).toString("base64")
2497
+ });
2498
+ }
2499
+ }
2500
+ };
2501
+ walk("");
2502
+ return out.sort((a, b) => a.path < b.path ? -1 : a.path > b.path ? 1 : 0);
2503
+ }
2504
+ function assertSafeRelPath(rel) {
2505
+ const parts = rel.split("/");
2506
+ if (!rel || rel.startsWith("/") || rel.includes("\\") || /^[A-Za-z]:/.test(rel) || parts.some((p) => p === "" || p === "." || p === ".."))
2507
+ throw new CliError(`The runtime returned an unsafe file path: ${rel}`, 1);
2508
+ }
2509
+ function writeWorldFiles(dir, files, opts = {}) {
2510
+ for (const file of files) assertSafeRelPath(file.path);
2511
+ if (opts.clean && fs4.existsSync(dir)) {
2512
+ const keep = new Set(files.map((f) => f.path));
2513
+ for (const existing of readWorldFiles(dir)) {
2514
+ if (!keep.has(existing.path)) fs4.rmSync(path4.join(dir, existing.path));
2515
+ }
2516
+ pruneEmptyDirs(dir);
2517
+ }
2518
+ fs4.mkdirSync(dir, { recursive: true });
2519
+ const written = [];
2520
+ for (const file of files) {
2521
+ const target = path4.join(dir, file.path);
2522
+ fs4.mkdirSync(path4.dirname(target), { recursive: true });
2523
+ fs4.writeFileSync(target, Buffer.from(file.content, "base64"));
2524
+ written.push(file.path);
2525
+ }
2526
+ return written;
2527
+ }
2528
+ function pruneEmptyDirs(root) {
2529
+ const walk = (abs) => {
2530
+ let empty = true;
2531
+ for (const entry of fs4.readdirSync(abs, { withFileTypes: true })) {
2532
+ const child = path4.join(abs, entry.name);
2533
+ if (entry.isDirectory()) {
2534
+ if (SKIP_DIRS2.has(entry.name)) {
2535
+ empty = false;
2536
+ continue;
2537
+ }
2538
+ if (walk(child)) fs4.rmdirSync(child);
2539
+ else empty = false;
2540
+ } else empty = false;
2541
+ }
2542
+ return empty;
2543
+ };
2544
+ walk(root);
2545
+ }
2546
+ function formatBridgeError(detail) {
2547
+ const where = detail.schema_path || detail.path || "/";
2548
+ return `${detail.code} at ${where}: ${detail.message}`;
2549
+ }
2550
+ function detailFrom(payload) {
2551
+ if (!payload || typeof payload !== "object") return null;
2552
+ const error = payload.error;
2553
+ if (!error || typeof error !== "object") return null;
2554
+ const detail = error;
2555
+ if (typeof detail.code !== "string" || typeof detail.message !== "string") return null;
2556
+ return detail;
2557
+ }
2558
+ async function runtime(creds, request, opts = {}) {
2559
+ const local = localRuntime();
2560
+ const yamlSpec = request.command === "conform" && Array.isArray(request.openapi) && request.openapi.some((doc) => /\.ya?ml$/i.test(doc.path ?? ""));
2561
+ if (local && !(yamlSpec && !localPythonHasYaml(local.python))) {
2562
+ const payload = await localBridge(request, local, opts);
2563
+ const detail = detailFrom(payload);
2564
+ if (detail) throw new BridgeRejected(detail);
2565
+ return payload;
2566
+ }
2567
+ if (!creds)
2568
+ throw new CliError(
2569
+ "This needs the schema runtime (the CLI bundles it) or platform credentials (`gateway auth login`). " + localRuntimeReason()
2570
+ );
2571
+ const controller = new AbortController();
2572
+ const timer = setTimeout(() => controller.abort(), opts.timeoutMs ?? 18e4);
2573
+ const route = "/api/public/worlds/runtime";
2574
+ try {
2575
+ const res = await fetch(`${creds.host}${route}`, {
2576
+ method: "POST",
2577
+ headers: {
2578
+ "content-type": "application/json",
2579
+ accept: "application/json",
2580
+ authorization: "Basic " + Buffer.from(`${creds.publicKey}:${creds.secretKey}`).toString("base64")
2581
+ },
2582
+ body: JSON.stringify(request),
2583
+ signal: controller.signal
2584
+ });
2585
+ const text2 = await res.text();
2586
+ let payload = null;
2587
+ try {
2588
+ payload = text2 ? JSON.parse(text2) : {};
2589
+ } catch {
2590
+ payload = null;
2591
+ }
2592
+ const detail = detailFrom(payload);
2593
+ if (detail) throw new BridgeRejected(detail);
2594
+ if (!res.ok)
2595
+ throw new CliError(`POST ${route} (${request.command}) -> ${res.status}: ${text2.slice(0, 600)}`, 1);
2596
+ if (payload === null) throw new CliError(`POST ${route} (${request.command}) returned non-JSON`, 1);
2597
+ return payload;
2598
+ } finally {
2599
+ clearTimeout(timer);
2600
+ }
2601
+ }
2602
+ var SKIP_DIRS2, BUILD_OUTPUT, BridgeRejected;
2603
+ var init_client = __esm({
2604
+ "src/cli/runtime/client.ts"() {
2605
+ "use strict";
2606
+ init_router();
2607
+ init_local();
2608
+ SKIP_DIRS2 = /* @__PURE__ */ new Set(["__pycache__", ".git", "node_modules", ".gateway"]);
2609
+ BUILD_OUTPUT = /(^|\/)state\.(sqlite|json)$/;
2610
+ BridgeRejected = class extends CliError {
2611
+ constructor(detail) {
2612
+ super(formatBridgeError(detail), 1);
2613
+ this.detail = detail;
2614
+ }
2615
+ };
2616
+ }
2617
+ });
2618
+
2619
+ // src/cli/runtime/data.ts
2620
+ var data_exports = {};
2621
+ __export(data_exports, {
2622
+ checkLocalWorldData: () => checkLocalWorldData,
2623
+ dropBuildOutputs: () => dropBuildOutputs,
2624
+ importLocalWorldData: () => importLocalWorldData,
2625
+ ingestLocalToolCalls: () => ingestLocalToolCalls,
2626
+ queryLocalWorldData: () => queryLocalWorldData,
2627
+ queryLocalWorldDataAcross: () => queryLocalWorldDataAcross,
2628
+ showLocalWorldData: () => showLocalWorldData
2629
+ });
2630
+ import * as fs5 from "fs";
2631
+ import * as path5 from "path";
2632
+ async function importLocalWorldData(dir, rows, opts, creds) {
2633
+ const res = await runtime(creds, {
2634
+ command: "import-data",
2635
+ files: readWorldFiles(dir),
2636
+ rows,
2637
+ mode: opts.mode ?? "append",
2638
+ ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {}
2639
+ });
2640
+ if (res.files?.length) writeWorldFiles(dir, res.files);
2641
+ if (res.changed) dropBuildOutputs(dir);
2642
+ return {
2643
+ kind: res.kind ?? "unknown",
2644
+ entity_counts: res.entity_counts ?? {},
2645
+ changed: Boolean(res.changed)
2646
+ };
2647
+ }
2648
+ function dropBuildOutputs(dir) {
2649
+ const dropped = [];
2650
+ for (const file of readWorldFiles(dir, { buildOutputs: true })) {
2651
+ if (!BUILD_OUTPUT2.test(file.path)) continue;
2652
+ fs5.rmSync(path5.join(dir, file.path), { force: true });
2653
+ dropped.push(file.path);
2654
+ }
2655
+ return dropped;
2656
+ }
2657
+ async function checkLocalWorldData(dir, rows, creds, opts = {}) {
2658
+ const res = await runtime(creds, {
2659
+ command: "import-data",
2660
+ files: readWorldFiles(dir),
2661
+ rows,
2662
+ mode: "append",
2663
+ ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {}
2664
+ });
2665
+ return {
2666
+ kind: res.kind ?? "unknown",
2667
+ entity_counts: res.entity_counts ?? {},
2668
+ changed: Boolean(res.changed)
2669
+ };
2670
+ }
2671
+ async function showLocalWorldData(dir, entity, creds) {
2672
+ const res = await runtime(creds, {
2673
+ command: "counts",
2674
+ files: readWorldFiles(dir),
2675
+ ...entity ? { entity } : {}
2676
+ });
2677
+ const out = { kind: res.kind ?? "unknown" };
2678
+ if (entity) {
2679
+ out.entity = entity;
2680
+ out.rows = res.rows ?? [];
2681
+ } else out.entity_counts = res.entity_counts ?? {};
2682
+ return out;
2683
+ }
2684
+ async function queryLocalWorldData(dir, entity, where, opts, creds) {
2685
+ const res = await runtime(creds, {
2686
+ command: "query",
2687
+ files: readWorldFiles(dir),
2688
+ entity,
2689
+ ...Object.keys(where).length ? { where } : {},
2690
+ ...opts.limit !== void 0 ? { limit: opts.limit } : {},
2691
+ ...opts.offset !== void 0 ? { offset: opts.offset } : {},
2692
+ ...opts.resolve ? { resolve: true } : {},
2693
+ ...opts.scenario ? { scenario: opts.scenario } : {}
2694
+ });
2695
+ const rows = res.rows ?? [];
2696
+ return {
2697
+ ...res.kind ? { kind: res.kind } : {},
2698
+ entity: res.entity ?? entity,
2699
+ ...res.scenario ? { scenario: res.scenario } : {},
2700
+ rows,
2701
+ count: res.count ?? rows.length,
2702
+ total: res.total ?? null,
2703
+ limit: res.limit ?? opts.limit ?? rows.length,
2704
+ offset: res.offset ?? opts.offset ?? 0,
2705
+ ...res.resolved ? { resolved: res.resolved } : {}
2706
+ };
2707
+ }
2708
+ async function queryLocalWorldDataAcross(dir, entity, where, opts) {
2709
+ const local = localRuntime();
2710
+ if (!local)
2711
+ throw new CliError(
2712
+ "`--across` on a directory reads the linked worlds at their paths, so it needs the bundled runtime on this machine. " + localRuntimeReason(),
2713
+ 1
2714
+ );
2715
+ const payload = await localBridge(
2716
+ {
2717
+ command: "query",
2718
+ world: path5.resolve(dir),
2719
+ entity,
2720
+ across: true,
2721
+ ...opts.compare ? { compare: true } : {},
2722
+ ...Object.keys(where).length ? { where } : {},
2723
+ ...opts.limit !== void 0 ? { limit: opts.limit } : {},
2724
+ ...opts.offset !== void 0 ? { offset: opts.offset } : {},
2725
+ ...opts.resolve ? { resolve: true } : {},
2726
+ ...opts.scenario ? { scenario: opts.scenario } : {}
2727
+ },
2728
+ local
2729
+ );
2730
+ const detail = detailFrom(payload);
2731
+ if (detail) throw new BridgeRejected(detail);
2732
+ return payload;
2733
+ }
2734
+ async function ingestLocalToolCalls(dir, records, opts, creds) {
2735
+ const res = await runtime(creds, {
2736
+ command: "ingest-calls",
2737
+ files: readWorldFiles(dir),
2738
+ records,
2739
+ mode: opts.mode ?? "append",
2740
+ ...opts.dryRun ? { dry_run: true } : {},
2741
+ ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {},
2742
+ ...opts.map !== void 0 ? { map: opts.map } : {}
2743
+ });
2744
+ if (!opts.dryRun && res.files?.length) writeWorldFiles(dir, res.files);
2745
+ if (res.changed) dropBuildOutputs(dir);
2746
+ return {
2747
+ ...res.via ? { via: res.via } : {},
2748
+ ...res.sources ? { sources: res.sources } : {},
2749
+ ...res.unmatched ? { unmatched: res.unmatched } : {},
2750
+ ...res.note ? { note: res.note } : {},
2751
+ records: res.records ?? records.length,
2752
+ ingested: res.ingested ?? 0,
2753
+ skipped: res.skipped ?? {},
2754
+ refusals: res.refusals ?? [],
2755
+ rows: res.rows ?? {},
2756
+ ...res.projected ? { projected: res.projected } : {},
2757
+ dry_run: Boolean(res.dry_run ?? opts.dryRun),
2758
+ redact: res.redact ?? opts.redact ?? "off",
2759
+ changed: Boolean(res.changed),
2760
+ ...res.kind ? { kind: res.kind } : {},
2761
+ ...res.entity_counts ? { entity_counts: res.entity_counts } : {},
2762
+ ...res.batch !== void 0 ? { batch: res.batch } : {}
2763
+ };
2764
+ }
2765
+ var BUILD_OUTPUT2;
2766
+ var init_data = __esm({
2767
+ "src/cli/runtime/data.ts"() {
2768
+ "use strict";
2769
+ init_router();
2770
+ init_client();
2771
+ init_local();
2772
+ BUILD_OUTPUT2 = /(^|\/)state\.(sqlite|json)$/;
2773
+ }
2774
+ });
2775
+
2776
+ // src/cli/platform/worldData/transform.ts
2777
+ var transform_exports = {};
2778
+ __export(transform_exports, {
2779
+ DEFAULT_TRANSFORM_TIMEOUT_MS: () => DEFAULT_TRANSFORM_TIMEOUT_MS,
2780
+ NODE_SUFFIXES: () => NODE_SUFFIXES,
2781
+ NODE_WRAPPER: () => NODE_WRAPPER,
2782
+ PYTHON_SUFFIXES: () => PYTHON_SUFFIXES,
2783
+ PY_WRAPPER: () => PY_WRAPPER,
2784
+ checkRows: () => checkRows,
2785
+ runTransform: () => runTransform,
2786
+ transformRecords: () => transformRecords
2787
+ });
2788
+ import { spawn as spawn2 } from "child_process";
2789
+ import * as fs6 from "fs";
2790
+ import * as os2 from "os";
2791
+ import * as path6 from "path";
2792
+ import { createRequire } from "module";
2793
+ function checkRows(value, where) {
2794
+ if (!isObject(value)) throw new CliError(`${where} must return {entity: [rows]}; got ${value === null ? "null" : Array.isArray(value) ? "an array" : typeof value}`, 1);
2795
+ for (const [entity, listed] of Object.entries(value)) {
2796
+ if (!Array.isArray(listed)) throw new CliError(`${where}: ${entity} must be a list of rows; got ${listed === null ? "null" : typeof listed}`, 1);
2797
+ listed.forEach((row, index) => {
2798
+ if (!isObject(row)) throw new CliError(`${where}: ${entity}[${index}] is not an object`, 1);
2799
+ });
2800
+ }
2801
+ return value;
2802
+ }
2803
+ function typescriptPrefix() {
2804
+ const [major, minor] = process.versions.node.split(".").map(Number);
2805
+ if (!process.env.GATEWAY_NODE && (major > 22 || major === 22 && minor >= 6)) return ["--experimental-strip-types", "--no-warnings"];
2806
+ try {
2807
+ return [createRequire(import.meta.url).resolve("tsx/cli")];
2808
+ } catch {
2809
+ throw new CliError(
2810
+ `a .ts transform needs Node 22.6 or newer (built-in type stripping; this is ${process.versions.node}) or the tsx package installed beside the CLI; write the transform as .mjs or .py, or set GATEWAY_NODE to a newer node`,
2811
+ 1
2812
+ );
2813
+ }
2814
+ }
2815
+ function command(script, wrapperDir) {
2816
+ const suffix = path6.extname(script).toLowerCase();
2817
+ if (PYTHON_SUFFIXES.includes(suffix)) return { file: process.env.GATEWAY_PYTHON || "python3", args: ["-c", PY_WRAPPER, script] };
2818
+ if (NODE_SUFFIXES.includes(suffix)) {
2819
+ const wrapper = path6.join(wrapperDir, "transform-wrapper.mjs");
2820
+ fs6.writeFileSync(wrapper, NODE_WRAPPER);
2821
+ const flags = suffix === ".ts" || suffix === ".mts" ? typescriptPrefix() : [];
2822
+ return { file: process.env.GATEWAY_NODE || process.execPath, args: [...flags, wrapper, script] };
2823
+ }
2824
+ throw new CliError(`${path6.basename(script)}: a transform script is .py, .ts, .mjs, .js or .cjs`, 1);
2825
+ }
2826
+ async function runTransform(script, records, opts = {}) {
2827
+ if (!fs6.existsSync(script) || !fs6.statSync(script).isFile()) throw new CliError(`no transform script at ${script}`, 1);
2828
+ const resolved = path6.resolve(script);
2829
+ const name = path6.basename(script);
2830
+ const timeoutMs = opts.timeoutMs ?? DEFAULT_TRANSFORM_TIMEOUT_MS;
2831
+ const scratch = fs6.mkdtempSync(path6.join(os2.tmpdir(), "gateway-transform-"));
2832
+ try {
2833
+ const { file, args } = command(resolved, scratch);
2834
+ const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !SCRUBBED.test(key)));
2835
+ const done = await new Promise((resolve6, reject) => {
2836
+ const child = spawn2(file, args, { cwd: path6.dirname(resolved), env, stdio: ["pipe", "pipe", "pipe"] });
2837
+ let stdout = "";
2838
+ let stderr = "";
2839
+ let timedOut = false;
2840
+ const timer = setTimeout(() => {
2841
+ timedOut = true;
2842
+ child.kill("SIGKILL");
2843
+ }, timeoutMs);
2844
+ child.stdout.setEncoding("utf8").on("data", (chunk) => stdout += chunk);
2845
+ child.stderr.setEncoding("utf8").on("data", (chunk) => stderr += chunk);
2846
+ child.on("error", (error) => {
2847
+ clearTimeout(timer);
2848
+ reject(new CliError(`${name}: cannot run ${file}: ${error.message}`, 1));
2849
+ });
2850
+ child.on("close", (code) => {
2851
+ clearTimeout(timer);
2852
+ resolve6({ code, stdout, stderr, timedOut });
2853
+ });
2854
+ child.stdin.on("error", () => void 0);
2855
+ child.stdin.end(records.map((record) => JSON.stringify(record) + "\n").join(""));
2856
+ });
2857
+ if (done.timedOut) throw new CliError(`${name} timed out after ${timeoutMs / 1e3}s${tail(done.stderr)}`, 1);
2858
+ if (done.code !== 0) throw new CliError(`${name} exited ${done.code ?? "?"}${tail(done.stderr)}`, 1);
2859
+ let value;
2860
+ try {
2861
+ value = done.stdout.trim() ? JSON.parse(done.stdout) : null;
2862
+ } catch {
2863
+ throw new CliError(`${name} printed something other than the rows document${tail(done.stderr)}`, 1);
2864
+ }
2865
+ return { rows: checkRows(value, name), stderr: done.stderr };
2866
+ } finally {
2867
+ fs6.rmSync(scratch, { recursive: true, force: true });
2868
+ }
2869
+ }
2870
+ async function transformRecords(transform, records, opts = {}) {
2871
+ if (typeof transform === "function") return { rows: checkRows(await transform(records), "transform(records)"), stderr: "" };
2872
+ return runTransform(transform, records, opts);
2873
+ }
2874
+ var DEFAULT_TRANSFORM_TIMEOUT_MS, NODE_SUFFIXES, PYTHON_SUFFIXES, SCRUBBED, PY_WRAPPER, NODE_WRAPPER, isObject, tail;
2875
+ var init_transform = __esm({
2876
+ "src/cli/platform/worldData/transform.ts"() {
2877
+ "use strict";
2878
+ init_router();
2879
+ DEFAULT_TRANSFORM_TIMEOUT_MS = 12e4;
2880
+ NODE_SUFFIXES = [".ts", ".mts", ".mjs", ".js", ".cjs"];
2881
+ PYTHON_SUFFIXES = [".py"];
2882
+ SCRUBBED = /^(GATEWAY_|HTTPS?_PROXY$|ALL_PROXY$|https?_proxy$|all_proxy$)/;
2883
+ PY_WRAPPER = `
2884
+ import io, json, runpy, socket, sys
2885
+
2886
+ def _deny(*args, **kwargs):
2887
+ raise RuntimeError("network is disabled in a transform")
2888
+
2889
+ class _Denied(socket.socket):
2890
+ def __init__(self, *args, **kwargs):
2891
+ _deny()
2892
+
2893
+ socket.socket = _Denied
2894
+ socket.SocketType = _Denied
2895
+ socket.create_connection = _deny
2896
+ socket.getaddrinfo = _deny
2897
+
2898
+ text = sys.stdin.read()
2899
+ records = [json.loads(line) for line in text.splitlines() if line.strip()]
2900
+ sys.stdin = io.StringIO(text)
2901
+ captured = io.StringIO()
2902
+ real = sys.stdout
2903
+ sys.stdout = captured
2904
+ try:
2905
+ namespace = runpy.run_path(sys.argv[1], run_name="__main__")
2906
+ finally:
2907
+ sys.stdout = real
2908
+ fn = namespace.get("transform")
2909
+ if callable(fn):
2910
+ out = fn(records)
2911
+ else:
2912
+ printed = captured.getvalue().strip()
2913
+ if not printed:
2914
+ sys.stderr.write("the transform defines no transform(records) and printed nothing\\n")
2915
+ sys.exit(3)
2916
+ out = json.loads(printed)
2917
+ real.write(json.dumps(out))
2918
+ `;
2919
+ NODE_WRAPPER = `
2920
+ import { pathToFileURL } from "node:url";
2921
+ import net from "node:net";
2922
+ import tls from "node:tls";
2923
+ import http from "node:http";
2924
+ import https from "node:https";
2925
+ import dgram from "node:dgram";
2926
+
2927
+ const deny = () => { throw new Error("network is disabled in a transform"); };
2928
+ net.Socket.prototype.connect = deny;
2929
+ net.connect = deny;
2930
+ net.createConnection = deny;
2931
+ tls.connect = deny;
2932
+ http.request = deny;
2933
+ http.get = deny;
2934
+ https.request = deny;
2935
+ https.get = deny;
2936
+ dgram.createSocket = deny;
2937
+ globalThis.fetch = deny;
2938
+
2939
+ const module = await import(pathToFileURL(process.argv[2]).href);
2940
+ const fn = typeof module.transform === "function" ? module.transform : typeof module.default === "function" ? module.default : null;
2941
+ if (fn) {
2942
+ const chunks = [];
2943
+ for await (const chunk of process.stdin) chunks.push(chunk);
2944
+ const text = Buffer.concat(chunks).toString("utf8");
2945
+ const records = text.split("\\n").filter((line) => line.trim()).map((line) => JSON.parse(line));
2946
+ const out = await fn(records);
2947
+ process.stdout.write(JSON.stringify(out));
2948
+ }
2949
+ `;
2950
+ isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
2951
+ tail = (stderr, lines = 12) => {
2952
+ const kept = stderr.split("\n").filter((line) => line.trim()).slice(-lines);
2953
+ return kept.length ? "\n" + kept.join("\n") : "";
2954
+ };
2955
+ }
2956
+ });
2957
+
2958
+ // src/cli/platform/worldData/batches.ts
2959
+ import { createHash as createHash4 } from "crypto";
2960
+ import * as fs7 from "fs";
2961
+ function uploadHeadersFor(gz) {
2962
+ return {
2963
+ "content-type": "application/gzip",
2964
+ "content-length": String(gz.length),
2965
+ "x-amz-checksum-sha256": createHash4("sha256").update(gz).digest("base64")
2966
+ };
2967
+ }
2968
+ async function forEachLimited(items, limit, fn) {
2969
+ const inFlight = /* @__PURE__ */ new Set();
2970
+ let failure = null;
2971
+ const track = (p) => {
2972
+ const wrapped = p.then(
2973
+ () => {
2974
+ inFlight.delete(wrapped);
2975
+ },
2976
+ (error) => {
2977
+ failure ??= error;
2978
+ inFlight.delete(wrapped);
2979
+ }
2980
+ );
2981
+ inFlight.add(wrapped);
2982
+ };
2983
+ for await (const item of items) {
2984
+ if (failure) break;
2985
+ track(fn(item));
2986
+ if (inFlight.size >= limit) await Promise.race(inFlight);
2987
+ }
2988
+ await Promise.all(inFlight);
2989
+ if (failure) throw failure;
2990
+ }
2991
+ async function waitForBatch(client, batchId, opts = {}) {
2992
+ const sleep2 = opts.sleep ?? client.sleep;
2993
+ let delay = opts.initialDelayMs ?? 1e3;
2994
+ let last = "";
2995
+ for (; ; ) {
2996
+ const status = await client.get(batchId);
2997
+ const phase = phaseLine(status);
2998
+ if (phase !== last) {
2999
+ opts.onPhase?.(phase);
3000
+ last = phase;
3001
+ }
3002
+ if (TERMINAL_STATES.has(status.state)) return status;
3003
+ await sleep2(delay);
3004
+ delay = Math.min(1e4, Math.round(delay * 1.5));
3005
+ }
3006
+ }
3007
+ function phaseLine(status) {
3008
+ const phase = status.progress?.phase;
3009
+ return phase ? `${status.state} (${phase})` : status.state;
3010
+ }
3011
+ var TERMINAL_STATES, sleepMs, WorldDataApi;
3012
+ var init_batches = __esm({
3013
+ "src/cli/platform/worldData/batches.ts"() {
3014
+ "use strict";
3015
+ init_config();
3016
+ init_router();
3017
+ TERMINAL_STATES = /* @__PURE__ */ new Set(["applied", "refused", "published", "failed"]);
3018
+ sleepMs = (ms) => new Promise((resolve6) => setTimeout(resolve6, ms));
3019
+ WorldDataApi = class {
3020
+ constructor(creds, slug, sleep2 = sleepMs) {
3021
+ this.creds = creds;
3022
+ this.slug = slug;
3023
+ this.sleep = sleep2;
3024
+ this.base = `/api/public/worlds/${encodeURIComponent(slug)}/data`;
3025
+ }
3026
+ base;
3027
+ open(body) {
3028
+ return api(this.creds, "POST", `${this.base}/batches`, body);
3029
+ }
3030
+ register(batchId, chunk) {
3031
+ return api(this.creds, "POST", `${this.base}/batches/${batchId}/chunks`, {
3032
+ ordinal: chunk.ordinal,
3033
+ digest: chunk.digest,
3034
+ bytes: chunk.bytes,
3035
+ rows: chunk.rows,
3036
+ ...chunk.entity ? { entity: chunk.entity } : {}
3037
+ });
3038
+ }
3039
+ markUploaded(batchId, chunkId) {
3040
+ return api(this.creds, "POST", `${this.base}/batches/${batchId}/chunks/${chunkId}/uploaded`);
3041
+ }
3042
+ complete(batchId) {
3043
+ return api(this.creds, "POST", `${this.base}/batches/${batchId}/complete`);
3044
+ }
3045
+ get(batchId) {
3046
+ return api(this.creds, "GET", `${this.base}/batches/${batchId}`);
3047
+ }
3048
+ list(limit, cursor) {
3049
+ const params = new URLSearchParams();
3050
+ if (limit !== void 0) params.set("limit", String(limit));
3051
+ if (cursor) params.set("cursor", cursor);
3052
+ const q = params.toString();
3053
+ return api(this.creds, "GET", `${this.base}/batches${q ? `?${q}` : ""}`);
3054
+ }
3055
+ publish(message) {
3056
+ return api(this.creds, "POST", `${this.base}/publish`, message ? { message } : {});
3057
+ }
3058
+ /**
3059
+ * PUT the gzipped chunk to its presigned URL with exactly the headers the
3060
+ * URL was signed for (the platform's `uploadHeaders`; the same three when it
3061
+ * sends none), with backoff on a dropped connection or a 5xx.
3062
+ */
3063
+ async put(uploadUrl, gz, signed) {
3064
+ const headers = signed ?? uploadHeadersFor(gz);
3065
+ const delays = [500, 1500, 4e3];
3066
+ for (let attempt = 0; ; attempt++) {
3067
+ try {
3068
+ const res = await fetch(uploadUrl, { method: "PUT", body: new Uint8Array(gz), headers });
3069
+ if (res.ok) return;
3070
+ if (res.status < 500 || attempt >= delays.length) throw new CliError(`chunk upload -> ${res.status}: ${(await res.text()).slice(0, 300)}`, 1);
3071
+ } catch (error) {
3072
+ if (error instanceof CliError || attempt >= delays.length) throw error instanceof CliError ? error : new CliError(`chunk upload failed: ${error.message}`, 1);
3073
+ }
3074
+ await this.sleep(delays[attempt]);
3075
+ }
3076
+ }
3077
+ /** Register, upload unless the server already holds the content, confirm. */
3078
+ async upload(batchId, chunk) {
3079
+ const registered = await this.register(batchId, chunk);
3080
+ if (!registered.uploaded) {
3081
+ if (!registered.uploadUrl) throw new CliError(`the server registered chunk ${chunk.ordinal} without an upload URL`, 1);
3082
+ await this.put(registered.uploadUrl, chunk.gz, registered.uploadHeaders);
3083
+ await this.markUploaded(batchId, registered.chunkId);
3084
+ }
3085
+ return { ordinal: chunk.ordinal, digest: chunk.digest, bytes: chunk.bytes, rows: chunk.rows, entity: chunk.entity, chunkId: registered.chunkId, uploaded: true };
3086
+ }
3087
+ };
3088
+ }
3089
+ });
3090
+
3091
+ // src/cli/platform/worldData/chunker.ts
3092
+ import { createHash as createHash5 } from "crypto";
3093
+ import { deflateRawSync } from "zlib";
3094
+ function chunkLine(row, declared) {
3095
+ if (declared !== null) return dumps(row.row) + "\n";
3096
+ const tagged = /* @__PURE__ */ new Map();
3097
+ tagged.set("entity", row.entity);
3098
+ tagged.set("row", row.row);
3099
+ return dumps(tagged) + "\n";
3100
+ }
3101
+ async function* buildChunks(rows, plan) {
3102
+ let lines = [];
3103
+ let rawBytes = 0;
3104
+ let ordinal = 0;
3105
+ let seen = 0;
3106
+ const flush = () => {
3107
+ const raw = Buffer.concat(lines);
3108
+ const built = finishChunk(ordinal++, raw, lines.length, plan.entity, seen - lines.length);
3109
+ lines = [];
3110
+ rawBytes = 0;
3111
+ return built;
3112
+ };
3113
+ for await (const row of rows) {
3114
+ const line = Buffer.from(chunkLine(row, plan.entity), "utf8");
3115
+ const full = lines.length > 0 && (plan.chunkRows !== null && lines.length >= plan.chunkRows || rawBytes + line.length > plan.chunkBytes);
3116
+ if (full) yield flush();
3117
+ lines.push(line);
3118
+ rawBytes += line.length;
3119
+ seen++;
3120
+ }
3121
+ if (lines.length) yield flush();
3122
+ }
3123
+ function finishChunk(ordinal, raw, rows, entity, firstRow = 0) {
3124
+ const gz = gzipDeterministic(raw, { name: chunkName(ordinal) });
3125
+ return {
3126
+ ordinal,
3127
+ digest: createHash5("sha256").update(gz).digest("hex"),
3128
+ bytes: gz.length,
3129
+ rows,
3130
+ entity,
3131
+ rawBytes: raw.length,
3132
+ contentSha256: createHash5("sha256").update(raw).digest("hex"),
3133
+ firstRow,
3134
+ gz
3135
+ };
3136
+ }
3137
+ function gzipDeterministic(raw, opts = {}) {
3138
+ const level = opts.level ?? GZIP_LEVEL;
3139
+ const name = opts.name ? Buffer.concat([Buffer.from(opts.name, "latin1"), Buffer.from([0])]) : Buffer.alloc(0);
3140
+ const header = Buffer.from([31, 139, 8, opts.name ? 8 : 0, 0, 0, 0, 0, level === 9 ? 2 : level === 1 ? 4 : 0, 255]);
3141
+ const body = deflateRawSync(raw, { level });
3142
+ const trailer = Buffer.alloc(8);
3143
+ trailer.writeUInt32LE(crc32(raw), 0);
3144
+ trailer.writeUInt32LE(raw.length >>> 0, 4);
3145
+ return Buffer.concat([header, name, body, trailer]);
3146
+ }
3147
+ function crc32(data) {
3148
+ if (!table) {
3149
+ table = new Uint32Array(256);
3150
+ for (let n = 0; n < 256; n++) {
3151
+ let c = n;
3152
+ for (let k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
3153
+ table[n] = c >>> 0;
3154
+ }
3155
+ }
3156
+ let crc = 4294967295;
3157
+ for (let i = 0; i < data.length; i++) crc = table[(crc ^ data[i]) & 255] ^ crc >>> 8;
3158
+ return (crc ^ 4294967295) >>> 0;
3159
+ }
3160
+ var DEFAULT_CHUNK_BYTES, GZIP_LEVEL, chunkName, table;
3161
+ var init_chunker = __esm({
3162
+ "src/cli/platform/worldData/chunker.ts"() {
3163
+ "use strict";
3164
+ init_json();
3165
+ DEFAULT_CHUNK_BYTES = 64 * 1024 * 1024;
3166
+ GZIP_LEVEL = 9;
3167
+ chunkName = (ordinal) => `chunk-${String(ordinal).padStart(5, "0")}.jsonl`;
3168
+ table = null;
3169
+ }
3170
+ });
3171
+
3172
+ // src/cli/platform/worldData/push.ts
3173
+ var push_exports = {};
3174
+ __export(push_exports, {
3175
+ pushRows: () => pushRows
3176
+ });
3177
+ async function pushRows(creds, slug, rows, opts = {}) {
3178
+ const client = opts.sleep ? new WorldDataApi(creds, slug, opts.sleep) : new WorldDataApi(creds, slug);
3179
+ const opened = await client.open({
3180
+ mode: opts.mode ?? "append",
3181
+ merge: "upsert",
3182
+ ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {},
3183
+ atomic: true,
3184
+ dryRun: Boolean(opts.dryRun),
3185
+ publish: opts.publish ?? "now",
3186
+ ...opts.message ? { message: opts.message } : {}
3187
+ });
3188
+ if (!opened.batchId) throw new Error("the platform opened no batch (no batchId in the answer)");
3189
+ const tagged = (async function* () {
3190
+ for (const [entity, listed] of Object.entries(rows))
3191
+ for (let index = 0; index < listed.length; index++)
3192
+ yield { entity, row: parseJson(JSON.stringify(listed[index])), where: `${entity}[${index}]` };
3193
+ })();
3194
+ const chunks = buildChunks(tagged, { chunkBytes: opts.chunkBytes ?? DEFAULT_CHUNK_BYTES, chunkRows: null, entity: null });
3195
+ await forEachLimited(chunks, Math.max(1, opts.parallel ?? 4), async (chunk) => {
3196
+ await client.upload(opened.batchId, chunk);
3197
+ });
3198
+ await client.complete(opened.batchId);
3199
+ return waitForBatch(client, opened.batchId, { initialDelayMs: pollMs() });
3200
+ }
3201
+ function pollMs() {
3202
+ const raw = Number(process.env.GATEWAY_WORLD_DATA_POLL_MS ?? 1e3);
3203
+ return Number.isFinite(raw) && raw >= 0 ? raw : 1e3;
3204
+ }
3205
+ var init_push = __esm({
3206
+ "src/cli/platform/worldData/push.ts"() {
3207
+ "use strict";
3208
+ init_batches();
3209
+ init_chunker();
3210
+ init_json();
3211
+ }
3212
+ });
3213
+
3214
+ // src/worlds/ingest.ts
3215
+ import * as fs8 from "fs";
3216
+ import * as os3 from "os";
3217
+ import * as path7 from "path";
3218
+ function parseToolCallRecord(raw) {
3219
+ const none = { record: null, skip: null };
3220
+ if (!isObject2(raw)) return { ...none, refusal: "record is not an object" };
3221
+ const kind = raw.kind;
3222
+ if (kind !== void 0 && kind !== null && kind !== "call") return { record: null, skip: `kind ${String(kind)}`, refusal: null };
3223
+ const tool = raw.tool;
3224
+ if (typeof tool !== "string" || !tool) return { ...none, refusal: "record has no tool name" };
3225
+ if (raw.error !== void 0 && raw.error !== null && raw.error !== "") return { record: null, skip: "call failed", refusal: null };
3226
+ const args = raw.args ?? {};
3227
+ if (!isObject2(args)) return { ...none, refusal: `args of ${tool} is not an object` };
3228
+ if (!("result" in raw)) return { ...none, refusal: `record of ${tool} has no result` };
3229
+ const at = raw.at ?? raw.completedAt;
3230
+ const record = { tool, args, result: raw.result };
3231
+ if (typeof at === "string") record.at = at;
3232
+ if (typeof raw.session === "string") record.session = raw.session;
3233
+ if (typeof raw.source === "string") record.source = raw.source;
3234
+ return { record, skip: null, refusal: null };
3235
+ }
3236
+ function readToolCallRecords(paths) {
3237
+ const records = [];
3238
+ for (const file of paths) records.push(...toolCallRecordsIn(fs8.readFileSync(file, "utf8"), file));
3239
+ return records;
3240
+ }
3241
+ function toolCallRecordsIn(text2, where) {
3242
+ const stripped = text2.trim();
3243
+ if (!stripped) return [];
3244
+ if (stripped.startsWith("[")) {
3245
+ const listed = JSON.parse(stripped);
3246
+ if (!Array.isArray(listed)) throw new Error(`${where} is neither a JSON array nor JSON Lines`);
3247
+ listed.forEach((item, index) => {
3248
+ if (!isObject2(item)) throw new Error(`${where}[${index}] is not an object`);
3249
+ });
3250
+ return listed;
3251
+ }
3252
+ const records = [];
3253
+ const lines = text2.split(/\r?\n/);
3254
+ for (let index = 0; index < lines.length; index++) {
3255
+ const line = lines[index];
3256
+ if (!line.trim()) continue;
3257
+ let item;
3258
+ try {
3259
+ item = JSON.parse(line);
3260
+ } catch {
3261
+ throw new Error(`${where}:${index + 1} is not JSON`);
3262
+ }
3263
+ if (!isObject2(item)) throw new Error(`${where}:${index + 1} is not an object`);
3264
+ records.push(item);
3265
+ }
3266
+ return records;
3267
+ }
3268
+ async function emit(sink, record) {
3269
+ if (Array.isArray(sink)) {
3270
+ sink.push(record);
3271
+ return;
3272
+ }
3273
+ if (typeof sink === "string") {
3274
+ fs8.appendFileSync(sink, JSON.stringify(record) + "\n");
3275
+ return;
3276
+ }
3277
+ if (typeof sink === "function") {
3278
+ await sink(record);
3279
+ return;
3280
+ }
3281
+ throw new TypeError("sink must be an array, a file path, or a function");
3282
+ }
3283
+ function captureToolCalls(tools, sink, opts = {}) {
3284
+ const wrapped = /* @__PURE__ */ Object.create(null);
3285
+ for (const [name, fn] of Object.entries(tools)) {
3286
+ wrapped[name] = async (args = {}) => {
3287
+ const record = { tool: name, args, at: (/* @__PURE__ */ new Date()).toISOString() };
3288
+ if (opts.session) record.session = opts.session;
3289
+ if (opts.source) record.source = opts.source;
3290
+ let result;
3291
+ try {
3292
+ result = await fn(args);
3293
+ } catch (error) {
3294
+ record.error = error instanceof Error ? error.message || error.name : String(error);
3295
+ await emit(sink, record);
3296
+ throw error;
3297
+ }
3298
+ record.result = result;
3299
+ await emit(sink, record);
3300
+ return result;
3301
+ };
3302
+ }
3303
+ return wrapped;
3304
+ }
3305
+ function jsonish(value) {
3306
+ if (typeof value !== "string") return value;
3307
+ try {
3308
+ return JSON.parse(value);
3309
+ } catch {
3310
+ return value;
3311
+ }
3312
+ }
3313
+ function toolCallsFromObservations(observations, opts = {}) {
3314
+ const known = opts.tools ? new Set(opts.tools) : null;
3315
+ const sinceMs = opts.since ? Date.parse(opts.since) : NaN;
3316
+ const out = { records: [], unknownTools: {}, skipped: {} };
3317
+ const skip = (reason) => {
3318
+ out.skipped[reason] = (out.skipped[reason] ?? 0) + 1;
3319
+ };
3320
+ for (const observation of observations) {
3321
+ if (observation.type !== "TOOL") {
3322
+ skip(`type ${observation.type ?? "unknown"}`);
3323
+ continue;
3324
+ }
3325
+ const tool = observation.name;
3326
+ if (typeof tool !== "string" || !tool) {
3327
+ skip("no name");
3328
+ continue;
3329
+ }
3330
+ const at = isoOf(observation.startTime);
3331
+ if (!Number.isNaN(sinceMs) && at !== void 0 && Date.parse(at) < sinceMs) {
3332
+ skip("before since");
3333
+ continue;
3334
+ }
3335
+ if (known && !known.has(tool)) {
3336
+ out.unknownTools[tool] = (out.unknownTools[tool] ?? 0) + 1;
3337
+ continue;
3338
+ }
3339
+ const input = jsonish(observation.input);
3340
+ const record = { tool, args: isObject2(input) ? input : {} };
3341
+ if (observation.level === "ERROR") record.error = observation.statusMessage || "ERROR";
3342
+ else record.result = jsonish(observation.output);
3343
+ if (at !== void 0) record.at = at;
3344
+ if (opts.session) record.session = opts.session;
3345
+ record.source = `trace:${observation.traceId ?? "?"}/${observation.id ?? "?"}`;
3346
+ out.records.push(record);
3347
+ }
3348
+ return out;
3349
+ }
3350
+ function credentialsOf(options) {
3351
+ const host = (options.host ?? process.env.GATEWAY_HOST ?? "https://withgateway.ai").replace(/\/+$/, "");
3352
+ const publicKey = options.publicKey ?? process.env.GATEWAY_PUBLIC_KEY;
3353
+ const secretKey = options.secretKey ?? process.env.GATEWAY_SECRET_KEY;
3354
+ return publicKey && secretKey ? { host, publicKey, secretKey } : null;
3355
+ }
3356
+ async function ingest(world, records, options = {}) {
3357
+ const { ingestLocalToolCalls: ingestLocalToolCalls2, importLocalWorldData: importLocalWorldData2, checkLocalWorldData: checkLocalWorldData2 } = await Promise.resolve().then(() => (init_data(), data_exports));
3358
+ if (options.transform !== void 0 && options.map !== void 0) throw new Error("records go through one of transform, map");
3359
+ const redact = options.redact ?? "off";
3360
+ const mode = options.mode ?? "append";
3361
+ const dryRun = Boolean(options.dryRun);
3362
+ const creds = credentialsOf(options);
3363
+ const local = fs8.existsSync(world) && fs8.statSync(world).isDirectory();
3364
+ const map = options.map === void 0 ? void 0 : options.map;
3365
+ let rows = null;
3366
+ let stderr = "";
3367
+ if (options.transform !== void 0) {
3368
+ const { transformRecords: transformRecords2 } = await Promise.resolve().then(() => (init_transform(), transform_exports));
3369
+ ({ rows, stderr } = await transformRecords2(options.transform, records, { timeoutMs: options.timeoutMs }));
3370
+ }
3371
+ if (local) {
3372
+ if (rows === null) return reportOf(world, await ingestLocalToolCalls2(world, records, { redact, dryRun, mode, map }, creds), redact);
3373
+ const landed = dryRun ? await checkLocalWorldData2(world, rows, creds, { redact }) : await importLocalWorldData2(world, rows, { mode, redact }, creds);
3374
+ return transformReport(world, records.length, rows, stderr, { dryRun, redact, changed: !dryRun && landed.changed, kind: landed.kind, entityCounts: landed.entity_counts });
3375
+ }
3376
+ if (!creds) throw new Error("Gateway keys missing: set GATEWAY_PUBLIC_KEY / GATEWAY_SECRET_KEY (or pass publicKey/secretKey).");
3377
+ const { pull: pull2 } = await Promise.resolve().then(() => (init_hub(), hub_exports));
3378
+ const slug = world.split("@", 1)[0];
3379
+ const scratch = fs8.mkdtempSync(path7.join(os3.tmpdir(), "gateway-ingest-"));
3380
+ try {
3381
+ const pulled = await pull2(world, path7.join(scratch, slug), options);
3382
+ let report;
3383
+ let projected;
3384
+ if (rows === null) {
3385
+ const proven = await ingestLocalToolCalls2(pulled.dir, records, { redact: "off", dryRun: true, mode, map }, creds);
3386
+ report = reportOf(world, proven, redact);
3387
+ projected = proven.projected ?? {};
3388
+ } else {
3389
+ const proven = await checkLocalWorldData2(pulled.dir, rows, creds);
3390
+ report = transformReport(world, records.length, rows, stderr, { dryRun, redact, changed: false, kind: proven.kind, entityCounts: proven.entity_counts });
3391
+ projected = rows;
3392
+ }
3393
+ report.dryRun = dryRun;
3394
+ if (dryRun || report.refusals.length || !Object.keys(projected).length) return report;
3395
+ const { pushRows: pushRows2 } = await Promise.resolve().then(() => (init_push(), push_exports));
3396
+ const status = await pushRows2(creds, slug, projected, { mode, redact, message: options.message });
3397
+ report.batch = status;
3398
+ report.changed = status.state === "applied" || status.state === "published";
3399
+ if (status.entityCounts) report.entityCounts = status.entityCounts;
3400
+ return report;
3401
+ } finally {
3402
+ fs8.rmSync(scratch, { recursive: true, force: true });
3403
+ }
3404
+ }
3405
+ async function ingestToolCalls(world, records, options = {}) {
3406
+ return ingest(world, records, options);
3407
+ }
3408
+ function transformReport(world, records, rows, stderr, outcome) {
3409
+ return {
3410
+ world,
3411
+ via: "transform",
3412
+ ...stderr ? { stderr } : {},
3413
+ records,
3414
+ ingested: records,
3415
+ skipped: {},
3416
+ refusals: [],
3417
+ rows: Object.fromEntries(Object.entries(rows).map(([entity, listed]) => [entity, listed.length])),
3418
+ dryRun: outcome.dryRun,
3419
+ redact: outcome.redact,
3420
+ changed: outcome.changed,
3421
+ ...outcome.kind ? { kind: outcome.kind } : {},
3422
+ ...outcome.entityCounts ? { entityCounts: outcome.entityCounts } : {}
3423
+ };
3424
+ }
3425
+ function reportOf(world, local, redact) {
3426
+ return {
3427
+ world,
3428
+ ...local.via ? { via: local.via } : {},
3429
+ ...local.sources ? { sources: local.sources.map(({ unmapped_fields, unset_fields, ...rest }) => ({ ...rest, unmappedFields: unmapped_fields, unsetFields: unset_fields })) } : {},
3430
+ ...local.unmatched ? { unmatched: local.unmatched } : {},
3431
+ ...local.note ? { note: local.note } : {},
3432
+ records: local.records,
3433
+ ingested: local.ingested,
3434
+ skipped: local.skipped,
3435
+ refusals: local.refusals,
3436
+ rows: local.rows,
3437
+ dryRun: local.dry_run,
3438
+ redact,
3439
+ changed: local.changed,
3440
+ ...local.kind ? { kind: local.kind } : {},
3441
+ ...local.entity_counts ? { entityCounts: local.entity_counts } : {}
3442
+ };
3443
+ }
3444
+ async function sessionToolObservations(sessionId, options = {}) {
3445
+ const session = await apiRequest(
3446
+ options,
3447
+ "GET",
3448
+ `/api/public/sessions/${encodeURIComponent(sessionId)}?includeIO=true`
3449
+ );
3450
+ const out = [];
3451
+ for (const trace of session.traces ?? [])
3452
+ for (const observation of trace.observations ?? []) out.push({ traceId: trace.id ?? null, ...observation });
3453
+ return out;
3454
+ }
3455
+ var isObject2, isoOf;
3456
+ var init_ingest = __esm({
3457
+ "src/worlds/ingest.ts"() {
3458
+ "use strict";
3459
+ init_worlds();
3460
+ isObject2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
3461
+ isoOf = (value) => value instanceof Date ? value.toISOString() : typeof value === "string" ? value : void 0;
3462
+ }
3463
+ });
3464
+
3465
+ // src/worlds/index.ts
3466
+ var worlds_exports = {};
3467
+ __export(worlds_exports, {
3468
+ BrowserActionRecorder: () => BrowserActionRecorder,
3469
+ COMPUTER_USE_SPECS: () => COMPUTER_USE_SPECS,
3470
+ DEFAULT_BRANCH: () => DEFAULT_BRANCH,
3471
+ DEFAULT_VIEWPORT: () => DEFAULT_VIEWPORT,
3472
+ EVENT_BATCH_SIZE: () => EVENT_BATCH_SIZE,
3473
+ EVENT_FLUSH_INTERVAL_MS: () => EVENT_FLUSH_INTERVAL_MS,
3474
+ EVENT_MAX_RETRIES: () => EVENT_MAX_RETRIES,
3475
+ STRIP_PREFIX: () => STRIP_PREFIX,
3476
+ SURFACE_KINDS: () => SURFACE_KINDS,
3477
+ TRANSFORMS: () => TRANSFORMS,
3478
+ WHITESPACE: () => WHITESPACE,
3479
+ WorldBrowser: () => WorldBrowser,
3480
+ WorldSession: () => WorldSession,
3481
+ WorldSessionCallError: () => WorldSessionCallError,
3482
+ WorldSessionTimeout: () => WorldSessionTimeout,
3483
+ WorldSet: () => WorldSet,
3484
+ WorldSurfaceUnavailable: () => WorldSurfaceUnavailable,
3485
+ WorldTask: () => WorldTask,
3486
+ apiRequest: () => apiRequest,
3487
+ applyTransforms: () => applyTransforms,
3488
+ attachSession: () => attachSession,
3489
+ buildSourceTarball: () => buildSourceTarball,
3490
+ captureToolCalls: () => captureToolCalls,
3491
+ collectArchiveRelPaths: () => collectArchiveRelPaths,
3492
+ computeContentHash: () => computeContentHash,
3493
+ computerUseToolkit: () => computerUseToolkit,
3494
+ createRef: () => createRef,
3495
+ createTask: () => createTask,
3496
+ deleteEnvSecret: () => deleteEnvSecret,
3497
+ deleteTask: () => deleteTask,
3498
+ describeWorld: () => describeWorld,
3499
+ detectProvenance: () => detectProvenance,
3500
+ getRun: () => getRun,
3501
+ getTask: () => getTask,
3502
+ hashForm: () => hashForm,
3503
+ ingest: () => ingest,
3504
+ ingestToolCalls: () => ingestToolCalls,
3505
+ isIncludedInContentHash: () => isIncludedInContentHash,
3506
+ isTaskIdRef: () => isTaskIdRef,
3507
+ isTaskSpec: () => isTaskSpec,
3508
+ listEnvSecretKeys: () => listEnvSecretKeys,
3509
+ listRunConfigs: () => listRunConfigs,
3510
+ listTasks: () => listTasks,
3511
+ localTreeState: () => localTreeState,
3512
+ migrateProjectWorlds: () => migrateProjectWorlds,
3513
+ migrateWorld: () => migrateWorld,
3514
+ openBrowser: () => openBrowser,
3515
+ openSession: () => openSession,
3516
+ openWorld: () => openWorld,
3517
+ parseToolCallRecord: () => parseToolCallRecord,
3518
+ parseTransform: () => parseTransform,
3519
+ parseWorldTaskRefs: () => parseWorldTaskRefs,
3520
+ preserveForm: () => preserveForm,
3521
+ propose: () => propose,
3522
+ pull: () => pull,
3523
+ push: () => push,
3524
+ pyText: () => pyText,
3525
+ queryRows: () => queryRows,
3526
+ queryRowsSearch: () => queryRowsSearch,
3527
+ readLocalMeta: () => readLocalMeta,
3528
+ readToolCallRecords: () => readToolCallRecords,
3529
+ redactActionArgs: () => redactActionArgs,
3530
+ redactionOf: () => redactionOf,
3531
+ resolveBrowserMode: () => resolveBrowserMode,
3532
+ roundForm: () => roundForm,
3533
+ runSessions: () => runSessions,
3534
+ schemaFromSignature: () => schemaFromSignature,
3535
+ sessionToolObservations: () => sessionToolObservations,
3536
+ setEnvSecret: () => setEnvSecret,
3537
+ shapeText: () => shapeText,
3538
+ snapshotTreeHashes: () => snapshotTreeHashes,
3539
+ storedForms: () => storedForms,
3540
+ surfaceKinds: () => surfaceKinds,
3541
+ taskLabel: () => taskLabel,
3542
+ toolCallRecordsIn: () => toolCallRecordsIn,
3543
+ toolCallsFromObservations: () => toolCallsFromObservations,
3544
+ uiEntryUrl: () => uiEntryUrl,
3545
+ uiUrl: () => uiUrl,
3546
+ updateTask: () => updateTask,
3547
+ upsertRunConfig: () => upsertRunConfig,
3548
+ validateTask: () => validateTask,
3549
+ validateWorld: () => validateWorld,
3550
+ waitForRun: () => waitForRun,
3551
+ withoutUiToken: () => withoutUiToken,
3552
+ writeLocalMeta: () => writeLocalMeta
3553
+ });
3554
+ function resolveEnv(options) {
900
3555
  const host = options.host ?? process.env.GATEWAY_HOST ?? "https://withgateway.ai";
901
3556
  const publicKey = options.publicKey ?? process.env.GATEWAY_PUBLIC_KEY;
902
3557
  const secretKey = options.secretKey ?? process.env.GATEWAY_SECRET_KEY;
@@ -907,9 +3562,9 @@ function resolveEnv(options) {
907
3562
  }
908
3563
  return { host: host.replace(/\/+$/, ""), publicKey, secretKey };
909
3564
  }
910
- async function apiRequest(options, method, path2, body) {
3565
+ async function apiRequest(options, method, path8, body) {
911
3566
  const { host, publicKey, secretKey } = resolveEnv(options);
912
- const res = await fetch(`${host}${path2}`, {
3567
+ const res = await fetch(`${host}${path8}`, {
913
3568
  method,
914
3569
  headers: {
915
3570
  "content-type": "application/json",
@@ -917,13 +3572,13 @@ async function apiRequest(options, method, path2, body) {
917
3572
  },
918
3573
  ...body === void 0 ? {} : { body: JSON.stringify(body) }
919
3574
  });
920
- const text = await res.text();
3575
+ const text2 = await res.text();
921
3576
  if (!res.ok) {
922
3577
  throw new Error(
923
- `${method} ${path2} -> ${res.status}: ${text.slice(0, 400)}`
3578
+ `${method} ${path8} -> ${res.status}: ${text2.slice(0, 400)}`
924
3579
  );
925
3580
  }
926
- return JSON.parse(text);
3581
+ return JSON.parse(text2);
927
3582
  }
928
3583
  async function setEnvSecret(slug, key, value, options = {}) {
929
3584
  return apiRequest(
@@ -964,6 +3619,28 @@ async function listRunConfigs(options = {}) {
964
3619
  );
965
3620
  return res.runConfigs;
966
3621
  }
3622
+ async function upsertRunConfig(input, options = {}) {
3623
+ return apiRequest(
3624
+ options,
3625
+ "POST",
3626
+ "/api/public/benchmark-containers/run-configs",
3627
+ input
3628
+ );
3629
+ }
3630
+ function parseWorldTaskRefs(spec) {
3631
+ const items = (Array.isArray(spec) ? spec : spec.split(",")).map((s) => s.trim()).filter(Boolean);
3632
+ return items.map((item) => {
3633
+ const at = item.lastIndexOf("@");
3634
+ if (at < 0) return { id: item };
3635
+ const id = item.slice(0, at);
3636
+ const version = Number(item.slice(at + 1));
3637
+ if (!id || !Number.isInteger(version) || version < 1)
3638
+ throw new Error(
3639
+ `stored task ref '${item}' is not <id> or <id>@<version> (version a positive integer)`
3640
+ );
3641
+ return { id, version };
3642
+ });
3643
+ }
967
3644
  async function getRun(runId, options = {}) {
968
3645
  return apiRequest(
969
3646
  options,
@@ -982,7 +3659,7 @@ async function waitForRun(runId, opts = {}) {
982
3659
  );
983
3660
  opts.onTick?.(run);
984
3661
  await new Promise(
985
- (resolve2) => setTimeout(resolve2, (opts.intervalSeconds ?? 20) * 1e3)
3662
+ (resolve6) => setTimeout(resolve6, (opts.intervalSeconds ?? 20) * 1e3)
986
3663
  );
987
3664
  }
988
3665
  }
@@ -1056,8 +3733,16 @@ var WorldTask, WorldSet;
1056
3733
  var init_worlds = __esm({
1057
3734
  "src/worlds/index.ts"() {
1058
3735
  init_session();
3736
+ init_tasks();
3737
+ init_browser();
1059
3738
  init_hub();
1060
3739
  init_validate();
3740
+ init_describe();
3741
+ init_redaction();
3742
+ init_transforms();
3743
+ init_query();
3744
+ init_migrate();
3745
+ init_ingest();
1061
3746
  WorldTask = class {
1062
3747
  constructor(world, name, variant) {
1063
3748
  this.world = world;
@@ -1085,15 +3770,18 @@ var init_worlds = __esm({
1085
3770
  return hit;
1086
3771
  }
1087
3772
  /**
1088
- * Open a LIVE session against one of this world's tasks: the platform boots
1089
- * (or reuses) a warm container, and your agent calls its tools through the
1090
- * platform. See worlds/session.ts.
3773
+ * Open a LIVE session against one of this world's tasks — a bundled task's
3774
+ * name or an inline `WorldTaskSpec`: the platform boots (or reuses) a warm
3775
+ * container, and your agent calls its tools through the platform. See
3776
+ * worlds/session.ts.
1091
3777
  */
1092
3778
  async open(task, opts = {}) {
1093
3779
  const { openSession: openSession2 } = await Promise.resolve().then(() => (init_session(), session_exports));
1094
- return openSession2(this.slug, task, {
3780
+ return openSession2(this.slug, {
3781
+ task,
1095
3782
  versionId: this.version.versionId,
1096
3783
  reuseWarm: opts.reuseWarm,
3784
+ surfaces: opts.surfaces,
1097
3785
  options: this.options
1098
3786
  });
1099
3787
  }
@@ -1121,37 +3809,90 @@ var init_worlds = __esm({
1121
3809
  });
1122
3810
  init_worlds();
1123
3811
  export {
3812
+ BrowserActionRecorder,
3813
+ COMPUTER_USE_SPECS,
1124
3814
  DEFAULT_BRANCH,
3815
+ DEFAULT_VIEWPORT,
3816
+ EVENT_BATCH_SIZE,
3817
+ EVENT_FLUSH_INTERVAL_MS,
3818
+ EVENT_MAX_RETRIES,
3819
+ STRIP_PREFIX,
3820
+ SURFACE_KINDS,
3821
+ TRANSFORMS,
3822
+ WHITESPACE,
3823
+ WorldBrowser,
1125
3824
  WorldSession,
1126
3825
  WorldSessionCallError,
1127
3826
  WorldSessionTimeout,
1128
3827
  WorldSet,
3828
+ WorldSurfaceUnavailable,
1129
3829
  WorldTask,
1130
3830
  apiRequest,
3831
+ applyTransforms,
1131
3832
  attachSession,
1132
3833
  buildSourceTarball,
3834
+ captureToolCalls,
1133
3835
  collectArchiveRelPaths,
1134
3836
  computeContentHash,
3837
+ computerUseToolkit,
1135
3838
  createRef,
3839
+ createTask,
1136
3840
  deleteEnvSecret,
3841
+ deleteTask,
3842
+ describeWorld,
1137
3843
  detectProvenance,
1138
3844
  getRun,
3845
+ getTask,
3846
+ hashForm,
3847
+ ingest,
3848
+ ingestToolCalls,
1139
3849
  isIncludedInContentHash,
3850
+ isTaskIdRef,
3851
+ isTaskSpec,
1140
3852
  listEnvSecretKeys,
1141
3853
  listRunConfigs,
3854
+ listTasks,
1142
3855
  localTreeState,
3856
+ migrateProjectWorlds,
3857
+ migrateWorld,
3858
+ openBrowser,
1143
3859
  openSession,
1144
3860
  openWorld,
3861
+ parseToolCallRecord,
3862
+ parseTransform,
3863
+ parseWorldTaskRefs,
3864
+ preserveForm,
1145
3865
  propose,
1146
3866
  pull,
1147
3867
  push,
3868
+ pyText,
3869
+ queryRows,
3870
+ queryRowsSearch,
1148
3871
  readLocalMeta,
3872
+ readToolCallRecords,
3873
+ redactActionArgs,
3874
+ redactionOf,
3875
+ resolveBrowserMode,
3876
+ roundForm,
1149
3877
  runSessions,
1150
3878
  schemaFromSignature,
3879
+ sessionToolObservations,
1151
3880
  setEnvSecret,
3881
+ shapeText,
1152
3882
  snapshotTreeHashes,
3883
+ storedForms,
3884
+ surfaceKinds,
3885
+ taskLabel,
3886
+ toolCallRecordsIn,
3887
+ toolCallsFromObservations,
3888
+ uiEntryUrl,
3889
+ uiUrl,
3890
+ updateTask,
3891
+ upsertRunConfig,
3892
+ validateTask,
1153
3893
  validateWorld,
1154
3894
  waitForRun,
3895
+ withoutUiToken,
1155
3896
  writeLocalMeta
1156
3897
  };
1157
3898
  //# sourceMappingURL=index.mjs.map