@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,337 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Icon } from '@vibesdotdev/kit/components/icon';
|
|
3
|
+
import type { RunnableTypeSummary } from '../types.js';
|
|
4
|
+
import { getRunnableTypeAccent } from '../lib/status.js';
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
types: RunnableTypeSummary[];
|
|
8
|
+
selected: string | null;
|
|
9
|
+
jsonMode?: boolean;
|
|
10
|
+
onselect: (id: string) => void;
|
|
11
|
+
onjsonchange: (json: string) => void;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
let {
|
|
15
|
+
types,
|
|
16
|
+
selected,
|
|
17
|
+
jsonMode = false,
|
|
18
|
+
onselect,
|
|
19
|
+
onjsonchange,
|
|
20
|
+
}: Props = $props();
|
|
21
|
+
|
|
22
|
+
let jsonValue = $state('');
|
|
23
|
+
let showJson = $state(false);
|
|
24
|
+
const standardCategories = ['train', 'benchmark', 'sweep', 'eval', 'test', 'research'];
|
|
25
|
+
const standardTypes = $derived(
|
|
26
|
+
types.filter((type) => standardCategories.includes(type.category)),
|
|
27
|
+
);
|
|
28
|
+
const pluginTypes = $derived(
|
|
29
|
+
types.filter((type) => !standardCategories.includes(type.category)),
|
|
30
|
+
);
|
|
31
|
+
const categoryIcons = {
|
|
32
|
+
train: 'lucide:brain',
|
|
33
|
+
benchmark: 'lucide:gauge',
|
|
34
|
+
sweep: 'lucide:crosshair',
|
|
35
|
+
eval: 'lucide:flask-conical',
|
|
36
|
+
test: 'lucide:zap',
|
|
37
|
+
research: 'lucide:search',
|
|
38
|
+
} satisfies Record<string, string>;
|
|
39
|
+
|
|
40
|
+
function getCategoryIcon(category: string): string {
|
|
41
|
+
if (category in categoryIcons) {
|
|
42
|
+
// SAFETY: category was verified to be a known key of categoryIcons via the in operator.
|
|
43
|
+
return categoryIcons[category as keyof typeof categoryIcons];
|
|
44
|
+
}
|
|
45
|
+
return 'lucide:rocket';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
$effect(() => {
|
|
49
|
+
if (jsonMode) showJson = true;
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
function handleJsonInput(event: Event): void {
|
|
53
|
+
// SAFETY: Target of the input event on textarea is guaranteed to be HTMLTextAreaElement.
|
|
54
|
+
const value = (event.target as HTMLTextAreaElement).value;
|
|
55
|
+
jsonValue = value;
|
|
56
|
+
onjsonchange(value);
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<div class="runnable-type-picker">
|
|
61
|
+
<div class="rtp-section">
|
|
62
|
+
<h3 class="rtp-section-label">Standard Types</h3>
|
|
63
|
+
<div class="rtp-type-grid">
|
|
64
|
+
{#each standardTypes as type (type.id)}
|
|
65
|
+
{@const icon = getCategoryIcon(type.category)}
|
|
66
|
+
{@const color = getRunnableTypeAccent(type.category)}
|
|
67
|
+
<button
|
|
68
|
+
type="button"
|
|
69
|
+
class="rtp-type-card"
|
|
70
|
+
class:selected={selected === type.id}
|
|
71
|
+
style="--card-accent: {color}"
|
|
72
|
+
onclick={() => onselect(type.id)}
|
|
73
|
+
>
|
|
74
|
+
<div class="rtp-card-icon"><Icon {icon} class="h-6 w-6" /></div>
|
|
75
|
+
<div class="rtp-card-info">
|
|
76
|
+
<span class="rtp-card-name">{type.name}</span>
|
|
77
|
+
<span class="rtp-card-desc">{type.description}</span>
|
|
78
|
+
</div>
|
|
79
|
+
{#if selected === type.id}
|
|
80
|
+
<div class="rtp-check" aria-label="Selected">
|
|
81
|
+
<Icon icon="lucide:check" class="h-3 w-3" />
|
|
82
|
+
</div>
|
|
83
|
+
{/if}
|
|
84
|
+
</button>
|
|
85
|
+
{/each}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
{#if pluginTypes.length > 0}
|
|
90
|
+
<div class="rtp-section">
|
|
91
|
+
<h3 class="rtp-section-label">Plugin Types</h3>
|
|
92
|
+
<div class="rtp-type-grid">
|
|
93
|
+
{#each pluginTypes as type (type.id)}
|
|
94
|
+
{@const color = getRunnableTypeAccent(type.category)}
|
|
95
|
+
<button
|
|
96
|
+
type="button"
|
|
97
|
+
class="rtp-type-card"
|
|
98
|
+
class:selected={selected === type.id}
|
|
99
|
+
style="--card-accent: {color}"
|
|
100
|
+
onclick={() => onselect(type.id)}
|
|
101
|
+
>
|
|
102
|
+
<div class="rtp-card-icon"><Icon icon="lucide:loader" class="h-6 w-6" /></div>
|
|
103
|
+
<div class="rtp-card-info">
|
|
104
|
+
<span class="rtp-card-name">{type.name}</span>
|
|
105
|
+
<span class="rtp-card-desc">{type.description}</span>
|
|
106
|
+
</div>
|
|
107
|
+
{#if selected === type.id}
|
|
108
|
+
<div class="rtp-check" aria-label="Selected">
|
|
109
|
+
<Icon icon="lucide:check" class="h-3 w-3" />
|
|
110
|
+
</div>
|
|
111
|
+
{/if}
|
|
112
|
+
</button>
|
|
113
|
+
{/each}
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
{/if}
|
|
117
|
+
|
|
118
|
+
<div class="rtp-section">
|
|
119
|
+
<h3 class="rtp-section-label">Custom JSON</h3>
|
|
120
|
+
{#if !showJson}
|
|
121
|
+
<button type="button" class="rtp-json-toggle" onclick={() => (showJson = true)}>
|
|
122
|
+
<Icon icon="lucide:terminal" class="h-4 w-4" />
|
|
123
|
+
Start from JSON
|
|
124
|
+
</button>
|
|
125
|
+
{:else}
|
|
126
|
+
<div class="rtp-json-terminal">
|
|
127
|
+
<div class="rtp-terminal-header">
|
|
128
|
+
<span class="rtp-terminal-dot"></span>
|
|
129
|
+
<span class="rtp-terminal-label">JSON INPUT</span>
|
|
130
|
+
</div>
|
|
131
|
+
<div class="rtp-terminal-body">
|
|
132
|
+
<span class="rtp-terminal-prompt">></span>
|
|
133
|
+
<textarea
|
|
134
|
+
class="rtp-terminal-input"
|
|
135
|
+
value={jsonValue}
|
|
136
|
+
oninput={handleJsonInput}
|
|
137
|
+
placeholder={'{"runnableType": "...", "config": {}}'}
|
|
138
|
+
rows="6"
|
|
139
|
+
></textarea>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
{/if}
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<style>
|
|
147
|
+
.runnable-type-picker {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
gap: 28px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.rtp-section {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
gap: 10px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.rtp-section-label {
|
|
160
|
+
font-family: var(--font-brand);
|
|
161
|
+
font-size: 10px;
|
|
162
|
+
font-weight: 700;
|
|
163
|
+
letter-spacing: 0.12em;
|
|
164
|
+
text-transform: uppercase;
|
|
165
|
+
color: var(--muted-foreground);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.rtp-type-grid {
|
|
169
|
+
display: grid;
|
|
170
|
+
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
171
|
+
gap: 10px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.rtp-type-card {
|
|
175
|
+
position: relative;
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: flex-start;
|
|
178
|
+
gap: 12px;
|
|
179
|
+
padding: 14px;
|
|
180
|
+
background: var(--card);
|
|
181
|
+
border: 1px solid var(--border);
|
|
182
|
+
border-radius: 8px;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
text-align: left;
|
|
185
|
+
transition:
|
|
186
|
+
transform 0.15s,
|
|
187
|
+
border-color 0.15s,
|
|
188
|
+
background 0.15s,
|
|
189
|
+
box-shadow 0.15s;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.rtp-type-card:hover {
|
|
193
|
+
transform: translateY(-2px);
|
|
194
|
+
border-color: color-mix(in srgb, var(--card-accent) 50%, var(--border));
|
|
195
|
+
background: color-mix(in srgb, var(--card-accent) 6%, var(--card));
|
|
196
|
+
box-shadow: 0 4px 12px color-mix(in srgb, var(--card-accent) 10%, transparent);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.rtp-type-card.selected {
|
|
200
|
+
border-color: var(--card-accent);
|
|
201
|
+
background: color-mix(in srgb, var(--card-accent) 10%, var(--card));
|
|
202
|
+
box-shadow:
|
|
203
|
+
0 0 0 2px color-mix(in srgb, var(--card-accent) 20%, transparent),
|
|
204
|
+
0 0 16px color-mix(in srgb, var(--card-accent) 12%, transparent);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.rtp-card-icon {
|
|
208
|
+
flex-shrink: 0;
|
|
209
|
+
color: var(--muted-foreground);
|
|
210
|
+
transition: color 0.15s;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.rtp-type-card:hover .rtp-card-icon,
|
|
214
|
+
.rtp-type-card.selected .rtp-card-icon {
|
|
215
|
+
color: var(--card-accent);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.rtp-card-info {
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
gap: 3px;
|
|
222
|
+
min-width: 0;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.rtp-card-name {
|
|
226
|
+
font-family: var(--font-brand);
|
|
227
|
+
font-size: 13px;
|
|
228
|
+
font-weight: 600;
|
|
229
|
+
color: var(--foreground);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.rtp-card-desc {
|
|
233
|
+
font-size: 11px;
|
|
234
|
+
color: var(--muted-foreground);
|
|
235
|
+
line-height: 1.4;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.rtp-check {
|
|
239
|
+
position: absolute;
|
|
240
|
+
top: 10px;
|
|
241
|
+
right: 10px;
|
|
242
|
+
width: 22px;
|
|
243
|
+
height: 18px;
|
|
244
|
+
border-radius: 999px;
|
|
245
|
+
background: var(--card-accent);
|
|
246
|
+
color: #000;
|
|
247
|
+
font-size: 9px;
|
|
248
|
+
font-weight: 700;
|
|
249
|
+
display: flex;
|
|
250
|
+
align-items: center;
|
|
251
|
+
justify-content: center;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.rtp-json-toggle {
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
gap: 8px;
|
|
258
|
+
padding: 10px 14px;
|
|
259
|
+
background: var(--card);
|
|
260
|
+
border: 1px dashed var(--border);
|
|
261
|
+
border-radius: 8px;
|
|
262
|
+
color: var(--muted-foreground);
|
|
263
|
+
font-size: 12px;
|
|
264
|
+
cursor: pointer;
|
|
265
|
+
transition:
|
|
266
|
+
border-color 0.15s,
|
|
267
|
+
color 0.15s;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.rtp-json-toggle:hover {
|
|
271
|
+
border-color: var(--runnable-color-accent, #14b8a6);
|
|
272
|
+
color: var(--foreground);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.rtp-json-terminal {
|
|
276
|
+
background: var(--runnable-terminal-background, color-mix(in srgb, #000 90%, var(--card)));
|
|
277
|
+
border: 1px solid color-mix(in srgb, var(--runnable-color-accent, #14b8a6) 25%, var(--border));
|
|
278
|
+
border-radius: 8px;
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.rtp-terminal-header {
|
|
283
|
+
display: flex;
|
|
284
|
+
align-items: center;
|
|
285
|
+
gap: 8px;
|
|
286
|
+
padding: 6px 12px;
|
|
287
|
+
background: color-mix(in srgb, #000 95%, var(--card));
|
|
288
|
+
border-bottom: 1px solid color-mix(in srgb, var(--runnable-color-accent, #14b8a6) 15%, transparent);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.rtp-terminal-dot {
|
|
292
|
+
width: 6px;
|
|
293
|
+
height: 6px;
|
|
294
|
+
border-radius: 50%;
|
|
295
|
+
background: var(--runnable-color-live, #34d399);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.rtp-terminal-label {
|
|
299
|
+
font-family: var(--font-brand);
|
|
300
|
+
font-size: 9px;
|
|
301
|
+
font-weight: 700;
|
|
302
|
+
letter-spacing: 0.15em;
|
|
303
|
+
color: var(--runnable-color-accent, #14b8a6);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.rtp-terminal-body {
|
|
307
|
+
display: flex;
|
|
308
|
+
gap: 8px;
|
|
309
|
+
padding: 12px;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.rtp-terminal-prompt {
|
|
313
|
+
font-family: var(--font-mono);
|
|
314
|
+
font-size: 13px;
|
|
315
|
+
color: var(--runnable-color-live, #34d399);
|
|
316
|
+
font-weight: 700;
|
|
317
|
+
user-select: none;
|
|
318
|
+
padding-top: 2px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.rtp-terminal-input {
|
|
322
|
+
flex: 1;
|
|
323
|
+
background: transparent;
|
|
324
|
+
border: none;
|
|
325
|
+
outline: none;
|
|
326
|
+
color: var(--runnable-color-live, #34d399);
|
|
327
|
+
font-family: var(--font-mono);
|
|
328
|
+
font-size: 12px;
|
|
329
|
+
line-height: 1.5;
|
|
330
|
+
resize: vertical;
|
|
331
|
+
min-height: 60px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.rtp-terminal-input::placeholder {
|
|
335
|
+
color: color-mix(in srgb, var(--runnable-color-live, #34d399) 30%, transparent);
|
|
336
|
+
}
|
|
337
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RunnableTypeSummary } from '../types.ts';
|
|
2
|
+
interface Props {
|
|
3
|
+
types: RunnableTypeSummary[];
|
|
4
|
+
selected: string | null;
|
|
5
|
+
jsonMode?: boolean;
|
|
6
|
+
onselect: (id: string) => void;
|
|
7
|
+
onjsonchange: (json: string) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const TypePicker: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type TypePicker = ReturnType<typeof TypePicker>;
|
|
11
|
+
export default TypePicker;
|
|
12
|
+
//# sourceMappingURL=TypePicker.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypePicker.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/TypePicker.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAItD,UAAU,KAAK;IACd,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AA6HF,QAAA,MAAM,UAAU,2CAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
<script lang="ts" module>
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
import type { RunnableControlInput, RunnableControlAction } from '../../../schemas/contracts/index.js';
|
|
4
|
+
import type { RunnableSnapshot } from '../../../schemas/runs.js';
|
|
5
|
+
import type { RunsStore } from '../../runs.store.svelte.js';
|
|
6
|
+
import type { RunPanelsProps } from '../RunPanels.svelte';
|
|
7
|
+
|
|
8
|
+
export interface RunDetailProps {
|
|
9
|
+
snapshot: RunnableSnapshot;
|
|
10
|
+
store?: RunsStore;
|
|
11
|
+
control?: (input: RunnableControlInput) => Promise<boolean>;
|
|
12
|
+
visualizations?: RunPanelsProps['visualizations'];
|
|
13
|
+
sections?: Snippet<[RunnableSnapshot, RunsStore | undefined]>;
|
|
14
|
+
requests?: Snippet<[RunnableSnapshot, RunsStore | undefined]>;
|
|
15
|
+
thread?: Snippet<[RunnableSnapshot, number | null]>;
|
|
16
|
+
onselect?: (runId: string) => void;
|
|
17
|
+
origin?: string;
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<script lang="ts">
|
|
22
|
+
import { CapabilityError, CaughtFailureSchema, settle } from '@vibesdotdev/kernel';
|
|
23
|
+
import { Button } from '@vibesdotdev/kit/components/ui/button';
|
|
24
|
+
import { Badge } from '@vibesdotdev/kit/components/ui/badge';
|
|
25
|
+
import { Progress } from '@vibesdotdev/kit/components/ui/progress';
|
|
26
|
+
import { Alert, AlertTitle, AlertDescription } from '@vibesdotdev/kit/components/ui/alert';
|
|
27
|
+
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@vibesdotdev/kit/components/ui/tabs';
|
|
28
|
+
import RunEvidence from '../RunEvidence.svelte';
|
|
29
|
+
import RunActivity from '../RunActivity.svelte';
|
|
30
|
+
import RunSummary from '../RunSummary.svelte';
|
|
31
|
+
import RunContext from '../RunContext.svelte';
|
|
32
|
+
import RunObservation from '../RunObservation.svelte';
|
|
33
|
+
import RunComparison from '../RunComparison.svelte';
|
|
34
|
+
import type { RunEvidenceTarget } from '../../lib/run-investigation.js';
|
|
35
|
+
import { tick } from 'svelte';
|
|
36
|
+
import { runPanelSource } from '../../../client/tracking/panel-bindings.js';
|
|
37
|
+
import { isActiveRunStatus } from '../../lib/status.js';
|
|
38
|
+
import ArtifactList from '../ArtifactList.svelte';
|
|
39
|
+
import LogViewer from '../LogViewer.svelte';
|
|
40
|
+
import MetricCard from '../MetricCard.svelte';
|
|
41
|
+
import RunPanels from '../RunPanels.svelte';
|
|
42
|
+
import RunStatusBadge from '../RunStatusBadge.svelte';
|
|
43
|
+
import RunOutcomeBadge from '../RunOutcomeBadge.svelte';
|
|
44
|
+
import RunTree from './RunTree.svelte';
|
|
45
|
+
import { runAncestors } from './tree-projection.js';
|
|
46
|
+
import { formatDuration, formatRunTime, shortRunId, runTitle } from '../../lib/run-presentation.js';
|
|
47
|
+
|
|
48
|
+
let { snapshot, store, control, visualizations, sections, requests, thread, onselect, origin }: RunDetailProps = $props();
|
|
49
|
+
const run = $derived(snapshot.run);
|
|
50
|
+
const runId = $derived(run.id);
|
|
51
|
+
const source = $derived(runPanelSource(snapshot));
|
|
52
|
+
const send = $derived(control ?? (store ? (input: RunnableControlInput) => store.control(input) : undefined));
|
|
53
|
+
const load = $derived(visualizations ?? (store ? (query: Parameters<RunsStore['visualizations']>[0]) => store.visualizations(query) : undefined));
|
|
54
|
+
const related = $derived([run, ...snapshot.children, ...(store?.listRows.flatMap(row => [row.run, ...row.children]) ?? [])]);
|
|
55
|
+
const enclosing = $derived.by(() => {
|
|
56
|
+
const ancestors = runAncestors(related, [runId]);
|
|
57
|
+
return related.filter(candidate => ancestors.has(candidate.id) && candidate.activity)
|
|
58
|
+
.sort((left, right) => right.activity!.ts - left.activity!.ts)[0];
|
|
59
|
+
});
|
|
60
|
+
const comparisonCandidates = $derived(store?.listRows.flatMap(row => [row.run, ...row.children]) ?? []);
|
|
61
|
+
const actions: readonly RunnableControlAction[] = $derived(run.status === 'paused' ? ['resume', 'stop'] : run.status === 'stopping' ? [] : ['pause', 'stop']);
|
|
62
|
+
let pending = $state<RunnableControlAction | null>(null);
|
|
63
|
+
let failure = $state.raw<CapabilityError | null>(null);
|
|
64
|
+
let copied = $state(false);
|
|
65
|
+
let activeTab = $state('overview');
|
|
66
|
+
let focusedLog = $state<number | null>(null);
|
|
67
|
+
let article: HTMLElement | undefined = $state();
|
|
68
|
+
let expanded = $state<Record<string, boolean>>({});
|
|
69
|
+
let generation = 0;
|
|
70
|
+
|
|
71
|
+
$effect(() => {
|
|
72
|
+
void runId;
|
|
73
|
+
generation += 1;
|
|
74
|
+
pending = null;
|
|
75
|
+
failure = null;
|
|
76
|
+
copied = false;
|
|
77
|
+
activeTab = 'overview';
|
|
78
|
+
focusedLog = null;
|
|
79
|
+
expanded = {};
|
|
80
|
+
return () => { generation += 1; };
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
async function openEvidence(target: RunEvidenceTarget) {
|
|
84
|
+
if (target.kind === 'log') {
|
|
85
|
+
focusedLog = target.index;
|
|
86
|
+
activeTab = 'logs';
|
|
87
|
+
} else if (target.kind === 'artifact') activeTab = 'artifacts';
|
|
88
|
+
else {
|
|
89
|
+
expanded[target.kind] = true;
|
|
90
|
+
activeTab = 'evidence';
|
|
91
|
+
}
|
|
92
|
+
await tick();
|
|
93
|
+
const element = target.kind === 'log'
|
|
94
|
+
? article?.querySelector<HTMLElement>(`[data-log-index="${target.index}"]`)
|
|
95
|
+
: target.kind === 'artifact' ? article?.querySelector<HTMLElement>(`[data-artifact-id="${CSS.escape(target.id)}"]`)
|
|
96
|
+
: article?.querySelector<HTMLElement>(`[data-evidence="${target.kind}"]`);
|
|
97
|
+
element?.scrollIntoView({ block: 'nearest' });
|
|
98
|
+
element?.focus({ preventScroll: true });
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function select(id: string) {
|
|
102
|
+
if (onselect) onselect(id);
|
|
103
|
+
else store?.select(id);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
async function copyId() {
|
|
107
|
+
const ticket = generation;
|
|
108
|
+
const result = await settle(() => navigator.clipboard.writeText(runId));
|
|
109
|
+
if (ticket !== generation) return;
|
|
110
|
+
if (result.ok) copied = true;
|
|
111
|
+
else failure = CapabilityError.from(CaughtFailureSchema.parse(result.cause));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
async function request(action: RunnableControlAction) {
|
|
115
|
+
if (!send || pending) return;
|
|
116
|
+
const ticket = generation;
|
|
117
|
+
const id = runId;
|
|
118
|
+
pending = action;
|
|
119
|
+
failure = null;
|
|
120
|
+
const result = await settle(async () => {
|
|
121
|
+
if (!await send({ runId: id, action })) {
|
|
122
|
+
throw new CapabilityError('The run owner did not perform the requested action.', 'UNAVAILABLE', {
|
|
123
|
+
reason: 'runnable-control-refused', details: { action, runId: id }
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
if (ticket === generation) {
|
|
128
|
+
if (!result.ok) failure = CapabilityError.from(CaughtFailureSchema.parse(result.cause));
|
|
129
|
+
pending = null;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
</script>
|
|
133
|
+
|
|
134
|
+
{#snippet evidence(key: string, title: string, value: unknown)}
|
|
135
|
+
<details data-evidence={key} tabindex="-1" class="min-w-0 border-b border-border" open={expanded[key] ?? false} ontoggle={event => { expanded[key] = event.currentTarget.open; }}>
|
|
136
|
+
<summary class="cursor-pointer py-3 text-sm font-medium focus-visible:outline-2 focus-visible:outline-ring">{title}<span class="float-right text-xs font-normal text-muted-foreground">JSON</span></summary>
|
|
137
|
+
{#if expanded[key]}<div class="pb-4"><RunEvidence {title} {value} /></div>{/if}
|
|
138
|
+
</details>
|
|
139
|
+
{/snippet}
|
|
140
|
+
|
|
141
|
+
<article bind:this={article} aria-label={runTitle(run)} class="grid min-w-0 gap-4">
|
|
142
|
+
<header class="grid gap-3 border-b border-border pb-5">
|
|
143
|
+
<div class="flex flex-wrap items-start justify-between gap-3">
|
|
144
|
+
<h2 class="min-w-0 break-words text-lg font-semibold tracking-tight">{runTitle(run)}</h2>
|
|
145
|
+
<div class="flex items-center gap-2 text-xs text-muted-foreground"><span>Execution</span><RunStatusBadge status={run.status} /></div>
|
|
146
|
+
</div>
|
|
147
|
+
<RunObservation {snapshot} {enclosing} onevidence={openEvidence} onselect={select} />
|
|
148
|
+
<RunContext {run} />
|
|
149
|
+
<div class="flex flex-wrap items-center gap-2 text-xs text-muted-foreground"><Badge variant="secondary">{run.context?.kindLabel ?? run.runnableType}</Badge><RunOutcomeBadge {run} /><code title={run.id}>{shortRunId(run.id)}</code><Button size="sm" variant="ghost" onclick={copyId}>{copied ? 'Copied run ID' : 'Copy run ID'}</Button></div>
|
|
150
|
+
<div class="flex flex-wrap items-center gap-x-3 gap-y-1"><span class="text-xs font-medium text-muted-foreground">{isActiveRunStatus(run.status) ? 'Current activity' : 'Last activity'}</span><RunActivity {run} />{#if run.activity}<time class="text-xs text-muted-foreground" datetime={new Date(run.activity.ts).toISOString()}>{formatRunTime(run.activity.ts)}</time>{/if}</div>
|
|
151
|
+
{#if run.hostId}<p class="break-all text-xs text-muted-foreground">Host {run.hostId}</p>{/if}
|
|
152
|
+
<div class="flex flex-wrap gap-x-6 gap-y-1 text-xs text-muted-foreground">
|
|
153
|
+
<p>Started <time datetime={new Date(run.startedAt).toISOString()} title={new Date(run.startedAt).toLocaleString()}>{formatRunTime(run.startedAt)}</time></p>
|
|
154
|
+
{#if run.endedAt != null}<p>Duration <span class="font-medium text-foreground">{formatDuration(run.endedAt - run.startedAt)}</span></p><p>Ended <time datetime={new Date(run.endedAt).toISOString()}>{formatRunTime(run.endedAt)}</time></p>{/if}
|
|
155
|
+
</div>
|
|
156
|
+
{#if run.progress !== undefined && isActiveRunStatus(run.status)}
|
|
157
|
+
<div class="flex items-center gap-3">
|
|
158
|
+
<Progress max={1} value={Math.min(1, Math.max(0, run.progress))} aria-label="Recorded progress" />
|
|
159
|
+
<span class="text-xs tabular-nums text-muted-foreground">{Math.round(Math.min(1, Math.max(0, run.progress)) * 100)}%</span>
|
|
160
|
+
</div>
|
|
161
|
+
{/if}
|
|
162
|
+
{#if send && isActiveRunStatus(run.status)}
|
|
163
|
+
<div class="flex flex-wrap gap-2 border-t border-border pt-3">
|
|
164
|
+
{#each actions as action}<Button variant={action === 'stop' ? 'destructive' : 'outline'} size="sm" disabled={pending !== null} loading={pending === action} onclick={() => request(action)}><span class="capitalize">{action}</span></Button>{/each}
|
|
165
|
+
</div>
|
|
166
|
+
{/if}
|
|
167
|
+
{#if pending}<p role="status" class="text-sm text-muted-foreground">Asking the owner to {pending}.</p>{/if}
|
|
168
|
+
{#if failure}
|
|
169
|
+
<Alert variant="destructive">
|
|
170
|
+
<AlertTitle>{failure.message}</AlertTitle>
|
|
171
|
+
<AlertDescription><code>{failure.code}</code> {failure.reason ?? ''}{#if failure.recoveryHint}<p>{failure.recoveryHint}</p>{/if}</AlertDescription>
|
|
172
|
+
</Alert>
|
|
173
|
+
{/if}
|
|
174
|
+
{#if run.parentRunId && (onselect || store)}<div><Button variant="ghost" size="sm" onclick={() => select(run.parentRunId!)}>View parent run</Button></div>{/if}
|
|
175
|
+
</header>
|
|
176
|
+
|
|
177
|
+
{@render requests?.(snapshot, store)}
|
|
178
|
+
<Tabs bind:value={activeTab} class="min-w-0 gap-5">
|
|
179
|
+
<TabsList aria-label="Run inspector" class="grid h-auto w-full grid-cols-2 gap-1 sm:flex sm:w-fit">
|
|
180
|
+
<TabsTrigger class="h-9" value="overview">Overview</TabsTrigger>
|
|
181
|
+
<TabsTrigger class="h-9" value="logs">Execution thread <span class="ml-1 text-xs text-muted-foreground">{snapshot.logs.length}</span></TabsTrigger>
|
|
182
|
+
<TabsTrigger class="h-9" value="artifacts">Artifacts <span class="ml-1 text-xs text-muted-foreground">{snapshot.artifacts.length}</span></TabsTrigger>
|
|
183
|
+
{#if store}<TabsTrigger class="h-9" value="compare">Compare</TabsTrigger>{/if}
|
|
184
|
+
<TabsTrigger class="h-9" value="evidence">Evidence</TabsTrigger>
|
|
185
|
+
</TabsList>
|
|
186
|
+
<TabsContent value="overview" class="min-w-0 space-y-6">
|
|
187
|
+
<RunSummary {snapshot} onevidence={openEvidence} onselect={select} />
|
|
188
|
+
{@render sections?.(snapshot, store)}
|
|
189
|
+
{#if load}<RunPanels {snapshot} visualizations={load} {origin} hideEmpty />{/if}
|
|
190
|
+
{#if Object.keys(source.metrics).length > 0}<section aria-label="Metrics" class="grid gap-3 sm:grid-cols-2 xl:grid-cols-3">
|
|
191
|
+
{#each Object.entries(source.metrics) as [key, points] (key)}<MetricCard label={key} values={points.map(point => point.value)} />{/each}
|
|
192
|
+
</section>{/if}
|
|
193
|
+
<section class="grid gap-3" aria-label="Related executions"><div class="flex items-center justify-between gap-2"><h3 class="text-sm font-semibold">Execution tree</h3><span class="text-xs text-muted-foreground">Follow a child to its evidence</span></div><RunTree runs={related} rootId={run.id} selected={store?.selectedId} onselect={select} /></section>
|
|
194
|
+
{#if snapshot.artifacts.length > 0}<section class="grid gap-3"><h3 class="text-sm font-semibold">Recorded artifacts</h3><ArtifactList artifacts={snapshot.artifacts} /></section>{/if}
|
|
195
|
+
</TabsContent>
|
|
196
|
+
<TabsContent value="logs" class="min-w-0">{#if thread}{@render thread(snapshot, focusedLog)}{:else}<LogViewer logs={snapshot.logs} focusedIndex={focusedLog} />{/if}</TabsContent>
|
|
197
|
+
<TabsContent value="artifacts" class="min-w-0"><ArtifactList artifacts={snapshot.artifacts} /></TabsContent>
|
|
198
|
+
{#if store}<TabsContent value="compare" class="min-w-0"><RunComparison {snapshot} candidates={comparisonCandidates} source={store.source} onselect={select} /></TabsContent>{/if}
|
|
199
|
+
<TabsContent value="evidence" class="min-w-0">
|
|
200
|
+
<div class="mb-3 flex items-center justify-between gap-3"><h3 class="text-sm font-semibold">Owner-recorded evidence</h3><Badge variant="secondary">Read only</Badge></div>
|
|
201
|
+
<p class="mb-4 break-all text-xs text-muted-foreground">Run ID: <code>{run.id}</code></p>
|
|
202
|
+
{#if run.inputDigest}<p class="mb-4 break-all text-xs text-muted-foreground">Input digest: <code>{run.inputDigest}</code></p>{/if}
|
|
203
|
+
{#if run.outcome}{@render evidence('outcome', 'Recorded outcome', run.outcome)}{/if}
|
|
204
|
+
{@render evidence('input', 'Input', run.config)}
|
|
205
|
+
{@render evidence('metadata', 'Metadata', run.metadata)}
|
|
206
|
+
{#if run.rankReason}{@render evidence('selection', 'Selection evidence', run.rankReason)}{/if}
|
|
207
|
+
{#if run.ref}{@render evidence('reference', 'Execution reference', run.ref)}{/if}
|
|
208
|
+
{#if run.scope}{@render evidence('scope', 'Recorded scope', run.scope)}{/if}
|
|
209
|
+
{#if run.approval}<p class="py-3 text-sm">Approval: <Badge variant="outline">{run.approval}</Badge></p>{/if}
|
|
210
|
+
{@render evidence('snapshot', 'Complete recorded evidence', snapshot)}
|
|
211
|
+
</TabsContent>
|
|
212
|
+
</Tabs>
|
|
213
|
+
|
|
214
|
+
</article>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
import type { RunnableControlInput } from '../../../schemas/contracts/index.ts';
|
|
3
|
+
import type { RunnableSnapshot } from '../../../schemas/runs.ts';
|
|
4
|
+
import type { RunsStore } from '../../runs.store.svelte.ts';
|
|
5
|
+
import type { RunPanelsProps } from '../RunPanels.svelte';
|
|
6
|
+
export interface RunDetailProps {
|
|
7
|
+
snapshot: RunnableSnapshot;
|
|
8
|
+
store?: RunsStore;
|
|
9
|
+
control?: (input: RunnableControlInput) => Promise<boolean>;
|
|
10
|
+
visualizations?: RunPanelsProps['visualizations'];
|
|
11
|
+
sections?: Snippet<[RunnableSnapshot, RunsStore | undefined]>;
|
|
12
|
+
requests?: Snippet<[RunnableSnapshot, RunsStore | undefined]>;
|
|
13
|
+
thread?: Snippet<[RunnableSnapshot, number | null]>;
|
|
14
|
+
onselect?: (runId: string) => void;
|
|
15
|
+
origin?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const RunDetail: import("svelte").Component<RunDetailProps, {}, "">;
|
|
18
|
+
type RunDetail = ReturnType<typeof RunDetail>;
|
|
19
|
+
export default RunDetail;
|
|
20
|
+
//# sourceMappingURL=RunDetail.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunDetail.svelte.d.ts","sourceRoot":"","sources":["../../../../src/svelte/components/records/RunDetail.svelte.ts"],"names":[],"mappings":"AAGC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,oBAAoB,EAAyB,MAAM,qCAAqC,CAAC;AACvG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D,cAAc,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,gBAAgB,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,gBAAgB,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAoOF,QAAA,MAAM,SAAS,oDAAwC,CAAC;AACxD,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC9C,eAAe,SAAS,CAAC"}
|