@michelangelo-ai/core 0.12.0 → 0.13.0-rc.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 (273) hide show
  1. package/dist/components/actions/__fixtures__/use-success-operations-test-harness.d.ts +1 -1
  2. package/dist/components/actions/action-menu/action-menu-item.d.ts +1 -1
  3. package/dist/components/actions/action-menu/action-menu.d.ts +1 -1
  4. package/dist/components/actions/actions-buttons/action-button.d.ts +1 -1
  5. package/dist/components/actions/actions-buttons/actions-buttons.d.ts +1 -1
  6. package/dist/components/actions/actions-buttons/types.d.ts +1 -1
  7. package/dist/components/actions/actions-buttons/utils.d.ts +1 -1
  8. package/dist/components/actions/types.d.ts +2 -2
  9. package/dist/components/breadcrumb-bar/breadcrumb-bar.d.ts +1 -1
  10. package/dist/components/breadcrumb-bar/menu-drawer.d.ts +1 -1
  11. package/dist/components/breadcrumb-bar/phase-entity-list.d.ts +1 -1
  12. package/dist/components/cell/components/cell-enhancer.d.ts +1 -1
  13. package/dist/components/cell/components/tooltip/cell-tooltip-hoc.d.ts +1 -1
  14. package/dist/components/cell/components/tooltip/types.d.ts +1 -1
  15. package/dist/components/cell/renderers/boolean/boolean-cell.d.ts +1 -1
  16. package/dist/components/cell/renderers/date/date-cell-to-string.d.ts +1 -1
  17. package/dist/components/cell/renderers/date/date-cell.d.ts +2 -2
  18. package/dist/components/cell/renderers/default-cell-renderer.d.ts +1 -1
  19. package/dist/components/cell/renderers/description/description-cell.d.ts +1 -1
  20. package/dist/components/cell/renderers/description/types.d.ts +1 -1
  21. package/dist/components/cell/renderers/link/link-cell.d.ts +1 -1
  22. package/dist/components/cell/renderers/link/types.d.ts +1 -1
  23. package/dist/components/cell/renderers/multi/multi-cell.d.ts +1 -1
  24. package/dist/components/cell/renderers/multi/types.d.ts +1 -1
  25. package/dist/components/cell/renderers/retry/retry-cell.d.ts +1 -1
  26. package/dist/components/cell/renderers/retry/retry-cell.d.ts.map +1 -1
  27. package/dist/components/cell/renderers/retry/types.d.ts +1 -1
  28. package/dist/components/cell/renderers/state/get-state-color.d.ts +1 -1
  29. package/dist/components/cell/renderers/state/state-cell-to-string.d.ts +1 -1
  30. package/dist/components/cell/renderers/state/state-cell.d.ts +2 -2
  31. package/dist/components/cell/renderers/state/types.d.ts +2 -2
  32. package/dist/components/cell/renderers/tag/tag-cell.d.ts +1 -1
  33. package/dist/components/cell/renderers/tag/types.d.ts +2 -2
  34. package/dist/components/cell/renderers/text/text-cell.d.ts +1 -1
  35. package/dist/components/cell/renderers/type/type-cell-to-string.d.ts +1 -1
  36. package/dist/components/cell/renderers/type/type-cell.d.ts +1 -1
  37. package/dist/components/cell/renderers/type/types.d.ts +1 -1
  38. package/dist/components/cell/types.d.ts +4 -4
  39. package/dist/components/cell/use-cell-to-string.d.ts +1 -1
  40. package/dist/components/cell/use-get-cell-renderer.d.ts +1 -1
  41. package/dist/components/form/components/form-dialog/form-dialog.d.ts +1 -1
  42. package/dist/components/form/components/form-dialog/types.d.ts +1 -1
  43. package/dist/components/form/components/label/label-end-enhancer-content.d.ts +1 -1
  44. package/dist/components/form/config-driven-form.d.ts +2 -2
  45. package/dist/components/form/fields/boolean/schema-boolean-field.d.ts +1 -1
  46. package/dist/components/form/fields/checkbox/schema-checkbox-field.d.ts +1 -1
  47. package/dist/components/form/fields/checkbox/types.d.ts +1 -1
  48. package/dist/components/form/fields/date/schema-date-field.d.ts +1 -1
  49. package/dist/components/form/fields/map/schema-map-field.d.ts +1 -1
  50. package/dist/components/form/fields/map/types.d.ts +1 -1
  51. package/dist/components/form/fields/markdown/schema-markdown-field.d.ts +1 -1
  52. package/dist/components/form/fields/number/number-field.d.ts +1 -1
  53. package/dist/components/form/fields/number/schema-number-field.d.ts +1 -1
  54. package/dist/components/form/fields/radio/schema-radio-field.d.ts +1 -1
  55. package/dist/components/form/fields/schema-field.d.ts +1 -1
  56. package/dist/components/form/fields/select/schema-select-field.d.ts +1 -1
  57. package/dist/components/form/fields/string/schema-string-field.d.ts +1 -1
  58. package/dist/components/form/fields/textarea/schema-textarea-field.d.ts +1 -1
  59. package/dist/components/form/fields/types.d.ts +2 -2
  60. package/dist/components/form/fields/url/schema-url-field.d.ts +1 -1
  61. package/dist/components/form/fields/url/types.d.ts +1 -1
  62. package/dist/components/form/hooks/use-array-field.d.ts +1 -1
  63. package/dist/components/form/hooks/use-field-renderer.d.ts +1 -1
  64. package/dist/components/form/hooks/use-field.d.ts +1 -1
  65. package/dist/components/form/layout/array-form-group/types.d.ts +2 -2
  66. package/dist/components/form/layout/array-form-row/types.d.ts +2 -2
  67. package/dist/components/form/layout/condition/types.d.ts +1 -1
  68. package/dist/components/form/layout/form-grid/types.d.ts +1 -1
  69. package/dist/components/form/layout/form-group/types.d.ts +2 -2
  70. package/dist/components/form/layout/form-row/types.d.ts +1 -1
  71. package/dist/components/form/layout/layout-item-list.d.ts +1 -1
  72. package/dist/components/form/layout/layout-renderer.d.ts +1 -1
  73. package/dist/components/form/layout/types.d.ts +1 -1
  74. package/dist/components/form/types/config-types.d.ts +16 -16
  75. package/dist/components/form/types/form-types.d.ts +1 -1
  76. package/dist/components/form/utils/filter-hidden-condition-fields.d.ts +1 -1
  77. package/dist/components/form/validation/resolve-validation.d.ts +2 -2
  78. package/dist/components/links-box/map-link-config-to-column-config.d.ts +1 -1
  79. package/dist/components/links-box/types.d.ts +1 -1
  80. package/dist/components/markdown/styled-components.d.ts +1 -1
  81. package/dist/components/row/components/row-item.d.ts +2 -2
  82. package/dist/components/row/components/row-label.d.ts +1 -1
  83. package/dist/components/row/row.d.ts +1 -1
  84. package/dist/components/row/types.d.ts +1 -1
  85. package/dist/components/table/__fixtures__/column-factory.d.ts +1 -1
  86. package/dist/components/table/__fixtures__/row-factory.d.ts +3 -3
  87. package/dist/components/table/components/filter/categorical/get-cell-value-for-column.d.ts +2 -2
  88. package/dist/components/table/components/filter/categorical/use-categorical-filter-factory.d.ts +2 -2
  89. package/dist/components/table/components/filter/categorical/use-filter-display-mapping.d.ts +2 -2
  90. package/dist/components/table/components/filter/datetime/use-datetime-filter-factory.d.ts +2 -2
  91. package/dist/components/table/components/filter/get-column-filter.d.ts +1 -1
  92. package/dist/components/table/components/filter/types.d.ts +1 -1
  93. package/dist/components/table/components/table-action-bar/components/table-active-filter-tag-list/types.d.ts +3 -3
  94. package/dist/components/table/components/table-action-bar/components/table-filter-menu/components/table-filter-menu-content/table-filter-menu-content.d.ts +1 -1
  95. package/dist/components/table/components/table-action-bar/components/table-filter-menu/components/table-filter-menu-content/types.d.ts +4 -4
  96. package/dist/components/table/components/table-action-bar/components/table-filter-menu/components/table-filter-option-list/table-filter-option-list.d.ts +1 -1
  97. package/dist/components/table/components/table-action-bar/components/table-filter-menu/components/table-filter-option-list/types.d.ts +2 -2
  98. package/dist/components/table/components/table-action-bar/components/table-filter-menu/table-filter-menu.d.ts +1 -1
  99. package/dist/components/table/components/table-action-bar/components/table-filter-menu/types.d.ts +4 -4
  100. package/dist/components/table/components/table-action-bar/types.d.ts +4 -4
  101. package/dist/components/table/components/table-body/row-transformer.d.ts +2 -2
  102. package/dist/components/table/components/table-body/table-body.d.ts +1 -1
  103. package/dist/components/table/components/table-body/types.d.ts +2 -2
  104. package/dist/components/table/components/table-cell/column-tooltip-hoc.d.ts +2 -2
  105. package/dist/components/table/components/table-cell/types.d.ts +5 -5
  106. package/dist/components/table/components/table-error-state/types.d.ts +1 -1
  107. package/dist/components/table/components/table-header/components/table-column-configuration-button/table-column-configuration-button.d.ts +1 -1
  108. package/dist/components/table/components/table-header/components/table-column-configuration-button/types.d.ts +3 -3
  109. package/dist/components/table/components/table-header/components/table-column-configuration-button/utils.d.ts +2 -2
  110. package/dist/components/table/components/table-header/table-header.d.ts +1 -1
  111. package/dist/components/table/components/table-header/types.d.ts +3 -3
  112. package/dist/components/table/components/table-pagination/__fixtures__/table-pagination-factory.d.ts +1 -1
  113. package/dist/components/table/hooks/use-column-transformer.d.ts +1 -1
  114. package/dist/components/table/plugins/selection/table-selection-provider.d.ts +1 -1
  115. package/dist/components/table/plugins/selection/types.d.ts +2 -2
  116. package/dist/components/table/plugins/state-persistence/use-local-storage-table-state.d.ts +1 -1
  117. package/dist/components/table/plugins/state-persistence/utils.d.ts +1 -1
  118. package/dist/components/table/types/column-types.d.ts +3 -3
  119. package/dist/components/table/types/table-types.d.ts +1 -1
  120. package/dist/components/table/utils/__fixtures__/tanstack-builders.d.ts +2 -2
  121. package/dist/components/table/utils/column-resolution-utils.d.ts +2 -2
  122. package/dist/components/table/utils/get-table-view-state.d.ts +2 -2
  123. package/dist/components/table/utils/normalize-column-accessor.d.ts +1 -1
  124. package/dist/components/table/utils/transform-columns.d.ts +3 -3
  125. package/dist/components/tag/types.d.ts +1 -1
  126. package/dist/components/views/__fixtures__/table-config-factory.d.ts +1 -1
  127. package/dist/components/views/detail-view/components/detail-view-header/types.d.ts +1 -1
  128. package/dist/components/views/detail-view/components/detail-view-page-renderer/pages/detail-view-table-page/types.d.ts +2 -2
  129. package/dist/components/views/detail-view/components/detail-view-page-renderer/types.d.ts +1 -1
  130. package/dist/components/views/detail-view/components/detail-view-pages/detail-view-pages.d.ts +1 -1
  131. package/dist/components/views/detail-view/components/revision-selector/types.d.ts +1 -3
  132. package/dist/components/views/detail-view/components/revision-selector/types.d.ts.map +1 -1
  133. package/dist/components/views/detail-view/types/detail-view-component-types.d.ts +1 -1
  134. package/dist/components/views/detail-view/types/detail-view-schema-types.d.ts +3 -3
  135. package/dist/components/views/execution/__fixtures__/execution-schema-factory.d.ts +1 -1
  136. package/dist/components/views/execution/components/task-details/__fixtures__/task-details-fixtures.d.ts +1 -1
  137. package/dist/components/views/execution/components/task-details/renderers/types.d.ts +2 -2
  138. package/dist/components/views/execution/components/task-details/types.d.ts +2 -2
  139. package/dist/components/views/execution/components/task-state-icon.d.ts +1 -1
  140. package/dist/components/views/execution/components/task-step-card/styled-components.d.ts +1 -1
  141. package/dist/components/views/execution/components/task-step-card/types.d.ts +1 -1
  142. package/dist/components/views/execution/components/types.d.ts +1 -1
  143. package/dist/components/views/execution/styled-components.d.ts +2 -2
  144. package/dist/components/views/execution/types.d.ts +2 -2
  145. package/dist/components/views/execution/utils/__fixtures__/build-task-matrix-fixtures.d.ts +1 -1
  146. package/dist/components/views/phase-entity-view/types.d.ts +3 -3
  147. package/dist/components/views/phase-entity-view/utils/inject-list-options.d.ts +1 -1
  148. package/dist/components/views/phase-entity-view/utils.d.ts +1 -1
  149. package/dist/components/views/project/components/phase-card.d.ts +1 -1
  150. package/dist/components/views/project/constants.d.ts +1 -1
  151. package/dist/components/views/project/project-detail.d.ts +1 -1
  152. package/dist/components/views/types.d.ts +8 -8
  153. package/dist/components/views/utils/table-view-adapter.d.ts +3 -3
  154. package/dist/config/categories.d.ts +1 -1
  155. package/dist/config/entities/deployment/create-deployment-form.d.ts +1 -1
  156. package/dist/config/entities/deployment/deployment-form.d.ts.map +1 -1
  157. package/dist/config/entities/deployment/deployment-info-page.d.ts.map +1 -1
  158. package/dist/config/entities/deployment/deployment.d.ts +1 -1
  159. package/dist/config/entities/deployment/detail.d.ts +1 -1
  160. package/dist/config/entities/deployment/list.d.ts +1 -1
  161. package/dist/config/entities/deployment/shared.d.ts +32 -28
  162. package/dist/config/entities/deployment/shared.d.ts.map +1 -1
  163. package/dist/config/entities/deployment/types.d.ts +12 -24
  164. package/dist/config/entities/deployment/types.d.ts.map +1 -1
  165. package/dist/config/entities/deployment/update-deployment-form.d.ts +1 -1
  166. package/dist/config/entities/model/constants.d.ts +14 -18
  167. package/dist/config/entities/model/constants.d.ts.map +1 -1
  168. package/dist/config/entities/model/detail.d.ts +1 -1
  169. package/dist/config/entities/model/list.d.ts +2 -2
  170. package/dist/config/entities/model/model.d.ts +1 -1
  171. package/dist/config/entities/model/types.d.ts +1 -3
  172. package/dist/config/entities/model/types.d.ts.map +1 -1
  173. package/dist/config/entities/pipeline/create-pipeline-run-form.d.ts +3 -3
  174. package/dist/config/entities/pipeline/detail.d.ts +1 -1
  175. package/dist/config/entities/pipeline/format-trigger-schedule.d.ts +1 -1
  176. package/dist/config/entities/pipeline/format-trigger-schedule.d.ts.map +1 -1
  177. package/dist/config/entities/pipeline/list.d.ts +2 -2
  178. package/dist/config/entities/pipeline/pipeline.d.ts +1 -1
  179. package/dist/config/entities/pipeline/resume-step-option.d.ts +1 -1
  180. package/dist/config/entities/pipeline/resume-step-option.d.ts.map +1 -1
  181. package/dist/config/entities/pipeline/revision-list.d.ts +2 -2
  182. package/dist/config/entities/pipeline/run-trigger-fields.d.ts +1 -1
  183. package/dist/config/entities/pipeline/run-trigger-form.d.ts +1 -1
  184. package/dist/config/entities/pipeline/run-trigger-form.d.ts.map +1 -1
  185. package/dist/config/entities/pipeline/shared.d.ts +35 -2
  186. package/dist/config/entities/pipeline/shared.d.ts.map +1 -1
  187. package/dist/config/entities/pipeline/types.d.ts +2 -2
  188. package/dist/config/entities/pipeline/use-target-revision.d.ts +1 -1
  189. package/dist/config/entities/pipeline/utils/validate-emails.d.ts +1 -1
  190. package/dist/config/entities/run/detail.d.ts +1 -1
  191. package/dist/config/entities/run/detail.d.ts.map +1 -1
  192. package/dist/config/entities/run/list.d.ts +2 -2
  193. package/dist/config/entities/run/run.d.ts +1 -1
  194. package/dist/config/entities/run/shared.d.ts +31 -8
  195. package/dist/config/entities/run/shared.d.ts.map +1 -1
  196. package/dist/config/entities/run/types.d.ts +37 -17
  197. package/dist/config/entities/run/types.d.ts.map +1 -1
  198. package/dist/config/entities/targets/create-inference-server-form.d.ts +1 -1
  199. package/dist/config/entities/targets/detail.d.ts +1 -1
  200. package/dist/config/entities/targets/list.d.ts +1 -1
  201. package/dist/config/entities/targets/shared.d.ts +33 -24
  202. package/dist/config/entities/targets/shared.d.ts.map +1 -1
  203. package/dist/config/entities/targets/target.d.ts +1 -1
  204. package/dist/config/entities/targets/types.d.ts +8 -16
  205. package/dist/config/entities/targets/types.d.ts.map +1 -1
  206. package/dist/config/entities/trigger/detail.d.ts +1 -1
  207. package/dist/config/entities/trigger/detail.d.ts.map +1 -1
  208. package/dist/config/entities/trigger/list.d.ts +1 -1
  209. package/dist/config/entities/trigger/list.d.ts.map +1 -1
  210. package/dist/config/entities/trigger/shared.d.ts +15 -1
  211. package/dist/config/entities/trigger/shared.d.ts.map +1 -1
  212. package/dist/config/entities/trigger/trigger.d.ts +1 -1
  213. package/dist/config/entities/trigger/trigger.d.ts.map +1 -1
  214. package/dist/config/entities/trigger/types.d.ts +24 -49
  215. package/dist/config/entities/trigger/types.d.ts.map +1 -1
  216. package/dist/config/phases/data.d.ts +1 -1
  217. package/dist/config/phases/deploy.d.ts +1 -1
  218. package/dist/config/phases/monitor-debug.d.ts +1 -1
  219. package/dist/config/phases/retrain.d.ts +1 -1
  220. package/dist/config/phases/train.d.ts +1 -1
  221. package/dist/hooks/routing/use-studio-params/constants.d.ts +1 -1
  222. package/dist/hooks/routing/use-studio-params/normalize-entity-param.d.ts +1 -1
  223. package/dist/hooks/routing/use-studio-params/types.d.ts +2 -2
  224. package/dist/hooks/routing/use-studio-params/use-studio-params.d.ts +1 -1
  225. package/dist/hooks/use-schema-middleware/apply-middleware.d.ts +1 -1
  226. package/dist/hooks/use-schema-middleware/types.d.ts +1 -1
  227. package/dist/hooks/use-studio-mutation/types.d.ts +1 -1
  228. package/dist/hooks/use-studio-mutation/use-studio-mutation.d.ts +1 -1
  229. package/dist/hooks/use-studio-query.d.ts +2 -2
  230. package/dist/index.d.ts +98 -98
  231. package/dist/interpolation/base.d.ts +1 -1
  232. package/dist/interpolation/function-interpolation.d.ts +1 -1
  233. package/dist/interpolation/interpolate.d.ts +1 -1
  234. package/dist/interpolation/string-interpolation.d.ts +1 -1
  235. package/dist/interpolation/types.d.ts +3 -3
  236. package/dist/michelangelo-core.cjs +17 -17
  237. package/dist/michelangelo-core.js +6305 -6244
  238. package/dist/primitives.cjs +1 -1
  239. package/dist/primitives.d.ts +28 -28
  240. package/dist/primitives.js +18 -18
  241. package/dist/providers/cell-provider/types.d.ts +1 -1
  242. package/dist/providers/error-provider/normalize-universal-error.d.ts +1 -1
  243. package/dist/providers/error-provider/types.d.ts +1 -1
  244. package/dist/providers/error-provider/use-error-normalizer.d.ts +1 -1
  245. package/dist/providers/form-provider/types.d.ts +1 -1
  246. package/dist/providers/interpolation-provider/interpolation-context.d.ts +1 -1
  247. package/dist/providers/interpolation-provider/interpolation-provider.d.ts +1 -1
  248. package/dist/providers/user-provider/types.d.ts +1 -1
  249. package/dist/router/__fixtures__/phase-config-factory.d.ts +2 -2
  250. package/dist/router/entity-detail-route.d.ts +1 -1
  251. package/dist/router/phase-list-route.d.ts +1 -1
  252. package/dist/router/studio-bar.d.ts +2 -2
  253. package/dist/test/wrappers/get-cell-provider-wrapper.d.ts +1 -1
  254. package/dist/test/wrappers/get-error-provider-wrapper.d.ts +1 -1
  255. package/dist/test/wrappers/get-form-provider-wrapper.d.ts +1 -1
  256. package/dist/test/wrappers/get-repeated-layout-provider-wrapper.d.ts +1 -1
  257. package/dist/test/wrappers/get-service-provider-wrapper.d.ts +1 -1
  258. package/dist/test/wrappers/get-user-provider-wrapper.d.ts +1 -1
  259. package/dist/{theme-provider-COiyZuiN.cjs → theme-provider-By9zS1MR.cjs} +95 -95
  260. package/dist/{theme-provider-BNH_ncy6.js → theme-provider-Ch35LB9m.js} +1823 -1808
  261. package/dist/themes/theme-provider.d.ts +1 -1
  262. package/dist/tsconfig.tsbuildinfo +1 -1
  263. package/dist/types/common/studio-types.d.ts +3 -3
  264. package/dist/types/query-types.d.ts +3 -3
  265. package/dist/utils/crd-utils.d.ts +33 -8
  266. package/dist/utils/crd-utils.d.ts.map +1 -1
  267. package/dist/utils/name-utils.d.ts +5 -1
  268. package/dist/utils/name-utils.d.ts.map +1 -1
  269. package/dist/utils/object-utils.d.ts +1 -1
  270. package/dist/utils/revision-utils.d.ts +1 -1
  271. package/dist/utils/time-utils.d.ts +24 -3
  272. package/dist/utils/time-utils.d.ts.map +1 -1
  273. package/package.json +8 -8
@@ -1,6 +1,6 @@
1
- import type { ActionConfigSchema, CreateActionConfig } from '../../components/actions/types';
2
- import type { ViewConfig } from '../../components/views/types';
3
- import type { QueryConfig } from '../../types/query-types';
1
+ import type { ActionConfigSchema, CreateActionConfig } from '../../components/actions/types.js';
2
+ import type { ViewConfig } from '../../components/views/types.js';
3
+ import type { QueryConfig } from '../query-types.js';
4
4
  /** Reference to a Revision CR. */
5
5
  export type RevisionRef = {
6
6
  name: string;
@@ -1,6 +1,6 @@
1
- import type { SuccessOperation } from '../components/actions/types';
2
- import type { MiddlewareSchema } from '../hooks/use-schema-middleware/types';
3
- import type { ApplicationError } from '../types/error-types';
1
+ import type { SuccessOperation } from '../components/actions/types.js';
2
+ import type { MiddlewareSchema } from '../hooks/use-schema-middleware/types.js';
3
+ import type { ApplicationError } from './error-types.js';
4
4
  /**
5
5
  * Configuration for a query that can be used by {@link _useStudioQuery}
6
6
  */
@@ -26,15 +26,13 @@ export declare const K8S_NAME_RULES_MESSAGE = "Must only contain lowercase alpha
26
26
  * }) // 1700000000
27
27
  *
28
28
  * getCrdUpdatedSeconds({
29
- * metadata: { creationTimestamp: { seconds: 1650000000 } },
29
+ * metadata: { creationTimestamp: '2022-04-15T05:20:00Z' },
30
30
  * }) // 1650000000 (label absent, falls back to creation time)
31
31
  */
32
32
  export declare function getCrdUpdatedSeconds(data: {
33
33
  metadata?: {
34
34
  labels?: Record<string, string>;
35
- creationTimestamp?: {
36
- seconds: number;
37
- };
35
+ creationTimestamp?: string;
38
36
  };
39
37
  }): number | undefined;
40
38
  /**
@@ -54,15 +52,42 @@ export declare function getCrdUpdatedSeconds(data: {
54
52
  * }) // 1700000000
55
53
  *
56
54
  * getCrdLastUpdatedSeconds({
57
- * metadata: { creationTimestamp: { seconds: 1650000000 } },
55
+ * metadata: { creationTimestamp: '2022-04-15T05:20:00Z' },
58
56
  * }) // 1650000000 (label absent, falls back to creation time)
59
57
  */
60
58
  export declare function getCrdLastUpdatedSeconds(data: {
61
59
  metadata?: {
62
60
  labels?: Record<string, string>;
63
- creationTimestamp?: {
64
- seconds: number;
65
- };
61
+ creationTimestamp?: string;
62
+ };
63
+ }): number | undefined;
64
+ /**
65
+ * Resolves the epoch-seconds timestamp to display as a pipeline run's execution time.
66
+ *
67
+ * Pipeline runs stamp the actual dispatch time via a `pipelinerun.michelangelo/execution-timestamp`
68
+ * metadata label, falling back to `metadata.creationTimestamp` for rows created before the label
69
+ * existed.
70
+ *
71
+ * Unlike {@link getCrdUpdatedSeconds}'s and {@link getCrdLastUpdatedSeconds}'s labels — both
72
+ * stamped by the apiserver in microseconds (`time.Now().UnixMicro()` in `go/api/handler/handler.go`)
73
+ * — this label is stamped by the trigger workflow in already-epoch-seconds
74
+ * (`fmt.Sprintf("%d", ts.Unix())` in `go/worker/workflows/trigger/cron_trigger_workflows.go`), the
75
+ * same value it exports to the pipeline's own environment as `STARLARK_TIME=unix:<seconds>`
76
+ * (`go/components/pipelinerun/actors/executeworkflow.go`). No scaling needed.
77
+ *
78
+ * @example
79
+ * getCrdExecutionTimestampSeconds({
80
+ * metadata: { labels: { 'pipelinerun.michelangelo/execution-timestamp': '1700000000' } },
81
+ * }) // 1700000000
82
+ *
83
+ * getCrdExecutionTimestampSeconds({
84
+ * metadata: { creationTimestamp: '2022-04-15T05:20:00Z' },
85
+ * }) // 1650000000 (label absent, falls back to creation time)
86
+ */
87
+ export declare function getCrdExecutionTimestampSeconds(data: {
88
+ metadata?: {
89
+ labels?: Record<string, string>;
90
+ creationTimestamp?: string;
66
91
  };
67
92
  }): number | undefined;
68
93
  //# sourceMappingURL=crd-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"crd-utils.d.ts","sourceRoot":"","sources":["../../utils/crd-utils.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,gBAAgB,QAAoC,CAAC;AAClE,eAAO,MAAM,sBAAsB,oHACgF,CAAC;AAEpH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE;YAAE,OAAO,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CACzF,GAAG,MAAM,GAAG,SAAS,CAIrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE;YAAE,OAAO,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CACzF,GAAG,MAAM,GAAG,SAAS,CAIrB"}
1
+ {"version":3,"file":"crd-utils.d.ts","sourceRoot":"","sources":["../../utils/crd-utils.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,gBAAgB,QAAoC,CAAC;AAClE,eAAO,MAAM,sBAAsB,oHACgF,CAAC;AAEpH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E,GAAG,MAAM,GAAG,SAAS,CAKrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE;IAC7C,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E,GAAG,MAAM,GAAG,SAAS,CAKrB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE;IACpD,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5E,GAAG,MAAM,GAAG,SAAS,CAKrB"}
@@ -26,5 +26,9 @@ export declare const generateSuffix: (config?: {
26
26
  * Shared by every place a TriggerRun name is generated — starting one fresh from a trigger's
27
27
  * manifest and replaying an existing run as a rerun both need the same classification.
28
28
  */
29
- export declare function resolveTriggerRunTypePrefix(triggerTypeCase: string | undefined, isBackfill: boolean): string;
29
+ export declare function resolveTriggerRunTypePrefix(trigger: {
30
+ batchRerun?: unknown;
31
+ cronSchedule?: unknown;
32
+ intervalSchedule?: unknown;
33
+ } | undefined, isBackfill: boolean): string;
30
34
  //# sourceMappingURL=name-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"name-utils.d.ts","sourceRoot":"","sources":["../../utils/name-utils.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,YAAY;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,KAAyB,MAsBpF,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,UAAU,EAAE,OAAO,GAClB,MAAM,CAIR"}
1
+ {"version":3,"file":"name-utils.d.ts","sourceRoot":"","sources":["../../utils/name-utils.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,YAAY;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,KAAyB,MAsBpF,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,EACjG,UAAU,EAAE,OAAO,GAClB,MAAM,CAIR"}
@@ -1,4 +1,4 @@
1
- import type { Accessor } from '../types/common/studio-types';
1
+ import type { Accessor } from '../types/common/studio-types.js';
2
2
  /**
3
3
  * Excludes arrays and null, unlike a plain `typeof x === 'object'` check.
4
4
  * Use to narrow `unknown` before accessing properties by key.
@@ -1,4 +1,4 @@
1
- import type { RevisionRef } from '../types/common/studio-types';
1
+ import type { RevisionRef } from '../types/common/studio-types.js';
2
2
  /**
3
3
  * Revision ids are git refs. To follow the controller naming scheme for
4
4
  * revisioned entity, we display the first 12 characters of the git ref.
@@ -1,10 +1,30 @@
1
- import { TimeZone } from '../types/time-types';
1
+ import { TimeZone } from '../types/time-types.js';
2
2
  /**
3
- * Converts a timestamp to a string.
3
+ * Normalizes a timestamp to epoch seconds. Accepts epoch seconds, as a number or a numeric string
4
+ * (e.g. a timestamp label), or an RFC 3339 string, as a `google.protobuf.Timestamp` arrives in
5
+ * proto3 JSON. Returns NaN when neither parses.
6
+ *
7
+ * @example
8
+ * - toEpochSeconds('1720656638') -> 1720656638
9
+ * - toEpochSeconds('2024-07-11T00:10:38Z') -> 1720656638
10
+ */
11
+ export declare function toEpochSeconds(timestamp: string | number): number;
12
+ /**
13
+ * Parses a proto3 JSON `google.protobuf.Duration` (e.g. "3600s", "1.5s") into seconds.
14
+ * Returns undefined when the duration is absent or unparseable.
15
+ *
16
+ * @example
17
+ * - durationToSeconds('3600s') -> 3600
18
+ * - durationToSeconds(undefined) -> undefined
19
+ */
20
+ export declare function durationToSeconds(duration?: string): number | undefined;
21
+ /**
22
+ * Converts a timestamp (see {@link toEpochSeconds} for accepted forms) to a string.
4
23
  * If timezone kind is specified, it adjust the time and also adds a timezone info.
5
24
  *
6
25
  * @example
7
26
  * - timestampToString(1720656638) -> '2024/07/11 02:10:38'
27
+ * - timestampToString('2024-07-11T00:10:38Z', 'utc') -> '2024/07/11 00:10:38 (UTC)'
8
28
  * - timestampToString(1720656639, 'utc') -> '2024/07/11 00:10:39 (UTC)'
9
29
  * - timestampToString(1720656639, 'local') -> '2024/07/11 02:10:39 (GMT+2)'
10
30
  */
@@ -22,13 +42,14 @@ export declare function getDateFromEpochSeconds(epochSeconds: number): Date;
22
42
  */
23
43
  export declare function getEpochSecondsFromDate(date: Date): number;
24
44
  /**
25
- * Formats the elapsed time between two epoch-second timestamps.
45
+ * Formats the elapsed time between two timestamps (see {@link toEpochSeconds} for accepted forms).
26
46
  *
27
47
  * Returns null when either bound is missing — a step that has not started, or one
28
48
  * still running — so callers can render their own placeholder.
29
49
  *
30
50
  * @example
31
51
  * formatElapsedSeconds('1720656638', '1720656690') // "52s"
52
+ * formatElapsedSeconds('2024-07-11T00:10:38Z', '2024-07-11T00:11:30Z') // "52s"
32
53
  * formatElapsedSeconds('1720656638', undefined) // null
33
54
  */
34
55
  export declare function formatElapsedSeconds(startSeconds?: string | number, endSeconds?: string | number): string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"time-utils.d.ts","sourceRoot":"","sources":["../../utils/time-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAC9B,QAAQ,CAAC,EAAE,QAAQ,GAClB,MAAM,GAAG,IAAI,CAkCf;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAElE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAC3B,MAAM,GAAG,IAAI,CAaf;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAYvF"}
1
+ {"version":3,"file":"time-utils.d.ts","sourceRoot":"","sources":["../../utils/time-utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAGjE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAC9B,QAAQ,CAAC,EAAE,QAAQ,GAClB,MAAM,GAAG,IAAI,CAkCf;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAElE;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE1D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAC3B,MAAM,GAAG,IAAI,CAaf;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAYvF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@michelangelo-ai/core",
3
3
  "license": "Apache-2.0",
4
- "version": "0.12.0",
4
+ "version": "0.13.0-rc.1",
5
5
  "type": "module",
6
6
  "main": "./dist/michelangelo-core.js",
7
7
  "module": "./dist/michelangelo-core.js",
@@ -36,18 +36,18 @@
36
36
  "validator": "^13.15.15"
37
37
  },
38
38
  "devDependencies": {
39
- "@testing-library/dom": "^10.4.0",
39
+ "@testing-library/dom": "^10.4.2",
40
40
  "@testing-library/jest-dom": "^6.6.3",
41
- "@testing-library/react": "^16.3.0",
42
- "@testing-library/user-event": "^14.6.1",
41
+ "@testing-library/react": "^16.3.3",
42
+ "@testing-library/user-event": "^14.6.7",
43
43
  "@types/jest": "^29.5.14",
44
44
  "@types/final-form-focus": "^1.1.7",
45
- "@types/lodash": "^4.17.17",
45
+ "@types/lodash": "^4.17.25",
46
46
  "@types/react-router": "^5.1.20",
47
- "@types/validator": "^13.15.1",
47
+ "@types/validator": "^13.15.10",
48
48
  "@vitejs/plugin-react": "^4.4.1",
49
- "happy-dom": "^20.10.6",
50
- "tsc-alias": "^1.8.16",
49
+ "happy-dom": "^20.14.5",
50
+ "tsc-alias": "^1.9.7",
51
51
  "vitest": "^3.1.1"
52
52
  },
53
53
  "peerDependencies": {