@vibesdotdev/runnable 0.0.0-stage → 1.0.0-rc.0
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 +229 -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 +2427 -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,176 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from 'svelte';
|
|
3
|
+
import type { MetricCardProps } from '../types.js';
|
|
4
|
+
|
|
5
|
+
let {
|
|
6
|
+
label,
|
|
7
|
+
unit = '',
|
|
8
|
+
values,
|
|
9
|
+
color = 'var(--runnable-color-accent, #14b8a6)',
|
|
10
|
+
}: MetricCardProps = $props();
|
|
11
|
+
|
|
12
|
+
let canvasEl: HTMLCanvasElement | undefined = $state();
|
|
13
|
+
const width = 120;
|
|
14
|
+
const height = 32;
|
|
15
|
+
|
|
16
|
+
const currentValue = $derived(
|
|
17
|
+
values.length > 0 ? values[values.length - 1] : 0,
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const trend = $derived.by((): 'up' | 'down' | 'flat' => {
|
|
21
|
+
if (values.length < 3) return 'flat';
|
|
22
|
+
const recent = values.slice(-30);
|
|
23
|
+
const first = recent[0];
|
|
24
|
+
const last = recent[recent.length - 1];
|
|
25
|
+
const delta = last - first;
|
|
26
|
+
const range = Math.abs(first) + Math.abs(last) || 1;
|
|
27
|
+
if (Math.abs(delta / range) < 0.02) return 'flat';
|
|
28
|
+
return delta > 0 ? 'up' : 'down';
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const trendLabel = $derived(
|
|
32
|
+
trend === 'up' ? 'UP' : trend === 'down' ? 'DN' : '--',
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const trendColor = $derived(
|
|
36
|
+
trend === 'up'
|
|
37
|
+
? 'var(--runnable-color-live, #34d399)'
|
|
38
|
+
: trend === 'down'
|
|
39
|
+
? 'var(--runnable-color-danger, #ef4444)'
|
|
40
|
+
: 'var(--muted-foreground, #64748b)',
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
function drawSparkline(): void {
|
|
44
|
+
if (!canvasEl || values.length < 2) return;
|
|
45
|
+
const ctx = canvasEl.getContext('2d');
|
|
46
|
+
if (!ctx) return;
|
|
47
|
+
|
|
48
|
+
const dpr = window.devicePixelRatio || 1;
|
|
49
|
+
canvasEl.width = width * dpr;
|
|
50
|
+
canvasEl.height = height * dpr;
|
|
51
|
+
ctx.scale(dpr, dpr);
|
|
52
|
+
ctx.clearRect(0, 0, width, height);
|
|
53
|
+
|
|
54
|
+
const min = Math.min(...values);
|
|
55
|
+
const max = Math.max(...values);
|
|
56
|
+
const range = max - min || 1;
|
|
57
|
+
const step = width / (values.length - 1);
|
|
58
|
+
|
|
59
|
+
ctx.beginPath();
|
|
60
|
+
for (let i = 0; i < values.length; i++) {
|
|
61
|
+
const x = i * step;
|
|
62
|
+
const y = height - ((values[i] - min) / range) * (height - 4) - 2;
|
|
63
|
+
if (i === 0) ctx.moveTo(x, y);
|
|
64
|
+
else ctx.lineTo(x, y);
|
|
65
|
+
}
|
|
66
|
+
ctx.lineTo(width, height);
|
|
67
|
+
ctx.lineTo(0, height);
|
|
68
|
+
ctx.closePath();
|
|
69
|
+
ctx.fillStyle = color;
|
|
70
|
+
ctx.globalAlpha = 0.12;
|
|
71
|
+
ctx.fill();
|
|
72
|
+
ctx.globalAlpha = 1;
|
|
73
|
+
|
|
74
|
+
ctx.beginPath();
|
|
75
|
+
for (let i = 0; i < values.length; i++) {
|
|
76
|
+
const x = i * step;
|
|
77
|
+
const y = height - ((values[i] - min) / range) * (height - 4) - 2;
|
|
78
|
+
if (i === 0) ctx.moveTo(x, y);
|
|
79
|
+
else ctx.lineTo(x, y);
|
|
80
|
+
}
|
|
81
|
+
ctx.strokeStyle = color;
|
|
82
|
+
ctx.lineWidth = 1.5;
|
|
83
|
+
ctx.lineJoin = 'round';
|
|
84
|
+
ctx.stroke();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
$effect(() => {
|
|
88
|
+
drawSparkline();
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
onMount(() => {
|
|
92
|
+
drawSparkline();
|
|
93
|
+
});
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
<div class="runnable-metric-card">
|
|
97
|
+
<div class="rmc-top-bar" style:background={color}></div>
|
|
98
|
+
<div class="rmc-header">
|
|
99
|
+
<span class="rmc-label">{label}</span>
|
|
100
|
+
<span class="rmc-trend" style:color={trendColor}>{trendLabel}</span>
|
|
101
|
+
</div>
|
|
102
|
+
<span class="rmc-value" style:color={color}>
|
|
103
|
+
{currentValue.toLocaleString(undefined, {
|
|
104
|
+
maximumFractionDigits: 2,
|
|
105
|
+
})}
|
|
106
|
+
{#if unit}<span class="rmc-unit">{unit}</span>{/if}
|
|
107
|
+
</span>
|
|
108
|
+
<canvas
|
|
109
|
+
bind:this={canvasEl}
|
|
110
|
+
width={width}
|
|
111
|
+
height={height}
|
|
112
|
+
class="rmc-sparkline"
|
|
113
|
+
></canvas>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<style>
|
|
117
|
+
.runnable-metric-card {
|
|
118
|
+
position: relative;
|
|
119
|
+
padding: 10px 14px;
|
|
120
|
+
background: var(--card);
|
|
121
|
+
border: 1px solid var(--border);
|
|
122
|
+
border-radius: 8px;
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
gap: 2px;
|
|
126
|
+
overflow: hidden;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.rmc-top-bar {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 0;
|
|
132
|
+
left: 0;
|
|
133
|
+
right: 0;
|
|
134
|
+
height: 2px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.rmc-header {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: space-between;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.rmc-label {
|
|
144
|
+
font-family: var(--font-brand);
|
|
145
|
+
font-size: 9px;
|
|
146
|
+
font-weight: 700;
|
|
147
|
+
letter-spacing: 0.12em;
|
|
148
|
+
color: var(--muted-foreground);
|
|
149
|
+
text-transform: uppercase;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.rmc-trend {
|
|
153
|
+
font-size: 10px;
|
|
154
|
+
font-weight: 700;
|
|
155
|
+
line-height: 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.rmc-value {
|
|
159
|
+
font-family: var(--font-brand);
|
|
160
|
+
font-size: 1.25rem;
|
|
161
|
+
font-weight: 700;
|
|
162
|
+
font-variant-numeric: tabular-nums;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.rmc-unit {
|
|
166
|
+
font-size: 0.7rem;
|
|
167
|
+
color: var(--muted-foreground);
|
|
168
|
+
margin-left: 2px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.rmc-sparkline {
|
|
172
|
+
width: 120px;
|
|
173
|
+
height: 32px;
|
|
174
|
+
display: block;
|
|
175
|
+
}
|
|
176
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricCard.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/MetricCard.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAoHnD,QAAA,MAAM,UAAU,qDAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Button } from '@vibesdotdev/kit/components/ui/button';
|
|
3
|
+
import type { RunnableCatalogRun } from '../../schemas/runs.js';
|
|
4
|
+
import type { RunTreeReport } from './records/tree-projection.js';
|
|
5
|
+
import { isActiveRunStatus } from '../lib/status.js';
|
|
6
|
+
import { formatRunTime, runTitle } from '../lib/run-presentation.js';
|
|
7
|
+
let { run, compact = false, latest = false, related, onselect }: {
|
|
8
|
+
run: RunnableCatalogRun; compact?: boolean; latest?: boolean;
|
|
9
|
+
related?: RunTreeReport; onselect?: (id: string) => void;
|
|
10
|
+
} = $props();
|
|
11
|
+
// Observed child facts retain attribution; they never become this run's lifecycle activity.
|
|
12
|
+
const child = $derived(related && related.run.id !== run.id ? related : undefined);
|
|
13
|
+
const observation = $derived(latest && run.observation && (!run.activity || run.observation.ts >= run.activity.ts) ? run.observation : undefined);
|
|
14
|
+
const recorded = $derived(related?.run.id === run.id ? related : undefined);
|
|
15
|
+
const summaryOnly = $derived(!child && !observation && !run.activity && recorded !== undefined);
|
|
16
|
+
const report = $derived(child ?? observation ?? run.activity ?? recorded);
|
|
17
|
+
const label = $derived.by(() => {
|
|
18
|
+
if (child) return `Child · ${child.label}`;
|
|
19
|
+
if (observation) return observation.label ?? 'Last observed';
|
|
20
|
+
if (run.activity) return 'Last report';
|
|
21
|
+
return recorded?.label ?? 'Last report';
|
|
22
|
+
});
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<span class="grid min-w-0 gap-0.5">
|
|
26
|
+
{#if latest && report}<span class="text-xs text-muted-foreground">{label} · <time datetime={new Date(report.ts).toISOString()}>{formatRunTime(report.ts)}</time></span>{/if}
|
|
27
|
+
{#if child && onselect}
|
|
28
|
+
<Button variant="ghost" tabindex={-1} class="h-auto min-w-0 justify-start whitespace-normal p-0 text-left text-xs font-normal text-muted-foreground" title={`From ${runTitle(child.run)}`} onclick={(event) => { event.stopPropagation(); onselect?.(child!.run.id); }} onkeydown={(event) => event.stopPropagation()}><span class={["min-w-0 break-words leading-relaxed", compact && "line-clamp-2"]}>{child.message} →</span></Button>
|
|
29
|
+
{:else if !summaryOnly && (report || !compact || isActiveRunStatus(run.status))}
|
|
30
|
+
<span class={["min-w-0 break-words text-xs leading-relaxed text-muted-foreground", compact && "line-clamp-2"]} title={report ? `${report.message} · Reported ${new Date(report.ts).toLocaleString()}` : 'No activity description reported'}>{report?.message ?? 'No activity description reported'}</span>
|
|
31
|
+
{/if}
|
|
32
|
+
</span>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RunnableCatalogRun } from '../../schemas/runs.ts';
|
|
2
|
+
import type { RunTreeReport } from './records/tree-projection.ts';
|
|
3
|
+
type $$ComponentProps = {
|
|
4
|
+
run: RunnableCatalogRun;
|
|
5
|
+
compact?: boolean;
|
|
6
|
+
latest?: boolean;
|
|
7
|
+
related?: RunTreeReport;
|
|
8
|
+
onselect?: (id: string) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const RunActivity: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
11
|
+
type RunActivity = ReturnType<typeof RunActivity>;
|
|
12
|
+
export default RunActivity;
|
|
13
|
+
//# sourceMappingURL=RunActivity.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunActivity.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/RunActivity.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAIjE,KAAK,gBAAgB,GAAI;IACxB,GAAG,EAAE,kBAAkB,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC7D,OAAO,CAAC,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACzD,CAAC;AAiCH,QAAA,MAAM,WAAW,sDAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Button } from '@vibesdotdev/kit/components/ui/button';
|
|
3
|
+
import { Input } from '@vibesdotdev/kit/components/ui/input';
|
|
4
|
+
import { NativeSelect } from '@vibesdotdev/kit/components/ui/native-select';
|
|
5
|
+
import type { RunnableCatalogRun } from '../../schemas/runs.js';
|
|
6
|
+
import { matchesRun, type RunViewFilter } from '../lib/run-presentation.js';
|
|
7
|
+
import RunTree from './records/RunTree.svelte';
|
|
8
|
+
import { withRunAncestors } from './records/tree-projection.js';
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
runs: RunnableCatalogRun[];
|
|
12
|
+
selected: string | null;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
filter?: RunViewFilter;
|
|
15
|
+
onselect: (id: string) => void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let { runs, selected, loading = false, filter = $bindable('all'), onselect }: Props = $props();
|
|
19
|
+
let search = $state('');
|
|
20
|
+
let type = $state('');
|
|
21
|
+
let host = $state('');
|
|
22
|
+
let period = $state('all');
|
|
23
|
+
let rootsOnly = $state(false);
|
|
24
|
+
const types = $derived([...new Set(runs.map(run => run.runnableType))].sort());
|
|
25
|
+
const hosts = $derived([...new Set(runs.flatMap(run => run.hostId ? [run.hostId] : []))].sort());
|
|
26
|
+
const filtered = $derived(runs.filter(run => matchesRun(run, filter, search)
|
|
27
|
+
&& (!type || run.runnableType === type)
|
|
28
|
+
&& (!host || run.hostId === host)
|
|
29
|
+
&& (period === 'all' || run.startedAt >= Date.now() - Number(period))));
|
|
30
|
+
const admittedIds = $derived(new Set(runs.map(run => run.id)));
|
|
31
|
+
const matching = $derived(rootsOnly
|
|
32
|
+
? filtered.filter(run => !run.parentRunId || run.parentRunId === run.id || !admittedIds.has(run.parentRunId))
|
|
33
|
+
: filtered);
|
|
34
|
+
const visible = $derived(withRunAncestors(runs, matching));
|
|
35
|
+
const filteredIds = $derived(new Set(matching.map(run => run.id)));
|
|
36
|
+
const hasFilters = $derived(Boolean(search || type || host || period !== 'all' || filter !== 'all' || rootsOnly));
|
|
37
|
+
|
|
38
|
+
function clearFilters() {
|
|
39
|
+
search = '';
|
|
40
|
+
type = '';
|
|
41
|
+
host = '';
|
|
42
|
+
period = 'all';
|
|
43
|
+
filter = 'all';
|
|
44
|
+
rootsOnly = false;
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<section aria-label="Browse recorded runs" aria-busy={loading} class="flex h-full min-h-0 min-w-0 flex-col bg-muted/10">
|
|
49
|
+
<div class="grid shrink-0 gap-3 border-b border-border p-4">
|
|
50
|
+
<div class="flex items-center justify-between gap-2">
|
|
51
|
+
<h2 class="text-sm font-semibold">Run tree</h2>
|
|
52
|
+
<span class="text-xs tabular-nums text-muted-foreground">{matching.length} of {runs.length}</span>
|
|
53
|
+
</div>
|
|
54
|
+
<p class="text-xs leading-relaxed text-muted-foreground">Expand a run to follow its tasks. Active branches appear first.</p>
|
|
55
|
+
<Input type="search" aria-label="Search recorded runs" placeholder="Search names, IDs, outcomes…" bind:value={search} />
|
|
56
|
+
<div class="flex flex-wrap gap-2">
|
|
57
|
+
<NativeSelect aria-label="Filter runs" bind:value={filter}>
|
|
58
|
+
<option value="all">All outcomes</option>
|
|
59
|
+
<option value="active">In progress or unverified</option>
|
|
60
|
+
<option value="unverified">Status unverified</option>
|
|
61
|
+
<option value="attention">Issue history</option>
|
|
62
|
+
<option value="done">Goal achieved</option>
|
|
63
|
+
</NativeSelect>
|
|
64
|
+
<details class="min-w-0 text-sm">
|
|
65
|
+
<summary class="flex h-9 cursor-pointer items-center rounded-md px-2 text-muted-foreground focus-visible:outline-2 focus-visible:outline-ring">More filters</summary>
|
|
66
|
+
<div class="flex flex-wrap gap-2 pt-3">
|
|
67
|
+
<NativeSelect aria-label="Run type" bind:value={type}><option value="">All types</option>{#each types as item (item)}<option value={item}>{item}</option>{/each}</NativeSelect>
|
|
68
|
+
{#if hosts.length > 0}<NativeSelect aria-label="Execution host" bind:value={host}><option value="">All hosts</option>{#each hosts as item (item)}<option value={item}>{item}</option>{/each}</NativeSelect>{/if}
|
|
69
|
+
<NativeSelect aria-label="Run start time" bind:value={period}>
|
|
70
|
+
<option value="all">All recorded time</option><option value="3600000">Last hour</option><option value="86400000">Last day</option><option value="604800000">Last week</option>
|
|
71
|
+
</NativeSelect>
|
|
72
|
+
<Button size="sm" variant="outline" aria-pressed={rootsOnly} onclick={() => rootsOnly = !rootsOnly}>Top-level only</Button>
|
|
73
|
+
</div>
|
|
74
|
+
</details>
|
|
75
|
+
</div>
|
|
76
|
+
{#if hasFilters}<div class="flex items-center justify-between gap-2 text-xs text-muted-foreground"><span>Filtering the current subscription</span><Button size="sm" variant="ghost" onclick={clearFilters}>Clear filters</Button></div>{/if}
|
|
77
|
+
{#if visible.length > matching.length}<p class="text-xs text-muted-foreground">{visible.length - matching.length} parent runs included for context.</p>{/if}
|
|
78
|
+
{#if selected && !filteredIds.has(selected)}<p class="text-xs text-muted-foreground">Selected run is outside these filters.</p>{/if}
|
|
79
|
+
</div>
|
|
80
|
+
<div class="min-h-0 flex-1 overflow-y-auto p-2">
|
|
81
|
+
{#if loading && runs.length === 0}<p role="status" class="p-6 text-sm text-muted-foreground">Waiting for the first recorded snapshot.</p>
|
|
82
|
+
{:else if visible.length === 0 && runs.length > 0}
|
|
83
|
+
<div class="grid gap-3 p-6 text-sm"><p class="font-medium">No matching runs</p><p class="text-muted-foreground">Try a name, part of an ID, or a different outcome.</p><Button variant="outline" onclick={clearFilters}>Clear filters</Button></div>
|
|
84
|
+
{:else}<RunTree runs={visible} {selected} {onselect} matchedIds={hasFilters ? filteredIds : undefined} />{/if}
|
|
85
|
+
</div>
|
|
86
|
+
</section>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RunnableCatalogRun } from '../../schemas/runs.ts';
|
|
2
|
+
import { type RunViewFilter } from '../lib/run-presentation.ts';
|
|
3
|
+
interface Props {
|
|
4
|
+
runs: RunnableCatalogRun[];
|
|
5
|
+
selected: string | null;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
filter?: RunViewFilter;
|
|
8
|
+
onselect: (id: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const RunBrowser: import("svelte").Component<Props, {}, "filter">;
|
|
11
|
+
type RunBrowser = ReturnType<typeof RunBrowser>;
|
|
12
|
+
export default RunBrowser;
|
|
13
|
+
//# sourceMappingURL=RunBrowser.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunBrowser.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/RunBrowser.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAK3E,UAAU,KAAK;IACd,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B;AAmFF,QAAA,MAAM,UAAU,iDAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { CapabilityError, CaughtFailureSchema, settle } from '@vibesdotdev/kernel';
|
|
3
|
+
import { CodeViewer } from '@vibesdotdev/kit/components/code';
|
|
4
|
+
import { Button } from '@vibesdotdev/kit/components/ui/button';
|
|
5
|
+
import { Alert, AlertTitle, AlertDescription } from '@vibesdotdev/kit/components/ui/alert';
|
|
6
|
+
import type { RunnableCatalogRun, RunnableSnapshot } from '../../schemas/runs.js';
|
|
7
|
+
import type { RunsSource } from '../runs.store.svelte.js';
|
|
8
|
+
import { previousSuccessfulRun, inputChanges, metricChanges, formatEvidenceValue } from '../lib/run-investigation.js';
|
|
9
|
+
import { formatDuration, formatRunTime, outcomeLabel, shortRunId } from '../lib/run-presentation.js';
|
|
10
|
+
import RunEvidence from './RunEvidence.svelte';
|
|
11
|
+
|
|
12
|
+
let { snapshot, candidates, source, onselect }: {
|
|
13
|
+
snapshot: RunnableSnapshot; candidates: readonly RunnableCatalogRun[];
|
|
14
|
+
source: RunsSource; onselect: (id: string) => void;
|
|
15
|
+
} = $props();
|
|
16
|
+
const previous = $derived(previousSuccessfulRun(snapshot.run, candidates));
|
|
17
|
+
let baseline = $state.raw<RunnableSnapshot | null>(null);
|
|
18
|
+
let error = $state.raw<CapabilityError | null>(null);
|
|
19
|
+
let loading = $state(false);
|
|
20
|
+
let revision = $state(0);
|
|
21
|
+
let expanded = $state(false);
|
|
22
|
+
const inputs = $derived(baseline ? inputChanges(baseline, snapshot) : []);
|
|
23
|
+
const metrics = $derived(baseline ? metricChanges(baseline, snapshot) : []);
|
|
24
|
+
|
|
25
|
+
$effect(() => {
|
|
26
|
+
const id = previous?.id;
|
|
27
|
+
void revision;
|
|
28
|
+
baseline = null;
|
|
29
|
+
error = null;
|
|
30
|
+
expanded = false;
|
|
31
|
+
loading = !!id;
|
|
32
|
+
if (!id) return;
|
|
33
|
+
let active = true;
|
|
34
|
+
let stop: (() => Promise<void>) | undefined;
|
|
35
|
+
void settle(async () => {
|
|
36
|
+
const release = await source.watch({ id }, delivered => {
|
|
37
|
+
if (!active) return;
|
|
38
|
+
baseline = delivered.runs.find(row => row.run.id === id) ?? null;
|
|
39
|
+
loading = false;
|
|
40
|
+
if (!baseline) error = new CapabilityError('The previous run is no longer available to this viewer.', 'NOT_FOUND');
|
|
41
|
+
}, failure => {
|
|
42
|
+
if (active) { error = new CapabilityError(failure.message, 'UNAVAILABLE', { reason: failure.reason, retryable: failure.retryable }); loading = false; }
|
|
43
|
+
});
|
|
44
|
+
if (active) stop = release;
|
|
45
|
+
else await release();
|
|
46
|
+
}).then(result => {
|
|
47
|
+
if (active && !result.ok) { error = CapabilityError.from(CaughtFailureSchema.parse(result.cause)); loading = false; }
|
|
48
|
+
});
|
|
49
|
+
return () => {
|
|
50
|
+
active = false;
|
|
51
|
+
if (stop) void settle(stop).then(result => {
|
|
52
|
+
if (!result.ok) error = CapabilityError.from(CaughtFailureSchema.parse(result.cause));
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
function duration(run: RunnableCatalogRun) {
|
|
58
|
+
return run.endedAt == null ? 'In progress' : formatDuration(run.endedAt - run.startedAt);
|
|
59
|
+
}
|
|
60
|
+
</script>
|
|
61
|
+
|
|
62
|
+
<section aria-label="Compare with previous successful run" class="grid min-w-0 gap-5">
|
|
63
|
+
<div class="grid gap-1"><h3 class="text-sm font-semibold">Compared with the previous success</h3><p class="text-xs leading-relaxed text-muted-foreground">Same runnable, scope and host; finished successfully before this run began. Inputs may differ. Comparison uses runs visible in the current subscription.</p></div>
|
|
64
|
+
{#if !previous}<p class="rounded-lg border border-dashed border-border p-5 text-sm text-muted-foreground">No earlier successful run with the same identity is visible in this subscription.</p>
|
|
65
|
+
{:else}
|
|
66
|
+
<div class="flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border p-3"><div class="grid min-w-0 gap-1 text-xs"><span class="font-medium">Previous success · {formatRunTime(previous.startedAt)}</span><code class="break-all text-muted-foreground" title={previous.id}>{shortRunId(previous.id)}</code></div><Button variant="outline" size="sm" onclick={() => onselect(previous.id)}>Inspect previous run →</Button></div>
|
|
67
|
+
{#if loading}<p role="status" class="text-sm text-muted-foreground">Loading previous run evidence…</p>{/if}
|
|
68
|
+
{#if error}<Alert variant="destructive"><AlertTitle>Comparison unavailable</AlertTitle><AlertDescription>{error.message}<div class="mt-2"><Button size="sm" variant="outline" onclick={() => revision++}>Retry comparison</Button></div></AlertDescription></Alert>{/if}
|
|
69
|
+
{#if baseline && !error}
|
|
70
|
+
<div class="overflow-x-auto rounded-lg border border-border"><table class="w-full text-left text-sm"><thead class="bg-muted/30 text-xs text-muted-foreground"><tr><th scope="col" class="p-3">Measure</th><th scope="col" class="p-3">Previous success</th><th scope="col" class="p-3">This run</th></tr></thead><tbody class="divide-y divide-border"><tr><th scope="row" class="p-3 font-medium">Outcome</th><td class="p-3">{outcomeLabel(baseline.run)}</td><td class="p-3">{outcomeLabel(snapshot.run)}</td></tr><tr><th scope="row" class="p-3 font-medium">Duration</th><td class="p-3 tabular-nums">{duration(baseline.run)}</td><td class="p-3 tabular-nums">{duration(snapshot.run)}</td></tr><tr><th scope="row" class="p-3 font-medium">Artifacts</th><td class="p-3 tabular-nums">{baseline.artifacts.length}</td><td class="p-3 tabular-nums">{snapshot.artifacts.length}</td></tr><tr><th scope="row" class="p-3 font-medium">Child executions</th><td class="p-3 tabular-nums">{baseline.children.length}</td><td class="p-3 tabular-nums">{snapshot.children.length}</td></tr></tbody></table></div>
|
|
71
|
+
{#if metrics.length > 0}<section class="grid min-w-0 gap-2"><h4 class="text-sm font-medium">Latest recorded metrics</h4><p class="text-xs text-muted-foreground">Matched by name and dimensions. A delta describes change; its meaning depends on the metric.</p><div class="overflow-x-auto rounded-lg border border-border"><table class="w-full text-left text-xs"><thead class="bg-muted/30 text-muted-foreground"><tr><th class="p-3" scope="col">Metric</th><th class="p-3" scope="col">Previous</th><th class="p-3" scope="col">Current</th><th class="p-3" scope="col">Change</th></tr></thead><tbody class="divide-y divide-border">{#each metrics as metric (metric.label)}<tr><th class="max-w-64 break-words p-3 font-medium" scope="row">{metric.label}</th><td class="p-3 tabular-nums">{metric.before ?? 'Not recorded'}</td><td class="p-3 tabular-nums">{metric.after ?? 'Not recorded'}</td><td class="p-3 tabular-nums">{metric.before === undefined || metric.after === undefined ? '—' : new Intl.NumberFormat(undefined, { maximumSignificantDigits: 6, signDisplay: 'exceptZero' }).format(metric.after - metric.before)}</td></tr>{/each}</tbody></table></div></section>{/if}
|
|
72
|
+
<section class="grid min-w-0 gap-3"><h4 class="text-sm font-medium">Input changes <span class="text-muted-foreground">{inputs.length}</span></h4>{#each inputs as change (change.key)}<div class="grid min-w-0 gap-3 rounded-lg border border-border p-3"><code class="break-all text-xs font-medium">{change.key}</code><div class="grid min-w-0 gap-3 lg:grid-cols-2"><div class="grid min-w-0 gap-2"><p class="text-xs text-muted-foreground">Previous success</p><CodeViewer code={formatEvidenceValue(change.before)} language="json" minHeight="0" maxHeight="12rem" /></div><div class="grid min-w-0 gap-2"><p class="text-xs text-muted-foreground">This run</p><CodeViewer code={formatEvidenceValue(change.after)} language="json" minHeight="0" maxHeight="12rem" /></div></div></div>{:else}<p class="text-sm text-muted-foreground">The recorded inputs are identical.</p>{/each}</section>
|
|
73
|
+
<details open={expanded} ontoggle={event => expanded = event.currentTarget.open}><summary class="cursor-pointer text-sm font-medium focus-visible:outline-2 focus-visible:outline-ring">Compare complete outcome evidence</summary>{#if expanded}<div class="mt-3 grid min-w-0 gap-4"><RunEvidence title="Previous successful outcome" value={baseline.run.outcome} /><RunEvidence title="Current outcome" value={snapshot.run.outcome} /></div>{/if}</details>
|
|
74
|
+
{/if}
|
|
75
|
+
{/if}
|
|
76
|
+
</section>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RunnableCatalogRun, RunnableSnapshot } from '../../schemas/runs.ts';
|
|
2
|
+
import type { RunsSource } from '../runs.store.svelte.ts';
|
|
3
|
+
type $$ComponentProps = {
|
|
4
|
+
snapshot: RunnableSnapshot;
|
|
5
|
+
candidates: readonly RunnableCatalogRun[];
|
|
6
|
+
source: RunsSource;
|
|
7
|
+
onselect: (id: string) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const RunComparison: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
10
|
+
type RunComparison = ReturnType<typeof RunComparison>;
|
|
11
|
+
export default RunComparison;
|
|
12
|
+
//# sourceMappingURL=RunComparison.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunComparison.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/RunComparison.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKzD,KAAK,gBAAgB,GAAI;IACxB,QAAQ,EAAE,gBAAgB,CAAC;IAAC,UAAU,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACtE,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD,CAAC;AA6EH,QAAA,MAAM,aAAa,sDAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { runTreeTitle } from '../lib/run-presentation.js';
|
|
3
|
+
import type { RunnableCatalogRun } from '../../schemas/runs.js';
|
|
4
|
+
let { run, parent, compact = false }: { run: RunnableCatalogRun; parent?: RunnableCatalogRun; compact?: boolean } = $props();
|
|
5
|
+
const context = $derived(run.context);
|
|
6
|
+
const inherited = $derived(parent?.context);
|
|
7
|
+
const targetLabel = $derived(context?.target?.split(/[\\/]/).filter(Boolean).at(-1));
|
|
8
|
+
const title = $derived(runTreeTitle(run, parent));
|
|
9
|
+
const ownTarget = $derived(context?.target && context.target !== inherited?.target && context.target !== title);
|
|
10
|
+
const ownPaths = $derived(context?.paths?.join('\n') !== inherited?.paths?.join('\n')
|
|
11
|
+
? (context?.paths ?? []).filter(path => path !== title && path !== context?.target)
|
|
12
|
+
: []);
|
|
13
|
+
const contextTitle = $derived([context?.target, ...(context?.paths ?? [])].filter(Boolean).join('\n'));
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
{#if compact}
|
|
17
|
+
{#if ownTarget || ownPaths.length}
|
|
18
|
+
<span class="block truncate text-xs text-muted-foreground" title={contextTitle}>
|
|
19
|
+
{#if ownTarget}<span class="font-medium">On {targetLabel ?? context?.target}</span>{#if ownPaths.length} · {/if}{/if}
|
|
20
|
+
{#if ownPaths.length}{ownPaths[0]}{#if ownPaths.length > 1} · +{ownPaths.length - 1} {ownPaths.length === 2 ? 'path' : 'paths'}{/if}{/if}
|
|
21
|
+
</span>
|
|
22
|
+
{/if}
|
|
23
|
+
{:else}
|
|
24
|
+
<dl class="grid min-w-0 gap-3 text-sm" aria-label="Task context">
|
|
25
|
+
<div class="grid gap-1"><dt class="text-xs font-medium text-muted-foreground">What is being worked on</dt><dd class="break-words leading-relaxed">{context?.subject ?? context?.title ?? 'The owner has not recorded a task subject.'}</dd></div>
|
|
26
|
+
<div class="grid gap-1"><dt class="text-xs font-medium text-muted-foreground">Target workspace</dt><dd class="break-all font-mono text-xs leading-relaxed">{context?.target ?? 'Not recorded'}</dd></div>
|
|
27
|
+
{#if context?.paths?.length}<div><dt class="sr-only">Affected paths</dt><dd><details><summary class="cursor-pointer text-xs font-medium text-muted-foreground focus-visible:outline-2 focus-visible:outline-ring">Affected paths · {context.paths.length}{context.paths.length === 8 ? ' shown' : ''}</summary><div class="mt-2 grid gap-1">{#each context.paths as path}<code class="break-all text-xs">{path}</code>{/each}</div></details></dd></div>{/if}
|
|
28
|
+
</dl>
|
|
29
|
+
{/if}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RunnableCatalogRun } from '../../schemas/runs.ts';
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
run: RunnableCatalogRun;
|
|
4
|
+
parent?: RunnableCatalogRun;
|
|
5
|
+
compact?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const RunContext: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
8
|
+
type RunContext = ReturnType<typeof RunContext>;
|
|
9
|
+
export default RunContext;
|
|
10
|
+
//# sourceMappingURL=RunContext.svelte.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunContext.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/RunContext.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,KAAK,gBAAgB,GAAI;IAAE,GAAG,EAAE,kBAAkB,CAAC;IAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAiCtG,QAAA,MAAM,UAAU,sDAAwC,CAAC;AACzD,KAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAChD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { CapabilityError, CaughtFailureSchema } from '@vibesdotdev/kernel';
|
|
3
|
+
import { Alert, AlertTitle, AlertDescription } from '@vibesdotdev/kit/components/ui/alert';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
title: string;
|
|
7
|
+
value: unknown;
|
|
8
|
+
}
|
|
9
|
+
let { title, value }: Props = $props();
|
|
10
|
+
const code = $derived(JSON.stringify(value, null, 2));
|
|
11
|
+
const loadEditor = () => import('@vibesdotdev/kit/components/code/CodeEditorCodemirror.svelte');
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<section class="min-w-0 overflow-hidden rounded-md border border-border bg-background" aria-label={title}>
|
|
15
|
+
<header class="flex items-center justify-between gap-3 border-b border-border bg-muted/30 px-3 py-2 text-xs">
|
|
16
|
+
<span class="font-medium">{title}</span><span class="text-muted-foreground">JSON · Read only</span>
|
|
17
|
+
</header>
|
|
18
|
+
{#if code === undefined}
|
|
19
|
+
<p class="p-4 text-sm text-muted-foreground">No value was recorded.</p>
|
|
20
|
+
{:else}
|
|
21
|
+
{#await loadEditor()}
|
|
22
|
+
<p role="status" class="p-4 text-sm text-muted-foreground">Opening recorded JSON.</p>
|
|
23
|
+
{:then editor}
|
|
24
|
+
<div class="h-96 min-w-0 overflow-hidden"><editor.default {code} language="json" readOnly canCopy /></div>
|
|
25
|
+
{:catch cause}
|
|
26
|
+
{@const failure = CapabilityError.from(CaughtFailureSchema.parse(cause))}
|
|
27
|
+
<Alert variant="destructive"><AlertTitle>Recorded JSON could not be displayed</AlertTitle><AlertDescription>{failure.message} <code>{failure.code}</code></AlertDescription></Alert>
|
|
28
|
+
{/await}
|
|
29
|
+
{/if}
|
|
30
|
+
</section>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunEvidence.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/RunEvidence.svelte.ts"],"names":[],"mappings":"AAOC,UAAU,KAAK;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CACf;AA8BF,QAAA,MAAM,WAAW,2CAAwC,CAAC;AAC1D,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClD,eAAe,WAAW,CAAC"}
|