@vibesdotdev/runnable 0.0.0-stage → 1.0.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.
- package/LICENSE +18 -0
- package/README.md +4 -2
- package/dist/artifact-data.d.ts +8 -0
- package/dist/artifact-data.d.ts.map +1 -0
- package/dist/artifact-data.js +12 -0
- package/dist/artifact-data.js.map +1 -0
- package/dist/change-source.d.ts +54 -0
- package/dist/change-source.d.ts.map +1 -0
- package/dist/change-source.js +37 -0
- package/dist/change-source.js.map +1 -0
- package/dist/client/client.d.ts +1002 -0
- package/dist/client/client.d.ts.map +1 -0
- package/dist/client/client.js +148 -0
- package/dist/client/client.js.map +1 -0
- package/dist/client/execution/failure.d.ts +3 -0
- package/dist/client/execution/failure.d.ts.map +1 -0
- package/dist/client/execution/failure.js +20 -0
- package/dist/client/execution/failure.js.map +1 -0
- package/dist/client/execution/finalize.d.ts +81 -0
- package/dist/client/execution/finalize.d.ts.map +1 -0
- package/dist/client/execution/finalize.js +71 -0
- package/dist/client/execution/finalize.js.map +1 -0
- package/dist/client/execution/memo.d.ts +25 -0
- package/dist/client/execution/memo.d.ts.map +1 -0
- package/dist/client/execution/memo.js +56 -0
- package/dist/client/execution/memo.js.map +1 -0
- package/dist/client/execution/native-admission.d.ts +7 -0
- package/dist/client/execution/native-admission.d.ts.map +1 -0
- package/dist/client/execution/native-admission.js +22 -0
- package/dist/client/execution/native-admission.js.map +1 -0
- package/dist/client/execution/prepare-input.d.ts +19 -0
- package/dist/client/execution/prepare-input.d.ts.map +1 -0
- package/dist/client/execution/prepare-input.js +27 -0
- package/dist/client/execution/prepare-input.js.map +1 -0
- package/dist/client/execution/prepare-record.d.ts +271 -0
- package/dist/client/execution/prepare-record.d.ts.map +1 -0
- package/dist/client/execution/prepare-record.js +115 -0
- package/dist/client/execution/prepare-record.js.map +1 -0
- package/dist/client/execution/produce.d.ts +44 -0
- package/dist/client/execution/produce.d.ts.map +1 -0
- package/dist/client/execution/produce.js +78 -0
- package/dist/client/execution/produce.js.map +1 -0
- package/dist/client/execution/recorded.d.ts +28 -0
- package/dist/client/execution/recorded.d.ts.map +1 -0
- package/dist/client/execution/recorded.js +74 -0
- package/dist/client/execution/recorded.js.map +1 -0
- package/dist/client/execution/selection.d.ts +19 -0
- package/dist/client/execution/selection.d.ts.map +1 -0
- package/dist/client/execution/selection.js +38 -0
- package/dist/client/execution/selection.js.map +1 -0
- package/dist/client/native/completion.d.ts +19 -0
- package/dist/client/native/completion.d.ts.map +1 -0
- package/dist/client/native/completion.js +158 -0
- package/dist/client/native/completion.js.map +1 -0
- package/dist/client/native/controls.d.ts +18 -0
- package/dist/client/native/controls.d.ts.map +1 -0
- package/dist/client/native/controls.js +69 -0
- package/dist/client/native/controls.js.map +1 -0
- package/dist/client/native/owner.d.ts +36 -0
- package/dist/client/native/owner.d.ts.map +1 -0
- package/dist/client/native/owner.js +111 -0
- package/dist/client/native/owner.js.map +1 -0
- package/dist/client/native/supervision.d.ts +12 -0
- package/dist/client/native/supervision.d.ts.map +1 -0
- package/dist/client/native/supervision.js +56 -0
- package/dist/client/native/supervision.js.map +1 -0
- package/dist/client/records/authority.d.ts +20 -0
- package/dist/client/records/authority.d.ts.map +1 -0
- package/dist/client/records/authority.js +186 -0
- package/dist/client/records/authority.js.map +1 -0
- package/dist/client/records/identity.d.ts +4 -0
- package/dist/client/records/identity.d.ts.map +1 -0
- package/dist/client/records/identity.js +7 -0
- package/dist/client/records/identity.js.map +1 -0
- package/dist/client/records/input-admission.d.ts +5 -0
- package/dist/client/records/input-admission.d.ts.map +1 -0
- package/dist/client/records/input-admission.js +26 -0
- package/dist/client/records/input-admission.js.map +1 -0
- package/dist/client/records/owner.d.ts +254 -0
- package/dist/client/records/owner.d.ts.map +1 -0
- package/dist/client/records/owner.js +127 -0
- package/dist/client/records/owner.js.map +1 -0
- package/dist/client/records/query.d.ts +11 -0
- package/dist/client/records/query.d.ts.map +1 -0
- package/dist/client/records/query.js +60 -0
- package/dist/client/records/query.js.map +1 -0
- package/dist/client/records/recording.d.ts +9 -0
- package/dist/client/records/recording.d.ts.map +1 -0
- package/dist/client/records/recording.js +160 -0
- package/dist/client/records/recording.js.map +1 -0
- package/dist/client/resolve.d.ts +10 -0
- package/dist/client/resolve.d.ts.map +1 -0
- package/dist/client/resolve.js +33 -0
- package/dist/client/resolve.js.map +1 -0
- package/dist/client/tracking/artifact-data.d.ts +8 -0
- package/dist/client/tracking/artifact-data.d.ts.map +1 -0
- package/dist/client/tracking/artifact-data.js +12 -0
- package/dist/client/tracking/artifact-data.js.map +1 -0
- package/dist/client/tracking/client.d.ts +20 -0
- package/dist/client/tracking/client.d.ts.map +1 -0
- package/dist/client/tracking/client.js +187 -0
- package/dist/client/tracking/client.js.map +1 -0
- package/dist/client/tracking/panel-bindings.d.ts +8 -0
- package/dist/client/tracking/panel-bindings.d.ts.map +1 -0
- package/dist/client/tracking/panel-bindings.js +81 -0
- package/dist/client/tracking/panel-bindings.js.map +1 -0
- package/dist/client/tracking/panels.d.ts +62 -0
- package/dist/client/tracking/panels.d.ts.map +1 -0
- package/dist/client/tracking/panels.js +56 -0
- package/dist/client/tracking/panels.js.map +1 -0
- package/dist/client/tracking/projection.d.ts +17 -0
- package/dist/client/tracking/projection.d.ts.map +1 -0
- package/dist/client/tracking/projection.js +100 -0
- package/dist/client/tracking/projection.js.map +1 -0
- package/dist/client/tracking/watch.d.ts +10 -0
- package/dist/client/tracking/watch.d.ts.map +1 -0
- package/dist/client/tracking/watch.js +128 -0
- package/dist/client/tracking/watch.js.map +1 -0
- package/dist/client/transport.d.ts +14 -0
- package/dist/client/transport.d.ts.map +1 -0
- package/dist/client/transport.js +52 -0
- package/dist/client/transport.js.map +1 -0
- package/dist/client.d.ts +460 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +1181 -0
- package/dist/client.js.map +1 -0
- package/dist/context.d.ts +14 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +98 -0
- package/dist/context.js.map +1 -0
- package/dist/docs/runnable.context.docs.descriptor.d.ts +4 -0
- package/dist/docs/runnable.context.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runnable.context.docs.descriptor.js +419 -0
- package/dist/docs/runnable.context.docs.descriptor.js.map +1 -0
- package/dist/docs/runnable.graphs.docs.descriptor.d.ts +4 -0
- package/dist/docs/runnable.graphs.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runnable.graphs.docs.descriptor.js +51 -0
- package/dist/docs/runnable.graphs.docs.descriptor.js.map +1 -0
- package/dist/docs/runnable.nodes.docs.descriptor.d.ts +4 -0
- package/dist/docs/runnable.nodes.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/runnable.nodes.docs.descriptor.js +327 -0
- package/dist/docs/runnable.nodes.docs.descriptor.js.map +1 -0
- package/dist/event-broker.d.ts +54 -0
- package/dist/event-broker.d.ts.map +1 -0
- package/dist/event-broker.js +157 -0
- package/dist/event-broker.js.map +1 -0
- package/dist/events.d.ts +16 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +144 -0
- package/dist/events.js.map +1 -0
- package/dist/execution.contract.d.ts +10 -0
- package/dist/execution.contract.d.ts.map +1 -0
- package/dist/execution.contract.js +30 -0
- package/dist/execution.contract.js.map +1 -0
- package/dist/execution.d.ts +24 -0
- package/dist/execution.d.ts.map +1 -0
- package/dist/execution.js +172 -0
- package/dist/execution.js.map +1 -0
- package/dist/execution.telemetry.descriptor.d.ts +4 -0
- package/dist/execution.telemetry.descriptor.d.ts.map +1 -0
- package/dist/execution.telemetry.descriptor.js +6 -0
- package/dist/execution.telemetry.descriptor.js.map +1 -0
- package/dist/host.d.ts +95 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +12 -0
- package/dist/host.js.map +1 -0
- package/dist/identity.d.ts +3 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +6 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/input-admission.d.ts +5 -0
- package/dist/input-admission.d.ts.map +1 -0
- package/dist/input-admission.js +43 -0
- package/dist/input-admission.js.map +1 -0
- package/dist/invocation.d.ts +17 -0
- package/dist/invocation.d.ts.map +1 -0
- package/dist/invocation.js +32 -0
- package/dist/invocation.js.map +1 -0
- package/dist/issues.d.ts +4 -0
- package/dist/issues.d.ts.map +1 -0
- package/dist/issues.js +5 -0
- package/dist/issues.js.map +1 -0
- package/dist/json-field.d.ts +4 -0
- package/dist/json-field.d.ts.map +1 -0
- package/dist/json-field.js +16 -0
- package/dist/json-field.js.map +1 -0
- package/dist/kinds/config.d.ts +3 -0
- package/dist/kinds/config.d.ts.map +1 -0
- package/dist/kinds/config.js +14 -0
- package/dist/kinds/config.js.map +1 -0
- package/dist/kinds/ingest-mapping.d.ts +3 -0
- package/dist/kinds/ingest-mapping.d.ts.map +1 -0
- package/dist/kinds/ingest-mapping.js +30 -0
- package/dist/kinds/ingest-mapping.js.map +1 -0
- package/dist/kinds/result.d.ts +3 -0
- package/dist/kinds/result.d.ts.map +1 -0
- package/dist/kinds/result.js +14 -0
- package/dist/kinds/result.js.map +1 -0
- package/dist/kinds/runnable.d.ts +3 -0
- package/dist/kinds/runnable.d.ts.map +1 -0
- package/dist/kinds/runnable.js +19 -0
- package/dist/kinds/runnable.js.map +1 -0
- package/dist/kinds/telemetry.d.ts +3 -0
- package/dist/kinds/telemetry.d.ts.map +1 -0
- package/dist/kinds/telemetry.js +14 -0
- package/dist/kinds/telemetry.js.map +1 -0
- package/dist/kinds/type.d.ts +3 -0
- package/dist/kinds/type.d.ts.map +1 -0
- package/dist/kinds/type.js +14 -0
- package/dist/kinds/type.js.map +1 -0
- package/dist/kinds/visualization.d.ts +3 -0
- package/dist/kinds/visualization.d.ts.map +1 -0
- package/dist/kinds/visualization.js +14 -0
- package/dist/kinds/visualization.js.map +1 -0
- package/dist/metrics/runnable.metrics.descriptor.d.ts +16 -0
- package/dist/metrics/runnable.metrics.descriptor.d.ts.map +1 -0
- package/dist/metrics/runnable.metrics.descriptor.js +16 -0
- package/dist/metrics/runnable.metrics.descriptor.js.map +1 -0
- package/dist/metrics/runnable.metrics.impl.d.ts +13 -0
- package/dist/metrics/runnable.metrics.impl.d.ts.map +1 -0
- package/dist/metrics/runnable.metrics.impl.js +60 -0
- package/dist/metrics/runnable.metrics.impl.js.map +1 -0
- package/dist/panels.d.ts +31 -0
- package/dist/panels.d.ts.map +1 -0
- package/dist/panels.js +58 -0
- package/dist/panels.js.map +1 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +71 -0
- package/dist/plugin.js.map +1 -0
- package/dist/projection.d.ts +26 -0
- package/dist/projection.d.ts.map +1 -0
- package/dist/projection.js +100 -0
- package/dist/projection.js.map +1 -0
- package/dist/recording.d.ts +9 -0
- package/dist/recording.d.ts.map +1 -0
- package/dist/recording.js +121 -0
- package/dist/recording.js.map +1 -0
- package/dist/records/authority.d.ts +20 -0
- package/dist/records/authority.d.ts.map +1 -0
- package/dist/records/authority.js +142 -0
- package/dist/records/authority.js.map +1 -0
- package/dist/records/query.d.ts +11 -0
- package/dist/records/query.d.ts.map +1 -0
- package/dist/records/query.js +60 -0
- package/dist/records/query.js.map +1 -0
- package/dist/runnable.cloud.plugin.d.ts +3 -0
- package/dist/runnable.cloud.plugin.d.ts.map +1 -0
- package/dist/runnable.cloud.plugin.js +3 -0
- package/dist/runnable.cloud.plugin.js.map +1 -0
- package/dist/runnable.consumer.plugin.d.ts +15 -0
- package/dist/runnable.consumer.plugin.d.ts.map +1 -0
- package/dist/runnable.consumer.plugin.js +15 -0
- package/dist/runnable.consumer.plugin.js.map +1 -0
- package/dist/runnable.plugin.d.ts +3 -0
- package/dist/runnable.plugin.d.ts.map +1 -0
- package/dist/runnable.plugin.js +3 -0
- package/dist/runnable.plugin.js.map +1 -0
- package/dist/runner.d.ts +13 -0
- package/dist/runner.d.ts.map +1 -0
- package/dist/runner.js +151 -0
- package/dist/runner.js.map +1 -0
- package/dist/runtime/change-source.d.ts +39 -0
- package/dist/runtime/change-source.d.ts.map +1 -0
- package/dist/runtime/change-source.js +36 -0
- package/dist/runtime/change-source.js.map +1 -0
- package/dist/runtime/event-broker.d.ts +41 -0
- package/dist/runtime/event-broker.d.ts.map +1 -0
- package/dist/runtime/event-broker.js +157 -0
- package/dist/runtime/event-broker.js.map +1 -0
- package/dist/runtime/events.d.ts +16 -0
- package/dist/runtime/events.d.ts.map +1 -0
- package/dist/runtime/events.js +144 -0
- package/dist/runtime/events.js.map +1 -0
- package/dist/runtime/execution/contract.d.ts +10 -0
- package/dist/runtime/execution/contract.d.ts.map +1 -0
- package/dist/runtime/execution/contract.js +30 -0
- package/dist/runtime/execution/contract.js.map +1 -0
- package/dist/runtime/execution/exit.d.ts +5 -0
- package/dist/runtime/execution/exit.d.ts.map +1 -0
- package/dist/runtime/execution/exit.js +39 -0
- package/dist/runtime/execution/exit.js.map +1 -0
- package/dist/runtime/execution/index.d.ts +23 -0
- package/dist/runtime/execution/index.d.ts.map +1 -0
- package/dist/runtime/execution/index.js +136 -0
- package/dist/runtime/execution/index.js.map +1 -0
- package/dist/runtime/host.d.ts +60 -0
- package/dist/runtime/host.d.ts.map +1 -0
- package/dist/runtime/host.js +13 -0
- package/dist/runtime/host.js.map +1 -0
- package/dist/runtime/invocation.d.ts +10 -0
- package/dist/runtime/invocation.d.ts.map +1 -0
- package/dist/runtime/invocation.js +27 -0
- package/dist/runtime/invocation.js.map +1 -0
- package/dist/runtime/plugins/plugin.d.ts +3 -0
- package/dist/runtime/plugins/plugin.d.ts.map +1 -0
- package/dist/runtime/plugins/plugin.js +69 -0
- package/dist/runtime/plugins/plugin.js.map +1 -0
- package/dist/runtime/plugins/runnable.cloud.plugin.d.ts +3 -0
- package/dist/runtime/plugins/runnable.cloud.plugin.d.ts.map +1 -0
- package/dist/runtime/plugins/runnable.cloud.plugin.js +3 -0
- package/dist/runtime/plugins/runnable.cloud.plugin.js.map +1 -0
- package/dist/runtime/plugins/runnable.consumer.plugin.d.ts +15 -0
- package/dist/runtime/plugins/runnable.consumer.plugin.d.ts.map +1 -0
- package/dist/runtime/plugins/runnable.consumer.plugin.js +15 -0
- package/dist/runtime/plugins/runnable.consumer.plugin.js.map +1 -0
- package/dist/runtime/plugins/runnable.metrics.plugin.d.ts +4 -0
- package/dist/runtime/plugins/runnable.metrics.plugin.d.ts.map +1 -0
- package/dist/runtime/plugins/runnable.metrics.plugin.js +13 -0
- package/dist/runtime/plugins/runnable.metrics.plugin.js.map +1 -0
- package/dist/runtime/plugins/runnable.plugin.d.ts +3 -0
- package/dist/runtime/plugins/runnable.plugin.d.ts.map +1 -0
- package/dist/runtime/plugins/runnable.plugin.js +3 -0
- package/dist/runtime/plugins/runnable.plugin.js.map +1 -0
- package/dist/runtime/runner.d.ts +13 -0
- package/dist/runtime/runner.d.ts.map +1 -0
- package/dist/runtime/runner.js +154 -0
- package/dist/runtime/runner.js.map +1 -0
- package/dist/runtime/state/index.d.ts +4 -0
- package/dist/runtime/state/index.d.ts.map +1 -0
- package/dist/runtime/state/index.js +4 -0
- package/dist/runtime/state/index.js.map +1 -0
- package/dist/runtime/state/manager.d.ts +20 -0
- package/dist/runtime/state/manager.d.ts.map +1 -0
- package/dist/runtime/state/manager.js +135 -0
- package/dist/runtime/state/manager.js.map +1 -0
- package/dist/runtime/state/snapshot.d.ts +10 -0
- package/dist/runtime/state/snapshot.d.ts.map +1 -0
- package/dist/runtime/state/snapshot.js +59 -0
- package/dist/runtime/state/snapshot.js.map +1 -0
- package/dist/runtime/state/time-series.d.ts +36 -0
- package/dist/runtime/state/time-series.d.ts.map +1 -0
- package/dist/runtime/state/time-series.js +151 -0
- package/dist/runtime/state/time-series.js.map +1 -0
- package/dist/schemas/context.d.ts +64 -0
- package/dist/schemas/context.d.ts.map +1 -0
- package/dist/schemas/context.js +37 -0
- package/dist/schemas/context.js.map +1 -0
- package/dist/schemas/contracts/events.d.ts +33 -0
- package/dist/schemas/contracts/events.d.ts.map +1 -0
- package/dist/schemas/contracts/events.js +5 -0
- package/dist/schemas/contracts/events.js.map +1 -0
- package/dist/schemas/contracts/execution.d.ts +211 -0
- package/dist/schemas/contracts/execution.d.ts.map +1 -0
- package/dist/schemas/contracts/execution.js +40 -0
- package/dist/schemas/contracts/execution.js.map +1 -0
- package/dist/schemas/contracts/host.d.ts +37 -0
- package/dist/schemas/contracts/host.d.ts.map +1 -0
- package/dist/schemas/contracts/host.js +2 -0
- package/dist/schemas/contracts/host.js.map +1 -0
- package/dist/schemas/contracts/index.d.ts +77 -0
- package/dist/schemas/contracts/index.d.ts.map +1 -0
- package/dist/schemas/contracts/index.js +28 -0
- package/dist/schemas/contracts/index.js.map +1 -0
- package/dist/schemas/contracts/invocation.d.ts +9 -0
- package/dist/schemas/contracts/invocation.d.ts.map +1 -0
- package/dist/schemas/contracts/invocation.js +8 -0
- package/dist/schemas/contracts/invocation.js.map +1 -0
- package/dist/schemas/contracts/runner.d.ts +61 -0
- package/dist/schemas/contracts/runner.d.ts.map +1 -0
- package/dist/schemas/contracts/runner.js +3 -0
- package/dist/schemas/contracts/runner.js.map +1 -0
- package/dist/schemas/contracts/state.d.ts +147 -0
- package/dist/schemas/contracts/state.d.ts.map +1 -0
- package/dist/schemas/contracts/state.js +16 -0
- package/dist/schemas/contracts/state.js.map +1 -0
- package/dist/schemas/contracts/storage.d.ts +231 -0
- package/dist/schemas/contracts/storage.d.ts.map +1 -0
- package/dist/schemas/contracts/storage.js +39 -0
- package/dist/schemas/contracts/storage.js.map +1 -0
- package/dist/schemas/contracts/test-scenario.d.ts +60 -0
- package/dist/schemas/contracts/test-scenario.d.ts.map +1 -0
- package/dist/schemas/contracts/test-scenario.js +2 -0
- package/dist/schemas/contracts/test-scenario.js.map +1 -0
- package/dist/schemas/contracts/watch.d.ts +49 -0
- package/dist/schemas/contracts/watch.d.ts.map +1 -0
- package/dist/schemas/contracts/watch.js +2 -0
- package/dist/schemas/contracts/watch.js.map +1 -0
- package/dist/schemas/contracts.d.ts +192 -0
- package/dist/schemas/contracts.d.ts.map +1 -0
- package/dist/schemas/contracts.js +38 -0
- package/dist/schemas/contracts.js.map +1 -0
- package/dist/schemas/description.d.ts +68 -0
- package/dist/schemas/description.d.ts.map +1 -0
- package/dist/schemas/description.js +12 -0
- package/dist/schemas/description.js.map +1 -0
- package/dist/schemas/descriptors.d.ts +429 -0
- package/dist/schemas/descriptors.d.ts.map +1 -0
- package/dist/schemas/descriptors.js +125 -0
- package/dist/schemas/descriptors.js.map +1 -0
- package/dist/schemas/events.d.ts +359 -0
- package/dist/schemas/events.d.ts.map +1 -0
- package/dist/schemas/events.js +109 -0
- package/dist/schemas/events.js.map +1 -0
- package/dist/schemas/index.d.ts +12 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +12 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/issues.d.ts +142 -0
- package/dist/schemas/issues.d.ts.map +1 -0
- package/dist/schemas/issues.js +44 -0
- package/dist/schemas/issues.js.map +1 -0
- package/dist/schemas/outcome.d.ts +111 -0
- package/dist/schemas/outcome.d.ts.map +1 -0
- package/dist/schemas/outcome.js +32 -0
- package/dist/schemas/outcome.js.map +1 -0
- package/dist/schemas/panels.d.ts +164 -0
- package/dist/schemas/panels.d.ts.map +1 -0
- package/dist/schemas/panels.js +25 -0
- package/dist/schemas/panels.js.map +1 -0
- package/dist/schemas/projection.d.ts +301 -0
- package/dist/schemas/projection.d.ts.map +1 -0
- package/dist/schemas/projection.js +64 -0
- package/dist/schemas/projection.js.map +1 -0
- package/dist/schemas/runs.d.ts +2428 -0
- package/dist/schemas/runs.d.ts.map +1 -0
- package/dist/schemas/runs.js +163 -0
- package/dist/schemas/runs.js.map +1 -0
- package/dist/schemas/writes.d.ts +103 -0
- package/dist/schemas/writes.d.ts.map +1 -0
- package/dist/schemas/writes.js +28 -0
- package/dist/schemas/writes.js.map +1 -0
- package/dist/state.d.ts +175 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/state.js +356 -0
- package/dist/state.js.map +1 -0
- package/dist/storage/context-sql.d.ts +9 -0
- package/dist/storage/context-sql.d.ts.map +1 -0
- package/dist/storage/context-sql.js +77 -0
- package/dist/storage/context-sql.js.map +1 -0
- package/dist/storage/local/catalog.d.ts +62 -0
- package/dist/storage/local/catalog.d.ts.map +1 -0
- package/dist/storage/local/catalog.js +88 -0
- package/dist/storage/local/catalog.js.map +1 -0
- package/dist/storage/local/descriptors.d.ts +8 -0
- package/dist/storage/local/descriptors.d.ts.map +1 -0
- package/dist/storage/local/descriptors.js +32 -0
- package/dist/storage/local/descriptors.js.map +1 -0
- package/dist/storage/local/host.d.ts +5 -0
- package/dist/storage/local/host.d.ts.map +1 -0
- package/dist/storage/local/host.js +100 -0
- package/dist/storage/local/host.js.map +1 -0
- package/dist/storage/local/index.d.ts +4 -0
- package/dist/storage/local/index.d.ts.map +1 -0
- package/dist/storage/local/index.js +22 -0
- package/dist/storage/local/index.js.map +1 -0
- package/dist/storage/local/refusal.d.ts +2 -0
- package/dist/storage/local/refusal.d.ts.map +1 -0
- package/dist/storage/local/refusal.js +7 -0
- package/dist/storage/local/refusal.js.map +1 -0
- package/dist/storage/local/state-host.d.ts +5 -0
- package/dist/storage/local/state-host.d.ts.map +1 -0
- package/dist/storage/local/state-host.js +149 -0
- package/dist/storage/local/state-host.js.map +1 -0
- package/dist/storage/local/telemetry.d.ts +19 -0
- package/dist/storage/local/telemetry.d.ts.map +1 -0
- package/dist/storage/local/telemetry.js +52 -0
- package/dist/storage/local/telemetry.js.map +1 -0
- package/dist/storage/local.d.ts +3 -0
- package/dist/storage/local.d.ts.map +1 -0
- package/dist/storage/local.js +408 -0
- package/dist/storage/local.js.map +1 -0
- package/dist/storage/plugin.d.ts +7 -0
- package/dist/storage/plugin.d.ts.map +1 -0
- package/dist/storage/plugin.js +116 -0
- package/dist/storage/plugin.js.map +1 -0
- package/dist/storage/records.d.ts +8 -0
- package/dist/storage/records.d.ts.map +1 -0
- package/dist/storage/records.js +68 -0
- package/dist/storage/records.js.map +1 -0
- package/dist/svelte/components/ArtifactList.svelte +198 -0
- package/dist/svelte/components/ArtifactList.svelte.d.ts +10 -0
- package/dist/svelte/components/ArtifactList.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ArtifactPreview.svelte +19 -0
- package/dist/svelte/components/ArtifactPreview.svelte.d.ts +8 -0
- package/dist/svelte/components/ArtifactPreview.svelte.d.ts.map +1 -0
- package/dist/svelte/components/FleetRuns.svelte +50 -0
- package/dist/svelte/components/FleetRuns.svelte.d.ts +8 -0
- package/dist/svelte/components/FleetRuns.svelte.d.ts.map +1 -0
- package/dist/svelte/components/LogViewer.svelte +98 -0
- package/dist/svelte/components/LogViewer.svelte.d.ts +13 -0
- package/dist/svelte/components/LogViewer.svelte.d.ts.map +1 -0
- package/dist/svelte/components/MetricCard.svelte +176 -0
- package/dist/svelte/components/MetricCard.svelte.d.ts +5 -0
- package/dist/svelte/components/MetricCard.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunActivity.svelte +32 -0
- package/dist/svelte/components/RunActivity.svelte.d.ts +13 -0
- package/dist/svelte/components/RunActivity.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunBrowser.svelte +86 -0
- package/dist/svelte/components/RunBrowser.svelte.d.ts +13 -0
- package/dist/svelte/components/RunBrowser.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunComparison.svelte +76 -0
- package/dist/svelte/components/RunComparison.svelte.d.ts +12 -0
- package/dist/svelte/components/RunComparison.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunContext.svelte +29 -0
- package/dist/svelte/components/RunContext.svelte.d.ts +10 -0
- package/dist/svelte/components/RunContext.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunEvidence.svelte +30 -0
- package/dist/svelte/components/RunEvidence.svelte.d.ts +8 -0
- package/dist/svelte/components/RunEvidence.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunIssues.svelte +114 -0
- package/dist/svelte/components/RunIssues.svelte.d.ts +12 -0
- package/dist/svelte/components/RunIssues.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunObservation.svelte +32 -0
- package/dist/svelte/components/RunObservation.svelte.d.ts +12 -0
- package/dist/svelte/components/RunObservation.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunOutcomeBadge.svelte +11 -0
- package/dist/svelte/components/RunOutcomeBadge.svelte.d.ts +8 -0
- package/dist/svelte/components/RunOutcomeBadge.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunPanels.svelte +64 -0
- package/dist/svelte/components/RunPanels.svelte.d.ts +15 -0
- package/dist/svelte/components/RunPanels.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunStatusBadge.svelte +38 -0
- package/dist/svelte/components/RunStatusBadge.svelte.d.ts +9 -0
- package/dist/svelte/components/RunStatusBadge.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunSummary.svelte +42 -0
- package/dist/svelte/components/RunSummary.svelte.d.ts +11 -0
- package/dist/svelte/components/RunSummary.svelte.d.ts.map +1 -0
- package/dist/svelte/components/RunsView.svelte +162 -0
- package/dist/svelte/components/RunsView.svelte.d.ts +17 -0
- package/dist/svelte/components/RunsView.svelte.d.ts.map +1 -0
- package/dist/svelte/components/TypePicker.svelte +337 -0
- package/dist/svelte/components/TypePicker.svelte.d.ts +12 -0
- package/dist/svelte/components/TypePicker.svelte.d.ts.map +1 -0
- package/dist/svelte/components/records/RunDetail.svelte +214 -0
- package/dist/svelte/components/records/RunDetail.svelte.d.ts +20 -0
- package/dist/svelte/components/records/RunDetail.svelte.d.ts.map +1 -0
- package/dist/svelte/components/records/RunList.svelte +190 -0
- package/dist/svelte/components/records/RunList.svelte.d.ts +14 -0
- package/dist/svelte/components/records/RunList.svelte.d.ts.map +1 -0
- package/dist/svelte/components/records/RunTree.svelte +186 -0
- package/dist/svelte/components/records/RunTree.svelte.d.ts +5 -0
- package/dist/svelte/components/records/RunTree.svelte.d.ts.map +1 -0
- package/dist/svelte/components/records/tree-navigation.d.ts +3 -0
- package/dist/svelte/components/records/tree-navigation.d.ts.map +1 -0
- package/dist/svelte/components/records/tree-navigation.js +29 -0
- package/dist/svelte/components/records/tree-projection.d.ts +16 -0
- package/dist/svelte/components/records/tree-projection.d.ts.map +1 -0
- package/dist/svelte/components/records/tree-projection.js +134 -0
- package/dist/svelte/index.d.ts +27 -0
- package/dist/svelte/index.d.ts.map +1 -0
- package/dist/svelte/index.js +22 -0
- package/dist/svelte/lib/artifact-blob.d.ts +2 -0
- package/dist/svelte/lib/artifact-blob.d.ts.map +1 -0
- package/dist/svelte/lib/artifact-blob.js +1 -0
- package/dist/svelte/lib/run-investigation.d.ts +17 -0
- package/dist/svelte/lib/run-investigation.d.ts.map +1 -0
- package/dist/svelte/lib/run-investigation.js +44 -0
- package/dist/svelte/lib/run-issues.d.ts +34 -0
- package/dist/svelte/lib/run-issues.d.ts.map +1 -0
- package/dist/svelte/lib/run-issues.js +59 -0
- package/dist/svelte/lib/run-presentation.d.ts +16 -0
- package/dist/svelte/lib/run-presentation.d.ts.map +1 -0
- package/dist/svelte/lib/run-presentation.js +69 -0
- package/dist/svelte/lib/run-tree.d.ts +22 -0
- package/dist/svelte/lib/run-tree.d.ts.map +1 -0
- package/dist/svelte/lib/run-tree.js +93 -0
- package/dist/svelte/lib/status.d.ts +19 -0
- package/dist/svelte/lib/status.d.ts.map +1 -0
- package/dist/svelte/lib/status.js +122 -0
- package/dist/svelte/query-form.d.ts +50 -0
- package/dist/svelte/query-form.d.ts.map +1 -0
- package/dist/svelte/query-form.js +19 -0
- package/dist/svelte/runs/data.svelte.d.ts +678 -0
- package/dist/svelte/runs/data.svelte.d.ts.map +1 -0
- package/dist/svelte/runs/data.svelte.js +28 -0
- package/dist/svelte/runs/opening.d.ts +8 -0
- package/dist/svelte/runs/opening.d.ts.map +1 -0
- package/dist/svelte/runs/opening.js +110 -0
- package/dist/svelte/runs/query.d.ts +3 -0
- package/dist/svelte/runs/query.d.ts.map +1 -0
- package/dist/svelte/runs/query.js +16 -0
- package/dist/svelte/runs/selection.d.ts +3 -0
- package/dist/svelte/runs/selection.d.ts.map +1 -0
- package/dist/svelte/runs/selection.js +42 -0
- package/dist/svelte/runs/shutdown.d.ts +9 -0
- package/dist/svelte/runs/shutdown.d.ts.map +1 -0
- package/dist/svelte/runs/shutdown.js +104 -0
- package/dist/svelte/runs.store.svelte.d.ts +427 -0
- package/dist/svelte/runs.store.svelte.d.ts.map +1 -0
- package/dist/svelte/runs.store.svelte.js +90 -0
- package/dist/svelte/styles.css +16 -0
- package/dist/svelte/types.d.ts +29 -0
- package/dist/svelte/types.d.ts.map +1 -0
- package/dist/svelte/types.js +1 -0
- package/dist/svelte/viz/DescriptorPanel.svelte +104 -0
- package/dist/svelte/viz/DescriptorPanel.svelte.d.ts +18 -0
- package/dist/svelte/viz/DescriptorPanel.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/crystal/Crystal3D.svelte +137 -0
- package/dist/svelte/viz/crystal/Crystal3D.svelte.d.ts +12 -0
- package/dist/svelte/viz/crystal/Crystal3D.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/crystal/Crystal3DControls.svelte +253 -0
- package/dist/svelte/viz/crystal/Crystal3DControls.svelte.d.ts +18 -0
- package/dist/svelte/viz/crystal/Crystal3DControls.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/crystal/Crystal3DRenderer.svelte +941 -0
- package/dist/svelte/viz/crystal/Crystal3DRenderer.svelte.d.ts +16 -0
- package/dist/svelte/viz/crystal/Crystal3DRenderer.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/crystal/Crystal3DStats.svelte +110 -0
- package/dist/svelte/viz/crystal/Crystal3DStats.svelte.d.ts +12 -0
- package/dist/svelte/viz/crystal/Crystal3DStats.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/crystal/LatticePanel.svelte +230 -0
- package/dist/svelte/viz/crystal/LatticePanel.svelte.d.ts +13 -0
- package/dist/svelte/viz/crystal/LatticePanel.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/crystal/index.d.ts +8 -0
- package/dist/svelte/viz/crystal/index.d.ts.map +1 -0
- package/dist/svelte/viz/crystal/index.js +6 -0
- package/dist/svelte/viz/crystal/types.d.ts +59 -0
- package/dist/svelte/viz/crystal/types.d.ts.map +1 -0
- package/dist/svelte/viz/crystal/types.js +27 -0
- package/dist/svelte/viz/index.d.ts +18 -0
- package/dist/svelte/viz/index.d.ts.map +1 -0
- package/dist/svelte/viz/index.js +16 -0
- package/dist/svelte/viz/mfd/MFDArcGauge.svelte +59 -0
- package/dist/svelte/viz/mfd/MFDArcGauge.svelte.d.ts +21 -0
- package/dist/svelte/viz/mfd/MFDArcGauge.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/MFDBarMeter.svelte +58 -0
- package/dist/svelte/viz/mfd/MFDBarMeter.svelte.d.ts +21 -0
- package/dist/svelte/viz/mfd/MFDBarMeter.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/MFDHexMatrix.svelte +58 -0
- package/dist/svelte/viz/mfd/MFDHexMatrix.svelte.d.ts +21 -0
- package/dist/svelte/viz/mfd/MFDHexMatrix.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/MFDPanel.svelte +372 -0
- package/dist/svelte/viz/mfd/MFDPanel.svelte.d.ts +19 -0
- package/dist/svelte/viz/mfd/MFDPanel.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/MFDScope.svelte +59 -0
- package/dist/svelte/viz/mfd/MFDScope.svelte.d.ts +21 -0
- package/dist/svelte/viz/mfd/MFDScope.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/MFDStatusGrid.svelte +65 -0
- package/dist/svelte/viz/mfd/MFDStatusGrid.svelte.d.ts +25 -0
- package/dist/svelte/viz/mfd/MFDStatusGrid.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/grid.d.ts +37 -0
- package/dist/svelte/viz/mfd/grid.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/grid.js +51 -0
- package/dist/svelte/viz/mfd/palette.d.ts +22 -0
- package/dist/svelte/viz/mfd/palette.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/palette.js +105 -0
- package/dist/svelte/viz/mfd/pipeline/store.svelte.d.ts +42 -0
- package/dist/svelte/viz/mfd/pipeline/store.svelte.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/pipeline/store.svelte.js +115 -0
- package/dist/svelte/viz/mfd/renderer/context.d.ts +47 -0
- package/dist/svelte/viz/mfd/renderer/context.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/renderer/context.js +272 -0
- package/dist/svelte/viz/mfd/renderer/pipeline.d.ts +32 -0
- package/dist/svelte/viz/mfd/renderer/pipeline.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/renderer/pipeline.js +188 -0
- package/dist/svelte/viz/mfd/renderer/shaders.d.ts +35 -0
- package/dist/svelte/viz/mfd/renderer/shaders.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/renderer/shaders.js +837 -0
- package/dist/svelte/viz/mfd/types.d.ts +88 -0
- package/dist/svelte/viz/mfd/types.d.ts.map +1 -0
- package/dist/svelte/viz/mfd/types.js +31 -0
- package/dist/svelte/viz/registry.d.ts +36 -0
- package/dist/svelte/viz/registry.d.ts.map +1 -0
- package/dist/svelte/viz/registry.js +74 -0
- package/dist/test-scenario/test-scenario-emitter.d.ts +35 -0
- package/dist/test-scenario/test-scenario-emitter.d.ts.map +1 -0
- package/dist/test-scenario/test-scenario-emitter.js +64 -0
- package/dist/test-scenario/test-scenario-emitter.js.map +1 -0
- package/dist/test-scenario/test-scenario.plugin.d.ts +11 -0
- package/dist/test-scenario/test-scenario.plugin.d.ts.map +1 -0
- package/dist/test-scenario/test-scenario.plugin.js +19 -0
- package/dist/test-scenario/test-scenario.plugin.js.map +1 -0
- package/dist/test-scenario/test-scenario.type.descriptor.d.ts +12 -0
- package/dist/test-scenario/test-scenario.type.descriptor.d.ts.map +1 -0
- package/dist/test-scenario/test-scenario.type.descriptor.js +21 -0
- package/dist/test-scenario/test-scenario.type.descriptor.js.map +1 -0
- package/dist/watch.d.ts +13 -0
- package/dist/watch.d.ts.map +1 -0
- package/dist/watch.js +127 -0
- package/dist/watch.js.map +1 -0
- package/package.json +355 -4
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import type { RunnableVisualizationQuery } from "../client/client.ts";
|
|
2
|
+
import type { RunnableControlInput } from "../schemas/contracts/index.ts";
|
|
3
|
+
import type { RunnableReadQuery, RunnableSnapshot } from "../schemas/runs.ts";
|
|
4
|
+
import { RunsData } from "./runs/data.svelte.ts";
|
|
5
|
+
import type { RunsSource, RunsOpenOptions, RunRow } from "../schemas/contracts/watch.ts";
|
|
6
|
+
export type { RunsSource, RunsConnection, RunsOpenOptions, RunRow } from '../schemas/contracts/watch.ts';
|
|
7
|
+
export declare class RunsStore {
|
|
8
|
+
#private;
|
|
9
|
+
readonly projection: 'catalog' | 'records' | 'snapshot';
|
|
10
|
+
constructor(source: RunsSource, query?: RunnableReadQuery, projection?: 'catalog' | 'records' | 'snapshot');
|
|
11
|
+
get source(): RunsSource;
|
|
12
|
+
get catalogSnapshot(): RunsData['catalogSnapshot'];
|
|
13
|
+
get lastReceivedAt(): number | null;
|
|
14
|
+
get detailLoading(): boolean;
|
|
15
|
+
listRows: {
|
|
16
|
+
metrics: {
|
|
17
|
+
kind: "metric";
|
|
18
|
+
key: string;
|
|
19
|
+
value: number;
|
|
20
|
+
ts: number;
|
|
21
|
+
dimensions?: import("@vibesdotdev/kernel/schemas/json").JsonObject | undefined;
|
|
22
|
+
}[];
|
|
23
|
+
logs: {
|
|
24
|
+
kind: "log";
|
|
25
|
+
level: "error" | "info" | "warn" | "debug";
|
|
26
|
+
message: string;
|
|
27
|
+
ts: number;
|
|
28
|
+
data?: import("@vibesdotdev/kernel/bootstrap").JsonValue | undefined;
|
|
29
|
+
}[];
|
|
30
|
+
artifacts: {
|
|
31
|
+
kind: "artifact";
|
|
32
|
+
id: string;
|
|
33
|
+
artifactKind: string;
|
|
34
|
+
name: string;
|
|
35
|
+
mimeType: string;
|
|
36
|
+
ts: number;
|
|
37
|
+
version?: string | undefined;
|
|
38
|
+
sequenceNo?: number | undefined;
|
|
39
|
+
hash?: string | undefined;
|
|
40
|
+
size?: number | undefined;
|
|
41
|
+
path?: string | undefined;
|
|
42
|
+
data?: string | undefined;
|
|
43
|
+
metadata?: import("@vibesdotdev/kernel/schemas/json").JsonObject | undefined;
|
|
44
|
+
}[];
|
|
45
|
+
run: {
|
|
46
|
+
id: string;
|
|
47
|
+
status: string;
|
|
48
|
+
runnableType: string;
|
|
49
|
+
startedAt: number;
|
|
50
|
+
config: import("@vibesdotdev/kernel/schemas/json").JsonObject;
|
|
51
|
+
metadata: import("@vibesdotdev/kernel/schemas/json").JsonObject;
|
|
52
|
+
runnableId: string;
|
|
53
|
+
name?: string | undefined;
|
|
54
|
+
progress?: number | undefined;
|
|
55
|
+
endedAt?: number | null | undefined;
|
|
56
|
+
hostId?: string | undefined;
|
|
57
|
+
scope?: string | undefined;
|
|
58
|
+
inputDigest?: string | undefined;
|
|
59
|
+
parentRunId?: string | undefined;
|
|
60
|
+
outcome?: {
|
|
61
|
+
status: "done";
|
|
62
|
+
value: import("@vibesdotdev/kernel/bootstrap").JsonValue;
|
|
63
|
+
} | {
|
|
64
|
+
status: "not-done";
|
|
65
|
+
reason: string;
|
|
66
|
+
value?: import("@vibesdotdev/kernel/bootstrap").JsonValue | undefined;
|
|
67
|
+
failure?: {
|
|
68
|
+
code: string;
|
|
69
|
+
message: string;
|
|
70
|
+
name?: string | undefined;
|
|
71
|
+
reason?: string | undefined;
|
|
72
|
+
retryable?: boolean | undefined;
|
|
73
|
+
recoveryHint?: string | undefined;
|
|
74
|
+
details?: import("@vibesdotdev/kernel/bootstrap").JsonValue | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
status: "disputed";
|
|
78
|
+
why: string;
|
|
79
|
+
claims: {
|
|
80
|
+
id: string;
|
|
81
|
+
statement: string;
|
|
82
|
+
quote: {
|
|
83
|
+
link: {
|
|
84
|
+
kind: string;
|
|
85
|
+
id: string;
|
|
86
|
+
source: string;
|
|
87
|
+
role: string;
|
|
88
|
+
};
|
|
89
|
+
scope: string;
|
|
90
|
+
revision: {
|
|
91
|
+
scheme: string;
|
|
92
|
+
value: string;
|
|
93
|
+
};
|
|
94
|
+
text: string;
|
|
95
|
+
anchor?: {
|
|
96
|
+
kind: "code";
|
|
97
|
+
path: string;
|
|
98
|
+
startLine: number;
|
|
99
|
+
endLine: number;
|
|
100
|
+
} | {
|
|
101
|
+
kind: "region";
|
|
102
|
+
start: number;
|
|
103
|
+
end: number;
|
|
104
|
+
} | {
|
|
105
|
+
kind: "fragment";
|
|
106
|
+
id: string;
|
|
107
|
+
} | {
|
|
108
|
+
kind: "heading";
|
|
109
|
+
slug: string;
|
|
110
|
+
} | undefined;
|
|
111
|
+
freshness?: {
|
|
112
|
+
modifiedAt?: string | undefined;
|
|
113
|
+
stale?: boolean | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
};
|
|
116
|
+
via: string[];
|
|
117
|
+
stale?: boolean | undefined;
|
|
118
|
+
}[];
|
|
119
|
+
} | {
|
|
120
|
+
status: "skipped";
|
|
121
|
+
reason: string;
|
|
122
|
+
cause: {
|
|
123
|
+
kind: "cancelled";
|
|
124
|
+
provenance: import("@vibesdotdev/kernel/bootstrap").JsonValue;
|
|
125
|
+
} | {
|
|
126
|
+
kind: "explicit";
|
|
127
|
+
} | {
|
|
128
|
+
kind: "dependency";
|
|
129
|
+
blockedBy: string[];
|
|
130
|
+
};
|
|
131
|
+
} | undefined;
|
|
132
|
+
resultMode?: "void" | "value" | "outcome" | undefined;
|
|
133
|
+
ref?: {
|
|
134
|
+
jobId?: string | undefined;
|
|
135
|
+
aiCallRunId?: string | undefined;
|
|
136
|
+
ciRunId?: string | undefined;
|
|
137
|
+
executionReference?: string | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
rankReason?: {
|
|
140
|
+
named: true;
|
|
141
|
+
} | {
|
|
142
|
+
coldStart: true;
|
|
143
|
+
cost: number;
|
|
144
|
+
} | undefined;
|
|
145
|
+
approval?: "approved" | "assumed" | undefined;
|
|
146
|
+
activity?: {
|
|
147
|
+
message: string;
|
|
148
|
+
ts: number;
|
|
149
|
+
} | undefined;
|
|
150
|
+
context?: {
|
|
151
|
+
kindLabel?: string | undefined;
|
|
152
|
+
title?: string | undefined;
|
|
153
|
+
subject?: string | undefined;
|
|
154
|
+
target?: string | undefined;
|
|
155
|
+
phase?: string | undefined;
|
|
156
|
+
paths?: string[] | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
};
|
|
159
|
+
children: {
|
|
160
|
+
id: string;
|
|
161
|
+
status: string;
|
|
162
|
+
runnableType: string;
|
|
163
|
+
startedAt: number;
|
|
164
|
+
config: import("@vibesdotdev/kernel/schemas/json").JsonObject;
|
|
165
|
+
metadata: import("@vibesdotdev/kernel/schemas/json").JsonObject;
|
|
166
|
+
runnableId: string;
|
|
167
|
+
name?: string | undefined;
|
|
168
|
+
progress?: number | undefined;
|
|
169
|
+
endedAt?: number | null | undefined;
|
|
170
|
+
hostId?: string | undefined;
|
|
171
|
+
scope?: string | undefined;
|
|
172
|
+
inputDigest?: string | undefined;
|
|
173
|
+
parentRunId?: string | undefined;
|
|
174
|
+
outcome?: {
|
|
175
|
+
status: "done";
|
|
176
|
+
value: import("@vibesdotdev/kernel/bootstrap").JsonValue;
|
|
177
|
+
} | {
|
|
178
|
+
status: "not-done";
|
|
179
|
+
reason: string;
|
|
180
|
+
value?: import("@vibesdotdev/kernel/bootstrap").JsonValue | undefined;
|
|
181
|
+
failure?: {
|
|
182
|
+
code: string;
|
|
183
|
+
message: string;
|
|
184
|
+
name?: string | undefined;
|
|
185
|
+
reason?: string | undefined;
|
|
186
|
+
retryable?: boolean | undefined;
|
|
187
|
+
recoveryHint?: string | undefined;
|
|
188
|
+
details?: import("@vibesdotdev/kernel/bootstrap").JsonValue | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
} | {
|
|
191
|
+
status: "disputed";
|
|
192
|
+
why: string;
|
|
193
|
+
claims: {
|
|
194
|
+
id: string;
|
|
195
|
+
statement: string;
|
|
196
|
+
quote: {
|
|
197
|
+
link: {
|
|
198
|
+
kind: string;
|
|
199
|
+
id: string;
|
|
200
|
+
source: string;
|
|
201
|
+
role: string;
|
|
202
|
+
};
|
|
203
|
+
scope: string;
|
|
204
|
+
revision: {
|
|
205
|
+
scheme: string;
|
|
206
|
+
value: string;
|
|
207
|
+
};
|
|
208
|
+
text: string;
|
|
209
|
+
anchor?: {
|
|
210
|
+
kind: "code";
|
|
211
|
+
path: string;
|
|
212
|
+
startLine: number;
|
|
213
|
+
endLine: number;
|
|
214
|
+
} | {
|
|
215
|
+
kind: "region";
|
|
216
|
+
start: number;
|
|
217
|
+
end: number;
|
|
218
|
+
} | {
|
|
219
|
+
kind: "fragment";
|
|
220
|
+
id: string;
|
|
221
|
+
} | {
|
|
222
|
+
kind: "heading";
|
|
223
|
+
slug: string;
|
|
224
|
+
} | undefined;
|
|
225
|
+
freshness?: {
|
|
226
|
+
modifiedAt?: string | undefined;
|
|
227
|
+
stale?: boolean | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
};
|
|
230
|
+
via: string[];
|
|
231
|
+
stale?: boolean | undefined;
|
|
232
|
+
}[];
|
|
233
|
+
} | {
|
|
234
|
+
status: "skipped";
|
|
235
|
+
reason: string;
|
|
236
|
+
cause: {
|
|
237
|
+
kind: "cancelled";
|
|
238
|
+
provenance: import("@vibesdotdev/kernel/bootstrap").JsonValue;
|
|
239
|
+
} | {
|
|
240
|
+
kind: "explicit";
|
|
241
|
+
} | {
|
|
242
|
+
kind: "dependency";
|
|
243
|
+
blockedBy: string[];
|
|
244
|
+
};
|
|
245
|
+
} | undefined;
|
|
246
|
+
resultMode?: "void" | "value" | "outcome" | undefined;
|
|
247
|
+
ref?: {
|
|
248
|
+
jobId?: string | undefined;
|
|
249
|
+
aiCallRunId?: string | undefined;
|
|
250
|
+
ciRunId?: string | undefined;
|
|
251
|
+
executionReference?: string | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
rankReason?: {
|
|
254
|
+
named: true;
|
|
255
|
+
} | {
|
|
256
|
+
coldStart: true;
|
|
257
|
+
cost: number;
|
|
258
|
+
} | undefined;
|
|
259
|
+
approval?: "approved" | "assumed" | undefined;
|
|
260
|
+
activity?: {
|
|
261
|
+
message: string;
|
|
262
|
+
ts: number;
|
|
263
|
+
} | undefined;
|
|
264
|
+
context?: {
|
|
265
|
+
kindLabel?: string | undefined;
|
|
266
|
+
title?: string | undefined;
|
|
267
|
+
subject?: string | undefined;
|
|
268
|
+
target?: string | undefined;
|
|
269
|
+
phase?: string | undefined;
|
|
270
|
+
paths?: string[] | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
}[];
|
|
273
|
+
observation?: {
|
|
274
|
+
message: string;
|
|
275
|
+
ts: number;
|
|
276
|
+
logIndex: number;
|
|
277
|
+
label?: string | undefined;
|
|
278
|
+
} | undefined;
|
|
279
|
+
}[] | {
|
|
280
|
+
run: {
|
|
281
|
+
id: string;
|
|
282
|
+
status: string;
|
|
283
|
+
startedAt: number;
|
|
284
|
+
runnableId: string;
|
|
285
|
+
runnableType: string;
|
|
286
|
+
name?: string | undefined;
|
|
287
|
+
scope?: string | undefined;
|
|
288
|
+
context?: {
|
|
289
|
+
kindLabel?: string | undefined;
|
|
290
|
+
title?: string | undefined;
|
|
291
|
+
subject?: string | undefined;
|
|
292
|
+
target?: string | undefined;
|
|
293
|
+
phase?: string | undefined;
|
|
294
|
+
paths?: string[] | undefined;
|
|
295
|
+
} | undefined;
|
|
296
|
+
ref?: {
|
|
297
|
+
jobId?: string | undefined;
|
|
298
|
+
aiCallRunId?: string | undefined;
|
|
299
|
+
ciRunId?: string | undefined;
|
|
300
|
+
executionReference?: string | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
activity?: {
|
|
303
|
+
message: string;
|
|
304
|
+
ts: number;
|
|
305
|
+
} | undefined;
|
|
306
|
+
progress?: number | undefined;
|
|
307
|
+
endedAt?: number | null | undefined;
|
|
308
|
+
hostId?: string | undefined;
|
|
309
|
+
parentRunId?: string | undefined;
|
|
310
|
+
inputDigest?: string | undefined;
|
|
311
|
+
rankReason?: {
|
|
312
|
+
named: true;
|
|
313
|
+
} | {
|
|
314
|
+
coldStart: true;
|
|
315
|
+
cost: number;
|
|
316
|
+
} | undefined;
|
|
317
|
+
approval?: "approved" | "assumed" | undefined;
|
|
318
|
+
resultMode?: "void" | "value" | "outcome" | undefined;
|
|
319
|
+
outcome?: {
|
|
320
|
+
status: "done";
|
|
321
|
+
} | {
|
|
322
|
+
reason: string;
|
|
323
|
+
status: "not-done";
|
|
324
|
+
} | {
|
|
325
|
+
status: "disputed";
|
|
326
|
+
why: string;
|
|
327
|
+
} | {
|
|
328
|
+
reason: string;
|
|
329
|
+
status: "skipped";
|
|
330
|
+
} | undefined;
|
|
331
|
+
observation?: {
|
|
332
|
+
message: string;
|
|
333
|
+
ts: number;
|
|
334
|
+
logIndex: number;
|
|
335
|
+
label?: string | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
};
|
|
338
|
+
children: {
|
|
339
|
+
id: string;
|
|
340
|
+
status: string;
|
|
341
|
+
startedAt: number;
|
|
342
|
+
runnableId: string;
|
|
343
|
+
runnableType: string;
|
|
344
|
+
name?: string | undefined;
|
|
345
|
+
scope?: string | undefined;
|
|
346
|
+
context?: {
|
|
347
|
+
kindLabel?: string | undefined;
|
|
348
|
+
title?: string | undefined;
|
|
349
|
+
subject?: string | undefined;
|
|
350
|
+
target?: string | undefined;
|
|
351
|
+
phase?: string | undefined;
|
|
352
|
+
paths?: string[] | undefined;
|
|
353
|
+
} | undefined;
|
|
354
|
+
ref?: {
|
|
355
|
+
jobId?: string | undefined;
|
|
356
|
+
aiCallRunId?: string | undefined;
|
|
357
|
+
ciRunId?: string | undefined;
|
|
358
|
+
executionReference?: string | undefined;
|
|
359
|
+
} | undefined;
|
|
360
|
+
activity?: {
|
|
361
|
+
message: string;
|
|
362
|
+
ts: number;
|
|
363
|
+
} | undefined;
|
|
364
|
+
progress?: number | undefined;
|
|
365
|
+
endedAt?: number | null | undefined;
|
|
366
|
+
hostId?: string | undefined;
|
|
367
|
+
parentRunId?: string | undefined;
|
|
368
|
+
inputDigest?: string | undefined;
|
|
369
|
+
rankReason?: {
|
|
370
|
+
named: true;
|
|
371
|
+
} | {
|
|
372
|
+
coldStart: true;
|
|
373
|
+
cost: number;
|
|
374
|
+
} | undefined;
|
|
375
|
+
approval?: "approved" | "assumed" | undefined;
|
|
376
|
+
resultMode?: "void" | "value" | "outcome" | undefined;
|
|
377
|
+
outcome?: {
|
|
378
|
+
status: "done";
|
|
379
|
+
} | {
|
|
380
|
+
reason: string;
|
|
381
|
+
status: "not-done";
|
|
382
|
+
} | {
|
|
383
|
+
status: "disputed";
|
|
384
|
+
why: string;
|
|
385
|
+
} | {
|
|
386
|
+
reason: string;
|
|
387
|
+
status: "skipped";
|
|
388
|
+
} | undefined;
|
|
389
|
+
observation?: {
|
|
390
|
+
message: string;
|
|
391
|
+
ts: number;
|
|
392
|
+
logIndex: number;
|
|
393
|
+
label?: string | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
}[];
|
|
396
|
+
}[];
|
|
397
|
+
get query(): RunnableReadQuery;
|
|
398
|
+
get snapshot(): RunsData['snapshot'];
|
|
399
|
+
set snapshot(value: RunsData['snapshot']);
|
|
400
|
+
get connection(): RunsData['connection'];
|
|
401
|
+
set connection(value: RunsData['connection']);
|
|
402
|
+
get loading(): RunsData['loading'];
|
|
403
|
+
set loading(value: RunsData['loading']);
|
|
404
|
+
get error(): RunsData['error'];
|
|
405
|
+
set error(value: RunsData['error']);
|
|
406
|
+
get selectedId(): RunsData['selectedId'];
|
|
407
|
+
set selectedId(value: RunsData['selectedId']);
|
|
408
|
+
/** Owner revision, or null when no delivery has been accepted. */
|
|
409
|
+
revision: number | null;
|
|
410
|
+
/** Rows follow `snapshot.runs`. Children stay on each owner snapshot. */
|
|
411
|
+
rows: readonly RunRow[];
|
|
412
|
+
/**
|
|
413
|
+
* Full snapshot for `selectedId` when this list delivery still names it.
|
|
414
|
+
* Telemetry comes from that run's own watch, not from the list rows.
|
|
415
|
+
*/
|
|
416
|
+
selected: RunnableSnapshot | null;
|
|
417
|
+
select(runId: string | null): Promise<void>;
|
|
418
|
+
open(options?: RunsOpenOptions): Promise<void>;
|
|
419
|
+
close(): Promise<void>;
|
|
420
|
+
dispose(): Promise<void>;
|
|
421
|
+
visualizations(query: RunnableVisualizationQuery): ReturnType<RunsSource['visualizations']>;
|
|
422
|
+
/** Current selected owner description; recorded values remain on the snapshot. */
|
|
423
|
+
describe(id: string): ReturnType<RunsSource['describe']>;
|
|
424
|
+
/** Delegates to the client. Does not write a local status or outcome. */
|
|
425
|
+
control(input: RunnableControlInput): ReturnType<RunsSource['control']>;
|
|
426
|
+
}
|
|
427
|
+
//# sourceMappingURL=runs.store.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.store.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/runs.store.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAKjD,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACzF,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACzG,qBAAa,SAAS;;IAE6C,QAAQ,CAAC,UAAU,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU;gBAA1G,MAAM,EAAE,UAAU,EAAE,KAAK,GAAE,iBAAsB,EAAW,UAAU,GAAE,SAAS,GAAG,SAAS,GAAG,UAAsB;IAClI,IAAI,MAAM,IAAI,UAAU,CAA8B;IACtD,IAAI,eAAe,IAAI,QAAQ,CAAC,iBAAiB,CAAC,CAAuC;IACzF,IAAI,cAAc,IAAI,MAAM,GAAG,IAAI,CAAsC;IACzE,IAAI,aAAa,IAAI,OAAO,CAAqC;IACjE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAqE;IAC7E,IAAI,KAAK,IAAI,iBAAiB,CAA6B;IAC3D,IAAI,QAAQ,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAgC;IACpE,IAAI,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAkC;IAC1E,IAAI,UAAU,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAkC;IAC1E,IAAI,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAoC;IAChF,IAAI,OAAO,IAAI,QAAQ,CAAC,SAAS,CAAC,CAA+B;IACjE,IAAI,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAiC;IACvE,IAAI,KAAK,IAAI,QAAQ,CAAC,OAAO,CAAC,CAA6B;IAC3D,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,EAA+B;IACjE,IAAI,UAAU,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAkC;IAC1E,IAAI,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAoC;IAChF,kEAAkE;IAClE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAA+E;IACtG,yEAAyE;IACzE,IAAI,EAAE,SAAS,MAAM,EAAE,CASpB;IACH;;;OAGG;IACH,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAQ9B;IACG,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB3C,IAAI,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IAC9C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IACtB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IACxB,cAAc,CAAC,KAAK,EAAE,0BAA0B,GAAG,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAGjG,kFAAkF;IAC5E,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IAG9D,yEAAyE;IACnE,OAAO,CAAC,KAAK,EAAE,oBAAoB,GAAG,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;CAGhF"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { RunsData } from "./runs/data.svelte.js";
|
|
2
|
+
import { admitQuery } from "./runs/query.js";
|
|
3
|
+
import { openRunsWatch } from "./runs/opening.js";
|
|
4
|
+
import { closeRunsWatch } from "./runs/shutdown.js";
|
|
5
|
+
import { followSelectedRun } from "./runs/selection.js";
|
|
6
|
+
export class RunsStore {
|
|
7
|
+
projection;
|
|
8
|
+
#data;
|
|
9
|
+
constructor(source, query = {}, projection = 'records') {
|
|
10
|
+
this.projection = projection;
|
|
11
|
+
this.#data = new RunsData(source, admitQuery(query), projection);
|
|
12
|
+
}
|
|
13
|
+
get source() { return this.#data.source; }
|
|
14
|
+
get catalogSnapshot() { return this.#data.catalogSnapshot; }
|
|
15
|
+
get lastReceivedAt() { return this.#data.lastReceivedAt; }
|
|
16
|
+
get detailLoading() { return this.#data.detailLoading; }
|
|
17
|
+
listRows = $derived(this.catalogSnapshot?.runs ?? this.snapshot?.runs ?? []);
|
|
18
|
+
get query() { return this.#data.query; }
|
|
19
|
+
get snapshot() { return this.#data.snapshot; }
|
|
20
|
+
set snapshot(value) { this.#data.snapshot = value; }
|
|
21
|
+
get connection() { return this.#data.connection; }
|
|
22
|
+
set connection(value) { this.#data.connection = value; }
|
|
23
|
+
get loading() { return this.#data.loading; }
|
|
24
|
+
set loading(value) { this.#data.loading = value; }
|
|
25
|
+
get error() { return this.#data.error; }
|
|
26
|
+
set error(value) { this.#data.error = value; }
|
|
27
|
+
get selectedId() { return this.#data.selectedId; }
|
|
28
|
+
set selectedId(value) { this.#data.selectedId = value; }
|
|
29
|
+
/** Owner revision, or null when no delivery has been accepted. */
|
|
30
|
+
revision = $derived(this.catalogSnapshot?.revision ?? this.snapshot?.revision ?? null);
|
|
31
|
+
/** Rows follow `snapshot.runs`. Children stay on each owner snapshot. */
|
|
32
|
+
rows = $derived.by(() => {
|
|
33
|
+
const delivered = this.snapshot;
|
|
34
|
+
if (delivered === null)
|
|
35
|
+
return [];
|
|
36
|
+
return delivered.runs.map((snapshot) => ({
|
|
37
|
+
id: snapshot.run.id,
|
|
38
|
+
run: snapshot.run,
|
|
39
|
+
snapshot,
|
|
40
|
+
}));
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* Full snapshot for `selectedId` when this list delivery still names it.
|
|
44
|
+
* Telemetry comes from that run's own watch, not from the list rows.
|
|
45
|
+
*/
|
|
46
|
+
selected = $derived.by(() => {
|
|
47
|
+
const selectedId = this.selectedId;
|
|
48
|
+
const detail = this.#data.detail;
|
|
49
|
+
if (selectedId === null || detail === null || detail.run.id !== selectedId)
|
|
50
|
+
return null;
|
|
51
|
+
if (!this.listRows.some((snapshot) => snapshot.run.id === selectedId))
|
|
52
|
+
return null;
|
|
53
|
+
return detail;
|
|
54
|
+
});
|
|
55
|
+
async select(runId) {
|
|
56
|
+
this.selectedId = runId;
|
|
57
|
+
this.#data.detail = null;
|
|
58
|
+
this.#data.detailLoading = runId !== null;
|
|
59
|
+
const attempt = followSelectedRun(this.#data, this.#data.lifetime.epoch);
|
|
60
|
+
const generation = this.#data.lifetime.detailEpoch;
|
|
61
|
+
this.#data.lifetime.detailAttempts.add(attempt);
|
|
62
|
+
try {
|
|
63
|
+
await attempt;
|
|
64
|
+
}
|
|
65
|
+
catch (cause) {
|
|
66
|
+
if (generation === this.#data.lifetime.detailEpoch) {
|
|
67
|
+
this.error = cause;
|
|
68
|
+
this.#data.detailLoading = false;
|
|
69
|
+
}
|
|
70
|
+
throw cause;
|
|
71
|
+
}
|
|
72
|
+
finally {
|
|
73
|
+
this.#data.lifetime.detailAttempts.delete(attempt);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
async open(options) { return openRunsWatch(this.#data, options); }
|
|
77
|
+
async close() { return closeRunsWatch(this.#data); }
|
|
78
|
+
async dispose() { await this.close(); }
|
|
79
|
+
async visualizations(query) {
|
|
80
|
+
return this.#data.source.visualizations(query);
|
|
81
|
+
}
|
|
82
|
+
/** Current selected owner description; recorded values remain on the snapshot. */
|
|
83
|
+
async describe(id) {
|
|
84
|
+
return this.#data.source.describe(id);
|
|
85
|
+
}
|
|
86
|
+
/** Delegates to the client. Does not write a local status or outcome. */
|
|
87
|
+
async control(input) {
|
|
88
|
+
return this.#data.source.control(input);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@source "./";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--runnable-color-live: #34d399;
|
|
5
|
+
--runnable-color-warning: #f59e0b;
|
|
6
|
+
--runnable-color-danger: #ef4444;
|
|
7
|
+
--runnable-color-info: #60a5fa;
|
|
8
|
+
--runnable-color-accent: #14b8a6;
|
|
9
|
+
--runnable-type-train: var(--runnable-color-warning);
|
|
10
|
+
--runnable-type-benchmark: var(--runnable-color-live);
|
|
11
|
+
--runnable-type-sweep: #06b6d4;
|
|
12
|
+
--runnable-type-eval: var(--runnable-color-info);
|
|
13
|
+
--runnable-type-test: var(--muted-foreground, #64748b);
|
|
14
|
+
--runnable-type-research: var(--runnable-color-accent);
|
|
15
|
+
--runnable-terminal-background: color-mix(in srgb, #000 90%, var(--card, #0f172a));
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { MetricSeriesPoint, RunLogEntry, RunStatus } from '@vibesdotdev/runnable';
|
|
2
|
+
import type { RunArtifactWrite } from '@vibesdotdev/runnable/events';
|
|
3
|
+
export type RunnableRunStatus = RunStatus;
|
|
4
|
+
export interface RunnableTypeSummary {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
category: string;
|
|
9
|
+
parallelizable?: boolean;
|
|
10
|
+
origin?: string;
|
|
11
|
+
}
|
|
12
|
+
export type RunnableMetricSeriesPoint = MetricSeriesPoint;
|
|
13
|
+
export type RunnableLogEntry = Omit<RunLogEntry, 'level'> & {
|
|
14
|
+
level: string;
|
|
15
|
+
id?: string | number;
|
|
16
|
+
};
|
|
17
|
+
export type RunnableArtifactEntry = Pick<RunArtifactWrite, 'id' | 'name' | 'mimeType' | 'size' | 'ts' | 'metadata'> & {
|
|
18
|
+
path?: string | null;
|
|
19
|
+
data?: string | null;
|
|
20
|
+
downloadUrl?: string | null;
|
|
21
|
+
};
|
|
22
|
+
export type ArtifactDownloadHref = (artifact: RunnableArtifactEntry) => string | null | undefined;
|
|
23
|
+
export interface MetricCardProps {
|
|
24
|
+
label: string;
|
|
25
|
+
unit?: string;
|
|
26
|
+
values: number[];
|
|
27
|
+
color?: string;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/svelte/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAK1D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,UAAU,CAAC,GAAG;IACrH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAClC,QAAQ,EAAE,qBAAqB,KAC3B,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAE/B,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { UserComponent } from '@vibesdotdev/kit/components/user-component';
|
|
3
|
+
import { RunnableVisualizationDescriptorSchema } from '@vibesdotdev/runnable/schemas';
|
|
4
|
+
import { bindRunPanel, type RunPanelSource } from '@vibesdotdev/runnable/panels';
|
|
5
|
+
import { JsonObjectSchema, type JsonValue } from '@vibesdotdev/kernel/schemas/json';
|
|
6
|
+
import type { RunArtifactWrite } from '@vibesdotdev/runnable/events';
|
|
7
|
+
import { RunArtifactWriteSchema } from '@vibesdotdev/runnable/events';
|
|
8
|
+
import * as z from 'zod/v4';
|
|
9
|
+
import type { CrystalBonds } from './crystal/types';
|
|
10
|
+
import { resolvePanelType } from './registry';
|
|
11
|
+
import { mfd as getMfd } from './mfd/pipeline/store.svelte';
|
|
12
|
+
|
|
13
|
+
let { descriptor, runId, source, metrics = {}, artifacts = [], liveCrystalBonds = null, runIsActive = false, origin }: {
|
|
14
|
+
descriptor: object;
|
|
15
|
+
runId: string;
|
|
16
|
+
source?: RunPanelSource;
|
|
17
|
+
/** Legacy metric-only callers remain supported during shared-source cutover. */
|
|
18
|
+
metrics?: Record<string, number[]>;
|
|
19
|
+
artifacts?: RunArtifactWrite[];
|
|
20
|
+
liveCrystalBonds?: CrystalBonds | null;
|
|
21
|
+
runIsActive?: boolean;
|
|
22
|
+
origin?: string;
|
|
23
|
+
} = $props();
|
|
24
|
+
|
|
25
|
+
const mfd = getMfd();
|
|
26
|
+
const parsed = $derived(RunnableVisualizationDescriptorSchema.safeParse(descriptor));
|
|
27
|
+
const visualization = $derived(parsed.success ? parsed.data : null);
|
|
28
|
+
const parameters = $derived(visualization?.componentParams ?? {});
|
|
29
|
+
const binding = $derived(parameters.bind);
|
|
30
|
+
const bound = $derived(bindRunPanel(parameters, source ?? {
|
|
31
|
+
run: { id: runId }, metrics: {}, logs: [], children: [], artifacts
|
|
32
|
+
}));
|
|
33
|
+
const panelArtifacts = $derived(z.array(RunArtifactWriteSchema).parse(bound.ok && bound.value.artifacts !== undefined
|
|
34
|
+
? bound.value.artifacts : source?.artifacts ?? artifacts));
|
|
35
|
+
const metric = $derived(binding && 'metric' in binding ? binding.metric : null);
|
|
36
|
+
const samples = $derived(metric === null ? [] : source
|
|
37
|
+
? (bound.ok ? z.array(z.number()).parse(bound.value.values ?? []) : [])
|
|
38
|
+
: (binding && 'dimensions' in binding && binding.dimensions !== undefined ? []
|
|
39
|
+
: Object.hasOwn(metrics, metric) ? metrics[metric] ?? [] : []));
|
|
40
|
+
const rows = $derived(bound.ok && Array.isArray(bound.value.rows)
|
|
41
|
+
? bound.value.rows.flatMap(row => { const parsedRow = JsonObjectSchema.safeParse(row); return parsedRow.success ? [parsedRow.data] : []; })
|
|
42
|
+
: []);
|
|
43
|
+
const columns = $derived([...new Set(rows.flatMap(row => Object.keys(row)))]);
|
|
44
|
+
const registration = $derived(visualization?.panelType ? resolvePanelType(visualization.panelType) : null);
|
|
45
|
+
const primitiveParameters = $derived.by(() => {
|
|
46
|
+
if (!bound.ok) return {};
|
|
47
|
+
const { rows: boundRows, ...params } = bound.value;
|
|
48
|
+
const rowCount = z.number().safeParse(boundRows);
|
|
49
|
+
return rowCount.success ? { ...params, rows: rowCount.data } : params;
|
|
50
|
+
});
|
|
51
|
+
const primitiveProps = $derived({
|
|
52
|
+
...primitiveParameters,
|
|
53
|
+
id: visualization?.id ?? '', runId, artifacts: panelArtifacts, liveCrystalBonds, runIsActive,
|
|
54
|
+
value: samples.at(-1) ?? 0, label: visualization?.name ?? visualization?.id ?? ''
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
$effect(() => {
|
|
58
|
+
if (mfd.initialized && mfd.panelCount > 0 && visualization?.panelType) {
|
|
59
|
+
const values = metric === null ? rows.flatMap(row => {
|
|
60
|
+
const number = z.number().safeParse(row.value);
|
|
61
|
+
return number.success ? [number.data] : [];
|
|
62
|
+
}) : samples;
|
|
63
|
+
mfd.setData(visualization.id, values);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
function display(value: JsonValue | undefined): string {
|
|
68
|
+
if (value === undefined) return '';
|
|
69
|
+
const text = z.string().safeParse(value);
|
|
70
|
+
return text.success ? text.data : JSON.stringify(value);
|
|
71
|
+
}
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
{#if !parsed.success}
|
|
75
|
+
<p role="alert">Invalid visualization: {parsed.error.message}</p>
|
|
76
|
+
{:else if !bound.ok}
|
|
77
|
+
<p role="alert">Invalid visualization parameters: {bound.reason}</p>
|
|
78
|
+
{:else if visualization?.componentRef}
|
|
79
|
+
<UserComponent id={visualization.componentRef.id} version={visualization.componentRef.version}
|
|
80
|
+
{origin} props={{ ...bound.value, runId, metrics, artifacts: panelArtifacts, liveCrystalBonds, runIsActive }} />
|
|
81
|
+
{:else if metric !== null && samples.length === 0}
|
|
82
|
+
<p role="status">{visualization?.name ?? visualization?.id}: no data for {metric}.</p>
|
|
83
|
+
{:else if registration}
|
|
84
|
+
{@const Primitive = registration.component}
|
|
85
|
+
<Primitive {...primitiveProps} />
|
|
86
|
+
{#if binding && ('event' in binding || 'children' in binding)}
|
|
87
|
+
{#if rows.length === 0}
|
|
88
|
+
<p role="status">No recorded observations yet.</p>
|
|
89
|
+
{:else}
|
|
90
|
+
<div class="panel-records">
|
|
91
|
+
<table aria-label={visualization?.name ?? visualization?.id}>
|
|
92
|
+
<thead><tr>{#each columns as column}<th scope="col">{column}</th>{/each}</tr></thead>
|
|
93
|
+
<tbody>{#each rows as row}<tr>{#each columns as column}<td>{display(row[column])}</td>{/each}</tr>{/each}</tbody>
|
|
94
|
+
</table>
|
|
95
|
+
</div>
|
|
96
|
+
{/if}
|
|
97
|
+
{/if}
|
|
98
|
+
{/if}
|
|
99
|
+
|
|
100
|
+
<style>
|
|
101
|
+
.panel-records { overflow: auto; max-height: 24rem; }
|
|
102
|
+
table { width: 100%; border-collapse: collapse; font: inherit; }
|
|
103
|
+
th, td { padding: .4rem .6rem; border-bottom: 1px solid var(--border, #39443d); text-align: left; vertical-align: top; }
|
|
104
|
+
</style>
|