@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
package/dist/index.js CHANGED
@@ -33,6 +33,483 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
+ // src/worlds/browser.ts
37
+ function surfaceKinds(s) {
38
+ const kinds = ["tools"];
39
+ if (s.api) kinds.push("api");
40
+ if (s.ui) kinds.push("ui");
41
+ if (s.browser) kinds.push("browser");
42
+ return kinds;
43
+ }
44
+ function uiUrl(ui, path9) {
45
+ const base = ui.url.replace(/\/+$/, "");
46
+ const rel = path9.startsWith("/") ? path9 : `/${path9}`;
47
+ if (!ui.token) return base + rel;
48
+ const [beforeHash, hash] = splitHash(rel);
49
+ const joiner = beforeHash.includes("?") ? "&" : "?";
50
+ const query = `${UI_TOKEN_QUERY}=${encodeURIComponent(ui.token)}`;
51
+ return base + beforeHash + joiner + query + hash;
52
+ }
53
+ function uiEntryUrl(ui) {
54
+ return uiUrl(ui, ui.entry || "/");
55
+ }
56
+ function withoutUiToken(url) {
57
+ const [beforeHash, hash] = splitHash(url);
58
+ const q = beforeHash.indexOf("?");
59
+ if (q < 0) return url;
60
+ const kept = beforeHash.slice(q + 1).split("&").filter((pair) => pair !== "" && pair.split("=")[0] !== UI_TOKEN_QUERY);
61
+ return beforeHash.slice(0, q) + (kept.length ? `?${kept.join("&")}` : "") + hash;
62
+ }
63
+ function splitHash(url) {
64
+ const h = url.indexOf("#");
65
+ return h < 0 ? [url, ""] : [url.slice(0, h), url.slice(h)];
66
+ }
67
+ function redactActionArgs(action, args) {
68
+ const secretField = action === "browser_type" && SECRET_KEY.test(String(args.selector ?? ""));
69
+ const out = {};
70
+ for (const [key, value] of Object.entries(args)) {
71
+ if (value === null || value === void 0) out[key] = null;
72
+ else if (typeof value === "boolean" || typeof value === "number")
73
+ out[key] = value;
74
+ else if (typeof value === "string") {
75
+ if (SECRET_KEY.test(key) || SECRET_VALUE.test(value) || secretField && key === "text")
76
+ out[key] = "[redacted]";
77
+ else
78
+ out[key] = value.length <= EVENT_MAX_STRING ? value : value.slice(0, EVENT_MAX_STRING) + "\u2026";
79
+ } else out[key] = "[omitted]";
80
+ }
81
+ return out;
82
+ }
83
+ async function loadPlaywright() {
84
+ try {
85
+ const name = "playwright";
86
+ return await import(name);
87
+ } catch (error) {
88
+ throw new Error(
89
+ "Driving a world UI needs Playwright: npm install playwright (and `npx playwright install chromium` for local mode).",
90
+ { cause: error }
91
+ );
92
+ }
93
+ }
94
+ function resolveBrowserMode(surfaces, mode) {
95
+ if (!surfaces.ui && !surfaces.browser)
96
+ throw new WorldSurfaceUnavailable(
97
+ "ui",
98
+ "open the session with surfaces: ['ui'] on a world that declares [ui]"
99
+ );
100
+ const resolved = mode === "auto" ? surfaces.browser ? "hosted" : "local" : mode;
101
+ if (resolved === "hosted" && !surfaces.browser)
102
+ throw new WorldSurfaceUnavailable(
103
+ "browser",
104
+ "open the session with surfaces: ['browser'] to get a hosted browser"
105
+ );
106
+ return resolved;
107
+ }
108
+ async function openBrowser(surfaces, opts = {}) {
109
+ const mode = resolveBrowserMode(surfaces, opts.mode ?? "auto");
110
+ const pw = opts.playwright ?? await loadPlaywright();
111
+ const viewport = surfaces.browser?.viewport ?? DEFAULT_VIEWPORT;
112
+ 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 });
113
+ const context4 = await browser.newContext({ viewport });
114
+ const page = await context4.newPage();
115
+ return new WorldBrowser(
116
+ page,
117
+ surfaces.ui,
118
+ mode,
119
+ async () => {
120
+ await context4.close();
121
+ await browser.close();
122
+ },
123
+ viewport,
124
+ opts.recorder ?? null
125
+ );
126
+ }
127
+ function computerUseToolkit(browser, opts = {}) {
128
+ const maxText = opts.maxText ?? 2e4;
129
+ const observe2 = async (selector = "body") => {
130
+ const text2 = await browser.text(selector);
131
+ return {
132
+ url: browser.url,
133
+ title: await browser.title(),
134
+ text: text2.slice(0, maxText),
135
+ truncated: text2.length > maxText
136
+ };
137
+ };
138
+ const impls = {
139
+ browser_goto: async (a) => {
140
+ await browser.goto(typeof a.path === "string" ? a.path : void 0);
141
+ return observe2();
142
+ },
143
+ browser_click: async (a) => {
144
+ await browser.click(str(a.selector, ""));
145
+ return observe2();
146
+ },
147
+ browser_type: async (a) => {
148
+ await browser.type(str(a.selector, ""), String(a.text ?? ""));
149
+ return { ok: true, url: browser.url };
150
+ },
151
+ browser_press: async (a) => {
152
+ await browser.press(str(a.key, "Enter"));
153
+ return observe2();
154
+ },
155
+ browser_scroll: async (a) => {
156
+ await browser.scroll(typeof a.dy === "number" ? a.dy : 600);
157
+ return { ok: true, url: browser.url };
158
+ },
159
+ browser_screenshot: async (a) => ({
160
+ image_base64: await browser.screenshotBase64(a.full_page === true),
161
+ url: browser.url
162
+ }),
163
+ browser_read: async (a) => observe2(str(a.selector, "body")),
164
+ browser_back: async () => {
165
+ await browser.back();
166
+ return observe2();
167
+ }
168
+ };
169
+ const specs = COMPUTER_USE_SPECS.map((s) => ({ ...s }));
170
+ return {
171
+ schemas: specs.map((spec) => schemaFromSignature(spec)),
172
+ impls,
173
+ specs
174
+ };
175
+ }
176
+ 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;
177
+ var init_browser = __esm({
178
+ "src/worlds/browser.ts"() {
179
+ "use strict";
180
+ init_session();
181
+ SURFACE_KINDS = ["tools", "api", "ui", "browser"];
182
+ DEFAULT_VIEWPORT = { width: 1280, height: 800 };
183
+ SETTLE_TIMEOUT_MS = 5e3;
184
+ SETTLE_QUIET_MS = 150;
185
+ SETTLE_POLL_MS = 25;
186
+ EVENT_BATCH_SIZE = 10;
187
+ EVENT_FLUSH_INTERVAL_MS = 1e3;
188
+ EVENT_MAX_RETRIES = 3;
189
+ EVENT_SCREENSHOT_QUALITY = 60;
190
+ EVENT_MAX_STRING = 500;
191
+ SECRET_KEY = /pass(word|wd)?|secret|token|api[-_]?key|authorization|cookie|(^|[-_ #.\["'=])(otp|pin|cvv|ssn)([-_ \]"']|$)/i;
192
+ SECRET_VALUE = /^((sk|pk|ghp|xox[abp])[-_][-_A-Za-z0-9]{8,}|AKIA[0-9A-Z]{12,}|Bearer [-_.A-Za-z0-9]{8,})/;
193
+ WorldSurfaceUnavailable = class extends Error {
194
+ constructor(surface, reason) {
195
+ super(`World surface '${surface}' is unavailable: ${reason}`);
196
+ this.surface = surface;
197
+ }
198
+ };
199
+ UI_TOKEN_QUERY = "token";
200
+ BrowserActionRecorder = class {
201
+ constructor(post, agentId, opts = {}) {
202
+ this.post = post;
203
+ this.agentId = agentId;
204
+ this.opts = opts;
205
+ }
206
+ seq = 0;
207
+ base = null;
208
+ queue = [];
209
+ timer = null;
210
+ inflight = Promise.resolve();
211
+ sent = 0;
212
+ dropped = 0;
213
+ /** This recorder's next position; the wire seq is `resumeFrom() + this`. */
214
+ nextSeq() {
215
+ return this.seq++;
216
+ }
217
+ resolveBase() {
218
+ if (this.base === null) {
219
+ const resolve7 = this.opts.resumeFrom ?? (async () => 0);
220
+ this.base = resolve7().then((n) => {
221
+ if (!Number.isInteger(n) || n < 0)
222
+ throw new Error(
223
+ `browser event base seq must be a non-negative integer, got ${String(n)}`
224
+ );
225
+ return n;
226
+ });
227
+ this.base.catch(() => {
228
+ this.base = null;
229
+ });
230
+ }
231
+ return this.base;
232
+ }
233
+ record(event) {
234
+ this.queue.push(event);
235
+ if (this.queue.length >= (this.opts.batchSize ?? EVENT_BATCH_SIZE)) {
236
+ this.drain();
237
+ } else if (this.timer === null) {
238
+ this.timer = setTimeout(
239
+ () => this.drain(),
240
+ this.opts.flushIntervalMs ?? EVENT_FLUSH_INTERVAL_MS
241
+ );
242
+ if (typeof this.timer === "object" && "unref" in this.timer)
243
+ this.timer.unref();
244
+ }
245
+ }
246
+ /** Resolve once everything recorded so far has been posted (or dropped). */
247
+ async flush() {
248
+ this.drain();
249
+ await this.inflight;
250
+ }
251
+ async close() {
252
+ await this.flush();
253
+ }
254
+ drain() {
255
+ if (this.timer !== null) {
256
+ clearTimeout(this.timer);
257
+ this.timer = null;
258
+ }
259
+ if (this.queue.length === 0) return;
260
+ const batch = this.queue;
261
+ this.queue = [];
262
+ this.inflight = this.inflight.then(() => this.send(batch));
263
+ }
264
+ async send(batch) {
265
+ const retries = this.opts.maxRetries ?? EVENT_MAX_RETRIES;
266
+ const sleep3 = this.opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
267
+ for (let attempt = 0; attempt < retries; attempt++) {
268
+ try {
269
+ const base = await this.resolveBase();
270
+ await this.post(
271
+ base === 0 ? batch : batch.map((e) => ({ ...e, seq: base + e.seq }))
272
+ );
273
+ this.sent += batch.length;
274
+ return;
275
+ } catch (error) {
276
+ if (attempt + 1 === retries) {
277
+ this.dropped += batch.length;
278
+ (this.opts.warn ?? console.warn)(
279
+ `dropping ${batch.length} browser events after ${attempt + 1} attempts: ${String(error)}`
280
+ );
281
+ return;
282
+ }
283
+ await sleep3(500 * 2 ** attempt);
284
+ }
285
+ }
286
+ }
287
+ };
288
+ WorldBrowser = class {
289
+ constructor(page, ui, mode, teardown, viewport = DEFAULT_VIEWPORT, recorder = null) {
290
+ this.page = page;
291
+ this.ui = ui;
292
+ this.mode = mode;
293
+ this.teardown = teardown;
294
+ this.viewport = viewport;
295
+ this.recorder = recorder;
296
+ page.on("request", () => {
297
+ this.inflight += 1;
298
+ this.lastNetwork = Date.now();
299
+ });
300
+ const done = () => {
301
+ this.inflight = Math.max(0, this.inflight - 1);
302
+ this.lastNetwork = Date.now();
303
+ };
304
+ page.on("requestfinished", done);
305
+ page.on("requestfailed", done);
306
+ }
307
+ inflight = 0;
308
+ lastNetwork = Date.now();
309
+ get agentId() {
310
+ return this.recorder?.agentId ?? null;
311
+ }
312
+ /** Run one action and report it: the event carries what was asked,
313
+ * whether it worked, and the screen after — for failures too, so a
314
+ * reviewer sees what the agent saw when the selector did not match. */
315
+ async act(action, args, fn) {
316
+ const recorder = this.recorder;
317
+ if (!recorder) return fn();
318
+ const started = Date.now();
319
+ let ok = true;
320
+ let error = null;
321
+ try {
322
+ return await fn();
323
+ } catch (err) {
324
+ ok = false;
325
+ error = (err instanceof Error ? `${err.name}: ${err.message}` : String(err)).slice(0, 4e3);
326
+ throw err;
327
+ } finally {
328
+ recorder.record({
329
+ agentId: recorder.agentId,
330
+ seq: recorder.nextSeq(),
331
+ ts: (/* @__PURE__ */ new Date()).toISOString(),
332
+ action,
333
+ args: redactActionArgs(action, args),
334
+ ok,
335
+ error,
336
+ durationMs: Date.now() - started,
337
+ mode: this.mode,
338
+ viewport: { ...this.viewport },
339
+ ...await this.observeForEvent()
340
+ });
341
+ }
342
+ }
343
+ async observeForEvent() {
344
+ const out = {
345
+ url: null,
346
+ title: null,
347
+ screenshot: null
348
+ };
349
+ try {
350
+ out.url = this.page.url();
351
+ out.title = await this.page.title();
352
+ const jpeg = await this.page.screenshot({
353
+ type: "jpeg",
354
+ quality: EVENT_SCREENSHOT_QUALITY
355
+ });
356
+ out.screenshot = jpeg.toString("base64");
357
+ } catch {
358
+ }
359
+ return out;
360
+ }
361
+ /** Open a UI path (`/customers`), a full URL, or — with no argument — the
362
+ * UI's declared entry page. */
363
+ async goto(pathOrUrl) {
364
+ let target;
365
+ if (pathOrUrl === void 0) {
366
+ if (!this.ui)
367
+ throw new WorldSurfaceUnavailable(
368
+ "ui",
369
+ "this session has no UI to navigate to"
370
+ );
371
+ target = uiEntryUrl(this.ui);
372
+ } else if (/^https?:\/\//.test(pathOrUrl)) {
373
+ target = pathOrUrl;
374
+ } else {
375
+ if (!this.ui)
376
+ throw new WorldSurfaceUnavailable(
377
+ "ui",
378
+ "relative paths need a UI surface"
379
+ );
380
+ target = uiUrl(this.ui, pathOrUrl);
381
+ }
382
+ return this.act(
383
+ "browser_goto",
384
+ { path: pathOrUrl ?? null, url: withoutUiToken(target) },
385
+ async () => {
386
+ await this.page.goto(target, { waitUntil: "load" });
387
+ await this.settle();
388
+ return this.page.url();
389
+ }
390
+ );
391
+ }
392
+ async back() {
393
+ return this.act("browser_back", {}, async () => {
394
+ await this.page.goBack({ waitUntil: "load" });
395
+ await this.settle();
396
+ return this.page.url();
397
+ });
398
+ }
399
+ /** Wait for the page to finish reacting to an action. `load` alone is not
400
+ * enough for client-rendered UIs (React et al.): a click returns before the
401
+ * fetch that re-renders the page, so an agent would read stale text.
402
+ * Playwright's `networkidle` is per navigation and resolves at once after
403
+ * the first one, so this tracks requests itself: done when nothing is in
404
+ * flight and the network has been quiet for `SETTLE_QUIET_MS`, bounded so
405
+ * long-polling UIs cannot hang us. */
406
+ async settle() {
407
+ await this.page.waitForLoadState("load");
408
+ const deadline = Date.now() + SETTLE_TIMEOUT_MS;
409
+ while (Date.now() < deadline) {
410
+ const quiet = Date.now() - this.lastNetwork >= SETTLE_QUIET_MS;
411
+ if (this.inflight === 0 && quiet) return;
412
+ await this.page.waitForTimeout(SETTLE_POLL_MS);
413
+ }
414
+ }
415
+ async click(selector) {
416
+ await this.act("browser_click", { selector }, async () => {
417
+ await this.page.click(selector);
418
+ await this.settle();
419
+ });
420
+ }
421
+ async type(selector, text2) {
422
+ await this.act(
423
+ "browser_type",
424
+ { selector, text: text2 },
425
+ () => this.page.fill(selector, text2)
426
+ );
427
+ }
428
+ async press(key) {
429
+ await this.act("browser_press", { key }, async () => {
430
+ await this.page.keyboard.press(key);
431
+ await this.settle();
432
+ });
433
+ }
434
+ async scroll(dy) {
435
+ await this.act(
436
+ "browser_scroll",
437
+ { dy },
438
+ () => this.page.mouse.wheel(0, dy)
439
+ );
440
+ }
441
+ async screenshot(fullPage = false) {
442
+ return this.page.screenshot({ type: "png", fullPage });
443
+ }
444
+ async screenshotBase64(fullPage = false) {
445
+ return (await this.screenshot(fullPage)).toString("base64");
446
+ }
447
+ async text(selector = "body") {
448
+ return this.page.innerText(selector);
449
+ }
450
+ async html() {
451
+ return this.page.content();
452
+ }
453
+ get url() {
454
+ return this.page.url();
455
+ }
456
+ async title() {
457
+ return this.page.title();
458
+ }
459
+ async close() {
460
+ try {
461
+ await this.teardown();
462
+ } finally {
463
+ await this.recorder?.close();
464
+ }
465
+ }
466
+ };
467
+ COMPUTER_USE_SPECS = [
468
+ {
469
+ name: "browser_goto",
470
+ signature: "browser_goto(path=None)",
471
+ 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."
472
+ },
473
+ {
474
+ name: "browser_click",
475
+ signature: "browser_click(selector)",
476
+ doc: "Click an element by Playwright selector (CSS, `text=Refund`, `role=button[name=Save]`). Returns the page text after the click."
477
+ },
478
+ {
479
+ name: "browser_type",
480
+ signature: "browser_type(selector, text)",
481
+ doc: "Replace the value of an input/textarea found by selector with `text`."
482
+ },
483
+ {
484
+ name: "browser_press",
485
+ signature: "browser_press(key)",
486
+ doc: "Press a key (Enter, Tab, Escape, ArrowDown, ...). Returns the page text after."
487
+ },
488
+ {
489
+ name: "browser_scroll",
490
+ signature: "browser_scroll(dy=600)",
491
+ doc: "Scroll the page vertically by `dy` pixels (negative scrolls up)."
492
+ },
493
+ {
494
+ name: "browser_screenshot",
495
+ signature: "browser_screenshot(full_page=False)",
496
+ doc: "Take a PNG screenshot; returns {image_base64, url}."
497
+ },
498
+ {
499
+ name: "browser_read",
500
+ signature: "browser_read(selector='body')",
501
+ doc: "Return the visible text of an element (default: whole page) plus the URL and title."
502
+ },
503
+ {
504
+ name: "browser_back",
505
+ signature: "browser_back()",
506
+ doc: "Go back one page in history."
507
+ }
508
+ ];
509
+ str = (v, fallback) => typeof v === "string" && v.length > 0 ? v : fallback;
510
+ }
511
+ });
512
+
36
513
  // src/worlds/session.ts
37
514
  var session_exports = {};
38
515
  __export(session_exports, {
@@ -40,11 +517,23 @@ __export(session_exports, {
40
517
  WorldSessionCallError: () => WorldSessionCallError,
41
518
  WorldSessionTimeout: () => WorldSessionTimeout,
42
519
  attachSession: () => attachSession,
520
+ isTaskIdRef: () => isTaskIdRef,
521
+ isTaskSpec: () => isTaskSpec,
43
522
  openSession: () => openSession,
44
523
  runSessions: () => runSessions,
45
- schemaFromSignature: () => schemaFromSignature
524
+ schemaFromSignature: () => schemaFromSignature,
525
+ taskLabel: () => taskLabel
46
526
  });
47
527
  function schemaFromSignature(spec) {
528
+ if (spec.inputSchema)
529
+ return {
530
+ type: "function",
531
+ function: {
532
+ name: modelToolName(spec.name),
533
+ description: spec.doc ?? spec.name,
534
+ parameters: spec.inputSchema
535
+ }
536
+ };
48
537
  const inside = /\(([\s\S]*)\)\s*$/.exec(spec.signature.trim())?.[1] ?? "";
49
538
  const properties = {};
50
539
  const required = [];
@@ -80,7 +569,7 @@ function schemaFromSignature(spec) {
80
569
  return {
81
570
  type: "function",
82
571
  function: {
83
- name: spec.name,
572
+ name: modelToolName(spec.name),
84
573
  description: spec.doc ?? spec.name,
85
574
  parameters: { type: "object", properties, required }
86
575
  }
@@ -94,8 +583,20 @@ async function attachSession(sessionId, options = {}) {
94
583
  );
95
584
  return new WorldSession(sessionId, state2, options);
96
585
  }
97
- async function openSession(slugOrRef, task, opts = {}) {
586
+ async function openSession(slugOrRef, taskOrOpts, positionalOpts = {}) {
587
+ const { task, ...opts } = typeof taskOrOpts === "object" && "task" in taskOrOpts ? taskOrOpts : { task: taskOrOpts, ...positionalOpts };
588
+ 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))
589
+ throw new Error(
590
+ "openSession needs a task: a bundled task name, a stored task { id, version? } or { instruction, seed?, grader?, metadata? }"
591
+ );
98
592
  const options = opts.options ?? {};
593
+ const unknown = (opts.surfaces ?? []).filter(
594
+ (s) => !SURFACE_KINDS.includes(s)
595
+ );
596
+ if (unknown.length)
597
+ throw new Error(
598
+ `Unknown world surfaces: ${unknown.join(", ")}; choose from ${SURFACE_KINDS.join(", ")}`
599
+ );
99
600
  const at = slugOrRef.indexOf("@");
100
601
  const slug = at === -1 ? slugOrRef : slugOrRef.slice(0, at);
101
602
  const state2 = await apiRequest(
@@ -105,7 +606,8 @@ async function openSession(slugOrRef, task, opts = {}) {
105
606
  {
106
607
  ...opts.versionId ? { versionId: opts.versionId } : { slug },
107
608
  task,
108
- ...opts.reuseWarm === void 0 ? {} : { reuseWarm: opts.reuseWarm }
609
+ ...opts.reuseWarm === void 0 ? {} : { reuseWarm: opts.reuseWarm },
610
+ ...opts.surfaces?.length ? { surfaces: opts.surfaces } : {}
109
611
  }
110
612
  );
111
613
  return new WorldSession(state2.sessionId, state2, options);
@@ -126,20 +628,24 @@ async function runSessions(opts) {
126
628
  await Promise.all(
127
629
  Array.from({ length: Math.min(concurrency, tasks.length) }, async () => {
128
630
  while (next < tasks.length) {
129
- const task = tasks[next++];
631
+ const taskRef = tasks[next++];
632
+ let task = taskLabel(taskRef);
130
633
  let session = null;
131
634
  try {
132
- session = await openSession(opts.world, task, {
635
+ session = await openSession(opts.world, {
636
+ task: taskRef,
133
637
  versionId,
134
638
  options
135
639
  });
640
+ task = taskLabel(taskRef, session.taskInfo);
136
641
  await session.ready();
137
642
  const toolkit = await session.toolkit();
138
643
  await opts.agent({
139
644
  session,
140
645
  toolkit,
141
- instruction: session.instruction ?? task,
142
- task
646
+ instruction: session.instruction ?? (isTaskSpec(taskRef) ? taskRef.instruction : task),
647
+ task,
648
+ taskRef
143
649
  });
144
650
  const graded = await session.grade();
145
651
  const result = {
@@ -175,35 +681,148 @@ async function runSessions(opts) {
175
681
  passed: opts.failUnder === void 0 ? true : mean >= opts.failUnder
176
682
  };
177
683
  }
178
- var READY_TIMEOUT_MS, READY_POLL_MS, CALL_TIMEOUT_MS, CALL_POLL_MS, sleep2, WorldSessionTimeout, WorldSessionCallError, WorldSession;
684
+ var import_node_crypto, 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, sleep2, modelToolName, WorldSessionTimeout, WorldSessionCallError, WorldSession;
179
685
  var init_session = __esm({
180
686
  "src/worlds/session.ts"() {
181
687
  "use strict";
688
+ import_node_crypto = require("crypto");
182
689
  init_worlds();
690
+ init_browser();
691
+ isTaskIdRef = (task) => typeof task === "object" && task !== null && "id" in task;
692
+ isTaskSpec = (task) => typeof task === "object" && task !== null && "instruction" in task;
693
+ taskLabel = (task, info) => {
694
+ if (typeof task === "string") return task;
695
+ if (isTaskIdRef(task)) return info?.name ?? task.id;
696
+ if (task.name) return task.name;
697
+ return info?.hash ? `inline:${info.hash.slice(0, 12)}` : "inline";
698
+ };
183
699
  READY_TIMEOUT_MS = 10 * 6e4;
184
700
  READY_POLL_MS = 2e3;
185
701
  CALL_TIMEOUT_MS = 3 * 6e4;
186
702
  CALL_POLL_MS = 400;
703
+ JUDGED_GRADE_TIMEOUT_MS = 15 * 6e4;
704
+ JUDGED_GRADE_POLL_MS = 2e3;
705
+ EXPORT_PAGE = 500;
187
706
  sleep2 = (ms) => new Promise((r) => setTimeout(r, ms));
707
+ modelToolName = (name) => name.replace(/[^A-Za-z0-9_-]/g, "_").slice(0, 64) || "tool";
188
708
  WorldSessionTimeout = class extends Error {
189
709
  };
190
710
  WorldSessionCallError = class extends Error {
191
711
  };
192
712
  WorldSession = class {
193
- constructor(sessionId, state2, options) {
713
+ constructor(sessionId, current, options) {
194
714
  this.sessionId = sessionId;
195
- this.state = state2;
715
+ this.current = current;
196
716
  this.options = options;
197
717
  }
718
+ /** The task's display name: a bundled scenario's, or the inline spec's
719
+ * `name` (null when the spec was unnamed). Same as `taskName`. */
198
720
  get task() {
199
- return this.state.taskName;
721
+ return this.current.taskName;
722
+ }
723
+ /** The task's display name: a bundled scenario's, or the inline spec's
724
+ * `name` (null when the spec was unnamed). */
725
+ get taskName() {
726
+ return this.current.taskName;
200
727
  }
201
- /** What this task asks for — the bundle's own instruction.md. */
728
+ /** The platform's notices about the world this session runs on (empty
729
+ * for a schema world). Printed by the CLI on stderr at open. */
730
+ get deprecations() {
731
+ return this.current.deprecations ?? [];
732
+ }
733
+ /** The task this session runs: bundled scenario, stored task or inline
734
+ * spec, its name, hash and the caller's metadata. */
735
+ get taskInfo() {
736
+ return this.current.task ?? {
737
+ source: "bundled",
738
+ name: this.current.taskName,
739
+ hash: null,
740
+ metadata: {}
741
+ };
742
+ }
743
+ /** What this task asks for — the bundle's instruction.md, or the inline
744
+ * spec's `instruction`. */
202
745
  get instruction() {
203
- return this.state.instruction ?? null;
746
+ return this.current.instruction ?? null;
204
747
  }
205
748
  get versionId() {
206
- return this.state.versionId;
749
+ return this.current.versionId;
750
+ }
751
+ /** Whether the session answered ready as of the last state read (the open,
752
+ * a `status()`, or the poll inside `ready()`); no request is made. */
753
+ get isReady() {
754
+ return this.current.ready;
755
+ }
756
+ /** `api` / `ui` / `browser` are present exactly when the world declares
757
+ * them AND the session was opened asking for them. */
758
+ async surfaces() {
759
+ if (!this.current.surfaces) await this.status();
760
+ return this.current.surfaces ?? { tools: { kind: "rendezvous" } };
761
+ }
762
+ /** Base URL of the world's own HTTP API for this session. */
763
+ async api() {
764
+ const { api: api2 } = await this.surfaces();
765
+ if (!api2)
766
+ throw new WorldSurfaceUnavailable(
767
+ "api",
768
+ "open the session with surfaces: ['api'] on an api-type world"
769
+ );
770
+ return api2.url;
771
+ }
772
+ /** Headers every request to `api()` needs. A World Host session gates its
773
+ * api surface on a per-session token; a pod or hosted twin answers with the
774
+ * world's own declared auth and this is `{}`. */
775
+ async apiHeaders() {
776
+ const { api: api2 } = await this.surfaces();
777
+ return api2?.token ? { Authorization: `Bearer ${api2.token}` } : {};
778
+ }
779
+ /** URL of the world's UI entry page for this session. */
780
+ async ui() {
781
+ const { ui } = await this.surfaces();
782
+ if (!ui)
783
+ throw new WorldSurfaceUnavailable(
784
+ "ui",
785
+ "open the session with surfaces: ['ui'] on a world that declares [ui]"
786
+ );
787
+ return uiEntryUrl(ui);
788
+ }
789
+ /** A Playwright browser on this session's UI: `hosted` drives the one the
790
+ * platform runs next to the world, `local` launches one here, `auto`
791
+ * prefers hosted. Call `close()` when done.
792
+ *
793
+ * Every action is reported to the platform under `agentId` (default:
794
+ * `GATEWAY_AGENT_ID` or a fresh `agent-<hex>`) so the session page shows
795
+ * this agent's own timeline — several agents may share one session and
796
+ * one hosted browser. `record: false` opts out. */
797
+ async browser(opts = {}) {
798
+ const { agentId, record = true, ...rest } = opts;
799
+ return openBrowser(await this.surfaces(), {
800
+ ...rest,
801
+ recorder: record ? this.browserRecorder(agentId) : null
802
+ });
803
+ }
804
+ /** The reporter `browser()` uses; exposed for a page you drive yourself. */
805
+ browserRecorder(agentId) {
806
+ const path9 = `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}/browser-events`;
807
+ const id = agentId ?? process.env.GATEWAY_AGENT_ID ?? `agent-${(0, import_node_crypto.randomUUID)().replace(/-/g, "").slice(0, 8)}`;
808
+ return new BrowserActionRecorder(
809
+ async (events) => {
810
+ await apiRequest(this.options, "POST", path9, { events });
811
+ },
812
+ id,
813
+ {
814
+ // Continue this agent's timeline where the platform has it, so the
815
+ // same id reopened later never re-numbers from zero.
816
+ resumeFrom: async () => {
817
+ const summary = await apiRequest(this.options, "GET", path9);
818
+ return summary.agents.find((a) => a.agentId === id)?.nextSeq ?? 0;
819
+ }
820
+ }
821
+ );
822
+ }
823
+ /** Browser actions as model tools, in the same shape as `toolkit()`. */
824
+ computerUseTools(browser) {
825
+ return computerUseToolkit(browser);
207
826
  }
208
827
  /** The session's latest platform state (one request, no waiting). */
209
828
  async status() {
@@ -212,12 +831,14 @@ var init_session = __esm({
212
831
  "GET",
213
832
  `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}`
214
833
  );
215
- this.state = {
216
- instruction: this.state.instruction,
217
- tools: this.state.tools,
834
+ this.current = {
835
+ instruction: this.current.instruction,
836
+ tools: this.current.tools,
837
+ surfaces: this.current.surfaces,
838
+ task: this.current.task,
218
839
  ...fresh
219
840
  };
220
- return this.state;
841
+ return this.current;
221
842
  }
222
843
  /**
223
844
  * Wait until the container is warm — meaning the process inside it has
@@ -240,14 +861,18 @@ var init_session = __esm({
240
861
  }
241
862
  }
242
863
  /** Enqueue one interaction and wait for the container's answer. */
243
- async exchange(body, timeoutMs = CALL_TIMEOUT_MS) {
244
- const { callId } = await apiRequest(
864
+ async exchange(body, timeoutMs) {
865
+ const enqueued = await apiRequest(
245
866
  this.options,
246
867
  "POST",
247
868
  `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}/calls`,
248
869
  body
249
870
  );
250
- const deadline = Date.now() + timeoutMs;
871
+ const { callId } = enqueued;
872
+ const judged = enqueued.pending === true;
873
+ const budgetMs = timeoutMs ?? (judged ? JUDGED_GRADE_TIMEOUT_MS : CALL_TIMEOUT_MS);
874
+ const pollMs2 = judged ? JUDGED_GRADE_POLL_MS : CALL_POLL_MS;
875
+ const deadline = Date.now() + budgetMs;
251
876
  for (; ; ) {
252
877
  const call = await apiRequest(
253
878
  this.options,
@@ -260,9 +885,9 @@ var init_session = __esm({
260
885
  }
261
886
  if (Date.now() > deadline)
262
887
  throw new WorldSessionTimeout(
263
- `Call ${callId} still ${call.state} after ${Math.round(timeoutMs / 1e3)}s \u2014 the container may have died.`
888
+ 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.`
264
889
  );
265
- await sleep2(CALL_POLL_MS);
890
+ await sleep2(pollMs2);
266
891
  }
267
892
  }
268
893
  /**
@@ -286,15 +911,27 @@ var init_session = __esm({
286
911
  * hand-written map that still remembers the old name.
287
912
  */
288
913
  async toolkit() {
289
- let specs = this.state.tools;
914
+ let specs = this.current.tools;
290
915
  if (!specs) specs = (await this.status()).tools ?? [];
291
- const impls = {};
916
+ const impls = /* @__PURE__ */ Object.create(null);
292
917
  for (const spec of specs) {
293
- impls[spec.name] = (args = {}) => this.call(spec.name, args);
918
+ const alias = modelToolName(spec.name);
919
+ if (Object.hasOwn(impls, alias))
920
+ throw new WorldSessionCallError(`Model tool name collision: ${alias}`);
921
+ impls[alias] = (args = {}) => this.call(spec.name, args);
294
922
  }
295
923
  return { schemas: specs.map(schemaFromSignature), impls, specs };
296
924
  }
297
- /** Run the task's grader against the container's END STATE. */
925
+ /** Run the task's grader against the container's END STATE. Graders answer
926
+ * in one of two shapes: the scalar with named rewards beside it
927
+ * (`{reward, check_a, check_b}`, a task's own `grade.py`), or the named
928
+ * rewards nested under `rewards` (the api, mock-tools and World Host
929
+ * runners). Both land in `rewards`.
930
+ *
931
+ * A rubric grade is finalized by the platform's judge, not the container:
932
+ * the platform answers the enqueue with `pending: true`, and this waits on
933
+ * the judge's budget (15 min) instead of a call's. `timeoutMs` overrides
934
+ * either. */
298
935
  async grade(opts = {}) {
299
936
  const raw = await this.exchange(
300
937
  { kind: "grade" },
@@ -302,6 +939,12 @@ var init_session = __esm({
302
939
  );
303
940
  const record = raw && typeof raw === "object" ? raw : {};
304
941
  const rewards = {};
942
+ const nested = record.rewards;
943
+ if (nested && typeof nested === "object") {
944
+ for (const [key, value] of Object.entries(nested)) {
945
+ if (typeof value === "number") rewards[key] = value;
946
+ }
947
+ }
305
948
  for (const [key, value] of Object.entries(record)) {
306
949
  if (key !== "reward" && typeof value === "number") rewards[key] = value;
307
950
  }
@@ -311,6 +954,95 @@ var init_session = __esm({
311
954
  raw
312
955
  };
313
956
  }
957
+ /**
958
+ * Put rows into the LIVE world through its contract, in one batch:
959
+ * `append` (default) upserts by primary key, `replace` makes the named
960
+ * entities hold exactly these rows. Atomic — a refused row leaves the
961
+ * session unchanged and the error names the entity, row and field.
962
+ */
963
+ async seed(rows, opts = {}) {
964
+ const mode = opts.mode ?? "append";
965
+ const redact = opts.redact ?? "off";
966
+ return await this.exchange(
967
+ {
968
+ kind: "seed",
969
+ args: { mode, rows, ...redact !== "off" ? { redact } : {} }
970
+ },
971
+ opts.timeoutMs
972
+ );
973
+ }
974
+ /** Every entity's rows as the world holds them now — the same dump a
975
+ * grader reads. The shape is the world runtime's: a schema world answers
976
+ * `{<entity>: {<key>: row}, snapshot}`, a mock-tools world
977
+ * `{entities: {<entity>: [row]}}`. */
978
+ async state(opts = {}) {
979
+ return this.exchange({ kind: "state" }, opts.timeoutMs);
980
+ }
981
+ /** Back to the opening state: the version's data plus the bundled
982
+ * scenario's or the inline task's seed. Rows written since are gone; the
983
+ * call log stays. */
984
+ async reset(opts = {}) {
985
+ await this.exchange({ kind: "reset" }, opts.timeoutMs);
986
+ }
987
+ /** The session's call log, oldest first: every tool call, seed, reset,
988
+ * grade with its result — the record of the episode. */
989
+ async export() {
990
+ const calls = [];
991
+ let cursor;
992
+ do {
993
+ const params = new URLSearchParams({ limit: String(EXPORT_PAGE) });
994
+ if (cursor) params.set("cursor", cursor);
995
+ const page = await apiRequest(
996
+ this.options,
997
+ "GET",
998
+ `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}/calls?${params.toString()}`
999
+ );
1000
+ for (const call of page.calls) {
1001
+ calls.push({
1002
+ seq: Number(call.seq),
1003
+ kind: String(call.kind ?? "call"),
1004
+ tool: typeof call.tool === "string" ? call.tool : null,
1005
+ args: call.args ?? null,
1006
+ result: call.result ?? null,
1007
+ error: typeof call.error === "string" ? call.error : null,
1008
+ completedAt: typeof call.completedAt === "string" ? call.completedAt : null
1009
+ });
1010
+ }
1011
+ cursor = page.nextCursor ?? void 0;
1012
+ } while (cursor);
1013
+ return calls;
1014
+ }
1015
+ /**
1016
+ * Promote this session's inline task into a stored task of the project
1017
+ * (version 1, pinned to the session's world unless `world` says otherwise),
1018
+ * so a task written for one end user can be reused and its grades
1019
+ * compared. The session then records the new task's id. A session on a
1020
+ * bundled task has nothing to save; one on a stored task is already saved.
1021
+ */
1022
+ async saveTask(opts = {}) {
1023
+ const task = await apiRequest(
1024
+ this.options,
1025
+ "POST",
1026
+ `/api/public/world-sessions/${encodeURIComponent(this.sessionId)}/task`,
1027
+ {
1028
+ ...opts.name !== void 0 ? { name: opts.name } : {},
1029
+ ...opts.world !== void 0 ? { world: opts.world } : {},
1030
+ ...opts.message !== void 0 ? { message: opts.message } : {}
1031
+ }
1032
+ );
1033
+ this.current = {
1034
+ ...this.current,
1035
+ taskName: task.name,
1036
+ task: {
1037
+ ...this.taskInfo,
1038
+ source: "stored",
1039
+ name: task.name,
1040
+ id: task.id,
1041
+ version: task.version
1042
+ }
1043
+ };
1044
+ return task;
1045
+ }
314
1046
  /**
315
1047
  * End the session. `keepWarm` hands the container back to the pool instead
316
1048
  * of tearing it down, so the next session for the same task starts warm —
@@ -328,7 +1060,100 @@ var init_session = __esm({
328
1060
  }
329
1061
  });
330
1062
 
1063
+ // src/worlds/tasks.ts
1064
+ async function createTask(input, options = {}) {
1065
+ return apiRequest(
1066
+ options,
1067
+ "POST",
1068
+ TASKS,
1069
+ compact({
1070
+ spec: input.spec,
1071
+ name: input.name,
1072
+ world: input.world,
1073
+ message: input.message
1074
+ })
1075
+ );
1076
+ }
1077
+ async function updateTask(taskId, input, options = {}) {
1078
+ if (input.spec === void 0 && input.name === void 0 && input.world === void 0)
1079
+ throw new Error("updateTask: nothing to update \u2014 pass spec, name or world");
1080
+ return apiRequest(
1081
+ options,
1082
+ "PATCH",
1083
+ taskRoute(taskId),
1084
+ compact({
1085
+ spec: input.spec,
1086
+ name: input.name,
1087
+ world: input.world,
1088
+ message: input.message
1089
+ })
1090
+ );
1091
+ }
1092
+ async function listTasks(filter = {}, options = {}) {
1093
+ const params = new URLSearchParams();
1094
+ if (filter.world) params.set("world", filter.world);
1095
+ if (filter.page !== void 0) params.set("page", String(filter.page));
1096
+ if (filter.limit !== void 0) params.set("limit", String(filter.limit));
1097
+ for (const [key, value] of Object.entries(filter.metadata ?? {}))
1098
+ params.set(`metadata.${key}`, value);
1099
+ const query = params.toString();
1100
+ return apiRequest(
1101
+ options,
1102
+ "GET",
1103
+ query ? `${TASKS}?${query}` : TASKS
1104
+ );
1105
+ }
1106
+ async function getTask(taskId, opts = {}, options = {}) {
1107
+ const query = opts.version === void 0 ? "" : `?version=${String(opts.version)}`;
1108
+ return apiRequest(
1109
+ options,
1110
+ "GET",
1111
+ `${taskRoute(taskId)}${query}`
1112
+ );
1113
+ }
1114
+ async function deleteTask(taskId, options = {}) {
1115
+ return apiRequest(options, "DELETE", taskRoute(taskId));
1116
+ }
1117
+ async function validateTask(taskId, target = {}, options = {}) {
1118
+ return apiRequest(
1119
+ options,
1120
+ "POST",
1121
+ `${taskRoute(taskId)}/validate`,
1122
+ compact({
1123
+ version: target.version,
1124
+ slug: target.slug,
1125
+ versionId: target.versionId
1126
+ })
1127
+ );
1128
+ }
1129
+ var TASKS, taskRoute, compact;
1130
+ var init_tasks = __esm({
1131
+ "src/worlds/tasks.ts"() {
1132
+ "use strict";
1133
+ init_worlds();
1134
+ TASKS = "/api/public/world-tasks";
1135
+ taskRoute = (id) => `${TASKS}/${encodeURIComponent(id)}`;
1136
+ compact = (body) => Object.fromEntries(Object.entries(body).filter(([, v]) => v !== void 0));
1137
+ }
1138
+ });
1139
+
331
1140
  // src/worlds/hub.ts
1141
+ var hub_exports = {};
1142
+ __export(hub_exports, {
1143
+ DEFAULT_BRANCH: () => DEFAULT_BRANCH,
1144
+ buildSourceTarball: () => buildSourceTarball,
1145
+ collectArchiveRelPaths: () => collectArchiveRelPaths,
1146
+ computeContentHash: () => computeContentHash,
1147
+ createRef: () => createRef,
1148
+ isIncludedInContentHash: () => isIncludedInContentHash,
1149
+ localTreeState: () => localTreeState,
1150
+ propose: () => propose,
1151
+ pull: () => pull,
1152
+ push: () => push,
1153
+ readLocalMeta: () => readLocalMeta,
1154
+ snapshotTreeHashes: () => snapshotTreeHashes,
1155
+ writeLocalMeta: () => writeLocalMeta
1156
+ });
332
1157
  function isExcludedDirComponent(component) {
333
1158
  return component.startsWith(".") || ROOT_EXCLUDED_DIRS.has(component) || component.endsWith(".egg-info");
334
1159
  }
@@ -370,7 +1195,7 @@ function collectArchiveRelPaths(dir) {
370
1195
  return out.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
371
1196
  }
372
1197
  function computeContentHash(dir) {
373
- const hasher = (0, import_node_crypto.createHash)("sha256");
1198
+ const hasher = (0, import_node_crypto2.createHash)("sha256");
374
1199
  for (const relPath of collectArchiveRelPaths(dir)) {
375
1200
  hasher.update(Buffer.from(`file:${relPath}`, "utf-8"));
376
1201
  hasher.update(fs.readFileSync(path.join(dir, relPath)));
@@ -444,7 +1269,7 @@ function writeLocalMeta(dir, meta) {
444
1269
  function snapshotTreeHashes(dir) {
445
1270
  const out = {};
446
1271
  for (const relPath of collectArchiveRelPaths(dir)) {
447
- out[relPath] = (0, import_node_crypto.createHash)("sha256").update(fs.readFileSync(path.join(dir, relPath))).digest("hex");
1272
+ out[relPath] = (0, import_node_crypto2.createHash)("sha256").update(fs.readFileSync(path.join(dir, relPath))).digest("hex");
448
1273
  }
449
1274
  return out;
450
1275
  }
@@ -462,8 +1287,8 @@ function localTreeState(dir) {
462
1287
  }
463
1288
  function readPyproject(dir) {
464
1289
  try {
465
- const text = fs.readFileSync(path.join(dir, "pyproject.toml"), "utf-8");
466
- const section = /\[project\]([\s\S]*?)(\n\[|$)/.exec(text)?.[1] ?? "";
1290
+ const text2 = fs.readFileSync(path.join(dir, "pyproject.toml"), "utf-8");
1291
+ const section = /\[project\]([\s\S]*?)(\n\[|$)/.exec(text2)?.[1] ?? "";
467
1292
  const name = /\bname\s*=\s*"([^"]+)"/.exec(section)?.[1];
468
1293
  const version = /\bversion\s*=\s*"([^"]+)"/.exec(section)?.[1];
469
1294
  return { name, version };
@@ -471,6 +1296,17 @@ function readPyproject(dir) {
471
1296
  return {};
472
1297
  }
473
1298
  }
1299
+ function readWorldContractVersion(dir) {
1300
+ for (const rel of ["schema/world.json", path.join("server", "world", "schema", "world.json")]) {
1301
+ try {
1302
+ const parsed = JSON.parse(fs.readFileSync(path.join(dir, rel), "utf-8"));
1303
+ const pkg = parsed["x-gateway"]?.package;
1304
+ if (pkg?.version) return { name: pkg.id, version: pkg.version };
1305
+ } catch {
1306
+ }
1307
+ }
1308
+ return {};
1309
+ }
474
1310
  function buildFileManifest(dir) {
475
1311
  const entries = [];
476
1312
  const walk = (rel) => {
@@ -487,7 +1323,7 @@ function buildFileManifest(dir) {
487
1323
  path: childRel,
488
1324
  isDirectory: false,
489
1325
  size: payload.length,
490
- sha256: (0, import_node_crypto.createHash)("sha256").update(payload).digest("hex")
1326
+ sha256: (0, import_node_crypto2.createHash)("sha256").update(payload).digest("hex")
491
1327
  });
492
1328
  }
493
1329
  }
@@ -516,17 +1352,25 @@ async function push(dir, opts = {}) {
516
1352
  const baseVersionId = opts.baseVersionId ?? localMeta.versionId ?? null;
517
1353
  const contentHash = computeContentHash(dir);
518
1354
  const pyproject = readPyproject(dir);
1355
+ const contractVersion = pyproject.version ? void 0 : readWorldContractVersion(dir).version;
1356
+ if (contractVersion) pyproject.version = contractVersion;
519
1357
  const slug = opts.slug ?? pyproject.name ?? path.basename(path.resolve(dir));
520
- const resolve2 = await apiRequest(
1358
+ const resolve7 = await apiRequest(
521
1359
  options,
522
1360
  "POST",
523
1361
  "/api/public/benchmark-containers/resolve",
524
- { slug, name: pyproject.name ?? slug }
1362
+ {
1363
+ slug,
1364
+ name: opts.name ?? pyproject.name ?? slug,
1365
+ ...opts.description ? { description: opts.description } : {},
1366
+ ...opts.tags?.length ? { tags: opts.tags } : {},
1367
+ ...opts.visibility ? { visibility: opts.visibility } : {}
1368
+ }
525
1369
  );
526
1370
  const tarball = buildSourceTarball(dir);
527
1371
  const bundleSha256 = sha256b64(tarball);
528
1372
  const version = await apiRequest(options, "POST", "/api/public/benchmark-containers/versions", {
529
- containerId: resolve2.containerId,
1373
+ containerId: resolve7.containerId,
530
1374
  contentHash,
531
1375
  bundleSha256,
532
1376
  bundleSizeBytes: tarball.length,
@@ -537,10 +1381,11 @@ async function push(dir, opts = {}) {
537
1381
  baseVersionId,
538
1382
  ...opts.force ? { force: true } : {},
539
1383
  ...opts.message ? { changeReason: opts.message } : {},
540
- ...opts.author ? { author: opts.author } : {}
1384
+ ...opts.author ? { author: opts.author } : {},
1385
+ ...opts.imageRef ? { imageRef: opts.imageRef } : {}
541
1386
  });
542
1387
  if (version.uploadUrl) await putObject(version.uploadUrl, tarball, bundleSha256);
543
- await apiRequest(
1388
+ const final = await apiRequest(
544
1389
  options,
545
1390
  "POST",
546
1391
  `/api/public/benchmark-containers/versions/${version.versionId}/finalize`,
@@ -557,7 +1402,15 @@ async function push(dir, opts = {}) {
557
1402
  forkedFromVersionId: baseVersionId,
558
1403
  baseFiles: snapshotTreeHashes(dir)
559
1404
  });
560
- return { slug, versionId: version.versionId, contentHash, branch };
1405
+ return {
1406
+ containerId: resolve7.containerId,
1407
+ slug,
1408
+ versionId: version.versionId,
1409
+ contentHash,
1410
+ branch: final.branch ?? branch,
1411
+ state: final.state ?? null,
1412
+ alreadyUploaded: Boolean(version.alreadyUploaded)
1413
+ };
561
1414
  }
562
1415
  function extractBundle(bundle, dir) {
563
1416
  const tar = (0, import_node_zlib.gunzipSync)(bundle);
@@ -666,11 +1519,11 @@ async function createRef(slug, name, kind, versionId, options = {}) {
666
1519
  ...versionId ? { versionId } : {}
667
1520
  });
668
1521
  }
669
- var import_node_crypto, import_node_zlib, fs, path, DEFAULT_BRANCH, META_RELPATH, SKIP_DIRS, ROOT_EXCLUDED_DIRS, BROAD_ROOT_MARKERS, sha256b64;
1522
+ var import_node_crypto2, import_node_zlib, fs, path, DEFAULT_BRANCH, META_RELPATH, SKIP_DIRS, ROOT_EXCLUDED_DIRS, BROAD_ROOT_MARKERS, sha256b64;
670
1523
  var init_hub = __esm({
671
1524
  "src/worlds/hub.ts"() {
672
1525
  "use strict";
673
- import_node_crypto = require("crypto");
1526
+ import_node_crypto2 = require("crypto");
674
1527
  import_node_zlib = require("zlib");
675
1528
  fs = __toESM(require("fs"));
676
1529
  path = __toESM(require("path"));
@@ -689,7 +1542,7 @@ var init_hub = __esm({
689
1542
  ]);
690
1543
  ROOT_EXCLUDED_DIRS = /* @__PURE__ */ new Set(["dist", "build", "outputs", "__pycache__"]);
691
1544
  BROAD_ROOT_MARKERS = ["gateway-env.toml", "gateway-api-world.toml"];
692
- sha256b64 = (data) => (0, import_node_crypto.createHash)("sha256").update(data).digest("base64");
1545
+ sha256b64 = (data) => (0, import_node_crypto2.createHash)("sha256").update(data).digest("base64");
693
1546
  }
694
1547
  });
695
1548
 
@@ -749,168 +1602,1971 @@ function buildMarkdown(report, minScore, source) {
749
1602
  lines.push("</details>");
750
1603
  }
751
1604
  }
752
- return lines.join("\n");
1605
+ return lines.join("\n");
1606
+ }
1607
+ async function validateWorld(dir, opts) {
1608
+ const options = opts.options ?? {};
1609
+ const progress = opts.onProgress ?? (() => {
1610
+ });
1611
+ const minScore = opts.minScore ?? null;
1612
+ const provenance = detectProvenance();
1613
+ const branch = opts.branch ?? provenance.branch;
1614
+ if (!branch)
1615
+ throw new Error(
1616
+ "No branch to validate on: pass --branch or run inside a git checkout / GitHub Actions."
1617
+ );
1618
+ progress(`pushing ${dir} as ${opts.slug ?? "(pyproject name)"}@${branch}\u2026`);
1619
+ let tipVersionId = null;
1620
+ if (opts.slug) {
1621
+ try {
1622
+ const tip = await apiRequest(
1623
+ options,
1624
+ "POST",
1625
+ "/api/public/benchmark-containers/resolve-version",
1626
+ { slug: opts.slug, ref: branch }
1627
+ );
1628
+ tipVersionId = tip.versionId ?? null;
1629
+ } catch {
1630
+ tipVersionId = null;
1631
+ }
1632
+ }
1633
+ const pushed = await push(dir, {
1634
+ slug: opts.slug,
1635
+ branch,
1636
+ baseVersionId: tipVersionId,
1637
+ message: `PR validation push (${provenance.commit?.slice(0, 12) ?? "local"})`,
1638
+ ...provenance.actor?.name ? { author: provenance.actor.name } : {},
1639
+ options
1640
+ });
1641
+ progress(`pushed version ${pushed.versionId} (${pushed.contentHash.slice(0, 12)})`);
1642
+ const configs = await listRunConfigs(options);
1643
+ const runConfig = configs.find((c) => c.id === opts.runConfig) ?? configs.find((c) => c.name === opts.runConfig);
1644
+ if (!runConfig) {
1645
+ const known = configs.map((c) => c.name).join(", ") || "(none)";
1646
+ throw new Error(
1647
+ `Run config "${opts.runConfig}" not found in this project. Have: ${known}`
1648
+ );
1649
+ }
1650
+ progress(`dispatching run config "${runConfig.name}" (${runConfig.models.join(", ")})\u2026`);
1651
+ const dispatched = await apiRequest(options, "POST", "/api/public/benchmark-containers/run-configs/dispatch", {
1652
+ runConfigId: runConfig.id,
1653
+ versionId: pushed.versionId,
1654
+ ...provenance
1655
+ });
1656
+ const host = (options.host ?? process.env.GATEWAY_HOST ?? "https://withgateway.ai").replace(/\/+$/, "");
1657
+ let projectId = null;
1658
+ try {
1659
+ const projects = await apiRequest(
1660
+ options,
1661
+ "GET",
1662
+ "/api/public/projects"
1663
+ );
1664
+ projectId = projects.data?.[0]?.id ?? null;
1665
+ } catch {
1666
+ projectId = null;
1667
+ }
1668
+ const fallbackUrl = (report) => {
1669
+ if (report.url) return report.url;
1670
+ const evaluationId = report.evaluations[0]?.id;
1671
+ return projectId && evaluationId ? `${host}/project/${projectId}/environment/runs/${encodeURIComponent(evaluationId)}` : null;
1672
+ };
1673
+ const runs = [];
1674
+ for (const run of dispatched.runs) {
1675
+ if (!run.ok) {
1676
+ runs.push({
1677
+ model: run.model,
1678
+ runId: run.runId,
1679
+ report: null,
1680
+ failure: `dispatch failed: ${run.error ?? "unknown error"}`
1681
+ });
1682
+ continue;
1683
+ }
1684
+ progress(`waiting on ${run.model} (run ${run.runId})\u2026`);
1685
+ let report = null;
1686
+ let failure = null;
1687
+ try {
1688
+ report = await waitForRun(run.runId, {
1689
+ timeoutMinutes: opts.timeoutMinutes ?? 45,
1690
+ options,
1691
+ onTick: (r) => progress(
1692
+ `\u2026${run.model}: ${r.status.toLowerCase()} (${r.shardsCompleted ?? 0}/${r.parallelism} shards)`
1693
+ )
1694
+ });
1695
+ report = { ...report, url: fallbackUrl(report) };
1696
+ if (report.status.toUpperCase() !== "COMPLETED") {
1697
+ failure = report.status;
1698
+ } else if (minScore !== null) {
1699
+ if (report.score === null) failure = "completed without a score";
1700
+ else if (report.score < minScore)
1701
+ failure = `score ${fmtScore(report.score)} < ${minScore}`;
1702
+ }
1703
+ } catch (error) {
1704
+ failure = error instanceof Error ? error.message : String(error);
1705
+ }
1706
+ runs.push({ model: run.model, runId: run.runId, report, failure });
1707
+ }
1708
+ const base = {
1709
+ ok: runs.length > 0 && runs.every((r) => r.failure === null),
1710
+ slug: pushed.slug,
1711
+ branch,
1712
+ versionId: pushed.versionId,
1713
+ contentHash: pushed.contentHash,
1714
+ runConfig: { id: runConfig.id, name: runConfig.name },
1715
+ runs
1716
+ };
1717
+ return {
1718
+ ...base,
1719
+ markdown: buildMarkdown(base, minScore, {
1720
+ repoUrl: provenance.repoUrl,
1721
+ commit: provenance.commit
1722
+ })
1723
+ };
1724
+ }
1725
+ var init_validate = __esm({
1726
+ "src/worlds/validate.ts"() {
1727
+ "use strict";
1728
+ init_worlds();
1729
+ init_hub();
1730
+ }
1731
+ });
1732
+
1733
+ // src/worlds/describe.ts
1734
+ async function describeWorld(slug, options = {}) {
1735
+ if (slug.includes("@"))
1736
+ throw new Error(
1737
+ `describeWorld reads a world's head version: pass the slug without @ref (got ${slug})`
1738
+ );
1739
+ return apiRequest(
1740
+ options,
1741
+ "GET",
1742
+ `/api/public/worlds/${encodeURIComponent(slug)}`
1743
+ );
1744
+ }
1745
+ var init_describe = __esm({
1746
+ "src/worlds/describe.ts"() {
1747
+ "use strict";
1748
+ init_worlds();
1749
+ }
1750
+ });
1751
+
1752
+ // src/cli/platform/worldData/json.ts
1753
+ function parseJson(text2) {
1754
+ const p = new Parser(text2);
1755
+ p.skipWs();
1756
+ const value = p.value();
1757
+ p.skipWs();
1758
+ if (p.i < text2.length) throw new JsonSyntaxError(`Extra data at ${p.i}`);
1759
+ return value;
1760
+ }
1761
+ function dumps(value) {
1762
+ if (value === null) return "null";
1763
+ if (value === true) return "true";
1764
+ if (value === false) return "false";
1765
+ if (typeof value === "string") return JSON.stringify(value);
1766
+ if (value instanceof JsonNumber) return numberText(value);
1767
+ if (Array.isArray(value)) return "[" + value.map(dumps).join(",") + "]";
1768
+ const parts = [];
1769
+ for (const [key, item] of value) parts.push(JSON.stringify(key) + ":" + dumps(item));
1770
+ return "{" + parts.join(",") + "}";
1771
+ }
1772
+ function numberText(n) {
1773
+ if (!n.isFloat) return /^-0+$/.test(n.text) ? "0" : n.text;
1774
+ const value = n.value;
1775
+ if (Number.isNaN(value)) return "NaN";
1776
+ if (value === Infinity) return "Infinity";
1777
+ if (value === -Infinity) return "-Infinity";
1778
+ return pyFloatRepr(value);
1779
+ }
1780
+ function pyFloatRepr(x) {
1781
+ if (x === 0) return Object.is(x, -0) ? "-0.0" : "0.0";
1782
+ const sign = x < 0 ? "-" : "";
1783
+ const js = String(Math.abs(x));
1784
+ const [mantissa, exponentPart] = js.split("e");
1785
+ let exponent = exponentPart ? Number(exponentPart) : 0;
1786
+ const [intPart, fracPart = ""] = mantissa.split(".");
1787
+ let digits = intPart + fracPart;
1788
+ let decpt = intPart.length + exponent;
1789
+ const leading = digits.match(/^0*/)[0].length;
1790
+ digits = digits.slice(leading);
1791
+ decpt -= leading;
1792
+ digits = digits.replace(/0+$/, "");
1793
+ if (digits === "") return sign + "0.0";
1794
+ const sci = decpt - 1;
1795
+ if (sci >= -4 && sci < 16) {
1796
+ if (decpt <= 0) return sign + "0." + "0".repeat(-decpt) + digits;
1797
+ if (decpt >= digits.length) return sign + digits + "0".repeat(decpt - digits.length) + ".0";
1798
+ return sign + digits.slice(0, decpt) + "." + digits.slice(decpt);
1799
+ }
1800
+ exponent = sci;
1801
+ const mag = String(Math.abs(exponent)).padStart(2, "0");
1802
+ return sign + digits[0] + (digits.length > 1 ? "." + digits.slice(1) : "") + "e" + (exponent < 0 ? "-" : "+") + mag;
1803
+ }
1804
+ function pyRound(n, ndigits) {
1805
+ if (!n.isFloat) return n;
1806
+ const x = n.value;
1807
+ if (!Number.isFinite(x)) return n;
1808
+ const sign = x < 0 ? -1 : 1;
1809
+ const magnitude = Math.abs(x);
1810
+ if (magnitude >= 9007199254740992) return new JsonNumber(pyFloatRepr(x));
1811
+ const { m, k } = exactFraction(magnitude);
1812
+ let rounded;
1813
+ if (k <= ndigits) rounded = magnitude;
1814
+ else if (k !== ndigits + 1) rounded = Number(magnitude.toFixed(ndigits));
1815
+ else {
1816
+ const scaled = m * 5n ** BigInt(k);
1817
+ let kept = scaled / 10n;
1818
+ if (kept % 2n === 1n) kept += 1n;
1819
+ const text2 = kept.toString().padStart(ndigits + 1, "0");
1820
+ rounded = ndigits === 0 ? Number(text2) : Number(text2.slice(0, -ndigits) + "." + text2.slice(-ndigits));
1821
+ }
1822
+ return new JsonNumber(pyFloatRepr(sign * rounded));
1823
+ }
1824
+ function exactFraction(x) {
1825
+ if (x === 0) return { m: 0n, k: 0 };
1826
+ const view = new DataView(new ArrayBuffer(8));
1827
+ view.setFloat64(0, x);
1828
+ const bits = view.getBigUint64(0);
1829
+ const exponent = Number(bits >> 52n & 0x7ffn);
1830
+ let mantissa = bits & (1n << 52n) - 1n;
1831
+ let e;
1832
+ if (exponent === 0) e = -1074;
1833
+ else {
1834
+ mantissa |= 1n << 52n;
1835
+ e = exponent - 1075;
1836
+ }
1837
+ while (mantissa !== 0n && (mantissa & 1n) === 0n) {
1838
+ mantissa >>= 1n;
1839
+ e += 1;
1840
+ }
1841
+ if (e >= 0) return { m: mantissa << BigInt(e), k: 0 };
1842
+ return { m: mantissa, k: -e };
1843
+ }
1844
+ var JsonNumber, JsonSyntaxError, Parser, isDigit;
1845
+ var init_json = __esm({
1846
+ "src/cli/platform/worldData/json.ts"() {
1847
+ "use strict";
1848
+ JsonNumber = class {
1849
+ /** The lexeme as it appeared, e.g. "1.0", "-0", "1e21". */
1850
+ constructor(text2) {
1851
+ this.text = text2;
1852
+ }
1853
+ /** A float in Python's eyes: a fraction, an exponent, or a non-finite literal. */
1854
+ get isFloat() {
1855
+ return /[.eE]/.test(this.text) || /[nN]/.test(this.text);
1856
+ }
1857
+ get value() {
1858
+ return Number(this.text);
1859
+ }
1860
+ };
1861
+ JsonSyntaxError = class extends Error {
1862
+ };
1863
+ Parser = class {
1864
+ constructor(s) {
1865
+ this.s = s;
1866
+ }
1867
+ i = 0;
1868
+ skipWs() {
1869
+ const s = this.s;
1870
+ while (this.i < s.length) {
1871
+ const c = s.charCodeAt(this.i);
1872
+ if (c === 32 || c === 10 || c === 13 || c === 9) this.i++;
1873
+ else break;
1874
+ }
1875
+ }
1876
+ fail(what) {
1877
+ throw new JsonSyntaxError(`${what} at ${this.i}`);
1878
+ }
1879
+ value() {
1880
+ const s = this.s;
1881
+ if (this.i >= s.length) this.fail("Expecting value");
1882
+ const c = s[this.i];
1883
+ if (c === "{") return this.object();
1884
+ if (c === "[") return this.array();
1885
+ if (c === '"') return this.string();
1886
+ if (c === "t") return this.literal("true", true);
1887
+ if (c === "f") return this.literal("false", false);
1888
+ if (c === "n") return this.literal("null", null);
1889
+ if (c === "N") return this.literal("NaN", new JsonNumber("NaN"));
1890
+ if (c === "I") return this.literal("Infinity", new JsonNumber("Infinity"));
1891
+ return this.number();
1892
+ }
1893
+ literal(word, value) {
1894
+ if (!this.s.startsWith(word, this.i)) this.fail("Expecting value");
1895
+ this.i += word.length;
1896
+ return value;
1897
+ }
1898
+ number() {
1899
+ const s = this.s;
1900
+ const start = this.i;
1901
+ if (s[this.i] === "-") {
1902
+ this.i++;
1903
+ if (s.startsWith("Infinity", this.i)) {
1904
+ this.i += 8;
1905
+ return new JsonNumber("-Infinity");
1906
+ }
1907
+ }
1908
+ const intStart = this.i;
1909
+ if (s[this.i] === "0") this.i++;
1910
+ else {
1911
+ while (this.i < s.length && isDigit(s.charCodeAt(this.i))) this.i++;
1912
+ if (this.i === intStart) this.fail("Expecting value");
1913
+ }
1914
+ if (s[this.i] === ".") {
1915
+ this.i++;
1916
+ const fracStart = this.i;
1917
+ while (this.i < s.length && isDigit(s.charCodeAt(this.i))) this.i++;
1918
+ if (this.i === fracStart) this.fail("Invalid number");
1919
+ }
1920
+ if (s[this.i] === "e" || s[this.i] === "E") {
1921
+ this.i++;
1922
+ if (s[this.i] === "+" || s[this.i] === "-") this.i++;
1923
+ const expStart = this.i;
1924
+ while (this.i < s.length && isDigit(s.charCodeAt(this.i))) this.i++;
1925
+ if (this.i === expStart) this.fail("Invalid number");
1926
+ }
1927
+ return new JsonNumber(s.slice(start, this.i));
1928
+ }
1929
+ string() {
1930
+ const s = this.s;
1931
+ this.i++;
1932
+ let out = "";
1933
+ let runStart = this.i;
1934
+ for (; ; ) {
1935
+ if (this.i >= s.length) this.fail("Unterminated string");
1936
+ const c = s.charCodeAt(this.i);
1937
+ if (c === 34) {
1938
+ out += s.slice(runStart, this.i);
1939
+ this.i++;
1940
+ return out;
1941
+ }
1942
+ if (c < 32) this.fail("Invalid control character");
1943
+ if (c !== 92) {
1944
+ this.i++;
1945
+ continue;
1946
+ }
1947
+ out += s.slice(runStart, this.i);
1948
+ this.i++;
1949
+ const e = s[this.i];
1950
+ switch (e) {
1951
+ case '"':
1952
+ case "\\":
1953
+ case "/":
1954
+ out += e;
1955
+ break;
1956
+ case "b":
1957
+ out += "\b";
1958
+ break;
1959
+ case "f":
1960
+ out += "\f";
1961
+ break;
1962
+ case "n":
1963
+ out += "\n";
1964
+ break;
1965
+ case "r":
1966
+ out += "\r";
1967
+ break;
1968
+ case "t":
1969
+ out += " ";
1970
+ break;
1971
+ case "u": {
1972
+ const hex2 = s.slice(this.i + 1, this.i + 5);
1973
+ if (!/^[0-9a-fA-F]{4}$/.test(hex2)) this.fail("Invalid \\u escape");
1974
+ out += String.fromCharCode(parseInt(hex2, 16));
1975
+ this.i += 4;
1976
+ break;
1977
+ }
1978
+ default:
1979
+ this.fail("Invalid escape");
1980
+ }
1981
+ this.i++;
1982
+ runStart = this.i;
1983
+ }
1984
+ }
1985
+ array() {
1986
+ this.i++;
1987
+ const out = [];
1988
+ this.skipWs();
1989
+ if (this.s[this.i] === "]") {
1990
+ this.i++;
1991
+ return out;
1992
+ }
1993
+ for (; ; ) {
1994
+ this.skipWs();
1995
+ out.push(this.value());
1996
+ this.skipWs();
1997
+ const c = this.s[this.i];
1998
+ if (c === ",") {
1999
+ this.i++;
2000
+ continue;
2001
+ }
2002
+ if (c === "]") {
2003
+ this.i++;
2004
+ return out;
2005
+ }
2006
+ this.fail("Expecting ',' delimiter");
2007
+ }
2008
+ }
2009
+ object() {
2010
+ this.i++;
2011
+ const out = /* @__PURE__ */ new Map();
2012
+ this.skipWs();
2013
+ if (this.s[this.i] === "}") {
2014
+ this.i++;
2015
+ return out;
2016
+ }
2017
+ for (; ; ) {
2018
+ this.skipWs();
2019
+ if (this.s[this.i] !== '"') this.fail("Expecting property name enclosed in double quotes");
2020
+ const key = this.string();
2021
+ this.skipWs();
2022
+ if (this.s[this.i] !== ":") this.fail("Expecting ':' delimiter");
2023
+ this.i++;
2024
+ this.skipWs();
2025
+ out.set(key, this.value());
2026
+ this.skipWs();
2027
+ const c = this.s[this.i];
2028
+ if (c === ",") {
2029
+ this.i++;
2030
+ continue;
2031
+ }
2032
+ if (c === "}") {
2033
+ this.i++;
2034
+ return out;
2035
+ }
2036
+ this.fail("Expecting ',' delimiter");
2037
+ }
2038
+ }
2039
+ };
2040
+ isDigit = (c) => c >= 48 && c <= 57;
2041
+ }
2042
+ });
2043
+
2044
+ // src/worlds/transforms.ts
2045
+ function parseTransform(name) {
2046
+ const simple = Object.prototype.hasOwnProperty.call(SIMPLE, name) ? SIMPLE[name] : void 0;
2047
+ if (simple) return simple;
2048
+ const colon = name.indexOf(":");
2049
+ if (colon !== -1) {
2050
+ const head = name.slice(0, colon);
2051
+ const prefix = name.slice(colon + 1);
2052
+ if (head === STRIP_PREFIX && prefix && !prefix.includes(",")) return stripPrefix(prefix);
2053
+ }
2054
+ throw new Error(`Unknown transform '${name}'; choose one of ${TRANSFORMS.join(", ")}`);
2055
+ }
2056
+ function applyTransforms(value, chain) {
2057
+ const steps = chain.map(parseTransform);
2058
+ let out = text(value);
2059
+ for (const step of steps) out = step(out);
2060
+ return out;
2061
+ }
2062
+ var import_node_crypto3, WHITESPACE, WHITESPACE_EDGES, WHITESPACE_RUN, NOT_DIGIT, STRIP_PREFIX, trim, emailLocalPart, emailDomain, stripPrefix, hex, SIMPLE, TRANSFORMS, text;
2063
+ var init_transforms = __esm({
2064
+ "src/worlds/transforms.ts"() {
2065
+ "use strict";
2066
+ import_node_crypto3 = require("crypto");
2067
+ init_json();
2068
+ WHITESPACE = " \n\r\f\v";
2069
+ WHITESPACE_EDGES = /^[ \t\n\r\f\v]+|[ \t\n\r\f\v]+$/g;
2070
+ WHITESPACE_RUN = /[ \t\n\r\f\v]+/g;
2071
+ NOT_DIGIT = /[^0-9]/g;
2072
+ STRIP_PREFIX = "strip_prefix";
2073
+ trim = (value) => value.replace(WHITESPACE_EDGES, "");
2074
+ emailLocalPart = (value) => {
2075
+ const at = value.lastIndexOf("@");
2076
+ return at === -1 ? value : value.slice(0, at);
2077
+ };
2078
+ emailDomain = (value) => {
2079
+ const at = value.lastIndexOf("@");
2080
+ return at === -1 ? "" : value.slice(at + 1).toLowerCase();
2081
+ };
2082
+ stripPrefix = (prefix) => (value) => value.startsWith(prefix) ? value.slice(prefix.length) : value;
2083
+ hex = (algorithm, value) => (0, import_node_crypto3.createHash)(algorithm).update(value, "utf8").digest("hex");
2084
+ SIMPLE = {
2085
+ lower: (value) => value.toLowerCase(),
2086
+ upper: (value) => value.toUpperCase(),
2087
+ trim,
2088
+ collapse_ws: (value) => trim(value).replace(WHITESPACE_RUN, " "),
2089
+ nfkc: (value) => value.normalize("NFKC"),
2090
+ digits: (value) => value.replace(NOT_DIGIT, ""),
2091
+ email_local_part: emailLocalPart,
2092
+ email_domain: emailDomain,
2093
+ // Vendor-style digests: lowercase hex of the utf-8 bytes, unsalted. This is
2094
+ // how SpyCloud accepts a hashed selector (`_digests` in its api_handlers).
2095
+ sha1: (value) => hex("sha1", value),
2096
+ sha256: (value) => hex("sha256", value)
2097
+ };
2098
+ TRANSFORMS = [...Object.keys(SIMPLE), `${STRIP_PREFIX}:<prefix>`];
2099
+ text = (value) => {
2100
+ if (typeof value === "string") return value;
2101
+ return Number.isInteger(value) ? String(value) : pyFloatRepr(value);
2102
+ };
2103
+ }
2104
+ });
2105
+
2106
+ // src/worlds/redaction.ts
2107
+ function pyText(value) {
2108
+ if (typeof value === "string") return value;
2109
+ if (Number.isInteger(value)) return String(value);
2110
+ if (Number.isNaN(value)) return "nan";
2111
+ if (!Number.isFinite(value)) return value > 0 ? "inf" : "-inf";
2112
+ return pyFloatRepr(value);
2113
+ }
2114
+ function hashForm(slug, plaintext) {
2115
+ return "sha256:" + (0, import_node_crypto4.createHash)("sha256").update(`${slug}:${pyText(plaintext)}`, "utf8").digest("hex");
2116
+ }
2117
+ function preserveForm(slug, plaintext) {
2118
+ const kind = typeof plaintext === "string" ? "str" : isInt(plaintext) ? "int" : "float";
2119
+ const shaped = shapeText(slug, pyText(plaintext), kind);
2120
+ return kind === "str" ? shaped : Number(shaped);
2121
+ }
2122
+ function shapeText(slug, text2, kind) {
2123
+ const seed = Buffer.from(`${slug}:${text2}`, "utf8");
2124
+ let digest = (0, import_node_crypto4.createHash)("sha256").update(seed).digest();
2125
+ let cursor = 0;
2126
+ const out = [];
2127
+ for (const char of text2) {
2128
+ if (cursor === digest.length) {
2129
+ digest = (0, import_node_crypto4.createHash)("sha256").update(Buffer.concat([digest, seed])).digest();
2130
+ cursor = 0;
2131
+ }
2132
+ const byte = digest[cursor];
2133
+ cursor += 1;
2134
+ if (char >= "0" && char <= "9") out.push(String(byte % 10));
2135
+ else if (kind === "str" && char >= "a" && char <= "z") out.push(String.fromCharCode(97 + byte % 26));
2136
+ else if (kind === "str" && char >= "A" && char <= "Z") out.push(String.fromCharCode(65 + byte % 26));
2137
+ else out.push(char);
2138
+ }
2139
+ if (kind === "int" && out.length > 1 && out[0] === "0") out[0] = String(1 + digest[0] % 9);
2140
+ return out.join("");
2141
+ }
2142
+ function roundForm(plaintext, decimals) {
2143
+ if (typeof plaintext === "string" || isInt(plaintext) || !Number.isFinite(plaintext)) return plaintext;
2144
+ return pyRound(new JsonNumber(pyFloatRepr(plaintext)), decimals).value;
2145
+ }
2146
+ function redactionOf(redact, field) {
2147
+ if (!redact) return null;
2148
+ const named = (names) => (names ?? []).some((name) => name === field || name.slice(name.lastIndexOf(".") + 1) === field);
2149
+ if (named(redact.drop)) return "drop";
2150
+ if (named(redact.hash)) return "hash";
2151
+ if (named(redact.preserve)) return "preserve";
2152
+ const decimals = redact.round?.[field];
2153
+ if (typeof decimals === "number") return `round:${decimals}`;
2154
+ return null;
2155
+ }
2156
+ function storedForms(world, field, plaintext, transform) {
2157
+ if (transform?.length) plaintext = applyTransforms(plaintext, transform);
2158
+ const policy = redactionOf(world.redact, field);
2159
+ const salt = world.redact?.slug ?? world.slug;
2160
+ if (policy === "drop") return [];
2161
+ if (policy === "hash") return [hashForm(salt, plaintext)];
2162
+ if (policy === "preserve") return [preserveForm(salt, plaintext)];
2163
+ if (policy !== null) return [roundForm(plaintext, world.redact.round[field])];
2164
+ return [plaintext];
2165
+ }
2166
+ var import_node_crypto4, isInt;
2167
+ var init_redaction = __esm({
2168
+ "src/worlds/redaction.ts"() {
2169
+ "use strict";
2170
+ import_node_crypto4 = require("crypto");
2171
+ init_json();
2172
+ init_transforms();
2173
+ isInt = (value) => typeof value === "number" && Number.isInteger(value);
2174
+ }
2175
+ });
2176
+
2177
+ // src/worlds/query.ts
2178
+ function queryRowsSearch(entity, opts = {}) {
2179
+ const search = new URLSearchParams();
2180
+ search.set("entity", entity);
2181
+ if (opts.where && Object.keys(opts.where).length) search.set("where", JSON.stringify(opts.where));
2182
+ if (opts.limit !== void 0) search.set("limit", String(opts.limit));
2183
+ if (opts.offset !== void 0) search.set("offset", String(opts.offset));
2184
+ if (opts.resolve) search.set("resolve", "true");
2185
+ if (opts.across) search.set("across", "true");
2186
+ if (opts.compare) search.set("compare", "true");
2187
+ return `?${search.toString()}`;
2188
+ }
2189
+ async function queryRows(slug, entity, opts = {}, options = {}) {
2190
+ if (slug.includes("@"))
2191
+ throw new Error(
2192
+ `queryRows reads a world's head version: pass the slug without @ref (got ${slug})`
2193
+ );
2194
+ if (!entity) throw new Error("queryRows needs an entity");
2195
+ if (opts.compare && !opts.across) throw new Error("queryRows: compare needs across");
2196
+ return apiRequest(
2197
+ options,
2198
+ "GET",
2199
+ `/api/public/worlds/${encodeURIComponent(slug)}/data${queryRowsSearch(entity, opts)}`
2200
+ );
2201
+ }
2202
+ var init_query = __esm({
2203
+ "src/worlds/query.ts"() {
2204
+ "use strict";
2205
+ init_worlds();
2206
+ }
2207
+ });
2208
+
2209
+ // src/worlds/migrate.ts
2210
+ async function migrateWorld(slug, input = {}, options = {}) {
2211
+ if (slug.includes("@"))
2212
+ throw new Error(
2213
+ `migrateWorld converts a world's head version: pass the slug without @ref (got ${slug})`
2214
+ );
2215
+ return apiRequest(
2216
+ options,
2217
+ "POST",
2218
+ `/api/public/worlds/${encodeURIComponent(slug)}/migrate`,
2219
+ {
2220
+ ...input.apply === void 0 ? {} : { apply: input.apply },
2221
+ ...input.force === void 0 ? {} : { force: input.force }
2222
+ }
2223
+ );
2224
+ }
2225
+ async function migrateProjectWorlds(input = {}, options = {}) {
2226
+ return apiRequest(
2227
+ options,
2228
+ "POST",
2229
+ "/api/public/worlds/migrate",
2230
+ input.apply === void 0 ? {} : { apply: input.apply }
2231
+ );
2232
+ }
2233
+ var init_migrate = __esm({
2234
+ "src/worlds/migrate.ts"() {
2235
+ "use strict";
2236
+ init_worlds();
2237
+ }
2238
+ });
2239
+
2240
+ // src/cli/router.ts
2241
+ var CliError;
2242
+ var init_router = __esm({
2243
+ "src/cli/router.ts"() {
2244
+ "use strict";
2245
+ CliError = class extends Error {
2246
+ constructor(message, exitCode = 2) {
2247
+ super(message);
2248
+ this.exitCode = exitCode;
2249
+ }
2250
+ };
2251
+ }
2252
+ });
2253
+
2254
+ // src/cli/config.ts
2255
+ async function api(creds, method, route, body, init3 = {}) {
2256
+ const controller = new AbortController();
2257
+ const timer = setTimeout(() => controller.abort(), init3.timeoutMs ?? 12e4);
2258
+ try {
2259
+ const res = await fetch(`${creds.host}${route}`, {
2260
+ method,
2261
+ headers: {
2262
+ "content-type": "application/json",
2263
+ accept: "application/json",
2264
+ authorization: "Basic " + Buffer.from(`${creds.publicKey}:${creds.secretKey}`).toString("base64")
2265
+ },
2266
+ ...body === void 0 ? {} : { body: JSON.stringify(body) },
2267
+ signal: controller.signal
2268
+ });
2269
+ const text2 = await res.text();
2270
+ if (!res.ok) throw new ApiError(res.status, method, route, text2);
2271
+ return text2 ? JSON.parse(text2) : {};
2272
+ } finally {
2273
+ clearTimeout(timer);
2274
+ }
2275
+ }
2276
+ var fs2, os, path2, ApiError;
2277
+ var init_config = __esm({
2278
+ "src/cli/config.ts"() {
2279
+ "use strict";
2280
+ fs2 = __toESM(require("fs"));
2281
+ os = __toESM(require("os"));
2282
+ path2 = __toESM(require("path"));
2283
+ init_router();
2284
+ ApiError = class extends CliError {
2285
+ constructor(status, method, route, text2) {
2286
+ super(`${method} ${route} -> ${status}: ${text2.slice(0, 600)}`, 1);
2287
+ this.status = status;
2288
+ this.method = method;
2289
+ this.route = route;
2290
+ this.text = text2;
2291
+ }
2292
+ };
2293
+ }
2294
+ });
2295
+
2296
+ // src/cli/runtime/local.ts
2297
+ function tailOf(output) {
2298
+ return output.length > DIAGNOSTIC_TAIL ? `\u2026${output.slice(-DIAGNOSTIC_TAIL)}` : output;
2299
+ }
2300
+ function runtimeMode() {
2301
+ const raw = (process.env.GATEWAY_RUNTIME ?? "auto").toLowerCase();
2302
+ if (raw === "local" || raw === "platform" || raw === "auto") return raw;
2303
+ throw new CliError(
2304
+ `GATEWAY_RUNTIME must be local, platform or auto (got ${raw})`
2305
+ );
2306
+ }
2307
+ function runtimeRoot() {
2308
+ const candidates = [];
2309
+ if (process.env.GATEWAY_RUNTIME_PATH)
2310
+ candidates.push(process.env.GATEWAY_RUNTIME_PATH);
2311
+ const entry = process.argv[1] && fs3.existsSync(process.argv[1]) ? path3.dirname(fs3.realpathSync(process.argv[1])) : null;
2312
+ if (entry) {
2313
+ candidates.push(path3.resolve(entry, "..", "runtime"));
2314
+ candidates.push(path3.resolve(entry, "..", "..", "runtime"));
2315
+ candidates.push(path3.resolve(entry, "..", "..", "sdk", "src"));
2316
+ }
2317
+ candidates.push(path3.resolve(process.cwd(), "runtime"));
2318
+ for (const root of candidates)
2319
+ if (fs3.existsSync(
2320
+ path3.join(root, "gatewaysdk", "environment", "schema", "platform.py")
2321
+ ))
2322
+ return root;
2323
+ return null;
2324
+ }
2325
+ function probeVersion(name) {
2326
+ const probe = (0, import_node_child_process.spawnSync)(
2327
+ name,
2328
+ ["-c", "import sys;print(sys.version_info[0],sys.version_info[1])"],
2329
+ { encoding: "utf8", timeout: 1e4 }
2330
+ );
2331
+ if (probe.status !== 0) return null;
2332
+ const [major, minor] = probe.stdout.trim().split(/\s+/).map(Number);
2333
+ return Number.isInteger(major) && Number.isInteger(minor) ? `${major}.${minor}` : null;
2334
+ }
2335
+ function atLeastMinimum(version) {
2336
+ const [major, minor] = version.split(".").map(Number);
2337
+ return major > MIN_PYTHON[0] || major === MIN_PYTHON[0] && minor >= MIN_PYTHON[1];
2338
+ }
2339
+ function uvPython() {
2340
+ const found = (0, import_node_child_process.spawnSync)("uv", UV_FIND, { encoding: "utf8", timeout: 1e4 });
2341
+ if (found.status !== 0) return null;
2342
+ const line = found.stdout.trim().split(/\r?\n/)[0] ?? "";
2343
+ return line || null;
2344
+ }
2345
+ function findPython() {
2346
+ if (pythonCache !== void 0) return pythonCache;
2347
+ const named = process.env.GATEWAY_PYTHON;
2348
+ const candidates = named ? [named] : PYTHON_CANDIDATES;
2349
+ for (const name of candidates) {
2350
+ const version = probeVersion(name);
2351
+ pythonProbes.push({ name, version });
2352
+ if (version && atLeastMinimum(version)) {
2353
+ pythonCache = name;
2354
+ return name;
2355
+ }
2356
+ }
2357
+ if (!named) {
2358
+ const fromUv = uvPython();
2359
+ const version = fromUv ? probeVersion(fromUv) : null;
2360
+ pythonProbes.push({ name: fromUv ?? "uv python find", version });
2361
+ if (fromUv && version && atLeastMinimum(version)) {
2362
+ pythonCache = fromUv;
2363
+ return fromUv;
2364
+ }
2365
+ }
2366
+ pythonCache = null;
2367
+ return null;
2368
+ }
2369
+ function pythonAdvice() {
2370
+ findPython();
2371
+ const floor = MIN_PYTHON.join(".");
2372
+ const named = process.env.GATEWAY_PYTHON;
2373
+ const seen = pythonProbes.filter((probe) => probe.version).map((probe) => `${probe.name} is ${probe.version}`);
2374
+ const found = seen.length ? seen.join(", ") : named ? `${named} did not run` : "none on PATH";
2375
+ 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)".`;
2376
+ }
2377
+ function localRuntimeReason() {
2378
+ if (runtimeMode() === "platform")
2379
+ return "GATEWAY_RUNTIME=platform forces the hosted side.";
2380
+ if (!findPython()) return pythonAdvice();
2381
+ if (!runtimeRoot())
2382
+ return "The bundled runtime is missing (set GATEWAY_RUNTIME_PATH).";
2383
+ return "";
2384
+ }
2385
+ function localRuntime() {
2386
+ if (runtimeMode() === "platform") return null;
2387
+ const python = findPython();
2388
+ const root = runtimeRoot();
2389
+ if (!python || !root) {
2390
+ if (runtimeMode() === "local")
2391
+ throw new CliError(
2392
+ !python ? `GATEWAY_RUNTIME=local but ${pythonAdvice()}` : "GATEWAY_RUNTIME=local but the bundled runtime is missing (set GATEWAY_RUNTIME_PATH)"
2393
+ );
2394
+ return null;
2395
+ }
2396
+ return { python, root };
2397
+ }
2398
+ function localPythonHasYaml(python) {
2399
+ return (0, import_node_child_process.spawnSync)(python, ["-c", "import yaml"], { timeout: 1e4 }).status === 0;
2400
+ }
2401
+ async function localBridge(request, local, opts = {}) {
2402
+ const input = JSON.stringify(request);
2403
+ return await new Promise((resolve7, reject) => {
2404
+ const child = (0, import_node_child_process.spawn)(
2405
+ local.python,
2406
+ ["-I", "-B", "-c", BRIDGE_BOOTSTRAP, local.root],
2407
+ {
2408
+ stdio: ["pipe", "pipe", "pipe"],
2409
+ // This is the author's machine running the author's world: the one
2410
+ // place the runtime may import and run a world's own Python (check's
2411
+ // handler execution, `worlds call`, `worlds test` tool cases).
2412
+ env: {
2413
+ PATH: process.env.PATH ?? "",
2414
+ HOME: process.env.HOME ?? "",
2415
+ TMPDIR: process.env.TMPDIR ?? "",
2416
+ GATEWAY_RUNTIME_EXECUTE: "1"
2417
+ }
2418
+ }
2419
+ );
2420
+ const out = [];
2421
+ const err = [];
2422
+ const timer = setTimeout(
2423
+ () => child.kill("SIGKILL"),
2424
+ opts.timeoutMs ?? 3e5
2425
+ );
2426
+ child.stdout.on("data", (chunk) => out.push(chunk));
2427
+ child.stderr.on("data", (chunk) => err.push(chunk));
2428
+ child.on("error", (error) => {
2429
+ clearTimeout(timer);
2430
+ reject(
2431
+ new CliError(
2432
+ `local runtime could not start (${local.python}): ${error.message}`,
2433
+ 1
2434
+ )
2435
+ );
2436
+ });
2437
+ child.on("close", (code) => {
2438
+ clearTimeout(timer);
2439
+ const text2 = Buffer.concat(out).toString("utf8");
2440
+ const stderr = Buffer.concat(err).toString("utf8");
2441
+ let payload = null;
2442
+ try {
2443
+ payload = text2 ? JSON.parse(text2) : null;
2444
+ } catch {
2445
+ payload = null;
2446
+ }
2447
+ if (payload && typeof payload === "object") {
2448
+ resolve7(payload);
2449
+ return;
2450
+ }
2451
+ reject(
2452
+ new CliError(
2453
+ `local runtime (${request.command}) exited ${code}: ${tailOf((stderr || text2).trim()) || "no output"}`,
2454
+ 1
2455
+ )
2456
+ );
2457
+ });
2458
+ child.stdin.end(input);
2459
+ });
2460
+ }
2461
+ var import_node_child_process, fs3, net, path3, MIN_PYTHON, DIAGNOSTIC_TAIL, BRIDGE_BOOTSTRAP, pythonCache, pythonProbes, PYTHON_CANDIDATES, UV_FIND;
2462
+ var init_local = __esm({
2463
+ "src/cli/runtime/local.ts"() {
2464
+ "use strict";
2465
+ import_node_child_process = require("child_process");
2466
+ fs3 = __toESM(require("fs"));
2467
+ net = __toESM(require("net"));
2468
+ path3 = __toESM(require("path"));
2469
+ init_router();
2470
+ init_config();
2471
+ MIN_PYTHON = [3, 11];
2472
+ DIAGNOSTIC_TAIL = 600;
2473
+ BRIDGE_BOOTSTRAP = `import sys,runpy,types,os
2474
+ root=sys.argv[1]
2475
+ package=types.ModuleType('gatewaysdk')
2476
+ package.__path__=[os.path.join(root,'gatewaysdk')]
2477
+ sys.modules['gatewaysdk']=package
2478
+ runpy.run_module('gatewaysdk.environment.schema.platform',run_name='__main__')`;
2479
+ pythonProbes = [];
2480
+ PYTHON_CANDIDATES = [
2481
+ "python3.13",
2482
+ "python3.12",
2483
+ "python3.11",
2484
+ "python3",
2485
+ "python"
2486
+ ];
2487
+ UV_FIND = ["python", "find", `>=${MIN_PYTHON.join(".")}`];
2488
+ }
2489
+ });
2490
+
2491
+ // src/cli/runtime/client.ts
2492
+ function isBuildOutput(relPath) {
2493
+ return BUILD_OUTPUT.test(relPath);
2494
+ }
2495
+ function readWorldFiles(dir, opts = {}) {
2496
+ if (!fs4.existsSync(dir) || !fs4.statSync(dir).isDirectory())
2497
+ throw new CliError(`Not a directory: ${dir}`);
2498
+ const out = [];
2499
+ const walk = (rel) => {
2500
+ const abs = rel ? path4.join(dir, rel) : dir;
2501
+ const entries = fs4.readdirSync(abs, { withFileTypes: true });
2502
+ entries.sort((a, b) => a.name.localeCompare(b.name));
2503
+ for (const entry of entries) {
2504
+ const childRel = rel ? `${rel}/${entry.name}` : entry.name;
2505
+ if (entry.isDirectory()) {
2506
+ if (!SKIP_DIRS2.has(entry.name)) walk(childRel);
2507
+ } else if (entry.isFile()) {
2508
+ if (!opts.buildOutputs && isBuildOutput(childRel)) continue;
2509
+ out.push({
2510
+ path: childRel,
2511
+ content: fs4.readFileSync(path4.join(dir, childRel)).toString("base64")
2512
+ });
2513
+ }
2514
+ }
2515
+ };
2516
+ walk("");
2517
+ return out.sort((a, b) => a.path < b.path ? -1 : a.path > b.path ? 1 : 0);
2518
+ }
2519
+ function assertSafeRelPath(rel) {
2520
+ const parts = rel.split("/");
2521
+ if (!rel || rel.startsWith("/") || rel.includes("\\") || /^[A-Za-z]:/.test(rel) || parts.some((p) => p === "" || p === "." || p === ".."))
2522
+ throw new CliError(`The runtime returned an unsafe file path: ${rel}`, 1);
2523
+ }
2524
+ function writeWorldFiles(dir, files, opts = {}) {
2525
+ for (const file of files) assertSafeRelPath(file.path);
2526
+ if (opts.clean && fs4.existsSync(dir)) {
2527
+ const keep = new Set(files.map((f) => f.path));
2528
+ for (const existing of readWorldFiles(dir)) {
2529
+ if (!keep.has(existing.path)) fs4.rmSync(path4.join(dir, existing.path));
2530
+ }
2531
+ pruneEmptyDirs(dir);
2532
+ }
2533
+ fs4.mkdirSync(dir, { recursive: true });
2534
+ const written = [];
2535
+ for (const file of files) {
2536
+ const target = path4.join(dir, file.path);
2537
+ fs4.mkdirSync(path4.dirname(target), { recursive: true });
2538
+ fs4.writeFileSync(target, Buffer.from(file.content, "base64"));
2539
+ written.push(file.path);
2540
+ }
2541
+ return written;
2542
+ }
2543
+ function pruneEmptyDirs(root) {
2544
+ const walk = (abs) => {
2545
+ let empty = true;
2546
+ for (const entry of fs4.readdirSync(abs, { withFileTypes: true })) {
2547
+ const child = path4.join(abs, entry.name);
2548
+ if (entry.isDirectory()) {
2549
+ if (SKIP_DIRS2.has(entry.name)) {
2550
+ empty = false;
2551
+ continue;
2552
+ }
2553
+ if (walk(child)) fs4.rmdirSync(child);
2554
+ else empty = false;
2555
+ } else empty = false;
2556
+ }
2557
+ return empty;
2558
+ };
2559
+ walk(root);
2560
+ }
2561
+ function formatBridgeError(detail) {
2562
+ const where = detail.schema_path || detail.path || "/";
2563
+ return `${detail.code} at ${where}: ${detail.message}`;
2564
+ }
2565
+ function detailFrom(payload) {
2566
+ if (!payload || typeof payload !== "object") return null;
2567
+ const error = payload.error;
2568
+ if (!error || typeof error !== "object") return null;
2569
+ const detail = error;
2570
+ if (typeof detail.code !== "string" || typeof detail.message !== "string") return null;
2571
+ return detail;
2572
+ }
2573
+ async function runtime(creds, request, opts = {}) {
2574
+ const local = localRuntime();
2575
+ const yamlSpec = request.command === "conform" && Array.isArray(request.openapi) && request.openapi.some((doc) => /\.ya?ml$/i.test(doc.path ?? ""));
2576
+ if (local && !(yamlSpec && !localPythonHasYaml(local.python))) {
2577
+ const payload = await localBridge(request, local, opts);
2578
+ const detail = detailFrom(payload);
2579
+ if (detail) throw new BridgeRejected(detail);
2580
+ return payload;
2581
+ }
2582
+ if (!creds)
2583
+ throw new CliError(
2584
+ "This needs the schema runtime (the CLI bundles it) or platform credentials (`gateway auth login`). " + localRuntimeReason()
2585
+ );
2586
+ const controller = new AbortController();
2587
+ const timer = setTimeout(() => controller.abort(), opts.timeoutMs ?? 18e4);
2588
+ const route = "/api/public/worlds/runtime";
2589
+ try {
2590
+ const res = await fetch(`${creds.host}${route}`, {
2591
+ method: "POST",
2592
+ headers: {
2593
+ "content-type": "application/json",
2594
+ accept: "application/json",
2595
+ authorization: "Basic " + Buffer.from(`${creds.publicKey}:${creds.secretKey}`).toString("base64")
2596
+ },
2597
+ body: JSON.stringify(request),
2598
+ signal: controller.signal
2599
+ });
2600
+ const text2 = await res.text();
2601
+ let payload = null;
2602
+ try {
2603
+ payload = text2 ? JSON.parse(text2) : {};
2604
+ } catch {
2605
+ payload = null;
2606
+ }
2607
+ const detail = detailFrom(payload);
2608
+ if (detail) throw new BridgeRejected(detail);
2609
+ if (!res.ok)
2610
+ throw new CliError(`POST ${route} (${request.command}) -> ${res.status}: ${text2.slice(0, 600)}`, 1);
2611
+ if (payload === null) throw new CliError(`POST ${route} (${request.command}) returned non-JSON`, 1);
2612
+ return payload;
2613
+ } finally {
2614
+ clearTimeout(timer);
2615
+ }
2616
+ }
2617
+ var fs4, path4, SKIP_DIRS2, BUILD_OUTPUT, BridgeRejected;
2618
+ var init_client = __esm({
2619
+ "src/cli/runtime/client.ts"() {
2620
+ "use strict";
2621
+ fs4 = __toESM(require("fs"));
2622
+ path4 = __toESM(require("path"));
2623
+ init_router();
2624
+ init_local();
2625
+ SKIP_DIRS2 = /* @__PURE__ */ new Set(["__pycache__", ".git", "node_modules", ".gateway"]);
2626
+ BUILD_OUTPUT = /(^|\/)state\.(sqlite|json)$/;
2627
+ BridgeRejected = class extends CliError {
2628
+ constructor(detail) {
2629
+ super(formatBridgeError(detail), 1);
2630
+ this.detail = detail;
2631
+ }
2632
+ };
2633
+ }
2634
+ });
2635
+
2636
+ // src/cli/runtime/data.ts
2637
+ var data_exports = {};
2638
+ __export(data_exports, {
2639
+ checkLocalWorldData: () => checkLocalWorldData,
2640
+ dropBuildOutputs: () => dropBuildOutputs,
2641
+ importLocalWorldData: () => importLocalWorldData,
2642
+ ingestLocalToolCalls: () => ingestLocalToolCalls,
2643
+ queryLocalWorldData: () => queryLocalWorldData,
2644
+ queryLocalWorldDataAcross: () => queryLocalWorldDataAcross,
2645
+ showLocalWorldData: () => showLocalWorldData
2646
+ });
2647
+ async function importLocalWorldData(dir, rows, opts, creds) {
2648
+ const res = await runtime(creds, {
2649
+ command: "import-data",
2650
+ files: readWorldFiles(dir),
2651
+ rows,
2652
+ mode: opts.mode ?? "append",
2653
+ ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {}
2654
+ });
2655
+ if (res.files?.length) writeWorldFiles(dir, res.files);
2656
+ if (res.changed) dropBuildOutputs(dir);
2657
+ return {
2658
+ kind: res.kind ?? "unknown",
2659
+ entity_counts: res.entity_counts ?? {},
2660
+ changed: Boolean(res.changed)
2661
+ };
2662
+ }
2663
+ function dropBuildOutputs(dir) {
2664
+ const dropped = [];
2665
+ for (const file of readWorldFiles(dir, { buildOutputs: true })) {
2666
+ if (!BUILD_OUTPUT2.test(file.path)) continue;
2667
+ fs5.rmSync(path5.join(dir, file.path), { force: true });
2668
+ dropped.push(file.path);
2669
+ }
2670
+ return dropped;
2671
+ }
2672
+ async function checkLocalWorldData(dir, rows, creds, opts = {}) {
2673
+ const res = await runtime(creds, {
2674
+ command: "import-data",
2675
+ files: readWorldFiles(dir),
2676
+ rows,
2677
+ mode: "append",
2678
+ ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {}
2679
+ });
2680
+ return {
2681
+ kind: res.kind ?? "unknown",
2682
+ entity_counts: res.entity_counts ?? {},
2683
+ changed: Boolean(res.changed)
2684
+ };
2685
+ }
2686
+ async function showLocalWorldData(dir, entity, creds) {
2687
+ const res = await runtime(creds, {
2688
+ command: "counts",
2689
+ files: readWorldFiles(dir),
2690
+ ...entity ? { entity } : {}
2691
+ });
2692
+ const out = { kind: res.kind ?? "unknown" };
2693
+ if (entity) {
2694
+ out.entity = entity;
2695
+ out.rows = res.rows ?? [];
2696
+ } else out.entity_counts = res.entity_counts ?? {};
2697
+ return out;
2698
+ }
2699
+ async function queryLocalWorldData(dir, entity, where, opts, creds) {
2700
+ const res = await runtime(creds, {
2701
+ command: "query",
2702
+ files: readWorldFiles(dir),
2703
+ entity,
2704
+ ...Object.keys(where).length ? { where } : {},
2705
+ ...opts.limit !== void 0 ? { limit: opts.limit } : {},
2706
+ ...opts.offset !== void 0 ? { offset: opts.offset } : {},
2707
+ ...opts.resolve ? { resolve: true } : {},
2708
+ ...opts.scenario ? { scenario: opts.scenario } : {}
2709
+ });
2710
+ const rows = res.rows ?? [];
2711
+ return {
2712
+ ...res.kind ? { kind: res.kind } : {},
2713
+ entity: res.entity ?? entity,
2714
+ ...res.scenario ? { scenario: res.scenario } : {},
2715
+ rows,
2716
+ count: res.count ?? rows.length,
2717
+ total: res.total ?? null,
2718
+ limit: res.limit ?? opts.limit ?? rows.length,
2719
+ offset: res.offset ?? opts.offset ?? 0,
2720
+ ...res.resolved ? { resolved: res.resolved } : {}
2721
+ };
2722
+ }
2723
+ async function queryLocalWorldDataAcross(dir, entity, where, opts) {
2724
+ const local = localRuntime();
2725
+ if (!local)
2726
+ throw new CliError(
2727
+ "`--across` on a directory reads the linked worlds at their paths, so it needs the bundled runtime on this machine. " + localRuntimeReason(),
2728
+ 1
2729
+ );
2730
+ const payload = await localBridge(
2731
+ {
2732
+ command: "query",
2733
+ world: path5.resolve(dir),
2734
+ entity,
2735
+ across: true,
2736
+ ...opts.compare ? { compare: true } : {},
2737
+ ...Object.keys(where).length ? { where } : {},
2738
+ ...opts.limit !== void 0 ? { limit: opts.limit } : {},
2739
+ ...opts.offset !== void 0 ? { offset: opts.offset } : {},
2740
+ ...opts.resolve ? { resolve: true } : {},
2741
+ ...opts.scenario ? { scenario: opts.scenario } : {}
2742
+ },
2743
+ local
2744
+ );
2745
+ const detail = detailFrom(payload);
2746
+ if (detail) throw new BridgeRejected(detail);
2747
+ return payload;
2748
+ }
2749
+ async function ingestLocalToolCalls(dir, records, opts, creds) {
2750
+ const res = await runtime(creds, {
2751
+ command: "ingest-calls",
2752
+ files: readWorldFiles(dir),
2753
+ records,
2754
+ mode: opts.mode ?? "append",
2755
+ ...opts.dryRun ? { dry_run: true } : {},
2756
+ ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {},
2757
+ ...opts.map !== void 0 ? { map: opts.map } : {}
2758
+ });
2759
+ if (!opts.dryRun && res.files?.length) writeWorldFiles(dir, res.files);
2760
+ if (res.changed) dropBuildOutputs(dir);
2761
+ return {
2762
+ ...res.via ? { via: res.via } : {},
2763
+ ...res.sources ? { sources: res.sources } : {},
2764
+ ...res.unmatched ? { unmatched: res.unmatched } : {},
2765
+ ...res.note ? { note: res.note } : {},
2766
+ records: res.records ?? records.length,
2767
+ ingested: res.ingested ?? 0,
2768
+ skipped: res.skipped ?? {},
2769
+ refusals: res.refusals ?? [],
2770
+ rows: res.rows ?? {},
2771
+ ...res.projected ? { projected: res.projected } : {},
2772
+ dry_run: Boolean(res.dry_run ?? opts.dryRun),
2773
+ redact: res.redact ?? opts.redact ?? "off",
2774
+ changed: Boolean(res.changed),
2775
+ ...res.kind ? { kind: res.kind } : {},
2776
+ ...res.entity_counts ? { entity_counts: res.entity_counts } : {},
2777
+ ...res.batch !== void 0 ? { batch: res.batch } : {}
2778
+ };
2779
+ }
2780
+ var fs5, path5, BUILD_OUTPUT2;
2781
+ var init_data = __esm({
2782
+ "src/cli/runtime/data.ts"() {
2783
+ "use strict";
2784
+ fs5 = __toESM(require("fs"));
2785
+ path5 = __toESM(require("path"));
2786
+ init_router();
2787
+ init_client();
2788
+ init_local();
2789
+ BUILD_OUTPUT2 = /(^|\/)state\.(sqlite|json)$/;
2790
+ }
2791
+ });
2792
+
2793
+ // src/cli/platform/worldData/transform.ts
2794
+ var transform_exports = {};
2795
+ __export(transform_exports, {
2796
+ DEFAULT_TRANSFORM_TIMEOUT_MS: () => DEFAULT_TRANSFORM_TIMEOUT_MS,
2797
+ NODE_SUFFIXES: () => NODE_SUFFIXES,
2798
+ NODE_WRAPPER: () => NODE_WRAPPER,
2799
+ PYTHON_SUFFIXES: () => PYTHON_SUFFIXES,
2800
+ PY_WRAPPER: () => PY_WRAPPER,
2801
+ checkRows: () => checkRows,
2802
+ runTransform: () => runTransform,
2803
+ transformRecords: () => transformRecords
2804
+ });
2805
+ function checkRows(value, where) {
2806
+ if (!isObject(value)) throw new CliError(`${where} must return {entity: [rows]}; got ${value === null ? "null" : Array.isArray(value) ? "an array" : typeof value}`, 1);
2807
+ for (const [entity, listed] of Object.entries(value)) {
2808
+ if (!Array.isArray(listed)) throw new CliError(`${where}: ${entity} must be a list of rows; got ${listed === null ? "null" : typeof listed}`, 1);
2809
+ listed.forEach((row, index) => {
2810
+ if (!isObject(row)) throw new CliError(`${where}: ${entity}[${index}] is not an object`, 1);
2811
+ });
2812
+ }
2813
+ return value;
2814
+ }
2815
+ function typescriptPrefix() {
2816
+ const [major, minor] = process.versions.node.split(".").map(Number);
2817
+ if (!process.env.GATEWAY_NODE && (major > 22 || major === 22 && minor >= 6)) return ["--experimental-strip-types", "--no-warnings"];
2818
+ try {
2819
+ return [(0, import_node_module.createRequire)(import_meta.url).resolve("tsx/cli")];
2820
+ } catch {
2821
+ throw new CliError(
2822
+ `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`,
2823
+ 1
2824
+ );
2825
+ }
2826
+ }
2827
+ function command(script, wrapperDir) {
2828
+ const suffix = path6.extname(script).toLowerCase();
2829
+ if (PYTHON_SUFFIXES.includes(suffix)) return { file: process.env.GATEWAY_PYTHON || "python3", args: ["-c", PY_WRAPPER, script] };
2830
+ if (NODE_SUFFIXES.includes(suffix)) {
2831
+ const wrapper = path6.join(wrapperDir, "transform-wrapper.mjs");
2832
+ fs6.writeFileSync(wrapper, NODE_WRAPPER);
2833
+ const flags = suffix === ".ts" || suffix === ".mts" ? typescriptPrefix() : [];
2834
+ return { file: process.env.GATEWAY_NODE || process.execPath, args: [...flags, wrapper, script] };
2835
+ }
2836
+ throw new CliError(`${path6.basename(script)}: a transform script is .py, .ts, .mjs, .js or .cjs`, 1);
2837
+ }
2838
+ async function runTransform(script, records, opts = {}) {
2839
+ if (!fs6.existsSync(script) || !fs6.statSync(script).isFile()) throw new CliError(`no transform script at ${script}`, 1);
2840
+ const resolved = path6.resolve(script);
2841
+ const name = path6.basename(script);
2842
+ const timeoutMs = opts.timeoutMs ?? DEFAULT_TRANSFORM_TIMEOUT_MS;
2843
+ const scratch = fs6.mkdtempSync(path6.join(os2.tmpdir(), "gateway-transform-"));
2844
+ try {
2845
+ const { file, args } = command(resolved, scratch);
2846
+ const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !SCRUBBED.test(key)));
2847
+ const done = await new Promise((resolve7, reject) => {
2848
+ const child = (0, import_node_child_process2.spawn)(file, args, { cwd: path6.dirname(resolved), env, stdio: ["pipe", "pipe", "pipe"] });
2849
+ let stdout = "";
2850
+ let stderr = "";
2851
+ let timedOut = false;
2852
+ const timer = setTimeout(() => {
2853
+ timedOut = true;
2854
+ child.kill("SIGKILL");
2855
+ }, timeoutMs);
2856
+ child.stdout.setEncoding("utf8").on("data", (chunk) => stdout += chunk);
2857
+ child.stderr.setEncoding("utf8").on("data", (chunk) => stderr += chunk);
2858
+ child.on("error", (error) => {
2859
+ clearTimeout(timer);
2860
+ reject(new CliError(`${name}: cannot run ${file}: ${error.message}`, 1));
2861
+ });
2862
+ child.on("close", (code) => {
2863
+ clearTimeout(timer);
2864
+ resolve7({ code, stdout, stderr, timedOut });
2865
+ });
2866
+ child.stdin.on("error", () => void 0);
2867
+ child.stdin.end(records.map((record) => JSON.stringify(record) + "\n").join(""));
2868
+ });
2869
+ if (done.timedOut) throw new CliError(`${name} timed out after ${timeoutMs / 1e3}s${tail(done.stderr)}`, 1);
2870
+ if (done.code !== 0) throw new CliError(`${name} exited ${done.code ?? "?"}${tail(done.stderr)}`, 1);
2871
+ let value;
2872
+ try {
2873
+ value = done.stdout.trim() ? JSON.parse(done.stdout) : null;
2874
+ } catch {
2875
+ throw new CliError(`${name} printed something other than the rows document${tail(done.stderr)}`, 1);
2876
+ }
2877
+ return { rows: checkRows(value, name), stderr: done.stderr };
2878
+ } finally {
2879
+ fs6.rmSync(scratch, { recursive: true, force: true });
2880
+ }
2881
+ }
2882
+ async function transformRecords(transform, records, opts = {}) {
2883
+ if (typeof transform === "function") return { rows: checkRows(await transform(records), "transform(records)"), stderr: "" };
2884
+ return runTransform(transform, records, opts);
2885
+ }
2886
+ var import_node_child_process2, fs6, os2, path6, import_node_module, import_meta, DEFAULT_TRANSFORM_TIMEOUT_MS, NODE_SUFFIXES, PYTHON_SUFFIXES, SCRUBBED, PY_WRAPPER, NODE_WRAPPER, isObject, tail;
2887
+ var init_transform = __esm({
2888
+ "src/cli/platform/worldData/transform.ts"() {
2889
+ "use strict";
2890
+ import_node_child_process2 = require("child_process");
2891
+ fs6 = __toESM(require("fs"));
2892
+ os2 = __toESM(require("os"));
2893
+ path6 = __toESM(require("path"));
2894
+ import_node_module = require("module");
2895
+ init_router();
2896
+ import_meta = {};
2897
+ DEFAULT_TRANSFORM_TIMEOUT_MS = 12e4;
2898
+ NODE_SUFFIXES = [".ts", ".mts", ".mjs", ".js", ".cjs"];
2899
+ PYTHON_SUFFIXES = [".py"];
2900
+ SCRUBBED = /^(GATEWAY_|HTTPS?_PROXY$|ALL_PROXY$|https?_proxy$|all_proxy$)/;
2901
+ PY_WRAPPER = `
2902
+ import io, json, runpy, socket, sys
2903
+
2904
+ def _deny(*args, **kwargs):
2905
+ raise RuntimeError("network is disabled in a transform")
2906
+
2907
+ class _Denied(socket.socket):
2908
+ def __init__(self, *args, **kwargs):
2909
+ _deny()
2910
+
2911
+ socket.socket = _Denied
2912
+ socket.SocketType = _Denied
2913
+ socket.create_connection = _deny
2914
+ socket.getaddrinfo = _deny
2915
+
2916
+ text = sys.stdin.read()
2917
+ records = [json.loads(line) for line in text.splitlines() if line.strip()]
2918
+ sys.stdin = io.StringIO(text)
2919
+ captured = io.StringIO()
2920
+ real = sys.stdout
2921
+ sys.stdout = captured
2922
+ try:
2923
+ namespace = runpy.run_path(sys.argv[1], run_name="__main__")
2924
+ finally:
2925
+ sys.stdout = real
2926
+ fn = namespace.get("transform")
2927
+ if callable(fn):
2928
+ out = fn(records)
2929
+ else:
2930
+ printed = captured.getvalue().strip()
2931
+ if not printed:
2932
+ sys.stderr.write("the transform defines no transform(records) and printed nothing\\n")
2933
+ sys.exit(3)
2934
+ out = json.loads(printed)
2935
+ real.write(json.dumps(out))
2936
+ `;
2937
+ NODE_WRAPPER = `
2938
+ import { pathToFileURL } from "node:url";
2939
+ import net from "node:net";
2940
+ import tls from "node:tls";
2941
+ import http from "node:http";
2942
+ import https from "node:https";
2943
+ import dgram from "node:dgram";
2944
+
2945
+ const deny = () => { throw new Error("network is disabled in a transform"); };
2946
+ net.Socket.prototype.connect = deny;
2947
+ net.connect = deny;
2948
+ net.createConnection = deny;
2949
+ tls.connect = deny;
2950
+ http.request = deny;
2951
+ http.get = deny;
2952
+ https.request = deny;
2953
+ https.get = deny;
2954
+ dgram.createSocket = deny;
2955
+ globalThis.fetch = deny;
2956
+
2957
+ const module = await import(pathToFileURL(process.argv[2]).href);
2958
+ const fn = typeof module.transform === "function" ? module.transform : typeof module.default === "function" ? module.default : null;
2959
+ if (fn) {
2960
+ const chunks = [];
2961
+ for await (const chunk of process.stdin) chunks.push(chunk);
2962
+ const text = Buffer.concat(chunks).toString("utf8");
2963
+ const records = text.split("\\n").filter((line) => line.trim()).map((line) => JSON.parse(line));
2964
+ const out = await fn(records);
2965
+ process.stdout.write(JSON.stringify(out));
2966
+ }
2967
+ `;
2968
+ isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
2969
+ tail = (stderr, lines = 12) => {
2970
+ const kept = stderr.split("\n").filter((line) => line.trim()).slice(-lines);
2971
+ return kept.length ? "\n" + kept.join("\n") : "";
2972
+ };
2973
+ }
2974
+ });
2975
+
2976
+ // src/cli/platform/worldData/batches.ts
2977
+ function uploadHeadersFor(gz) {
2978
+ return {
2979
+ "content-type": "application/gzip",
2980
+ "content-length": String(gz.length),
2981
+ "x-amz-checksum-sha256": (0, import_node_crypto5.createHash)("sha256").update(gz).digest("base64")
2982
+ };
2983
+ }
2984
+ async function forEachLimited(items, limit, fn) {
2985
+ const inFlight = /* @__PURE__ */ new Set();
2986
+ let failure = null;
2987
+ const track = (p) => {
2988
+ const wrapped = p.then(
2989
+ () => {
2990
+ inFlight.delete(wrapped);
2991
+ },
2992
+ (error) => {
2993
+ failure ??= error;
2994
+ inFlight.delete(wrapped);
2995
+ }
2996
+ );
2997
+ inFlight.add(wrapped);
2998
+ };
2999
+ for await (const item of items) {
3000
+ if (failure) break;
3001
+ track(fn(item));
3002
+ if (inFlight.size >= limit) await Promise.race(inFlight);
3003
+ }
3004
+ await Promise.all(inFlight);
3005
+ if (failure) throw failure;
3006
+ }
3007
+ async function waitForBatch(client2, batchId, opts = {}) {
3008
+ const sleep3 = opts.sleep ?? client2.sleep;
3009
+ let delay = opts.initialDelayMs ?? 1e3;
3010
+ let last = "";
3011
+ for (; ; ) {
3012
+ const status = await client2.get(batchId);
3013
+ const phase = phaseLine(status);
3014
+ if (phase !== last) {
3015
+ opts.onPhase?.(phase);
3016
+ last = phase;
3017
+ }
3018
+ if (TERMINAL_STATES.has(status.state)) return status;
3019
+ await sleep3(delay);
3020
+ delay = Math.min(1e4, Math.round(delay * 1.5));
3021
+ }
753
3022
  }
754
- async function validateWorld(dir, opts) {
755
- const options = opts.options ?? {};
756
- const progress = opts.onProgress ?? (() => {
3023
+ function phaseLine(status) {
3024
+ const phase = status.progress?.phase;
3025
+ return phase ? `${status.state} (${phase})` : status.state;
3026
+ }
3027
+ var import_node_crypto5, fs7, TERMINAL_STATES, sleepMs, WorldDataApi;
3028
+ var init_batches = __esm({
3029
+ "src/cli/platform/worldData/batches.ts"() {
3030
+ "use strict";
3031
+ import_node_crypto5 = require("crypto");
3032
+ fs7 = __toESM(require("fs"));
3033
+ init_config();
3034
+ init_router();
3035
+ TERMINAL_STATES = /* @__PURE__ */ new Set(["applied", "refused", "published", "failed"]);
3036
+ sleepMs = (ms) => new Promise((resolve7) => setTimeout(resolve7, ms));
3037
+ WorldDataApi = class {
3038
+ constructor(creds, slug, sleep3 = sleepMs) {
3039
+ this.creds = creds;
3040
+ this.slug = slug;
3041
+ this.sleep = sleep3;
3042
+ this.base = `/api/public/worlds/${encodeURIComponent(slug)}/data`;
3043
+ }
3044
+ base;
3045
+ open(body) {
3046
+ return api(this.creds, "POST", `${this.base}/batches`, body);
3047
+ }
3048
+ register(batchId, chunk) {
3049
+ return api(this.creds, "POST", `${this.base}/batches/${batchId}/chunks`, {
3050
+ ordinal: chunk.ordinal,
3051
+ digest: chunk.digest,
3052
+ bytes: chunk.bytes,
3053
+ rows: chunk.rows,
3054
+ ...chunk.entity ? { entity: chunk.entity } : {}
3055
+ });
3056
+ }
3057
+ markUploaded(batchId, chunkId) {
3058
+ return api(this.creds, "POST", `${this.base}/batches/${batchId}/chunks/${chunkId}/uploaded`);
3059
+ }
3060
+ complete(batchId) {
3061
+ return api(this.creds, "POST", `${this.base}/batches/${batchId}/complete`);
3062
+ }
3063
+ get(batchId) {
3064
+ return api(this.creds, "GET", `${this.base}/batches/${batchId}`);
3065
+ }
3066
+ list(limit, cursor) {
3067
+ const params = new URLSearchParams();
3068
+ if (limit !== void 0) params.set("limit", String(limit));
3069
+ if (cursor) params.set("cursor", cursor);
3070
+ const q = params.toString();
3071
+ return api(this.creds, "GET", `${this.base}/batches${q ? `?${q}` : ""}`);
3072
+ }
3073
+ publish(message) {
3074
+ return api(this.creds, "POST", `${this.base}/publish`, message ? { message } : {});
3075
+ }
3076
+ /**
3077
+ * PUT the gzipped chunk to its presigned URL with exactly the headers the
3078
+ * URL was signed for (the platform's `uploadHeaders`; the same three when it
3079
+ * sends none), with backoff on a dropped connection or a 5xx.
3080
+ */
3081
+ async put(uploadUrl, gz, signed) {
3082
+ const headers = signed ?? uploadHeadersFor(gz);
3083
+ const delays = [500, 1500, 4e3];
3084
+ for (let attempt = 0; ; attempt++) {
3085
+ try {
3086
+ const res = await fetch(uploadUrl, { method: "PUT", body: new Uint8Array(gz), headers });
3087
+ if (res.ok) return;
3088
+ if (res.status < 500 || attempt >= delays.length) throw new CliError(`chunk upload -> ${res.status}: ${(await res.text()).slice(0, 300)}`, 1);
3089
+ } catch (error) {
3090
+ if (error instanceof CliError || attempt >= delays.length) throw error instanceof CliError ? error : new CliError(`chunk upload failed: ${error.message}`, 1);
3091
+ }
3092
+ await this.sleep(delays[attempt]);
3093
+ }
3094
+ }
3095
+ /** Register, upload unless the server already holds the content, confirm. */
3096
+ async upload(batchId, chunk) {
3097
+ const registered = await this.register(batchId, chunk);
3098
+ if (!registered.uploaded) {
3099
+ if (!registered.uploadUrl) throw new CliError(`the server registered chunk ${chunk.ordinal} without an upload URL`, 1);
3100
+ await this.put(registered.uploadUrl, chunk.gz, registered.uploadHeaders);
3101
+ await this.markUploaded(batchId, registered.chunkId);
3102
+ }
3103
+ return { ordinal: chunk.ordinal, digest: chunk.digest, bytes: chunk.bytes, rows: chunk.rows, entity: chunk.entity, chunkId: registered.chunkId, uploaded: true };
3104
+ }
3105
+ };
3106
+ }
3107
+ });
3108
+
3109
+ // src/cli/platform/worldData/chunker.ts
3110
+ function chunkLine(row, declared) {
3111
+ if (declared !== null) return dumps(row.row) + "\n";
3112
+ const tagged = /* @__PURE__ */ new Map();
3113
+ tagged.set("entity", row.entity);
3114
+ tagged.set("row", row.row);
3115
+ return dumps(tagged) + "\n";
3116
+ }
3117
+ async function* buildChunks(rows, plan) {
3118
+ let lines = [];
3119
+ let rawBytes = 0;
3120
+ let ordinal = 0;
3121
+ let seen = 0;
3122
+ const flush2 = () => {
3123
+ const raw = Buffer.concat(lines);
3124
+ const built = finishChunk(ordinal++, raw, lines.length, plan.entity, seen - lines.length);
3125
+ lines = [];
3126
+ rawBytes = 0;
3127
+ return built;
3128
+ };
3129
+ for await (const row of rows) {
3130
+ const line = Buffer.from(chunkLine(row, plan.entity), "utf8");
3131
+ const full = lines.length > 0 && (plan.chunkRows !== null && lines.length >= plan.chunkRows || rawBytes + line.length > plan.chunkBytes);
3132
+ if (full) yield flush2();
3133
+ lines.push(line);
3134
+ rawBytes += line.length;
3135
+ seen++;
3136
+ }
3137
+ if (lines.length) yield flush2();
3138
+ }
3139
+ function finishChunk(ordinal, raw, rows, entity, firstRow = 0) {
3140
+ const gz = gzipDeterministic(raw, { name: chunkName(ordinal) });
3141
+ return {
3142
+ ordinal,
3143
+ digest: (0, import_node_crypto6.createHash)("sha256").update(gz).digest("hex"),
3144
+ bytes: gz.length,
3145
+ rows,
3146
+ entity,
3147
+ rawBytes: raw.length,
3148
+ contentSha256: (0, import_node_crypto6.createHash)("sha256").update(raw).digest("hex"),
3149
+ firstRow,
3150
+ gz
3151
+ };
3152
+ }
3153
+ function gzipDeterministic(raw, opts = {}) {
3154
+ const level = opts.level ?? GZIP_LEVEL;
3155
+ const name = opts.name ? Buffer.concat([Buffer.from(opts.name, "latin1"), Buffer.from([0])]) : Buffer.alloc(0);
3156
+ const header = Buffer.from([31, 139, 8, opts.name ? 8 : 0, 0, 0, 0, 0, level === 9 ? 2 : level === 1 ? 4 : 0, 255]);
3157
+ const body = (0, import_node_zlib2.deflateRawSync)(raw, { level });
3158
+ const trailer = Buffer.alloc(8);
3159
+ trailer.writeUInt32LE(crc32(raw), 0);
3160
+ trailer.writeUInt32LE(raw.length >>> 0, 4);
3161
+ return Buffer.concat([header, name, body, trailer]);
3162
+ }
3163
+ function crc32(data) {
3164
+ if (!table) {
3165
+ table = new Uint32Array(256);
3166
+ for (let n = 0; n < 256; n++) {
3167
+ let c = n;
3168
+ for (let k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
3169
+ table[n] = c >>> 0;
3170
+ }
3171
+ }
3172
+ let crc = 4294967295;
3173
+ for (let i = 0; i < data.length; i++) crc = table[(crc ^ data[i]) & 255] ^ crc >>> 8;
3174
+ return (crc ^ 4294967295) >>> 0;
3175
+ }
3176
+ var import_node_crypto6, import_node_zlib2, DEFAULT_CHUNK_BYTES, GZIP_LEVEL, chunkName, table;
3177
+ var init_chunker = __esm({
3178
+ "src/cli/platform/worldData/chunker.ts"() {
3179
+ "use strict";
3180
+ import_node_crypto6 = require("crypto");
3181
+ import_node_zlib2 = require("zlib");
3182
+ init_json();
3183
+ DEFAULT_CHUNK_BYTES = 64 * 1024 * 1024;
3184
+ GZIP_LEVEL = 9;
3185
+ chunkName = (ordinal) => `chunk-${String(ordinal).padStart(5, "0")}.jsonl`;
3186
+ table = null;
3187
+ }
3188
+ });
3189
+
3190
+ // src/cli/platform/worldData/push.ts
3191
+ var push_exports = {};
3192
+ __export(push_exports, {
3193
+ pushRows: () => pushRows
3194
+ });
3195
+ async function pushRows(creds, slug, rows, opts = {}) {
3196
+ const client2 = opts.sleep ? new WorldDataApi(creds, slug, opts.sleep) : new WorldDataApi(creds, slug);
3197
+ const opened = await client2.open({
3198
+ mode: opts.mode ?? "append",
3199
+ merge: "upsert",
3200
+ ...opts.redact && opts.redact !== "off" ? { redact: opts.redact } : {},
3201
+ atomic: true,
3202
+ dryRun: Boolean(opts.dryRun),
3203
+ publish: opts.publish ?? "now",
3204
+ ...opts.message ? { message: opts.message } : {}
757
3205
  });
758
- const minScore = opts.minScore ?? null;
759
- const provenance = detectProvenance();
760
- const branch = opts.branch ?? provenance.branch;
761
- if (!branch)
762
- throw new Error(
763
- "No branch to validate on: pass --branch or run inside a git checkout / GitHub Actions."
764
- );
765
- progress(`pushing ${dir} as ${opts.slug ?? "(pyproject name)"}@${branch}\u2026`);
766
- let tipVersionId = null;
767
- if (opts.slug) {
3206
+ if (!opened.batchId) throw new Error("the platform opened no batch (no batchId in the answer)");
3207
+ const tagged = (async function* () {
3208
+ for (const [entity, listed] of Object.entries(rows))
3209
+ for (let index = 0; index < listed.length; index++)
3210
+ yield { entity, row: parseJson(JSON.stringify(listed[index])), where: `${entity}[${index}]` };
3211
+ })();
3212
+ const chunks = buildChunks(tagged, { chunkBytes: opts.chunkBytes ?? DEFAULT_CHUNK_BYTES, chunkRows: null, entity: null });
3213
+ await forEachLimited(chunks, Math.max(1, opts.parallel ?? 4), async (chunk) => {
3214
+ await client2.upload(opened.batchId, chunk);
3215
+ });
3216
+ await client2.complete(opened.batchId);
3217
+ return waitForBatch(client2, opened.batchId, { initialDelayMs: pollMs() });
3218
+ }
3219
+ function pollMs() {
3220
+ const raw = Number(process.env.GATEWAY_WORLD_DATA_POLL_MS ?? 1e3);
3221
+ return Number.isFinite(raw) && raw >= 0 ? raw : 1e3;
3222
+ }
3223
+ var init_push = __esm({
3224
+ "src/cli/platform/worldData/push.ts"() {
3225
+ "use strict";
3226
+ init_batches();
3227
+ init_chunker();
3228
+ init_json();
3229
+ }
3230
+ });
3231
+
3232
+ // src/worlds/ingest.ts
3233
+ function parseToolCallRecord(raw) {
3234
+ const none = { record: null, skip: null };
3235
+ if (!isObject2(raw)) return { ...none, refusal: "record is not an object" };
3236
+ const kind = raw.kind;
3237
+ if (kind !== void 0 && kind !== null && kind !== "call") return { record: null, skip: `kind ${String(kind)}`, refusal: null };
3238
+ const tool = raw.tool;
3239
+ if (typeof tool !== "string" || !tool) return { ...none, refusal: "record has no tool name" };
3240
+ if (raw.error !== void 0 && raw.error !== null && raw.error !== "") return { record: null, skip: "call failed", refusal: null };
3241
+ const args = raw.args ?? {};
3242
+ if (!isObject2(args)) return { ...none, refusal: `args of ${tool} is not an object` };
3243
+ if (!("result" in raw)) return { ...none, refusal: `record of ${tool} has no result` };
3244
+ const at = raw.at ?? raw.completedAt;
3245
+ const record = { tool, args, result: raw.result };
3246
+ if (typeof at === "string") record.at = at;
3247
+ if (typeof raw.session === "string") record.session = raw.session;
3248
+ if (typeof raw.source === "string") record.source = raw.source;
3249
+ return { record, skip: null, refusal: null };
3250
+ }
3251
+ function readToolCallRecords(paths) {
3252
+ const records = [];
3253
+ for (const file of paths) records.push(...toolCallRecordsIn(fs8.readFileSync(file, "utf8"), file));
3254
+ return records;
3255
+ }
3256
+ function toolCallRecordsIn(text2, where) {
3257
+ const stripped = text2.trim();
3258
+ if (!stripped) return [];
3259
+ if (stripped.startsWith("[")) {
3260
+ const listed = JSON.parse(stripped);
3261
+ if (!Array.isArray(listed)) throw new Error(`${where} is neither a JSON array nor JSON Lines`);
3262
+ listed.forEach((item, index) => {
3263
+ if (!isObject2(item)) throw new Error(`${where}[${index}] is not an object`);
3264
+ });
3265
+ return listed;
3266
+ }
3267
+ const records = [];
3268
+ const lines = text2.split(/\r?\n/);
3269
+ for (let index = 0; index < lines.length; index++) {
3270
+ const line = lines[index];
3271
+ if (!line.trim()) continue;
3272
+ let item;
768
3273
  try {
769
- const tip = await apiRequest(
770
- options,
771
- "POST",
772
- "/api/public/benchmark-containers/resolve-version",
773
- { slug: opts.slug, ref: branch }
774
- );
775
- tipVersionId = tip.versionId ?? null;
3274
+ item = JSON.parse(line);
776
3275
  } catch {
777
- tipVersionId = null;
3276
+ throw new Error(`${where}:${index + 1} is not JSON`);
778
3277
  }
3278
+ if (!isObject2(item)) throw new Error(`${where}:${index + 1} is not an object`);
3279
+ records.push(item);
779
3280
  }
780
- const pushed = await push(dir, {
781
- slug: opts.slug,
782
- branch,
783
- baseVersionId: tipVersionId,
784
- message: `PR validation push (${provenance.commit?.slice(0, 12) ?? "local"})`,
785
- ...provenance.actor?.name ? { author: provenance.actor.name } : {},
786
- options
787
- });
788
- progress(`pushed version ${pushed.versionId} (${pushed.contentHash.slice(0, 12)})`);
789
- const configs = await listRunConfigs(options);
790
- const runConfig = configs.find((c) => c.id === opts.runConfig) ?? configs.find((c) => c.name === opts.runConfig);
791
- if (!runConfig) {
792
- const known = configs.map((c) => c.name).join(", ") || "(none)";
793
- throw new Error(
794
- `Run config "${opts.runConfig}" not found in this project. Have: ${known}`
795
- );
3281
+ return records;
3282
+ }
3283
+ async function emit(sink, record) {
3284
+ if (Array.isArray(sink)) {
3285
+ sink.push(record);
3286
+ return;
796
3287
  }
797
- progress(`dispatching run config "${runConfig.name}" (${runConfig.models.join(", ")})\u2026`);
798
- const dispatched = await apiRequest(options, "POST", "/api/public/benchmark-containers/run-configs/dispatch", {
799
- runConfigId: runConfig.id,
800
- versionId: pushed.versionId,
801
- ...provenance
802
- });
803
- const host = (options.host ?? process.env.GATEWAY_HOST ?? "https://withgateway.ai").replace(/\/+$/, "");
804
- let projectId = null;
3288
+ if (typeof sink === "string") {
3289
+ fs8.appendFileSync(sink, JSON.stringify(record) + "\n");
3290
+ return;
3291
+ }
3292
+ if (typeof sink === "function") {
3293
+ await sink(record);
3294
+ return;
3295
+ }
3296
+ throw new TypeError("sink must be an array, a file path, or a function");
3297
+ }
3298
+ function captureToolCalls(tools, sink, opts = {}) {
3299
+ const wrapped = /* @__PURE__ */ Object.create(null);
3300
+ for (const [name, fn] of Object.entries(tools)) {
3301
+ wrapped[name] = async (args = {}) => {
3302
+ const record = { tool: name, args, at: (/* @__PURE__ */ new Date()).toISOString() };
3303
+ if (opts.session) record.session = opts.session;
3304
+ if (opts.source) record.source = opts.source;
3305
+ let result;
3306
+ try {
3307
+ result = await fn(args);
3308
+ } catch (error) {
3309
+ record.error = error instanceof Error ? error.message || error.name : String(error);
3310
+ await emit(sink, record);
3311
+ throw error;
3312
+ }
3313
+ record.result = result;
3314
+ await emit(sink, record);
3315
+ return result;
3316
+ };
3317
+ }
3318
+ return wrapped;
3319
+ }
3320
+ function jsonish(value) {
3321
+ if (typeof value !== "string") return value;
805
3322
  try {
806
- const projects = await apiRequest(
807
- options,
808
- "GET",
809
- "/api/public/projects"
810
- );
811
- projectId = projects.data?.[0]?.id ?? null;
3323
+ return JSON.parse(value);
812
3324
  } catch {
813
- projectId = null;
3325
+ return value;
814
3326
  }
815
- const fallbackUrl = (report) => {
816
- if (report.url) return report.url;
817
- const evaluationId = report.evaluations[0]?.id;
818
- return projectId && evaluationId ? `${host}/project/${projectId}/environment/runs/${encodeURIComponent(evaluationId)}` : null;
3327
+ }
3328
+ function toolCallsFromObservations(observations, opts = {}) {
3329
+ const known = opts.tools ? new Set(opts.tools) : null;
3330
+ const sinceMs = opts.since ? Date.parse(opts.since) : NaN;
3331
+ const out = { records: [], unknownTools: {}, skipped: {} };
3332
+ const skip = (reason) => {
3333
+ out.skipped[reason] = (out.skipped[reason] ?? 0) + 1;
819
3334
  };
820
- const runs = [];
821
- for (const run of dispatched.runs) {
822
- if (!run.ok) {
823
- runs.push({
824
- model: run.model,
825
- runId: run.runId,
826
- report: null,
827
- failure: `dispatch failed: ${run.error ?? "unknown error"}`
828
- });
3335
+ for (const observation of observations) {
3336
+ if (observation.type !== "TOOL") {
3337
+ skip(`type ${observation.type ?? "unknown"}`);
829
3338
  continue;
830
3339
  }
831
- progress(`waiting on ${run.model} (run ${run.runId})\u2026`);
832
- let report = null;
833
- let failure = null;
834
- try {
835
- report = await waitForRun(run.runId, {
836
- timeoutMinutes: opts.timeoutMinutes ?? 45,
837
- options,
838
- onTick: (r) => progress(
839
- `\u2026${run.model}: ${r.status.toLowerCase()} (${r.shardsCompleted ?? 0}/${r.parallelism} shards)`
840
- )
841
- });
842
- report = { ...report, url: fallbackUrl(report) };
843
- if (report.status.toUpperCase() !== "COMPLETED") {
844
- failure = report.status;
845
- } else if (minScore !== null) {
846
- if (report.score === null) failure = "completed without a score";
847
- else if (report.score < minScore)
848
- failure = `score ${fmtScore(report.score)} < ${minScore}`;
849
- }
850
- } catch (error) {
851
- failure = error instanceof Error ? error.message : String(error);
3340
+ const tool = observation.name;
3341
+ if (typeof tool !== "string" || !tool) {
3342
+ skip("no name");
3343
+ continue;
852
3344
  }
853
- runs.push({ model: run.model, runId: run.runId, report, failure });
3345
+ const at = isoOf(observation.startTime);
3346
+ if (!Number.isNaN(sinceMs) && at !== void 0 && Date.parse(at) < sinceMs) {
3347
+ skip("before since");
3348
+ continue;
3349
+ }
3350
+ if (known && !known.has(tool)) {
3351
+ out.unknownTools[tool] = (out.unknownTools[tool] ?? 0) + 1;
3352
+ continue;
3353
+ }
3354
+ const input = jsonish(observation.input);
3355
+ const record = { tool, args: isObject2(input) ? input : {} };
3356
+ if (observation.level === "ERROR") record.error = observation.statusMessage || "ERROR";
3357
+ else record.result = jsonish(observation.output);
3358
+ if (at !== void 0) record.at = at;
3359
+ if (opts.session) record.session = opts.session;
3360
+ record.source = `trace:${observation.traceId ?? "?"}/${observation.id ?? "?"}`;
3361
+ out.records.push(record);
854
3362
  }
855
- const base = {
856
- ok: runs.length > 0 && runs.every((r) => r.failure === null),
857
- slug: pushed.slug,
858
- branch,
859
- versionId: pushed.versionId,
860
- contentHash: pushed.contentHash,
861
- runConfig: { id: runConfig.id, name: runConfig.name },
862
- runs
3363
+ return out;
3364
+ }
3365
+ function credentialsOf(options) {
3366
+ const host = (options.host ?? process.env.GATEWAY_HOST ?? "https://withgateway.ai").replace(/\/+$/, "");
3367
+ const publicKey = options.publicKey ?? process.env.GATEWAY_PUBLIC_KEY;
3368
+ const secretKey = options.secretKey ?? process.env.GATEWAY_SECRET_KEY;
3369
+ return publicKey && secretKey ? { host, publicKey, secretKey } : null;
3370
+ }
3371
+ async function ingest(world, records, options = {}) {
3372
+ const { ingestLocalToolCalls: ingestLocalToolCalls2, importLocalWorldData: importLocalWorldData2, checkLocalWorldData: checkLocalWorldData2 } = await Promise.resolve().then(() => (init_data(), data_exports));
3373
+ if (options.transform !== void 0 && options.map !== void 0) throw new Error("records go through one of transform, map");
3374
+ const redact = options.redact ?? "off";
3375
+ const mode = options.mode ?? "append";
3376
+ const dryRun = Boolean(options.dryRun);
3377
+ const creds = credentialsOf(options);
3378
+ const local = fs8.existsSync(world) && fs8.statSync(world).isDirectory();
3379
+ const map = options.map === void 0 ? void 0 : options.map;
3380
+ let rows = null;
3381
+ let stderr = "";
3382
+ if (options.transform !== void 0) {
3383
+ const { transformRecords: transformRecords2 } = await Promise.resolve().then(() => (init_transform(), transform_exports));
3384
+ ({ rows, stderr } = await transformRecords2(options.transform, records, { timeoutMs: options.timeoutMs }));
3385
+ }
3386
+ if (local) {
3387
+ if (rows === null) return reportOf(world, await ingestLocalToolCalls2(world, records, { redact, dryRun, mode, map }, creds), redact);
3388
+ const landed = dryRun ? await checkLocalWorldData2(world, rows, creds, { redact }) : await importLocalWorldData2(world, rows, { mode, redact }, creds);
3389
+ return transformReport(world, records.length, rows, stderr, { dryRun, redact, changed: !dryRun && landed.changed, kind: landed.kind, entityCounts: landed.entity_counts });
3390
+ }
3391
+ if (!creds) throw new Error("Gateway keys missing: set GATEWAY_PUBLIC_KEY / GATEWAY_SECRET_KEY (or pass publicKey/secretKey).");
3392
+ const { pull: pull2 } = await Promise.resolve().then(() => (init_hub(), hub_exports));
3393
+ const slug = world.split("@", 1)[0];
3394
+ const scratch = fs8.mkdtempSync(path7.join(os3.tmpdir(), "gateway-ingest-"));
3395
+ try {
3396
+ const pulled = await pull2(world, path7.join(scratch, slug), options);
3397
+ let report;
3398
+ let projected;
3399
+ if (rows === null) {
3400
+ const proven = await ingestLocalToolCalls2(pulled.dir, records, { redact: "off", dryRun: true, mode, map }, creds);
3401
+ report = reportOf(world, proven, redact);
3402
+ projected = proven.projected ?? {};
3403
+ } else {
3404
+ const proven = await checkLocalWorldData2(pulled.dir, rows, creds);
3405
+ report = transformReport(world, records.length, rows, stderr, { dryRun, redact, changed: false, kind: proven.kind, entityCounts: proven.entity_counts });
3406
+ projected = rows;
3407
+ }
3408
+ report.dryRun = dryRun;
3409
+ if (dryRun || report.refusals.length || !Object.keys(projected).length) return report;
3410
+ const { pushRows: pushRows2 } = await Promise.resolve().then(() => (init_push(), push_exports));
3411
+ const status = await pushRows2(creds, slug, projected, { mode, redact, message: options.message });
3412
+ report.batch = status;
3413
+ report.changed = status.state === "applied" || status.state === "published";
3414
+ if (status.entityCounts) report.entityCounts = status.entityCounts;
3415
+ return report;
3416
+ } finally {
3417
+ fs8.rmSync(scratch, { recursive: true, force: true });
3418
+ }
3419
+ }
3420
+ async function ingestToolCalls(world, records, options = {}) {
3421
+ return ingest(world, records, options);
3422
+ }
3423
+ function transformReport(world, records, rows, stderr, outcome) {
3424
+ return {
3425
+ world,
3426
+ via: "transform",
3427
+ ...stderr ? { stderr } : {},
3428
+ records,
3429
+ ingested: records,
3430
+ skipped: {},
3431
+ refusals: [],
3432
+ rows: Object.fromEntries(Object.entries(rows).map(([entity, listed]) => [entity, listed.length])),
3433
+ dryRun: outcome.dryRun,
3434
+ redact: outcome.redact,
3435
+ changed: outcome.changed,
3436
+ ...outcome.kind ? { kind: outcome.kind } : {},
3437
+ ...outcome.entityCounts ? { entityCounts: outcome.entityCounts } : {}
863
3438
  };
3439
+ }
3440
+ function reportOf(world, local, redact) {
864
3441
  return {
865
- ...base,
866
- markdown: buildMarkdown(base, minScore, {
867
- repoUrl: provenance.repoUrl,
868
- commit: provenance.commit
869
- })
3442
+ world,
3443
+ ...local.via ? { via: local.via } : {},
3444
+ ...local.sources ? { sources: local.sources.map(({ unmapped_fields, unset_fields, ...rest }) => ({ ...rest, unmappedFields: unmapped_fields, unsetFields: unset_fields })) } : {},
3445
+ ...local.unmatched ? { unmatched: local.unmatched } : {},
3446
+ ...local.note ? { note: local.note } : {},
3447
+ records: local.records,
3448
+ ingested: local.ingested,
3449
+ skipped: local.skipped,
3450
+ refusals: local.refusals,
3451
+ rows: local.rows,
3452
+ dryRun: local.dry_run,
3453
+ redact,
3454
+ changed: local.changed,
3455
+ ...local.kind ? { kind: local.kind } : {},
3456
+ ...local.entity_counts ? { entityCounts: local.entity_counts } : {}
870
3457
  };
871
3458
  }
872
- var init_validate = __esm({
873
- "src/worlds/validate.ts"() {
3459
+ async function sessionToolObservations(sessionId, options = {}) {
3460
+ const session = await apiRequest(
3461
+ options,
3462
+ "GET",
3463
+ `/api/public/sessions/${encodeURIComponent(sessionId)}?includeIO=true`
3464
+ );
3465
+ const out = [];
3466
+ for (const trace5 of session.traces ?? [])
3467
+ for (const observation of trace5.observations ?? []) out.push({ traceId: trace5.id ?? null, ...observation });
3468
+ return out;
3469
+ }
3470
+ var fs8, os3, path7, isObject2, isoOf;
3471
+ var init_ingest = __esm({
3472
+ "src/worlds/ingest.ts"() {
874
3473
  "use strict";
3474
+ fs8 = __toESM(require("fs"));
3475
+ os3 = __toESM(require("os"));
3476
+ path7 = __toESM(require("path"));
875
3477
  init_worlds();
876
- init_hub();
3478
+ isObject2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
3479
+ isoOf = (value) => value instanceof Date ? value.toISOString() : typeof value === "string" ? value : void 0;
877
3480
  }
878
3481
  });
879
3482
 
880
3483
  // src/worlds/index.ts
881
3484
  var worlds_exports = {};
882
3485
  __export(worlds_exports, {
3486
+ BrowserActionRecorder: () => BrowserActionRecorder,
3487
+ COMPUTER_USE_SPECS: () => COMPUTER_USE_SPECS,
883
3488
  DEFAULT_BRANCH: () => DEFAULT_BRANCH,
3489
+ DEFAULT_VIEWPORT: () => DEFAULT_VIEWPORT,
3490
+ EVENT_BATCH_SIZE: () => EVENT_BATCH_SIZE,
3491
+ EVENT_FLUSH_INTERVAL_MS: () => EVENT_FLUSH_INTERVAL_MS,
3492
+ EVENT_MAX_RETRIES: () => EVENT_MAX_RETRIES,
3493
+ STRIP_PREFIX: () => STRIP_PREFIX,
3494
+ SURFACE_KINDS: () => SURFACE_KINDS,
3495
+ TRANSFORMS: () => TRANSFORMS,
3496
+ WHITESPACE: () => WHITESPACE,
3497
+ WorldBrowser: () => WorldBrowser,
884
3498
  WorldSession: () => WorldSession,
885
3499
  WorldSessionCallError: () => WorldSessionCallError,
886
3500
  WorldSessionTimeout: () => WorldSessionTimeout,
887
3501
  WorldSet: () => WorldSet,
3502
+ WorldSurfaceUnavailable: () => WorldSurfaceUnavailable,
888
3503
  WorldTask: () => WorldTask,
889
3504
  apiRequest: () => apiRequest,
3505
+ applyTransforms: () => applyTransforms,
890
3506
  attachSession: () => attachSession,
891
3507
  buildSourceTarball: () => buildSourceTarball,
3508
+ captureToolCalls: () => captureToolCalls,
892
3509
  collectArchiveRelPaths: () => collectArchiveRelPaths,
893
3510
  computeContentHash: () => computeContentHash,
3511
+ computerUseToolkit: () => computerUseToolkit,
894
3512
  createRef: () => createRef,
3513
+ createTask: () => createTask,
895
3514
  deleteEnvSecret: () => deleteEnvSecret,
3515
+ deleteTask: () => deleteTask,
3516
+ describeWorld: () => describeWorld,
896
3517
  detectProvenance: () => detectProvenance,
897
3518
  getRun: () => getRun,
3519
+ getTask: () => getTask,
3520
+ hashForm: () => hashForm,
3521
+ ingest: () => ingest,
3522
+ ingestToolCalls: () => ingestToolCalls,
898
3523
  isIncludedInContentHash: () => isIncludedInContentHash,
3524
+ isTaskIdRef: () => isTaskIdRef,
3525
+ isTaskSpec: () => isTaskSpec,
899
3526
  listEnvSecretKeys: () => listEnvSecretKeys,
900
3527
  listRunConfigs: () => listRunConfigs,
3528
+ listTasks: () => listTasks,
901
3529
  localTreeState: () => localTreeState,
3530
+ migrateProjectWorlds: () => migrateProjectWorlds,
3531
+ migrateWorld: () => migrateWorld,
3532
+ openBrowser: () => openBrowser,
902
3533
  openSession: () => openSession,
903
3534
  openWorld: () => openWorld,
3535
+ parseToolCallRecord: () => parseToolCallRecord,
3536
+ parseTransform: () => parseTransform,
3537
+ parseWorldTaskRefs: () => parseWorldTaskRefs,
3538
+ preserveForm: () => preserveForm,
904
3539
  propose: () => propose,
905
3540
  pull: () => pull,
906
3541
  push: () => push,
3542
+ pyText: () => pyText,
3543
+ queryRows: () => queryRows,
3544
+ queryRowsSearch: () => queryRowsSearch,
907
3545
  readLocalMeta: () => readLocalMeta,
3546
+ readToolCallRecords: () => readToolCallRecords,
3547
+ redactActionArgs: () => redactActionArgs,
3548
+ redactionOf: () => redactionOf,
3549
+ resolveBrowserMode: () => resolveBrowserMode,
3550
+ roundForm: () => roundForm,
908
3551
  runSessions: () => runSessions,
909
3552
  schemaFromSignature: () => schemaFromSignature,
3553
+ sessionToolObservations: () => sessionToolObservations,
910
3554
  setEnvSecret: () => setEnvSecret,
3555
+ shapeText: () => shapeText,
911
3556
  snapshotTreeHashes: () => snapshotTreeHashes,
3557
+ storedForms: () => storedForms,
3558
+ surfaceKinds: () => surfaceKinds,
3559
+ taskLabel: () => taskLabel,
3560
+ toolCallRecordsIn: () => toolCallRecordsIn,
3561
+ toolCallsFromObservations: () => toolCallsFromObservations,
3562
+ uiEntryUrl: () => uiEntryUrl,
3563
+ uiUrl: () => uiUrl,
3564
+ updateTask: () => updateTask,
3565
+ upsertRunConfig: () => upsertRunConfig,
3566
+ validateTask: () => validateTask,
912
3567
  validateWorld: () => validateWorld,
913
3568
  waitForRun: () => waitForRun,
3569
+ withoutUiToken: () => withoutUiToken,
914
3570
  writeLocalMeta: () => writeLocalMeta
915
3571
  });
916
3572
  function resolveEnv(options) {
@@ -924,9 +3580,9 @@ function resolveEnv(options) {
924
3580
  }
925
3581
  return { host: host.replace(/\/+$/, ""), publicKey, secretKey };
926
3582
  }
927
- async function apiRequest(options, method, path2, body) {
3583
+ async function apiRequest(options, method, path9, body) {
928
3584
  const { host, publicKey, secretKey } = resolveEnv(options);
929
- const res = await fetch(`${host}${path2}`, {
3585
+ const res = await fetch(`${host}${path9}`, {
930
3586
  method,
931
3587
  headers: {
932
3588
  "content-type": "application/json",
@@ -934,13 +3590,13 @@ async function apiRequest(options, method, path2, body) {
934
3590
  },
935
3591
  ...body === void 0 ? {} : { body: JSON.stringify(body) }
936
3592
  });
937
- const text = await res.text();
3593
+ const text2 = await res.text();
938
3594
  if (!res.ok) {
939
3595
  throw new Error(
940
- `${method} ${path2} -> ${res.status}: ${text.slice(0, 400)}`
3596
+ `${method} ${path9} -> ${res.status}: ${text2.slice(0, 400)}`
941
3597
  );
942
3598
  }
943
- return JSON.parse(text);
3599
+ return JSON.parse(text2);
944
3600
  }
945
3601
  async function setEnvSecret(slug, key, value, options = {}) {
946
3602
  return apiRequest(
@@ -981,6 +3637,28 @@ async function listRunConfigs(options = {}) {
981
3637
  );
982
3638
  return res.runConfigs;
983
3639
  }
3640
+ async function upsertRunConfig(input, options = {}) {
3641
+ return apiRequest(
3642
+ options,
3643
+ "POST",
3644
+ "/api/public/benchmark-containers/run-configs",
3645
+ input
3646
+ );
3647
+ }
3648
+ function parseWorldTaskRefs(spec) {
3649
+ const items = (Array.isArray(spec) ? spec : spec.split(",")).map((s) => s.trim()).filter(Boolean);
3650
+ return items.map((item) => {
3651
+ const at = item.lastIndexOf("@");
3652
+ if (at < 0) return { id: item };
3653
+ const id = item.slice(0, at);
3654
+ const version = Number(item.slice(at + 1));
3655
+ if (!id || !Number.isInteger(version) || version < 1)
3656
+ throw new Error(
3657
+ `stored task ref '${item}' is not <id> or <id>@<version> (version a positive integer)`
3658
+ );
3659
+ return { id, version };
3660
+ });
3661
+ }
984
3662
  async function getRun(runId, options = {}) {
985
3663
  return apiRequest(
986
3664
  options,
@@ -999,7 +3677,7 @@ async function waitForRun(runId, opts = {}) {
999
3677
  );
1000
3678
  opts.onTick?.(run);
1001
3679
  await new Promise(
1002
- (resolve2) => setTimeout(resolve2, (opts.intervalSeconds ?? 20) * 1e3)
3680
+ (resolve7) => setTimeout(resolve7, (opts.intervalSeconds ?? 20) * 1e3)
1003
3681
  );
1004
3682
  }
1005
3683
  }
@@ -1074,8 +3752,16 @@ var init_worlds = __esm({
1074
3752
  "src/worlds/index.ts"() {
1075
3753
  "use strict";
1076
3754
  init_session();
3755
+ init_tasks();
3756
+ init_browser();
1077
3757
  init_hub();
1078
3758
  init_validate();
3759
+ init_describe();
3760
+ init_redaction();
3761
+ init_transforms();
3762
+ init_query();
3763
+ init_migrate();
3764
+ init_ingest();
1079
3765
  WorldTask = class {
1080
3766
  constructor(world, name, variant) {
1081
3767
  this.world = world;
@@ -1103,15 +3789,18 @@ var init_worlds = __esm({
1103
3789
  return hit;
1104
3790
  }
1105
3791
  /**
1106
- * Open a LIVE session against one of this world's tasks: the platform boots
1107
- * (or reuses) a warm container, and your agent calls its tools through the
1108
- * platform. See worlds/session.ts.
3792
+ * Open a LIVE session against one of this world's tasks — a bundled task's
3793
+ * name or an inline `WorldTaskSpec`: the platform boots (or reuses) a warm
3794
+ * container, and your agent calls its tools through the platform. See
3795
+ * worlds/session.ts.
1109
3796
  */
1110
3797
  async open(task, opts = {}) {
1111
3798
  const { openSession: openSession2 } = await Promise.resolve().then(() => (init_session(), session_exports));
1112
- return openSession2(this.slug, task, {
3799
+ return openSession2(this.slug, {
3800
+ task,
1113
3801
  versionId: this.version.versionId,
1114
3802
  reuseWarm: opts.reuseWarm,
3803
+ surfaces: opts.surfaces,
1115
3804
  options: this.options
1116
3805
  });
1117
3806
  }
@@ -1143,7 +3832,7 @@ var require_package = __commonJS({
1143
3832
  "package.json"(exports2, module2) {
1144
3833
  module2.exports = {
1145
3834
  name: "@withgateway/sdk",
1146
- version: "0.1.20",
3835
+ version: "0.2.1",
1147
3836
  description: "Gateway SDK for TypeScript - A/B experiments, tracing, and observability",
1148
3837
  main: "./dist/index.js",
1149
3838
  module: "./dist/index.mjs",
@@ -1208,16 +3897,34 @@ var require_package = __commonJS({
1208
3897
  types: "./dist/worlds/index.d.ts",
1209
3898
  import: "./dist/worlds/index.mjs",
1210
3899
  require: "./dist/worlds/index.js"
3900
+ },
3901
+ "./files": {
3902
+ types: "./dist/files/index.d.ts",
3903
+ import: "./dist/files/index.mjs",
3904
+ require: "./dist/files/index.js"
3905
+ },
3906
+ "./traces": {
3907
+ types: "./dist/traces/index.d.ts",
3908
+ import: "./dist/traces/index.mjs",
3909
+ require: "./dist/traces/index.js"
3910
+ },
3911
+ "./cli": {
3912
+ types: "./dist/cli.d.ts",
3913
+ import: "./dist/cli.mjs",
3914
+ require: "./dist/cli.js"
1211
3915
  }
1212
3916
  },
1213
3917
  files: [
1214
3918
  "dist",
3919
+ "skills",
3920
+ "runtime",
1215
3921
  "README.md"
1216
3922
  ],
1217
3923
  publishConfig: {
1218
3924
  access: "public"
1219
3925
  },
1220
3926
  scripts: {
3927
+ prebuild: "node scripts/copy-skills.mjs && node scripts/copy-runtime.mjs",
1221
3928
  build: "tsup",
1222
3929
  dev: "tsup --watch",
1223
3930
  typecheck: "tsc --noEmit",
@@ -1250,7 +3957,8 @@ var require_package = __commonJS({
1250
3957
  "@opentelemetry/exporter-trace-otlp-http": ">=0.50.0",
1251
3958
  "@opentelemetry/resources": ">=1.0.0",
1252
3959
  "@opentelemetry/sdk-trace-base": ">=1.0.0",
1253
- "@opentelemetry/sdk-trace-node": ">=1.0.0"
3960
+ "@opentelemetry/sdk-trace-node": ">=1.0.0",
3961
+ playwright: ">=1.40.0"
1254
3962
  },
1255
3963
  peerDependenciesMeta: {
1256
3964
  "@opentelemetry/api": {
@@ -1267,6 +3975,9 @@ var require_package = __commonJS({
1267
3975
  },
1268
3976
  "@opentelemetry/resources": {
1269
3977
  optional: true
3978
+ },
3979
+ playwright: {
3980
+ optional: true
1270
3981
  }
1271
3982
  },
1272
3983
  optionalDependencies: {
@@ -1314,12 +4025,18 @@ var require_package = __commonJS({
1314
4025
  var src_exports = {};
1315
4026
  __export(src_exports, {
1316
4027
  AGENT_ID_KEY: () => AGENT_ID_KEY,
4028
+ BrowserActionRecorder: () => BrowserActionRecorder,
4029
+ COMPUTER_USE_SPECS: () => COMPUTER_USE_SPECS,
1317
4030
  DEFAULT_BRANCH: () => DEFAULT_BRANCH,
1318
4031
  DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS,
4032
+ DEFAULT_VIEWPORT: () => DEFAULT_VIEWPORT,
1319
4033
  DriftError: () => DriftError,
1320
4034
  ENV_GATEWAY_HOST: () => ENV_GATEWAY_HOST,
1321
4035
  ENV_GATEWAY_PUBLIC_KEY: () => ENV_GATEWAY_PUBLIC_KEY,
1322
4036
  ENV_GATEWAY_SECRET_KEY: () => ENV_GATEWAY_SECRET_KEY,
4037
+ EVENT_BATCH_SIZE: () => EVENT_BATCH_SIZE,
4038
+ EVENT_FLUSH_INTERVAL_MS: () => EVENT_FLUSH_INTERVAL_MS,
4039
+ EVENT_MAX_RETRIES: () => EVENT_MAX_RETRIES,
1323
4040
  EXPERIMENT_ATTRIBUTES: () => EXPERIMENT_ATTRIBUTES,
1324
4041
  ExperimentClient: () => ExperimentClient,
1325
4042
  ExperimentSpanProcessor: () => ExperimentSpanProcessor,
@@ -1344,44 +4061,57 @@ __export(src_exports, {
1344
4061
  ReplayReport: () => ReplayReport,
1345
4062
  ReplaySuite: () => ReplaySuite,
1346
4063
  ReplayTask: () => ReplayTask,
4064
+ STRIP_PREFIX: () => STRIP_PREFIX,
1347
4065
  SUCCESS_METRIC_NAME_KEY: () => SUCCESS_METRIC_NAME_KEY,
1348
4066
  SUCCESS_SIGNAL_KEY: () => SUCCESS_SIGNAL_KEY,
4067
+ SURFACE_KINDS: () => SURFACE_KINDS,
1349
4068
  ScoreError: () => ScoreError,
1350
4069
  ScoresClient: () => ScoresClient,
1351
4070
  SessionLoadError: () => SessionLoadError,
1352
4071
  SessionRecording: () => SessionRecording,
1353
4072
  SessionTrace: () => SessionTrace,
1354
4073
  StubMissError: () => StubMissError,
4074
+ TRANSFORMS: () => TRANSFORMS,
1355
4075
  ToolStubRegistry: () => ToolStubRegistry,
1356
4076
  TraceDiff: () => TraceDiff,
1357
4077
  UserProfileError: () => UserProfileError,
1358
4078
  UsersClient: () => UsersClient,
4079
+ WHITESPACE: () => WHITESPACE,
4080
+ WorldBrowser: () => WorldBrowser,
1359
4081
  WorldSession: () => WorldSession,
1360
4082
  WorldSessionCallError: () => WorldSessionCallError,
1361
4083
  WorldSessionTimeout: () => WorldSessionTimeout,
1362
4084
  WorldSet: () => WorldSet,
4085
+ WorldSurfaceUnavailable: () => WorldSurfaceUnavailable,
1363
4086
  WorldTask: () => WorldTask,
1364
4087
  addExperimentAttributes: () => addExperimentAttributes,
1365
4088
  apiRequest: () => apiRequest,
4089
+ applyTransforms: () => applyTransforms,
1366
4090
  assembleManifest: () => assembleManifest,
1367
4091
  assignVariant: () => assignVariant,
1368
4092
  attachSession: () => attachSession,
1369
4093
  basicAuthHeader: () => basicAuthHeader,
1370
4094
  buildSourceTarball: () => buildSourceTarball,
1371
4095
  canonicalJson: () => canonicalJson,
4096
+ captureToolCalls: () => captureToolCalls,
1372
4097
  clearExperimentContext: () => clearExperimentContext,
1373
4098
  collectArchiveRelPaths: () => collectArchiveRelPaths,
1374
4099
  computeBuildHash: () => computeBuildHash,
1375
4100
  computeContentHash: () => computeContentHash,
1376
4101
  computeHash: () => computeHash,
4102
+ computerUseToolkit: () => computerUseToolkit,
1377
4103
  context: () => context,
1378
4104
  createRef: () => createRef,
4105
+ createTask: () => createTask,
1379
4106
  currentTraceId: () => currentTraceId,
1380
4107
  defineTool: () => defineTool,
1381
4108
  deleteEnvSecret: () => deleteEnvSecret,
4109
+ deleteTask: () => deleteTask,
4110
+ describeWorld: () => describeWorld,
1382
4111
  detectProvenance: () => detectProvenance,
1383
4112
  experimentContextStorage: () => experimentContextStorage,
1384
4113
  experiments: () => singleton_exports,
4114
+ files: () => files_exports,
1385
4115
  gateway: () => gateway,
1386
4116
  getExperimentContext: () => getExperimentContext,
1387
4117
  getRegisteredArtifacts: () => getRegisteredArtifacts,
@@ -1389,43 +4119,79 @@ __export(src_exports, {
1389
4119
  getRegisteredSkills: () => getRegisteredSkills,
1390
4120
  getRegisteredTools: () => getRegisteredTools,
1391
4121
  getRun: () => getRun,
4122
+ getTask: () => getTask,
4123
+ hashForm: () => hashForm,
1392
4124
  identify: () => identify,
4125
+ ingest: () => ingest,
4126
+ ingestToolCalls: () => ingestToolCalls,
1393
4127
  isIncludedInContentHash: () => isIncludedInContentHash,
4128
+ isTaskIdRef: () => isTaskIdRef,
4129
+ isTaskSpec: () => isTaskSpec,
1394
4130
  listEnvSecretKeys: () => listEnvSecretKeys,
1395
4131
  listRunConfigs: () => listRunConfigs,
4132
+ listTasks: () => listTasks,
1396
4133
  loadSession: () => loadSession,
1397
4134
  localTreeState: () => localTreeState,
1398
4135
  memory: () => memory,
4136
+ migrateProjectWorlds: () => migrateProjectWorlds,
4137
+ migrateWorld: () => migrateWorld,
4138
+ openBrowser: () => openBrowser,
1399
4139
  openSession: () => openSession,
1400
4140
  openWorld: () => openWorld,
4141
+ parseToolCallRecord: () => parseToolCallRecord,
4142
+ parseTransform: () => parseTransform,
4143
+ parseWorldTaskRefs: () => parseWorldTaskRefs,
1401
4144
  personas: () => personas,
4145
+ preserveForm: () => preserveForm,
1402
4146
  propose: () => propose,
1403
4147
  pull: () => pull,
1404
4148
  push: () => push,
4149
+ pyText: () => pyText,
4150
+ queryRows: () => queryRows,
4151
+ queryRowsSearch: () => queryRowsSearch,
1405
4152
  readLocalMeta: () => readLocalMeta,
4153
+ readToolCallRecords: () => readToolCallRecords,
4154
+ redactActionArgs: () => redactActionArgs,
4155
+ redactionOf: () => redactionOf,
1406
4156
  registerArtifact: () => registerArtifact,
1407
4157
  registerPrompt: () => registerPrompt,
1408
4158
  registerSkill: () => registerSkill,
1409
4159
  renderAgentSystem: () => renderAgentSystem,
1410
4160
  replay: () => replay,
1411
4161
  resetBuildRegistry: () => resetBuildRegistry,
4162
+ resolveBrowserMode: () => resolveBrowserMode,
1412
4163
  resolveUserId: () => resolveUserId,
4164
+ roundForm: () => roundForm,
1413
4165
  runSessions: () => runSessions,
1414
4166
  runSuite: () => runSuite,
1415
4167
  runWithExperimentContext: () => runWithExperimentContext,
1416
4168
  schemaFromSignature: () => schemaFromSignature,
1417
4169
  scores: () => scores,
1418
4170
  sessionObservationFromApi: () => sessionObservationFromApi,
4171
+ sessionToolObservations: () => sessionToolObservations,
1419
4172
  sessions: () => sessions,
1420
4173
  setEnvSecret: () => setEnvSecret,
1421
4174
  setExperimentContext: () => setExperimentContext,
4175
+ shapeText: () => shapeText,
1422
4176
  snapshotTreeHashes: () => snapshotTreeHashes,
4177
+ storedForms: () => storedForms,
1423
4178
  success: () => success,
1424
4179
  suite: () => suite,
4180
+ surfaceKinds: () => surfaceKinds,
4181
+ taskLabel: () => taskLabel,
4182
+ toolCallRecordsIn: () => toolCallRecordsIn,
4183
+ toolCallsFromObservations: () => toolCallsFromObservations,
4184
+ traces: () => traces_exports,
1425
4185
  tracing: () => tracing,
4186
+ uiEntryUrl: () => uiEntryUrl,
4187
+ uiUrl: () => uiUrl,
4188
+ updateTask: () => updateTask,
4189
+ upsertRunConfig: () => upsertRunConfig,
1426
4190
  users: () => users,
4191
+ validateTask: () => validateTask,
1427
4192
  validateWorld: () => validateWorld,
1428
4193
  waitForRun: () => waitForRun,
4194
+ withoutUiToken: () => withoutUiToken,
1429
4195
  writeLocalMeta: () => writeLocalMeta
1430
4196
  });
1431
4197
  module.exports = __toCommonJS(src_exports);
@@ -1688,9 +4454,9 @@ var ExperimentClient = class {
1688
4454
  })
1689
4455
  });
1690
4456
  if (!response.ok) {
1691
- const text = await response.text();
4457
+ const text2 = await response.text();
1692
4458
  throw new Error(
1693
- `Failed to sync experiment: ${response.status} ${response.statusText} - ${text}`
4459
+ `Failed to sync experiment: ${response.status} ${response.statusText} - ${text2}`
1694
4460
  );
1695
4461
  }
1696
4462
  console.log(`[gateway] Synced experiment '${config.key}' to backend`);
@@ -2000,8 +4766,8 @@ var GatewayContext = class _GatewayContext {
2000
4766
  }
2001
4767
  return resolved;
2002
4768
  }
2003
- async requestJson(method, path2, payload) {
2004
- const response = await fetch(`${this.host}${path2}`, {
4769
+ async requestJson(method, path9, payload) {
4770
+ const response = await fetch(`${this.host}${path9}`, {
2005
4771
  method,
2006
4772
  headers: {
2007
4773
  Authorization: this.authHeader(),
@@ -2009,10 +4775,10 @@ var GatewayContext = class _GatewayContext {
2009
4775
  },
2010
4776
  ...payload ? { body: JSON.stringify(payload) } : {}
2011
4777
  });
2012
- const text = await response.text();
2013
- const body = text ? safeJson(text) : {};
4778
+ const text2 = await response.text();
4779
+ const body = text2 ? safeJson(text2) : {};
2014
4780
  if (!response.ok) {
2015
- const message = typeof body.message === "string" ? body.message : `Gateway API ${response.status} on ${path2}`;
4781
+ const message = typeof body.message === "string" ? body.message : `Gateway API ${response.status} on ${path9}`;
2016
4782
  if (response.status === 409) {
2017
4783
  throw new GatewayContextConflictError(
2018
4784
  message,
@@ -2021,7 +4787,7 @@ var GatewayContext = class _GatewayContext {
2021
4787
  }
2022
4788
  throw new GatewayContextError(message);
2023
4789
  }
2024
- this.log("%s %s -> %s", method, path2, response.status);
4790
+ this.log("%s %s -> %s", method, path9, response.status);
2025
4791
  return body;
2026
4792
  }
2027
4793
  authHeader() {
@@ -2128,11 +4894,11 @@ function primaryPathForKind(kind, snapshot) {
2128
4894
  const preferred = kind === "agent" ? "AGENTS.md" : kind === "prompt" ? "PROMPT.md" : kind === "skill" ? "SKILL.md" : "MEMORY.md";
2129
4895
  if (readFile(snapshot, preferred)) return preferred;
2130
4896
  return Object.entries(snapshot.files).find(
2131
- ([path2, entry]) => entry.type === "file" && path2.endsWith(".md")
4897
+ ([path9, entry]) => entry.type === "file" && path9.endsWith(".md")
2132
4898
  )?.[0] ?? null;
2133
4899
  }
2134
- function parseJsonFile(snapshot, path2) {
2135
- const content = readFile(snapshot, path2);
4900
+ function parseJsonFile(snapshot, path9) {
4901
+ const content = readFile(snapshot, path9);
2136
4902
  if (!content) return {};
2137
4903
  try {
2138
4904
  const parsed = JSON.parse(content);
@@ -2141,8 +4907,8 @@ function parseJsonFile(snapshot, path2) {
2141
4907
  return {};
2142
4908
  }
2143
4909
  }
2144
- function readFile(snapshot, path2) {
2145
- const entry = snapshot.files[path2];
4910
+ function readFile(snapshot, path9) {
4911
+ const entry = snapshot.files[path9];
2146
4912
  return entry?.type === "file" ? entry.content : null;
2147
4913
  }
2148
4914
  function provenanceFor(snapshot, label) {
@@ -2244,16 +5010,16 @@ var GatewayMemory = class _GatewayMemory {
2244
5010
  `/api/public/context/memory/${encodeIdentifier2(identifier)}${suffix}`
2245
5011
  );
2246
5012
  }
2247
- async read(target, path2, options = {}) {
5013
+ async read(target, path9, options = {}) {
2248
5014
  const snapshot = typeof target === "string" ? await this.pull(target, options) : target;
2249
- const file = snapshot.files[path2];
5015
+ const file = snapshot.files[path9];
2250
5016
  return file?.type === "file" ? file.content : null;
2251
5017
  }
2252
- async write(target, path2, content, options = {}) {
5018
+ async write(target, path9, content, options = {}) {
2253
5019
  const snapshot = typeof target === "string" ? await this.pull(target) : target;
2254
5020
  return this.push(snapshot.repo.repoHandle, {
2255
5021
  files: {
2256
- [path2]: {
5022
+ [path9]: {
2257
5023
  content,
2258
5024
  ...options.mimeType ? { mimeType: options.mimeType } : {}
2259
5025
  }
@@ -2263,10 +5029,10 @@ var GatewayMemory = class _GatewayMemory {
2263
5029
  ...runtimeContextPayload2(options)
2264
5030
  });
2265
5031
  }
2266
- async delete(target, path2, options = {}) {
5032
+ async delete(target, path9, options = {}) {
2267
5033
  const snapshot = typeof target === "string" ? await this.pull(target) : target;
2268
5034
  return this.push(snapshot.repo.repoHandle, {
2269
- files: { [path2]: null },
5035
+ files: { [path9]: null },
2270
5036
  parentCommit: options.parentCommit ?? snapshot.commit.commitHash,
2271
5037
  message: options.message,
2272
5038
  ...runtimeContextPayload2(options)
@@ -2279,8 +5045,8 @@ var GatewayMemory = class _GatewayMemory {
2279
5045
  payload
2280
5046
  );
2281
5047
  }
2282
- async requestJson(method, path2, payload) {
2283
- const response = await fetch(`${this.host}${path2}`, {
5048
+ async requestJson(method, path9, payload) {
5049
+ const response = await fetch(`${this.host}${path9}`, {
2284
5050
  method,
2285
5051
  headers: {
2286
5052
  Authorization: this.authHeader(),
@@ -2288,10 +5054,10 @@ var GatewayMemory = class _GatewayMemory {
2288
5054
  },
2289
5055
  ...payload ? { body: JSON.stringify(payload) } : {}
2290
5056
  });
2291
- const text = await response.text();
2292
- const body = text ? safeJson2(text) : {};
5057
+ const text2 = await response.text();
5058
+ const body = text2 ? safeJson2(text2) : {};
2293
5059
  if (!response.ok) {
2294
- const message = typeof body.message === "string" ? body.message : `Gateway API ${response.status} on ${path2}`;
5060
+ const message = typeof body.message === "string" ? body.message : `Gateway API ${response.status} on ${path9}`;
2295
5061
  if (response.status === 409) {
2296
5062
  throw new GatewayMemoryConflictError(
2297
5063
  message,
@@ -2300,7 +5066,7 @@ var GatewayMemory = class _GatewayMemory {
2300
5066
  }
2301
5067
  throw new GatewayMemoryError(message);
2302
5068
  }
2303
- this.log("%s %s -> %s", method, path2, response.status);
5069
+ this.log("%s %s -> %s", method, path9, response.status);
2304
5070
  return body;
2305
5071
  }
2306
5072
  authHeader() {
@@ -2462,10 +5228,10 @@ var PersonasClient = class _PersonasClient {
2462
5228
  done: Boolean(payload.done)
2463
5229
  };
2464
5230
  }
2465
- async requestJson(method, path2, payload) {
5231
+ async requestJson(method, path9, payload) {
2466
5232
  let response;
2467
5233
  try {
2468
- response = await fetch(`${this.host}${path2}`, {
5234
+ response = await fetch(`${this.host}${path9}`, {
2469
5235
  method,
2470
5236
  headers: {
2471
5237
  Authorization: this.authHeader(),
@@ -2476,19 +5242,19 @@ var PersonasClient = class _PersonasClient {
2476
5242
  });
2477
5243
  } catch (error) {
2478
5244
  const reason = error instanceof Error ? error.message : String(error);
2479
- throw new PersonaError(`${method} ${path2} failed: ${reason}`, {
5245
+ throw new PersonaError(`${method} ${path9} failed: ${reason}`, {
2480
5246
  cause: error
2481
5247
  });
2482
5248
  }
2483
- const text = await response.text();
5249
+ const text2 = await response.text();
2484
5250
  if (!response.ok) {
2485
- const detail = text.slice(0, 500);
5251
+ const detail = text2.slice(0, 500);
2486
5252
  throw new PersonaError(
2487
- `${method} ${path2} failed (${response.status}): ${detail}`
5253
+ `${method} ${path9} failed (${response.status}): ${detail}`
2488
5254
  );
2489
5255
  }
2490
- this.log("%s %s -> %s", method, path2, response.status);
2491
- return safeJson3(text);
5256
+ this.log("%s %s -> %s", method, path9, response.status);
5257
+ return safeJson3(text2);
2492
5258
  }
2493
5259
  authHeader() {
2494
5260
  return `Basic ${Buffer.from(`${this.publicKey}:${this.secretKey}`).toString(
@@ -2712,10 +5478,10 @@ var SessionRecording = class _SessionRecording {
2712
5478
  };
2713
5479
  }
2714
5480
  /** Dump the full session as a JSON fixture (for regression tests). */
2715
- toFixture(path2) {
2716
- (0, import_node_fs.mkdirSync)((0, import_node_path.dirname)(path2), { recursive: true });
2717
- (0, import_node_fs.writeFileSync)(path2, JSON.stringify(this.toJSON(), null, 2), "utf-8");
2718
- return path2;
5481
+ toFixture(path9) {
5482
+ (0, import_node_fs.mkdirSync)((0, import_node_path.dirname)(path9), { recursive: true });
5483
+ (0, import_node_fs.writeFileSync)(path9, JSON.stringify(this.toJSON(), null, 2), "utf-8");
5484
+ return path9;
2719
5485
  }
2720
5486
  static fromApi(raw) {
2721
5487
  return new _SessionRecording({
@@ -2756,15 +5522,15 @@ async function loadSession(sessionId, options = {}) {
2756
5522
  if (response.status === 404) {
2757
5523
  throw new SessionLoadError(`Session not found: ${sessionId}`);
2758
5524
  }
2759
- const text = await response.text();
5525
+ const text2 = await response.text();
2760
5526
  if (!response.ok) {
2761
5527
  throw new SessionLoadError(
2762
- `Failed to load session ${sessionId}: HTTP ${response.status} \u2014 ${text.slice(0, 300)}`
5528
+ `Failed to load session ${sessionId}: HTTP ${response.status} \u2014 ${text2.slice(0, 300)}`
2763
5529
  );
2764
5530
  }
2765
5531
  let payload;
2766
5532
  try {
2767
- payload = JSON.parse(text);
5533
+ payload = JSON.parse(text2);
2768
5534
  } catch (error) {
2769
5535
  throw new SessionLoadError(
2770
5536
  `Failed to load session ${sessionId}: response is not valid JSON`,
@@ -3312,13 +6078,13 @@ var ReplaySuite = class _ReplaySuite {
3312
6078
  if (response.status === 404) {
3313
6079
  return null;
3314
6080
  }
3315
- const text = await response.text();
6081
+ const text2 = await response.text();
3316
6082
  if (!response.ok) {
3317
6083
  throw new ReplayError(
3318
- `Failed to list tasks for ${datasetId}: HTTP ${response.status} \u2014 ${text.slice(0, 300)}`
6084
+ `Failed to list tasks for ${datasetId}: HTTP ${response.status} \u2014 ${text2.slice(0, 300)}`
3319
6085
  );
3320
6086
  }
3321
- const payload = parseJsonObject(text);
6087
+ const payload = parseJsonObject(text2);
3322
6088
  const pageTasks = Array.isArray(payload.tasks) ? payload.tasks : [];
3323
6089
  tasks.push(...pageTasks.filter(isPlainObject2));
3324
6090
  if (tasks.length >= Number(payload.totalTasks ?? 0)) {
@@ -3335,13 +6101,13 @@ var ReplaySuite = class _ReplaySuite {
3335
6101
  `${host}/api/public/task-sets?name=${encodeURIComponent(nameOrId)}`,
3336
6102
  { headers, signal: AbortSignal.timeout(timeoutSeconds * 1e3) }
3337
6103
  );
3338
- const text = await response.text();
6104
+ const text2 = await response.text();
3339
6105
  if (!response.ok) {
3340
6106
  throw new ReplayError(
3341
- `Failed to resolve task set '${nameOrId}': HTTP ${response.status} \u2014 ${text.slice(0, 300)}`
6107
+ `Failed to resolve task set '${nameOrId}': HTTP ${response.status} \u2014 ${text2.slice(0, 300)}`
3342
6108
  );
3343
6109
  }
3344
- const payload = parseJsonObject(text);
6110
+ const payload = parseJsonObject(text2);
3345
6111
  const matches = Array.isArray(payload.taskSets) ? payload.taskSets.filter(isPlainObject2) : [];
3346
6112
  if (matches.length === 0) {
3347
6113
  throw new ReplayError(`Task set not found: ${nameOrId}`);
@@ -3464,8 +6230,8 @@ async function recordRunItem(suiteToRecord, testCase, runName, traceId, triage,
3464
6230
  if (response.status === 200) {
3465
6231
  return null;
3466
6232
  }
3467
- const text = await response.text();
3468
- lastError = `HTTP ${response.status}: ${text.slice(0, 200)}`;
6233
+ const text2 = await response.text();
6234
+ lastError = `HTTP ${response.status}: ${text2.slice(0, 200)}`;
3469
6235
  if (response.status !== 404) {
3470
6236
  return lastError;
3471
6237
  }
@@ -3538,9 +6304,9 @@ function suite(nameOrId, options = {}) {
3538
6304
  function isPlainObject2(value) {
3539
6305
  return typeof value === "object" && value !== null && !Array.isArray(value);
3540
6306
  }
3541
- function parseJsonObject(text) {
6307
+ function parseJsonObject(text2) {
3542
6308
  try {
3543
- const parsed = JSON.parse(text);
6309
+ const parsed = JSON.parse(text2);
3544
6310
  return isPlainObject2(parsed) ? parsed : {};
3545
6311
  } catch {
3546
6312
  return {};
@@ -3550,7 +6316,7 @@ function randomHex() {
3550
6316
  return crypto.randomUUID().replace(/-/g, "");
3551
6317
  }
3552
6318
  function sleep(ms) {
3553
- return new Promise((resolve2) => setTimeout(resolve2, ms));
6319
+ return new Promise((resolve7) => setTimeout(resolve7, ms));
3554
6320
  }
3555
6321
  var replay = {
3556
6322
  suite,
@@ -3637,7 +6403,7 @@ var GatewaySecurity = class _GatewaySecurity {
3637
6403
  const descriptors = entries.map(
3638
6404
  ([key, tool]) => this.describeTool(key, tool, options)
3639
6405
  );
3640
- const resolve2 = await this.resolveToolset({
6406
+ const resolve7 = await this.resolveToolset({
3641
6407
  agent: this.agent,
3642
6408
  toolsetId: options.toolsetId,
3643
6409
  toolsetName: options.toolsetName,
@@ -3647,8 +6413,8 @@ var GatewaySecurity = class _GatewaySecurity {
3647
6413
  });
3648
6414
  const securedEntries = entries.flatMap(([key, tool]) => {
3649
6415
  const descriptor = descriptors.find((item) => item.name === key);
3650
- if (!this.shouldExposeTool(resolve2, descriptor.id)) {
3651
- this.log("Hiding tool %s in %s mode", descriptor.id, resolve2.mode);
6416
+ if (!this.shouldExposeTool(resolve7, descriptor.id)) {
6417
+ this.log("Hiding tool %s in %s mode", descriptor.id, resolve7.mode);
3652
6418
  return [];
3653
6419
  }
3654
6420
  return [
@@ -3658,7 +6424,7 @@ var GatewaySecurity = class _GatewaySecurity {
3658
6424
  toolId: descriptor.id,
3659
6425
  toolsetId: options.toolsetId,
3660
6426
  context: this.normalizeContext(options.context),
3661
- resolve: resolve2
6427
+ resolve: resolve7
3662
6428
  })
3663
6429
  ]
3664
6430
  ];
@@ -3746,8 +6512,8 @@ var GatewaySecurity = class _GatewaySecurity {
3746
6512
  );
3747
6513
  }
3748
6514
  }
3749
- async postJson(path2, payload) {
3750
- const response = await fetch(`${this.host}${path2}`, {
6515
+ async postJson(path9, payload) {
6516
+ const response = await fetch(`${this.host}${path9}`, {
3751
6517
  method: "POST",
3752
6518
  headers: {
3753
6519
  Authorization: this.authHeader(),
@@ -3758,7 +6524,7 @@ var GatewaySecurity = class _GatewaySecurity {
3758
6524
  if (!response.ok) {
3759
6525
  const body = await response.text();
3760
6526
  throw new GatewaySecurityError(
3761
- `Gateway API ${response.status} on ${path2}: ${body || response.statusText}`
6527
+ `Gateway API ${response.status} on ${path9}: ${body || response.statusText}`
3762
6528
  );
3763
6529
  }
3764
6530
  return await response.json();
@@ -3773,9 +6539,9 @@ var GatewaySecurity = class _GatewaySecurity {
3773
6539
  metadata: options.toolMetadata?.[key] ?? {}
3774
6540
  };
3775
6541
  }
3776
- shouldExposeTool(resolve2, toolId) {
3777
- if (resolve2.mode === "observe") return true;
3778
- if (resolve2.blockedToolIds.includes(toolId)) return false;
6542
+ shouldExposeTool(resolve7, toolId) {
6543
+ if (resolve7.mode === "observe") return true;
6544
+ if (resolve7.blockedToolIds.includes(toolId)) return false;
3779
6545
  return true;
3780
6546
  }
3781
6547
  normalizeContext(context4) {
@@ -3927,10 +6693,10 @@ var UsersClient = class _UsersClient {
3927
6693
  params.set("toTimestamp", filter.toTimestamp.toISOString());
3928
6694
  if (filter.page) params.set("page", String(filter.page));
3929
6695
  if (filter.limit) params.set("limit", String(filter.limit));
3930
- const qs = params.toString();
6696
+ const qs3 = params.toString();
3931
6697
  const payload = await this.requestJson(
3932
6698
  "GET",
3933
- `/api/public/user-events${qs ? `?${qs}` : ""}`
6699
+ `/api/public/user-events${qs3 ? `?${qs3}` : ""}`
3934
6700
  );
3935
6701
  const rows = Array.isArray(payload.data) ? payload.data : [];
3936
6702
  const meta = payload.meta && typeof payload.meta === "object" ? payload.meta : {};
@@ -3939,10 +6705,10 @@ var UsersClient = class _UsersClient {
3939
6705
  totalItems: Number(meta.totalItems ?? rows.length)
3940
6706
  };
3941
6707
  }
3942
- async requestJson(method, path2, payload) {
6708
+ async requestJson(method, path9, payload) {
3943
6709
  let response;
3944
6710
  try {
3945
- response = await fetch(`${this.host}${path2}`, {
6711
+ response = await fetch(`${this.host}${path9}`, {
3946
6712
  method,
3947
6713
  headers: {
3948
6714
  Authorization: this.authHeader(),
@@ -3953,18 +6719,18 @@ var UsersClient = class _UsersClient {
3953
6719
  });
3954
6720
  } catch (error) {
3955
6721
  throw new UserProfileError(
3956
- `${method} ${path2} failed: ${error instanceof Error ? error.message : String(error)}`,
6722
+ `${method} ${path9} failed: ${error instanceof Error ? error.message : String(error)}`,
3957
6723
  { cause: error }
3958
6724
  );
3959
6725
  }
3960
- const text = await response.text();
6726
+ const text2 = await response.text();
3961
6727
  if (!response.ok) {
3962
6728
  throw new UserProfileError(
3963
- `${method} ${path2} failed (${response.status}): ${text.slice(0, 500)}`
6729
+ `${method} ${path9} failed (${response.status}): ${text2.slice(0, 500)}`
3964
6730
  );
3965
6731
  }
3966
- this.log("%s %s -> %s", method, path2, response.status);
3967
- return safeJson4(text);
6732
+ this.log("%s %s -> %s", method, path9, response.status);
6733
+ return safeJson4(text2);
3968
6734
  }
3969
6735
  authHeader() {
3970
6736
  return `Basic ${Buffer.from(`${this.publicKey}:${this.secretKey}`).toString(
@@ -4167,10 +6933,10 @@ var ScoresClient = class _ScoresClient {
4167
6933
  metadata: signalMetadata
4168
6934
  });
4169
6935
  }
4170
- async request(method, path2, payload) {
6936
+ async request(method, path9, payload) {
4171
6937
  let response;
4172
6938
  try {
4173
- response = await fetch(`${this.host}${path2}`, {
6939
+ response = await fetch(`${this.host}${path9}`, {
4174
6940
  method,
4175
6941
  headers: {
4176
6942
  Authorization: this.authHeader(),
@@ -4181,17 +6947,17 @@ var ScoresClient = class _ScoresClient {
4181
6947
  });
4182
6948
  } catch (error) {
4183
6949
  throw new ScoreError(
4184
- `${method} ${path2} failed: ${error instanceof Error ? error.message : String(error)}`,
6950
+ `${method} ${path9} failed: ${error instanceof Error ? error.message : String(error)}`,
4185
6951
  { cause: error }
4186
6952
  );
4187
6953
  }
4188
- const text = await response.text();
6954
+ const text2 = await response.text();
4189
6955
  if (!response.ok) {
4190
6956
  throw new ScoreError(
4191
- `${method} ${path2} failed (${response.status}): ${text.slice(0, 500)}`
6957
+ `${method} ${path9} failed (${response.status}): ${text2.slice(0, 500)}`
4192
6958
  );
4193
6959
  }
4194
- this.log("%s %s -> %s", method, path2, response.status);
6960
+ this.log("%s %s -> %s", method, path9, response.status);
4195
6961
  }
4196
6962
  authHeader() {
4197
6963
  return `Basic ${Buffer.from(`${this.publicKey}:${this.secretKey}`).toString(
@@ -4232,8 +6998,287 @@ var scores = {
4232
6998
  init_worlds();
4233
6999
  init_session();
4234
7000
 
7001
+ // src/files/index.ts
7002
+ var files_exports = {};
7003
+ __export(files_exports, {
7004
+ DRIVE_PREFIX: () => DRIVE_PREFIX,
7005
+ confirmUpload: () => confirmUpload,
7006
+ contentTypeFor: () => contentTypeFor,
7007
+ createFolder: () => createFolder,
7008
+ deleteFile: () => deleteFile,
7009
+ downloadFile: () => downloadFile,
7010
+ drivePath: () => drivePath,
7011
+ getFile: () => getFile,
7012
+ isDriveRef: () => isDriveRef,
7013
+ iterateFiles: () => iterateFiles,
7014
+ listFileConnectors: () => listFileConnectors,
7015
+ listFiles: () => listFiles,
7016
+ moveFile: () => moveFile,
7017
+ readFile: () => readFile2,
7018
+ requestUpload: () => requestUpload,
7019
+ sha256Base64: () => sha256Base64,
7020
+ syncFileConnector: () => syncFileConnector,
7021
+ uploadBytes: () => uploadBytes,
7022
+ uploadFile: () => uploadFile
7023
+ });
7024
+ var import_node_crypto7 = require("crypto");
7025
+ var fs9 = __toESM(require("fs"));
7026
+ var path8 = __toESM(require("path"));
7027
+ var import_node_stream = require("stream");
7028
+ var import_promises = require("stream/promises");
7029
+ init_worlds();
7030
+ var DRIVE_PREFIX = "drive:";
7031
+ function isDriveRef(value) {
7032
+ return value.startsWith(DRIVE_PREFIX);
7033
+ }
7034
+ function drivePath(ref) {
7035
+ const raw = isDriveRef(ref) ? ref.slice(DRIVE_PREFIX.length) : ref;
7036
+ const trimmed = raw.replace(/^\/+/, "");
7037
+ if (!trimmed) throw new Error(`${ref} names no file in the drive`);
7038
+ return trimmed;
7039
+ }
7040
+ var PAGE_LIMIT = 200;
7041
+ var BASE = "/api/public/files";
7042
+ function qs(params) {
7043
+ const search = new URLSearchParams();
7044
+ for (const [key, value] of Object.entries(params)) if (value !== void 0 && value !== "") search.set(key, String(value));
7045
+ const text2 = search.toString();
7046
+ return text2 ? `?${text2}` : "";
7047
+ }
7048
+ async function listFiles(options = {}, params = {}) {
7049
+ return apiRequest(options, "GET", `${BASE}${qs({ prefix: params.prefix, page: params.page, limit: params.limit })}`);
7050
+ }
7051
+ async function* iterateFiles(options = {}, prefix) {
7052
+ for (let page = 0; ; page++) {
7053
+ const listing = await listFiles(options, { prefix, page, limit: PAGE_LIMIT });
7054
+ yield* listing.files;
7055
+ const seen = (page + 1) * listing.limit;
7056
+ if (!listing.files.length || seen >= listing.totalFiles) return;
7057
+ }
7058
+ }
7059
+ async function getFile(options = {}, filePath) {
7060
+ return apiRequest(options, "GET", `${BASE}/download${qs({ path: drivePath(filePath) })}`);
7061
+ }
7062
+ async function openDownload(url) {
7063
+ const res = await fetch(url);
7064
+ if (!res.ok || !res.body) throw new Error(`download failed: storage answered HTTP ${res.status}`);
7065
+ return res;
7066
+ }
7067
+ async function readFile2(options = {}, filePath) {
7068
+ const file = await getFile(options, filePath);
7069
+ const res = await openDownload(file.url);
7070
+ return Buffer.from(await res.arrayBuffer());
7071
+ }
7072
+ async function downloadFile(options = {}, filePath, outPath, onProgress) {
7073
+ const file = await getFile(options, filePath);
7074
+ const res = await openDownload(file.url);
7075
+ fs9.mkdirSync(path8.dirname(path8.resolve(outPath)), { recursive: true });
7076
+ const source = import_node_stream.Readable.fromWeb(res.body);
7077
+ await (0, import_promises.pipeline)(source, counting((n) => onProgress?.(n, file.sizeBytes)), fs9.createWriteStream(outPath));
7078
+ return { ...file, out: outPath };
7079
+ }
7080
+ async function requestUpload(options = {}, body) {
7081
+ return apiRequest(options, "POST", BASE, body);
7082
+ }
7083
+ async function confirmUpload(options = {}, fileId, ok = true) {
7084
+ return apiRequest(options, "POST", `${BASE}/confirm`, { fileId, ok });
7085
+ }
7086
+ async function sha256Base64(localPath) {
7087
+ const hash = (0, import_node_crypto7.createHash)("sha256");
7088
+ for await (const chunk of fs9.createReadStream(localPath)) hash.update(chunk);
7089
+ return hash.digest("base64");
7090
+ }
7091
+ var CONTENT_TYPES = {
7092
+ ".json": "application/json",
7093
+ ".jsonl": "application/x-ndjson",
7094
+ ".ndjson": "application/x-ndjson",
7095
+ ".csv": "text/csv",
7096
+ ".tsv": "text/tab-separated-values",
7097
+ ".txt": "text/plain",
7098
+ ".md": "text/markdown",
7099
+ ".toml": "application/toml",
7100
+ ".yaml": "application/yaml",
7101
+ ".yml": "application/yaml",
7102
+ ".xml": "application/xml",
7103
+ ".html": "text/html",
7104
+ ".sql": "application/sql",
7105
+ ".py": "text/x-python",
7106
+ ".ts": "text/plain",
7107
+ ".js": "text/javascript",
7108
+ ".pdf": "application/pdf",
7109
+ ".png": "image/png",
7110
+ ".jpg": "image/jpeg",
7111
+ ".jpeg": "image/jpeg",
7112
+ ".gif": "image/gif",
7113
+ ".webp": "image/webp",
7114
+ ".svg": "image/svg+xml",
7115
+ ".zip": "application/zip",
7116
+ ".gz": "application/gzip",
7117
+ ".tar": "application/x-tar",
7118
+ ".parquet": "application/vnd.apache.parquet",
7119
+ ".wav": "audio/wav",
7120
+ ".mp3": "audio/mpeg",
7121
+ ".mp4": "video/mp4"
7122
+ };
7123
+ function contentTypeFor(name) {
7124
+ return CONTENT_TYPES[path8.extname(name).toLowerCase()] ?? "application/octet-stream";
7125
+ }
7126
+ function counting(report) {
7127
+ let seen = 0;
7128
+ return new import_node_stream.Transform({
7129
+ transform(chunk, _encoding, callback) {
7130
+ seen += chunk.length;
7131
+ report(seen);
7132
+ callback(null, chunk);
7133
+ }
7134
+ });
7135
+ }
7136
+ async function putPresigned(uploadUrl, body, headers) {
7137
+ const res = await fetch(uploadUrl, {
7138
+ method: "PUT",
7139
+ headers: {
7140
+ "content-type": headers.contentType,
7141
+ "content-length": String(headers.contentLength),
7142
+ "x-amz-checksum-sha256": headers.sha256
7143
+ },
7144
+ body,
7145
+ // A streamed request body needs the half-duplex declaration (Node's fetch).
7146
+ duplex: "half"
7147
+ });
7148
+ if (!res.ok) throw new Error(`upload failed: storage answered HTTP ${res.status}: ${(await res.text()).slice(0, 300)}`);
7149
+ }
7150
+ async function uploadFile(options = {}, localPath, targetPath, upload = {}) {
7151
+ const stat = fs9.statSync(localPath);
7152
+ if (!stat.isFile()) throw new Error(`${localPath} is not a file`);
7153
+ if (stat.size === 0) throw new Error(`${localPath} is empty; the drive refuses zero-byte uploads`);
7154
+ const contentType = upload.contentType ?? contentTypeFor(localPath);
7155
+ const sha2562 = await sha256Base64(localPath);
7156
+ const target = drivePath(targetPath);
7157
+ const granted = await requestUpload(options, { path: target, contentLength: stat.size, contentType, sha256: sha2562, ...upload.overwrite ? { overwrite: true } : {} });
7158
+ try {
7159
+ const stream = fs9.createReadStream(localPath).pipe(counting((n) => upload.onProgress?.(n, stat.size)));
7160
+ await putPresigned(granted.uploadUrl, import_node_stream.Readable.toWeb(stream), { contentType, contentLength: stat.size, sha256: sha2562 });
7161
+ } catch (error) {
7162
+ await confirmUpload(options, granted.fileId, false).catch(() => void 0);
7163
+ throw error;
7164
+ }
7165
+ const confirmed = await confirmUpload(options, granted.fileId, true);
7166
+ return { path: confirmed.path, fileId: granted.fileId, sizeBytes: stat.size, sha256: sha2562, contentType };
7167
+ }
7168
+ async function uploadBytes(options = {}, bytes, targetPath, upload = {}) {
7169
+ if (!bytes.length) throw new Error("nothing to upload: the content is empty");
7170
+ const target = drivePath(targetPath);
7171
+ const contentType = upload.contentType ?? contentTypeFor(target);
7172
+ const sha2562 = (0, import_node_crypto7.createHash)("sha256").update(bytes).digest("base64");
7173
+ const granted = await requestUpload(options, { path: target, contentLength: bytes.length, contentType, sha256: sha2562, ...upload.overwrite ? { overwrite: true } : {} });
7174
+ try {
7175
+ await putPresigned(granted.uploadUrl, new Uint8Array(bytes), { contentType, contentLength: bytes.length, sha256: sha2562 });
7176
+ } catch (error) {
7177
+ await confirmUpload(options, granted.fileId, false).catch(() => void 0);
7178
+ throw error;
7179
+ }
7180
+ const confirmed = await confirmUpload(options, granted.fileId, true);
7181
+ return { path: confirmed.path, fileId: granted.fileId, sizeBytes: bytes.length, sha256: sha2562, contentType };
7182
+ }
7183
+ async function deleteFile(options = {}, filePath) {
7184
+ return apiRequest(options, "DELETE", `${BASE}${qs({ path: drivePath(filePath) })}`);
7185
+ }
7186
+ async function moveFile(options = {}, fromPath, toPath) {
7187
+ return apiRequest(options, "POST", `${BASE}/move`, { fromPath: drivePath(fromPath), toPath: drivePath(toPath) });
7188
+ }
7189
+ async function createFolder(options = {}, folderPath) {
7190
+ return apiRequest(options, "POST", `${BASE}/folders`, { path: drivePath(folderPath) });
7191
+ }
7192
+ async function listFileConnectors(options = {}) {
7193
+ return apiRequest(options, "GET", `${BASE}/connectors`);
7194
+ }
7195
+ async function syncFileConnector(options = {}, connectorId) {
7196
+ return apiRequest(options, "POST", `${BASE}/connectors/sync`, { connectorId });
7197
+ }
7198
+
7199
+ // src/traces/index.ts
7200
+ var traces_exports = {};
7201
+ __export(traces_exports, {
7202
+ PAGE_LIMIT: () => PAGE_LIMIT2,
7203
+ exportTraces: () => exportTraces,
7204
+ getSession: () => getSession,
7205
+ getTrace: () => getTrace,
7206
+ iterateObservations: () => iterateObservations,
7207
+ iterateSessions: () => iterateSessions,
7208
+ iterateTraces: () => iterateTraces,
7209
+ listObservations: () => listObservations,
7210
+ listSessions: () => listSessions,
7211
+ listTraces: () => listTraces
7212
+ });
7213
+ init_worlds();
7214
+ var PAGE_LIMIT2 = 100;
7215
+ function qs2(params) {
7216
+ const search = new URLSearchParams();
7217
+ for (const [key, value] of Object.entries(params)) {
7218
+ if (value === void 0 || value === null || value === "") continue;
7219
+ if (Array.isArray(value)) for (const item of value) search.append(key, item);
7220
+ else search.set(key, String(value));
7221
+ }
7222
+ const text2 = search.toString();
7223
+ return text2 ? `?${text2}` : "";
7224
+ }
7225
+ async function listTraces(options = {}, filters = {}, page = {}) {
7226
+ const { tags, ...rest } = filters;
7227
+ return apiRequest(options, "GET", `/api/public/traces${qs2({ ...rest, tags, page: page.page ?? 1, limit: page.limit ?? 50, fields: page.fields })}`);
7228
+ }
7229
+ async function* iterateTraces(options = {}, filters = {}, limits = {}) {
7230
+ yield* paged((page) => listTraces(options, filters, { page, limit: PAGE_LIMIT2, fields: limits.fields }), limits.max);
7231
+ }
7232
+ async function getTrace(options = {}, traceId) {
7233
+ return apiRequest(options, "GET", `/api/public/traces/${encodeURIComponent(traceId)}`);
7234
+ }
7235
+ async function listObservations(options = {}, filters = {}, page = {}) {
7236
+ return apiRequest(options, "GET", `/api/public/observations${qs2({ ...filters, page: page.page ?? 1, limit: page.limit ?? 50 })}`);
7237
+ }
7238
+ async function* iterateObservations(options = {}, filters = {}, limits = {}) {
7239
+ yield* paged((page) => listObservations(options, filters, { page, limit: PAGE_LIMIT2 }), limits.max);
7240
+ }
7241
+ async function listSessions(options = {}, filters = {}, page = {}) {
7242
+ return apiRequest(options, "GET", `/api/public/sessions${qs2({ ...filters, page: page.page ?? 1, limit: page.limit ?? 50 })}`);
7243
+ }
7244
+ async function* iterateSessions(options = {}, filters = {}, limits = {}) {
7245
+ yield* paged((page) => listSessions(options, filters, { page, limit: PAGE_LIMIT2 }), limits.max);
7246
+ }
7247
+ async function getSession(options = {}, sessionId, detail = {}) {
7248
+ return apiRequest(options, "GET", `/api/public/sessions/${encodeURIComponent(sessionId)}${qs2({ includeIO: detail.includeIO ? "true" : void 0 })}`);
7249
+ }
7250
+ async function exportTraces(options = {}, filters = {}, exportOptions = {}, write) {
7251
+ const summary = { traces: 0, observations: 0 };
7252
+ const wantedType = exportOptions.type?.toUpperCase();
7253
+ for await (const trace5 of iterateTraces(options, filters, { max: exportOptions.max })) {
7254
+ let record = trace5;
7255
+ if (exportOptions.observations) {
7256
+ const detail = await getTrace(options, trace5.id);
7257
+ const observations = wantedType ? detail.observations.filter((o) => o.type?.toUpperCase() === wantedType) : detail.observations;
7258
+ summary.observations += observations.length;
7259
+ record = { ...detail, observations };
7260
+ }
7261
+ summary.traces++;
7262
+ write(record);
7263
+ }
7264
+ return summary;
7265
+ }
7266
+ async function* paged(fetchPage, max) {
7267
+ let yielded = 0;
7268
+ for (let page = 1; ; page++) {
7269
+ const answer = await fetchPage(page);
7270
+ for (const item of answer.data) {
7271
+ if (max !== void 0 && yielded >= max) return;
7272
+ yielded++;
7273
+ yield item;
7274
+ }
7275
+ const totalPages = answer.meta?.totalPages ?? (answer.data.length < PAGE_LIMIT2 ? page : page + 1);
7276
+ if (!answer.data.length || page >= totalPages) return;
7277
+ }
7278
+ }
7279
+
4235
7280
  // src/build/index.ts
4236
- var import_node_crypto2 = require("crypto");
7281
+ var import_node_crypto8 = require("crypto");
4237
7282
  function canonicalJson(value) {
4238
7283
  if (value === null || typeof value !== "object") {
4239
7284
  return JSON.stringify(value);
@@ -4244,8 +7289,8 @@ function canonicalJson(value) {
4244
7289
  const entries = Object.entries(value).filter(([, v]) => v !== void 0).sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
4245
7290
  return `{${entries.map(([k, v]) => `${JSON.stringify(k)}:${canonicalJson(v)}`).join(",")}}`;
4246
7291
  }
4247
- function sha256(text) {
4248
- return `sha256:${(0, import_node_crypto2.createHash)("sha256").update(text).digest("hex")}`;
7292
+ function sha256(text2) {
7293
+ return `sha256:${(0, import_node_crypto8.createHash)("sha256").update(text2).digest("hex")}`;
4249
7294
  }
4250
7295
  var registeredTools = /* @__PURE__ */ new Map();
4251
7296
  var registeredPrompts = /* @__PURE__ */ new Map();
@@ -5010,12 +8055,12 @@ async function* observeClaude(stream, options) {
5010
8055
  pendingTurnInput = "";
5011
8056
  }
5012
8057
  const childCtx = options.perTurn ? turnCtx : rootCtx;
5013
- let text = "";
8058
+ let text2 = "";
5014
8059
  const toolUses = [];
5015
8060
  for (const block of message.message?.content ?? []) {
5016
8061
  if (block?.type === "text") {
5017
8062
  finalText += block.text;
5018
- text += block.text;
8063
+ text2 += block.text;
5019
8064
  }
5020
8065
  if (block?.type === "tool_use") {
5021
8066
  toolUses.push({
@@ -5025,7 +8070,7 @@ async function* observeClaude(stream, options) {
5025
8070
  });
5026
8071
  }
5027
8072
  }
5028
- turnText += text;
8073
+ turnText += text2;
5029
8074
  const gen = tracer.startSpan(
5030
8075
  "assistant",
5031
8076
  {
@@ -5033,7 +8078,7 @@ async function* observeClaude(stream, options) {
5033
8078
  "openinference.span.kind": "LLM",
5034
8079
  "llm.model_name": model,
5035
8080
  "llm.provider": "anthropic",
5036
- "output.value": text || toolUses.map((t) => `\u2192 ${cleanToolName(t.name)}`).join(", ")
8081
+ "output.value": text2 || toolUses.map((t) => `\u2192 ${cleanToolName(t.name)}`).join(", ")
5037
8082
  }
5038
8083
  },
5039
8084
  childCtx
@@ -5114,12 +8159,18 @@ var tracing = {
5114
8159
  // Annotate the CommonJS export names for ESM import in node:
5115
8160
  0 && (module.exports = {
5116
8161
  AGENT_ID_KEY,
8162
+ BrowserActionRecorder,
8163
+ COMPUTER_USE_SPECS,
5117
8164
  DEFAULT_BRANCH,
5118
8165
  DEFAULT_TIMEOUT_SECONDS,
8166
+ DEFAULT_VIEWPORT,
5119
8167
  DriftError,
5120
8168
  ENV_GATEWAY_HOST,
5121
8169
  ENV_GATEWAY_PUBLIC_KEY,
5122
8170
  ENV_GATEWAY_SECRET_KEY,
8171
+ EVENT_BATCH_SIZE,
8172
+ EVENT_FLUSH_INTERVAL_MS,
8173
+ EVENT_MAX_RETRIES,
5123
8174
  EXPERIMENT_ATTRIBUTES,
5124
8175
  ExperimentClient,
5125
8176
  ExperimentSpanProcessor,
@@ -5144,44 +8195,57 @@ var tracing = {
5144
8195
  ReplayReport,
5145
8196
  ReplaySuite,
5146
8197
  ReplayTask,
8198
+ STRIP_PREFIX,
5147
8199
  SUCCESS_METRIC_NAME_KEY,
5148
8200
  SUCCESS_SIGNAL_KEY,
8201
+ SURFACE_KINDS,
5149
8202
  ScoreError,
5150
8203
  ScoresClient,
5151
8204
  SessionLoadError,
5152
8205
  SessionRecording,
5153
8206
  SessionTrace,
5154
8207
  StubMissError,
8208
+ TRANSFORMS,
5155
8209
  ToolStubRegistry,
5156
8210
  TraceDiff,
5157
8211
  UserProfileError,
5158
8212
  UsersClient,
8213
+ WHITESPACE,
8214
+ WorldBrowser,
5159
8215
  WorldSession,
5160
8216
  WorldSessionCallError,
5161
8217
  WorldSessionTimeout,
5162
8218
  WorldSet,
8219
+ WorldSurfaceUnavailable,
5163
8220
  WorldTask,
5164
8221
  addExperimentAttributes,
5165
8222
  apiRequest,
8223
+ applyTransforms,
5166
8224
  assembleManifest,
5167
8225
  assignVariant,
5168
8226
  attachSession,
5169
8227
  basicAuthHeader,
5170
8228
  buildSourceTarball,
5171
8229
  canonicalJson,
8230
+ captureToolCalls,
5172
8231
  clearExperimentContext,
5173
8232
  collectArchiveRelPaths,
5174
8233
  computeBuildHash,
5175
8234
  computeContentHash,
5176
8235
  computeHash,
8236
+ computerUseToolkit,
5177
8237
  context,
5178
8238
  createRef,
8239
+ createTask,
5179
8240
  currentTraceId,
5180
8241
  defineTool,
5181
8242
  deleteEnvSecret,
8243
+ deleteTask,
8244
+ describeWorld,
5182
8245
  detectProvenance,
5183
8246
  experimentContextStorage,
5184
8247
  experiments,
8248
+ files,
5185
8249
  gateway,
5186
8250
  getExperimentContext,
5187
8251
  getRegisteredArtifacts,
@@ -5189,43 +8253,79 @@ var tracing = {
5189
8253
  getRegisteredSkills,
5190
8254
  getRegisteredTools,
5191
8255
  getRun,
8256
+ getTask,
8257
+ hashForm,
5192
8258
  identify,
8259
+ ingest,
8260
+ ingestToolCalls,
5193
8261
  isIncludedInContentHash,
8262
+ isTaskIdRef,
8263
+ isTaskSpec,
5194
8264
  listEnvSecretKeys,
5195
8265
  listRunConfigs,
8266
+ listTasks,
5196
8267
  loadSession,
5197
8268
  localTreeState,
5198
8269
  memory,
8270
+ migrateProjectWorlds,
8271
+ migrateWorld,
8272
+ openBrowser,
5199
8273
  openSession,
5200
8274
  openWorld,
8275
+ parseToolCallRecord,
8276
+ parseTransform,
8277
+ parseWorldTaskRefs,
5201
8278
  personas,
8279
+ preserveForm,
5202
8280
  propose,
5203
8281
  pull,
5204
8282
  push,
8283
+ pyText,
8284
+ queryRows,
8285
+ queryRowsSearch,
5205
8286
  readLocalMeta,
8287
+ readToolCallRecords,
8288
+ redactActionArgs,
8289
+ redactionOf,
5206
8290
  registerArtifact,
5207
8291
  registerPrompt,
5208
8292
  registerSkill,
5209
8293
  renderAgentSystem,
5210
8294
  replay,
5211
8295
  resetBuildRegistry,
8296
+ resolveBrowserMode,
5212
8297
  resolveUserId,
8298
+ roundForm,
5213
8299
  runSessions,
5214
8300
  runSuite,
5215
8301
  runWithExperimentContext,
5216
8302
  schemaFromSignature,
5217
8303
  scores,
5218
8304
  sessionObservationFromApi,
8305
+ sessionToolObservations,
5219
8306
  sessions,
5220
8307
  setEnvSecret,
5221
8308
  setExperimentContext,
8309
+ shapeText,
5222
8310
  snapshotTreeHashes,
8311
+ storedForms,
5223
8312
  success,
5224
8313
  suite,
8314
+ surfaceKinds,
8315
+ taskLabel,
8316
+ toolCallRecordsIn,
8317
+ toolCallsFromObservations,
8318
+ traces,
5225
8319
  tracing,
8320
+ uiEntryUrl,
8321
+ uiUrl,
8322
+ updateTask,
8323
+ upsertRunConfig,
5226
8324
  users,
8325
+ validateTask,
5227
8326
  validateWorld,
5228
8327
  waitForRun,
8328
+ withoutUiToken,
5229
8329
  writeLocalMeta
5230
8330
  });
5231
8331
  //# sourceMappingURL=index.js.map