From 91a8e555ccb74dc87a69a343455608db362604fe Mon Sep 17 00:00:00 2001 From: net0well Date: Tue, 20 Oct 2026 18:43:09 -0300 Subject: [PATCH 1/5] feat(api): usedByPipelines na lista de Etapas e contrato pronto para o painel (spec 007) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - GET /stages traz usedByPipelines: trilhas com versão publicada que usam a Etapa (D-140). - Filtros de execuções e da auditoria com nomes de query em camelCase. - OpenAPI sem null nos enums e itens dos campos descritos; snapshot atualizado. Co-Authored-By: Claude Opus 5.5 --- .../Management/CatalogAdmin.cs | 4 +- .../Api/AdminEndpoints.cs | 12 ++++- .../Api/DashboardOpenApi.cs | 6 +++ .../Api/RunEndpoints.cs | 13 ++++- .../Catalog/EfCatalogAdmin.cs | 7 ++- .../Snapshots/openapi-v1.verified.json | 52 +++++++++++-------- .../CatalogAdminTests.cs | 20 +++++++ 7 files changed, 86 insertions(+), 28 deletions(-) diff --git a/src/PythonScriptRunner.Abstractions/Management/CatalogAdmin.cs b/src/PythonScriptRunner.Abstractions/Management/CatalogAdmin.cs index 43709e4..d944efa 100644 --- a/src/PythonScriptRunner.Abstractions/Management/CatalogAdmin.cs +++ b/src/PythonScriptRunner.Abstractions/Management/CatalogAdmin.cs @@ -423,7 +423,9 @@ public sealed record StageVersionDetail /// Latest published version. /// Version of the current draft. /// Last change. -public sealed record StageSummary(string Key, string Name, string? Description, int? LatestPublishedVersion, int? DraftVersion, DateTimeOffset UpdatedAt); +/// Distinct pipelines with a published version that uses any version of the stage. +public sealed record StageSummary( + string Key, string Name, string? Description, int? LatestPublishedVersion, int? DraftVersion, DateTimeOffset UpdatedAt, int UsedByPipelines); /// A pipeline step that uses a stage version. /// Pipeline key. diff --git a/src/PythonScriptRunner.Dashboard/Api/AdminEndpoints.cs b/src/PythonScriptRunner.Dashboard/Api/AdminEndpoints.cs index 3ef99a6..9d9e76f 100644 --- a/src/PythonScriptRunner.Dashboard/Api/AdminEndpoints.cs +++ b/src/PythonScriptRunner.Dashboard/Api/AdminEndpoints.cs @@ -1,6 +1,7 @@ using System.Reflection; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Options; @@ -124,6 +125,13 @@ private static FieldTypesResponse BuildFieldTypes() } } -/// Filters of GET /audit. +/// Filters of GET /audit (camelCase in the query, like the rest of the API). internal sealed record AuditListQuery( - string? Actor, string? Action, string? EntityType, string? EntityKey, DateTimeOffset? From, DateTimeOffset? To, string? Cursor, int? Limit); + [FromQuery(Name = "actor")] string? Actor, + [FromQuery(Name = "action")] string? Action, + [FromQuery(Name = "entityType")] string? EntityType, + [FromQuery(Name = "entityKey")] string? EntityKey, + [FromQuery(Name = "from")] DateTimeOffset? From, + [FromQuery(Name = "to")] DateTimeOffset? To, + [FromQuery(Name = "cursor")] string? Cursor, + [FromQuery(Name = "limit")] int? Limit); diff --git a/src/PythonScriptRunner.Dashboard/Api/DashboardOpenApi.cs b/src/PythonScriptRunner.Dashboard/Api/DashboardOpenApi.cs index b2c5612..51782b5 100644 --- a/src/PythonScriptRunner.Dashboard/Api/DashboardOpenApi.cs +++ b/src/PythonScriptRunner.Dashboard/Api/DashboardOpenApi.cs @@ -47,6 +47,12 @@ public static void Configure(OpenApiOptions options) { DescribeBindingSource(schema); } + else if ((Nullable.GetUnderlyingType(type) ?? type).IsEnum && schema.Enum is { Count: > 0 } values) + { + // An optional enum query parameter (e.g. ?status=) makes the generator add null to the shared component; + // the values in responses are never null. + schema.Enum = [.. values.Where(v => v is not null)]; + } return Task.CompletedTask; }); diff --git a/src/PythonScriptRunner.Dashboard/Api/RunEndpoints.cs b/src/PythonScriptRunner.Dashboard/Api/RunEndpoints.cs index 4938720..c2ce175 100644 --- a/src/PythonScriptRunner.Dashboard/Api/RunEndpoints.cs +++ b/src/PythonScriptRunner.Dashboard/Api/RunEndpoints.cs @@ -1,6 +1,7 @@ using System.Globalization; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; using Microsoft.EntityFrameworkCore; using PythonScriptRunner.EntityFrameworkCore; @@ -93,9 +94,17 @@ private static async Task DownloadAsync(ArtifactId id, HttpContext http } } -/// Filters of GET /runs. +/// Filters of GET /runs (camelCase in the query, like the rest of the API). internal sealed record RunListQuery( - string? PipelineKey, string? StageKey, RunKind? Kind, RunStatus? Status, RunTrigger? Trigger, DateTimeOffset? From, DateTimeOffset? To, string? Cursor, int? Limit); + [FromQuery(Name = "pipelineKey")] string? PipelineKey, + [FromQuery(Name = "stageKey")] string? StageKey, + [FromQuery(Name = "kind")] RunKind? Kind, + [FromQuery(Name = "status")] RunStatus? Status, + [FromQuery(Name = "trigger")] RunTrigger? Trigger, + [FromQuery(Name = "from")] DateTimeOffset? From, + [FromQuery(Name = "to")] DateTimeOffset? To, + [FromQuery(Name = "cursor")] string? Cursor, + [FromQuery(Name = "limit")] int? Limit); /// Computes GET /overview (D-115). internal sealed class OverviewQuery(IDbContextFactory factory, IRunManager runs, TimeProvider time) diff --git a/src/PythonScriptRunner.EntityFrameworkCore/Catalog/EfCatalogAdmin.cs b/src/PythonScriptRunner.EntityFrameworkCore/Catalog/EfCatalogAdmin.cs index 4d82324..7b9dccb 100644 --- a/src/PythonScriptRunner.EntityFrameworkCore/Catalog/EfCatalogAdmin.cs +++ b/src/PythonScriptRunner.EntityFrameworkCore/Catalog/EfCatalogAdmin.cs @@ -59,7 +59,12 @@ public async Task> ListStagesAsync(CatalogQuery query, Cancel .Select(s => new StageSummary( s.Key, s.Name, s.Description, s.LatestPublishedVersion, s.Versions.Where(v => v.Status == VersionStatus.Draft).Select(v => (int?)v.Version).FirstOrDefault(), - s.UpdatedAt)) + s.UpdatedAt, + db.PipelineSteps + .Where(step => step.StageVersion.StageId == s.Id) + .Join(db.PipelineVersions.Where(v => v.Status == VersionStatus.Published), step => step.PipelineVersionId, v => v.Id, (_, v) => v.PipelineId) + .Distinct() + .Count())) .ToListAsync(cancellationToken).ConfigureAwait(false); return new Page(items, pageNumber, pageSize, total); } diff --git a/tests/PythonScriptRunner.Dashboard.Tests/Snapshots/openapi-v1.verified.json b/tests/PythonScriptRunner.Dashboard.Tests/Snapshots/openapi-v1.verified.json index 5d5b099..ae04bcd 100644 --- a/tests/PythonScriptRunner.Dashboard.Tests/Snapshots/openapi-v1.verified.json +++ b/tests/PythonScriptRunner.Dashboard.Tests/Snapshots/openapi-v1.verified.json @@ -238,35 +238,35 @@ "operationId": "ListAudit", "parameters": [ { - "name": "Actor", + "name": "actor", "in": "query", "schema": { "type": "string" } }, { - "name": "Action", + "name": "action", "in": "query", "schema": { "type": "string" } }, { - "name": "EntityType", + "name": "entityType", "in": "query", "schema": { "type": "string" } }, { - "name": "EntityKey", + "name": "entityKey", "in": "query", "schema": { "type": "string" } }, { - "name": "From", + "name": "from", "in": "query", "schema": { "type": "string", @@ -274,7 +274,7 @@ } }, { - "name": "To", + "name": "to", "in": "query", "schema": { "type": "string", @@ -282,14 +282,14 @@ } }, { - "name": "Cursor", + "name": "cursor", "in": "query", "schema": { "type": "string" } }, { - "name": "Limit", + "name": "limit", "in": "query", "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", @@ -2002,42 +2002,42 @@ "operationId": "ListRuns", "parameters": [ { - "name": "PipelineKey", + "name": "pipelineKey", "in": "query", "schema": { "type": "string" } }, { - "name": "StageKey", + "name": "stageKey", "in": "query", "schema": { "type": "string" } }, { - "name": "Kind", + "name": "kind", "in": "query", "schema": { "$ref": "#/components/schemas/RunKind" } }, { - "name": "Status", + "name": "status", "in": "query", "schema": { "$ref": "#/components/schemas/RunStatus" } }, { - "name": "Trigger", + "name": "trigger", "in": "query", "schema": { "$ref": "#/components/schemas/RunTrigger" } }, { - "name": "From", + "name": "from", "in": "query", "schema": { "type": "string", @@ -2045,7 +2045,7 @@ } }, { - "name": "To", + "name": "to", "in": "query", "schema": { "type": "string", @@ -2053,14 +2053,14 @@ } }, { - "name": "Cursor", + "name": "cursor", "in": "query", "schema": { "type": "string" } }, { - "name": "Limit", + "name": "limit", "in": "query", "schema": { "pattern": "^-?(?:0|[1-9]\\d*)$", @@ -3114,8 +3114,7 @@ "Reader", "Executor", "Author", - "Admin", - null + "Admin" ] }, "ErrorKind": { @@ -5183,7 +5182,8 @@ "description", "latestPublishedVersion", "draftVersion", - "updatedAt" + "updatedAt", + "usedByPipelines" ], "type": "object", "properties": { @@ -5226,6 +5226,15 @@ "type": "string", "description": "Last change.", "format": "date-time" + }, + "usedByPipelines": { + "pattern": "^-?(?:0|[1-9]\\d*)$", + "type": [ + "integer", + "string" + ], + "description": "Distinct pipelines with a published version that uses any version of the stage.", + "format": "int32" } }, "description": "A stage in a list." @@ -5614,8 +5623,7 @@ "enum": [ "Draft", "Published", - "Archived", - null + "Archived" ] }, "VersionSummary": { diff --git a/tests/PythonScriptRunner.EntityFrameworkCore.Tests/CatalogAdminTests.cs b/tests/PythonScriptRunner.EntityFrameworkCore.Tests/CatalogAdminTests.cs index 877e1d2..5bcb879 100644 --- a/tests/PythonScriptRunner.EntityFrameworkCore.Tests/CatalogAdminTests.cs +++ b/tests/PythonScriptRunner.EntityFrameworkCore.Tests/CatalogAdminTests.cs @@ -162,6 +162,26 @@ public async Task ImportCreatesDraftsAndExistingKeysGetANewVersion() .Code.ShouldBe(PsrErrorCodes.ImportInvalid); } + [Fact] + public async Task StageList_CountsTheDistinctPipelinesWithAPublishedVersionThatUseTheStage() + { + await using var host = await PsrTestHost.CreateAsync(postgres, python); + await host.PublishStageAsync("eco", Echo, [Text("texto")], [Text("texto")]); + await host.PublishStageAsync("solta", Echo, [Text("texto")], [Text("texto")]); + await host.PublishPipelineAsync("usa-eco", EchoPipeline()); + await host.PublishPipelineAsync("duas-versoes", EchoPipeline()); + var second = await host.Admin.CreatePipelineDraftFromAsync("duas-versoes", 1, PsrTestHost.Author, Ct); + await host.Admin.PublishPipelineAsync("duas-versoes", second.Version, second.RowVersion, PsrTestHost.Author, Ct); + await host.PublishPipelineAsync("arquivada", EchoPipeline()); + await host.Admin.ArchivePipelineVersionAsync("arquivada", 1, PsrTestHost.Author, Ct); + var draft = await host.Admin.CreatePipelineAsync(new NewCatalogItem("so-rascunho", "Só rascunho"), PsrTestHost.Author, Ct); + await host.Admin.SavePipelineDraftAsync("so-rascunho", draft.Version, EchoPipeline(), draft.RowVersion, PsrTestHost.Author, Ct); + + var page = await host.Admin.ListStagesAsync(new CatalogQuery(), Ct); + + page.Items.Select(s => (s.Key, s.UsedByPipelines)).ShouldBe([("eco", 2), ("solta", 0)]); + } + private static PipelineDraftData EchoPipeline() => new() { Inputs = [Text("texto")], From e9196c9d0d30d704525c8a5a312b03b1e8cb6462 Mon Sep 17 00:00:00 2001 From: net0well Date: Tue, 20 Oct 2026 18:43:10 -0300 Subject: [PATCH 2/5] feat(painel): painel Vue embutido no pacote Dashboard (spec 008) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Vue 3 + Vuetify 4, Vue Flow, Monaco, Pinia, vue-router e vue-i18n (pt-BR); tipos da API gerados do snapshot OpenAPI. - Login fixo e sessão expirada, visão geral, Etapas (editor e teste pela fila), Trilhas (editor visual), execuções ao vivo, agendamentos, auditoria e administração; tempo real com polling de reserva e tema claro/escuro. - Build Release embute panel/dist no pacote (D-155); bundle inicial de 280 KB gzip. - Vitest para widgets, formulário, rascunho local, guarda de rotas, sessão, editor e catálogo i18n. Co-Authored-By: Claude Opus 5.5 --- .editorconfig | 4 + panel/.gitignore | 2 + panel/.nvmrc | 1 + panel/.prettierignore | 4 + panel/.prettierrc.json | 7 + panel/eslint.config.ts | 16 + panel/index.html | 14 + panel/package-lock.json | 5032 +++++++++++++++++ panel/package.json | 59 + panel/public/favicon.svg | 1 + panel/scripts/check-bundle.mjs | 22 + panel/scripts/generate-api.mjs | 51 + panel/src/App.vue | 51 + panel/src/api/client.ts | 156 + panel/src/api/schema.d.ts | 3766 ++++++++++++ panel/src/components/auth/LoginForm.vue | 100 + .../components/auth/SessionExpiredDialog.vue | 27 + panel/src/components/common/CatalogList.vue | 218 + panel/src/components/common/ConfirmDialog.vue | 22 + .../src/components/common/ConflictDialog.vue | 40 + panel/src/components/common/PageHeader.vue | 15 + panel/src/components/common/ProblemList.vue | 31 + panel/src/components/common/StatusChip.vue | 26 + panel/src/components/editor/CodeEditor.vue | 133 + panel/src/components/editor/DiffView.vue | 69 + panel/src/components/editor/monaco.ts | 65 + panel/src/components/editor/types.ts | 6 + panel/src/components/fields/FieldBuilder.vue | 290 + panel/src/components/fields/FieldForm.spec.ts | 43 + panel/src/components/fields/FieldForm.vue | 85 + panel/src/components/fields/FieldInput.vue | 209 + panel/src/components/fields/FieldOutput.vue | 87 + panel/src/components/fields/FileCard.vue | 38 + panel/src/components/fields/JsonTree.vue | 57 + panel/src/components/fields/values.spec.ts | 117 + panel/src/components/fields/values.ts | 379 ++ panel/src/components/flow/FlowCanvas.vue | 163 + panel/src/components/flow/IoNode.vue | 61 + panel/src/components/flow/RunFlow.vue | 25 + panel/src/components/flow/StepNode.vue | 101 + panel/src/components/flow/context.ts | 21 + panel/src/components/flow/editing.spec.ts | 93 + panel/src/components/flow/editing.ts | 257 + panel/src/components/flow/flow.css | 167 + panel/src/components/flow/model.ts | 273 + panel/src/components/layout/AppShell.vue | 104 + panel/src/components/layout/CenteredCard.vue | 18 + panel/src/composables/useApiAction.ts | 50 + panel/src/composables/useContracts.ts | 51 + panel/src/composables/useFieldTypes.ts | 59 + panel/src/composables/useLive.ts | 45 + panel/src/composables/useLocalDraft.ts | 64 + panel/src/i18n/catalog.spec.ts | 60 + panel/src/i18n/index.ts | 14 + panel/src/i18n/pt-BR.ts | 538 ++ panel/src/main.ts | 14 + panel/src/plugins/vuetify.ts | 50 + panel/src/router/guard.spec.ts | 123 + panel/src/router/index.ts | 179 + panel/src/stores/drafts.spec.ts | 54 + panel/src/stores/drafts.ts | 120 + panel/src/stores/notify.ts | 39 + panel/src/stores/realtime.ts | 193 + panel/src/stores/session.spec.ts | 80 + panel/src/stores/session.ts | 181 + panel/src/stores/theme.ts | 41 + panel/src/test/api-mock.ts | 22 + panel/src/test/setup.ts | 14 + panel/src/utils/format.ts | 188 + panel/src/views/ForbiddenView.vue | 15 + panel/src/views/LoginView.vue | 23 + panel/src/views/NoAccessView.vue | 25 + panel/src/views/NoRoleView.vue | 18 + panel/src/views/NotFoundView.vue | 14 + panel/src/views/OverviewView.vue | 124 + panel/src/views/admin/AdminView.vue | 115 + panel/src/views/audit/AuditView.vue | 132 + .../views/pipelines/PipelineDetailView.vue | 394 ++ .../views/pipelines/PipelineEditorView.vue | 1031 ++++ .../src/views/pipelines/PipelineListView.vue | 7 + .../src/views/pipelines/RunPipelineDialog.vue | 104 + panel/src/views/runs/RunDetailView.vue | 485 ++ panel/src/views/runs/RunListView.vue | 204 + panel/src/views/schedules/ScheduleForm.vue | 189 + .../src/views/schedules/ScheduleListView.vue | 28 + panel/src/views/schedules/ScheduleTable.vue | 167 + panel/src/views/stages/StageDetailView.vue | 326 ++ panel/src/views/stages/StageEditorView.vue | 497 ++ panel/src/views/stages/StageListView.vue | 7 + panel/src/views/stages/StageTestPanel.vue | 152 + panel/tsconfig.json | 22 + panel/vite.config.ts | 45 + .../PythonScriptRunner.Dashboard.csproj | 26 +- 93 files changed, 18853 insertions(+), 2 deletions(-) create mode 100644 panel/.gitignore create mode 100644 panel/.nvmrc create mode 100644 panel/.prettierignore create mode 100644 panel/.prettierrc.json create mode 100644 panel/eslint.config.ts create mode 100644 panel/index.html create mode 100644 panel/package-lock.json create mode 100644 panel/package.json create mode 100644 panel/public/favicon.svg create mode 100644 panel/scripts/check-bundle.mjs create mode 100644 panel/scripts/generate-api.mjs create mode 100644 panel/src/App.vue create mode 100644 panel/src/api/client.ts create mode 100644 panel/src/api/schema.d.ts create mode 100644 panel/src/components/auth/LoginForm.vue create mode 100644 panel/src/components/auth/SessionExpiredDialog.vue create mode 100644 panel/src/components/common/CatalogList.vue create mode 100644 panel/src/components/common/ConfirmDialog.vue create mode 100644 panel/src/components/common/ConflictDialog.vue create mode 100644 panel/src/components/common/PageHeader.vue create mode 100644 panel/src/components/common/ProblemList.vue create mode 100644 panel/src/components/common/StatusChip.vue create mode 100644 panel/src/components/editor/CodeEditor.vue create mode 100644 panel/src/components/editor/DiffView.vue create mode 100644 panel/src/components/editor/monaco.ts create mode 100644 panel/src/components/editor/types.ts create mode 100644 panel/src/components/fields/FieldBuilder.vue create mode 100644 panel/src/components/fields/FieldForm.spec.ts create mode 100644 panel/src/components/fields/FieldForm.vue create mode 100644 panel/src/components/fields/FieldInput.vue create mode 100644 panel/src/components/fields/FieldOutput.vue create mode 100644 panel/src/components/fields/FileCard.vue create mode 100644 panel/src/components/fields/JsonTree.vue create mode 100644 panel/src/components/fields/values.spec.ts create mode 100644 panel/src/components/fields/values.ts create mode 100644 panel/src/components/flow/FlowCanvas.vue create mode 100644 panel/src/components/flow/IoNode.vue create mode 100644 panel/src/components/flow/RunFlow.vue create mode 100644 panel/src/components/flow/StepNode.vue create mode 100644 panel/src/components/flow/context.ts create mode 100644 panel/src/components/flow/editing.spec.ts create mode 100644 panel/src/components/flow/editing.ts create mode 100644 panel/src/components/flow/flow.css create mode 100644 panel/src/components/flow/model.ts create mode 100644 panel/src/components/layout/AppShell.vue create mode 100644 panel/src/components/layout/CenteredCard.vue create mode 100644 panel/src/composables/useApiAction.ts create mode 100644 panel/src/composables/useContracts.ts create mode 100644 panel/src/composables/useFieldTypes.ts create mode 100644 panel/src/composables/useLive.ts create mode 100644 panel/src/composables/useLocalDraft.ts create mode 100644 panel/src/i18n/catalog.spec.ts create mode 100644 panel/src/i18n/index.ts create mode 100644 panel/src/i18n/pt-BR.ts create mode 100644 panel/src/main.ts create mode 100644 panel/src/plugins/vuetify.ts create mode 100644 panel/src/router/guard.spec.ts create mode 100644 panel/src/router/index.ts create mode 100644 panel/src/stores/drafts.spec.ts create mode 100644 panel/src/stores/drafts.ts create mode 100644 panel/src/stores/notify.ts create mode 100644 panel/src/stores/realtime.ts create mode 100644 panel/src/stores/session.spec.ts create mode 100644 panel/src/stores/session.ts create mode 100644 panel/src/stores/theme.ts create mode 100644 panel/src/test/api-mock.ts create mode 100644 panel/src/test/setup.ts create mode 100644 panel/src/utils/format.ts create mode 100644 panel/src/views/ForbiddenView.vue create mode 100644 panel/src/views/LoginView.vue create mode 100644 panel/src/views/NoAccessView.vue create mode 100644 panel/src/views/NoRoleView.vue create mode 100644 panel/src/views/NotFoundView.vue create mode 100644 panel/src/views/OverviewView.vue create mode 100644 panel/src/views/admin/AdminView.vue create mode 100644 panel/src/views/audit/AuditView.vue create mode 100644 panel/src/views/pipelines/PipelineDetailView.vue create mode 100644 panel/src/views/pipelines/PipelineEditorView.vue create mode 100644 panel/src/views/pipelines/PipelineListView.vue create mode 100644 panel/src/views/pipelines/RunPipelineDialog.vue create mode 100644 panel/src/views/runs/RunDetailView.vue create mode 100644 panel/src/views/runs/RunListView.vue create mode 100644 panel/src/views/schedules/ScheduleForm.vue create mode 100644 panel/src/views/schedules/ScheduleListView.vue create mode 100644 panel/src/views/schedules/ScheduleTable.vue create mode 100644 panel/src/views/stages/StageDetailView.vue create mode 100644 panel/src/views/stages/StageEditorView.vue create mode 100644 panel/src/views/stages/StageListView.vue create mode 100644 panel/src/views/stages/StageTestPanel.vue create mode 100644 panel/tsconfig.json create mode 100644 panel/vite.config.ts diff --git a/.editorconfig b/.editorconfig index 4e15341..871b3d7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -14,6 +14,10 @@ indent_size = 2 [*.md] trim_trailing_whitespace = false +# Painel Vue (panel/): convenção do ecossistema JavaScript. +[panel/**.{ts,mts,mjs,js,vue,css,html}] +indent_size = 2 + [*.cs] # Namespaces and usings csharp_style_namespace_declarations = file_scoped:warning diff --git a/panel/.gitignore b/panel/.gitignore new file mode 100644 index 0000000..b947077 --- /dev/null +++ b/panel/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +dist/ diff --git a/panel/.nvmrc b/panel/.nvmrc new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/panel/.nvmrc @@ -0,0 +1 @@ +24 diff --git a/panel/.prettierignore b/panel/.prettierignore new file mode 100644 index 0000000..f7eb21e --- /dev/null +++ b/panel/.prettierignore @@ -0,0 +1,4 @@ +dist +node_modules +src/api/schema.d.ts +package-lock.json diff --git a/panel/.prettierrc.json b/panel/.prettierrc.json new file mode 100644 index 0000000..f834c3b --- /dev/null +++ b/panel/.prettierrc.json @@ -0,0 +1,7 @@ +{ + "semi": false, + "singleQuote": true, + "printWidth": 130, + "endOfLine": "lf", + "tabWidth": 2 +} diff --git a/panel/eslint.config.ts b/panel/eslint.config.ts new file mode 100644 index 0000000..5ca35ab --- /dev/null +++ b/panel/eslint.config.ts @@ -0,0 +1,16 @@ +import pluginVue from 'eslint-plugin-vue' +import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript' +import prettier from 'eslint-config-prettier' + +export default defineConfigWithVueTs( + { ignores: ['dist/**', 'node_modules/**', 'src/api/schema.d.ts'] }, + pluginVue.configs['flat/recommended'], + vueTsConfigs.recommended, + prettier, + { + rules: { + 'vue/multi-word-component-names': 'off', + '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], + }, + }, +) diff --git a/panel/index.html b/panel/index.html new file mode 100644 index 0000000..1e47284 --- /dev/null +++ b/panel/index.html @@ -0,0 +1,14 @@ + + + + + + + + PythonScriptRunner + + +
+ + + diff --git a/panel/package-lock.json b/panel/package-lock.json new file mode 100644 index 0000000..c2d7b52 --- /dev/null +++ b/panel/package-lock.json @@ -0,0 +1,5032 @@ +{ + "name": "psr-panel", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "psr-panel", + "version": "0.1.0", + "dependencies": { + "@dagrejs/dagre": "3.1.1", + "@fontsource/roboto": "5.3.0", + "@mdi/font": "7.4.47", + "@microsoft/signalr": "10.0.11", + "@vue-flow/background": "1.3.2", + "@vue-flow/controls": "1.1.3", + "@vue-flow/core": "1.48.2", + "@vue-flow/minimap": "1.5.4", + "@vueuse/core": "15.0.0", + "monaco-editor": "0.57.0", + "openapi-fetch": "0.17.0", + "pinia": "4.1.0", + "vue": "3.5.44", + "vue-i18n": "11.4.16", + "vue-router": "5.4.0", + "vuetify": "4.2.6" + }, + "devDependencies": { + "@types/node": "24.19.2", + "@vitejs/plugin-vue": "6.0.10", + "@vue/eslint-config-typescript": "14.9.0", + "@vue/test-utils": "2.5.1", + "eslint": "10.13.0", + "eslint-config-prettier": "10.1.8", + "eslint-plugin-vue": "10.11.1", + "happy-dom": "21.0.4", + "jiti": "2.7.0", + "openapi-typescript": "7.13.0", + "prettier": "3.9.10", + "typescript": "5.9.3", + "typescript-eslint": "8.72.0", + "vite": "8.3.4", + "vite-plugin-vuetify": "2.1.3", + "vitest": "5.0.5", + "vue-tsc": "3.3.13" + }, + "engines": { + "node": ">=24 <25" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", + "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@cacheable/memory": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz", + "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/utils": "^2.5.0", + "@keyv/bigmap": "^1.3.1", + "hookified": "^1.15.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz", + "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.5.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@dagrejs/dagre": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@dagrejs/dagre/-/dagre-3.1.1.tgz", + "integrity": "sha512-zroZB1dFOFiGgv4Xcrn1DckB1o4aOikPqD2NDQPV0WM//CXGcS6xiD0rNkqHmw6FEg4tabt4nxPLwgCWT+Vb2A==", + "license": "MIT", + "dependencies": { + "@dagrejs/graphlib": "4.0.5" + } + }, + "node_modules/@dagrejs/graphlib": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@dagrejs/graphlib/-/graphlib-4.0.5.tgz", + "integrity": "sha512-7xrBTqIts3o+PMUZX97wSc+7TUbW+/rULzGNCTP6yooNVDXbzw4Wutg/H/xOutTB/c/k0YqOAavgPh4/Zk9PFA==", + "license": "MIT" + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", + "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.23.5", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz", + "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^10.2.4" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", + "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz", + "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@fontsource/roboto": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-5.3.0.tgz", + "integrity": "sha512-BapRJOWYP+LZ21zp+wBQjfpPYKRoxc4LspJ/RLuI+HSMBD5u/X4O+ESDrSvEqDSy0rAl7GwBJ+09mdc16cVQ1Q==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@intlify/core-base": { + "version": "11.4.16", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.4.16.tgz", + "integrity": "sha512-xB8nMdMRLNx7b0zPvrHy0+N9uq9Vfi1aUxHqWgn2e2/TbjCKy8HfoFpnUXXxVP8I0p1ccd6LFSC3XsFjZ3vweA==", + "license": "MIT", + "dependencies": { + "@intlify/devtools-types": "11.4.16", + "@intlify/message-compiler": "11.4.16", + "@intlify/shared": "11.4.16" + }, + "engines": { + "node": ">= 22" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/devtools-types": { + "version": "11.4.16", + "resolved": "https://registry.npmjs.org/@intlify/devtools-types/-/devtools-types-11.4.16.tgz", + "integrity": "sha512-Bl7arICsKgwcSEQuZJun3swenN4jwSpg35lCpijFznYbW9GvkfH4wLxcI5+gz7d/EHqu66UT9CZDIdnQdgMAGg==", + "license": "MIT", + "dependencies": { + "@intlify/core-base": "11.4.16", + "@intlify/shared": "11.4.16" + }, + "engines": { + "node": ">= 22" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/message-compiler": { + "version": "11.4.16", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.4.16.tgz", + "integrity": "sha512-p4lDWmBAsi3ja+PuEfPRavYyvqkYn/Upxz7UpnyI9LgIIy8XawcGIDzN+k99Z+99etO3HmDXGeTxnJIJGgSZ+g==", + "license": "MIT", + "dependencies": { + "@intlify/shared": "11.4.16", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": ">= 22" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@intlify/shared": { + "version": "11.4.16", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.4.16.tgz", + "integrity": "sha512-xehmkbEgbbNh/V+d8r3hFup0ViaN29YTJSAfRr28C54rxjyZEO0RNQKqW7VVajj16gLdglotNjiq+sIVNtHGzw==", + "license": "MIT", + "engines": { + "node": ">= 22" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@keyv/bigmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz", + "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.4.0", + "hookified": "^1.15.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "keyv": "^5.6.0" + } + }, + "node_modules/@keyv/serialize": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz", + "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@mdi/font": { + "version": "7.4.47", + "resolved": "https://registry.npmjs.org/@mdi/font/-/font-7.4.47.tgz", + "integrity": "sha512-43MtGpd585SNzHZPcYowu/84Vz2a2g31TvPMTm9uTiCSWzaheQySUcSyUH/46fPnuPQWof2yd0pGBtzee/IQWw==", + "license": "Apache-2.0" + }, + "node_modules/@microsoft/signalr": { + "version": "10.0.11", + "resolved": "https://registry.npmjs.org/@microsoft/signalr/-/signalr-10.0.11.tgz", + "integrity": "sha512-FulOJ2EEtKvLQcswe/U7v8pzyXyk7Jua5xgWJPPwyQU/2Z9ORvKcVjyO75VvLsem+CJ1ORRexJ+7Bz1FCei2aw==", + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "eventsource": "^2.0.2", + "fetch-cookie": "^2.0.3", + "node-fetch": "^2.6.7", + "ws": "^7.5.10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@one-ini/wasm": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.2.1.tgz", + "integrity": "sha512-TUqERXGNTifZ9y2g3wPxQrw3HpHv/02DsW3D90T9x0hhonrL1ZqpSmNrU2XkoIq0fP1N6gZfVQzy2Fw1ZvGBNg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@oxc-project/types": { + "version": "0.154.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.154.0.tgz", + "integrity": "sha512-KYOUGQFlLWR+s4QMV2Q9ko38TZm7EdO87Qm7rvZLqk/webse/cDjtyxKhg/47l0byCbs/k46LT8qc4PKjAikzA==", + "devOptional": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@redocly/ajv": { + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/@redocly/ajv/-/ajv-8.11.2.tgz", + "integrity": "sha512-io1JpnwtIcvojV7QKDUSIuMN/ikdOUd1ReEnUnMKGfDVridQZ31J0MmIuqwuRjWDZfmvr+Q0MqCcfHM2gTivOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js-replace": "^1.0.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@redocly/ajv/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/@redocly/config": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.22.0.tgz", + "integrity": "sha512-gAy93Ddo01Z3bHuVdPWfCwzgfaYgMdaZPcfL7JZ7hWJoK9V0lXDbigTWkhiPFAaLWzbOJ+kbUQG1+XwIm0KRGQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@redocly/openapi-core": { + "version": "1.34.21", + "resolved": "https://registry.npmjs.org/@redocly/openapi-core/-/openapi-core-1.34.21.tgz", + "integrity": "sha512-yXMiBFYJbP5JOaxPzx2tJhK+v8h2Wu2uhad1Ro6GzVT8E3F4GcQ7sbLPJ9w4zvGjfxroD0bIh5B0pDtnLV/qUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@redocly/ajv": "8.11.2", + "@redocly/config": "0.22.0", + "colorette": "1.4.0", + "https-proxy-agent": "7.0.6", + "js-levenshtein": "1.1.6", + "js-yaml": "4.3.2", + "minimatch": "5.1.9", + "pluralize": "8.0.0", + "yaml-ast-parser": "0.0.43" + }, + "engines": { + "node": ">=18.17.0", + "npm": ">=9.5.0" + } + }, + "node_modules/@redocly/openapi-core/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@redocly/openapi-core/node_modules/brace-expansion": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@redocly/openapi-core/node_modules/minimatch": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", + "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.14.tgz", + "integrity": "sha512-aWR+XKH9+rW7m5fWq/5360J3mHycrx/o6xZM2DQFdJnTMdyP7/WzxPjhtLbVWdKo2y612/4U1bWqb3HQhiF7vg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.14.tgz", + "integrity": "sha512-QiVxHofl6A8lQU7WAtOUY4QMVZXohxwz7WJJoeh8NBEUyKfIkMRKhYyq8az/1RypNiIXzNTtiS6KwHz0erxYRQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.14.tgz", + "integrity": "sha512-lTQOzHuBIooh3jIr5XINQkjPGEuGy+Dsy0meXDr6Sjty0b99kYgGh4uBC/8mJX1T0kC8d6S0aPP1Y+bHkh6aBw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.14.tgz", + "integrity": "sha512-hyMKEGatjmBYCs/Q4sbIcL/GqpFEqsX3wc+HYVQ/85A4rxc1o7rPm4DUI4GV4k/h0ITddwFSGpqQunI14GXjTA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.14.tgz", + "integrity": "sha512-u371GbXoVXrEgP20PwzoGNOdAOqAMhzo19JzzY+V4YmmnC+DTOoqdbMu+O+54emM59Mik/UdrtWgcuEDKWRPKA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.14.tgz", + "integrity": "sha512-BqwKsdZQf6EqVWr8fv2MrDYzAvOZ7+NYFSJESRGs87fkseEhs0TU9TXgRJTkZoRRkxTizyEg1LKUXfU3/78uqg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.14.tgz", + "integrity": "sha512-SD9kY8M009x/7s57Z1dgUVlP5+uYBgKQK0Tkr1WIWngrtUJmRCW1RJFMY7QDla2khXhmg2i5Io7MUjcmZNZ/KQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.14.tgz", + "integrity": "sha512-BJ2CL19M6uuWesMgnqJzgxoI+N+eV7b0A9O9vLV42y+gitC41fNa8KElau1tHVzuLWX5GzEuxMPhAO0tQXQMkg==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.14.tgz", + "integrity": "sha512-4+Kl8daPV8NDHaD7mfCcc1pRM+Qg7ab8DyMm5FG5WoZgv4h2i3KFN1CybYBNbQqmuYm7ftJLvmMI1eHYJ22S/Q==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.14.tgz", + "integrity": "sha512-V/h8ePq1fKDrmtFMz6xcCN3DKvuvMRrwwD1q0PkBeeo4DpK64biaKvqWGVxqCeYKqeRk7gE7/iKPxLCn08O97A==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.14.tgz", + "integrity": "sha512-WxalXzgrLVpKC93xfpaJ3gCXUWzeCr+FRCbDVD2mUAy4L6Vo3lNVz0epUEUpxPWJkLNYUwM4OSIikv36OJ9mLg==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.14.tgz", + "integrity": "sha512-3G3tnAmTpdk9jO3GQtyHXqeFD2SlecfTws/Y3M2mmj9nMBwwuLT4kur8sZKeu7ENUHSpVO3cIsm5A52LEWWwlg==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.14.tgz", + "integrity": "sha512-qyr5XiNGxm2ytx17vvtcJ9nXn6v1gENETi503bJx3OGwZ1tSonj7BosxbMa/xeAfSl5iS9X6KjEWYXLu6v1L7Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.14.tgz", + "integrity": "sha512-oA4o5o0S2yB199YyYXDzKUv1Z56Rc+mgOjwm7Z/vJ9Z8igiDPYvoOuDyo6g7AK/ZaF09nPhDKVnGBcYHO11GXA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.14.tgz", + "integrity": "sha512-9mE94bf2GZUaR/fUSXCMpBoWkctu421Mi0ORpm4zqfbkjKep7RxzPFa5etcGs5h+2KApoWBOA/hAJa/7saGgEQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/@types/chai": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", + "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/deep-eql": "*", + "assertion-error": "^2.0.1" + } + }, + "node_modules/@types/deep-eql": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", + "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.19.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "undici-types": ">=7.24.0 <7.24.7" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "license": "MIT", + "optional": true + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==", + "license": "MIT" + }, + "node_modules/@types/whatwg-mimetype": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-mimetype/-/whatwg-mimetype-3.0.2.tgz", + "integrity": "sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/ws": { + "version": "8.18.2", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.2.tgz", + "integrity": "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.0.tgz", + "integrity": "sha512-aysKgysPX9XOv/dk95UkvUDe++Q3n3dJPG9CEWT3RUccxfkPJ+Qn6nhKPDhZXU6Ofo9kgwGWwKyQCnZIXTgngg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.72.0", + "@typescript-eslint/type-utils": "8.72.0", + "@typescript-eslint/utils": "8.72.0", + "@typescript-eslint/visitor-keys": "8.72.0", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.72.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.13", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.13.tgz", + "integrity": "sha512-2E8Q6rh+1RRSq/YdaGsNfXsEZy9FVqv6BSSrkmZJP7BnaoPnRfKL+YaofPvP+5rzdk144qSm6i4+hvPgUcbV4Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.72.0.tgz", + "integrity": "sha512-0O+x3ynciD6zuXb1CKSu165haQV6ey53DKhHHUnujP7U+XlltJG+/keT0Xhd1HXCze+IHf7Tvt39ovyepX/LNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.72.0", + "@typescript-eslint/types": "8.72.0", + "@typescript-eslint/typescript-estree": "8.72.0", + "@typescript-eslint/visitor-keys": "8.72.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.0.tgz", + "integrity": "sha512-bzHngBbmIgzj6TsTjVUCntGx6FFLgE7mPjpO0PzHycOaZHXqS43XnrkFIHRS16LLr/xO6FHSXG3GJFo/F4bSBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.72.0", + "@typescript-eslint/types": "^8.72.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.0.tgz", + "integrity": "sha512-JewPyJOYcXBSAS7PIgufscHOwZqhTGyBRiQJhhuDln66tMchxvvt7nJ90JKKIoOelmdHA3kAQbm9cEUHc4JSEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.72.0", + "@typescript-eslint/visitor-keys": "8.72.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.0.tgz", + "integrity": "sha512-0vbxCf7xLVPSjcOdm6eQbgViH8EDJ8xnl1laLT9yoqSz2YmcSfSg5Vdl0JUvZf6rcuJ0ZivJIuMD4edTg8obaA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.72.0.tgz", + "integrity": "sha512-gEXxmmbSTSOVTC37IYYvremOM31v+UN2W772bJxmVYPhAOPSUxtacyb7wkm1EhkYKU6KzFJsdU44DCV4to0LWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.72.0", + "@typescript-eslint/typescript-estree": "8.72.0", + "@typescript-eslint/utils": "8.72.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.0.tgz", + "integrity": "sha512-Adfoy59kxNEjT5E5fnyrp7GpHYuWs8ONbdohu4ez6IU46qDq8LltG90tLmkucZB2uhYL8mqBjtXqGd8yhfjXqQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.0.tgz", + "integrity": "sha512-gwLfFgWcw15tN2KXDCJvxEOQjPn+P3j/n3eSqkZ5sX4VpW9Cosodr+tWwBZRvJT3TcKx6HnPRGZMCNAiP1Xhug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.72.0", + "@typescript-eslint/tsconfig-utils": "8.72.0", + "@typescript-eslint/types": "8.72.0", + "@typescript-eslint/visitor-keys": "8.72.0", + "debug": "^4.4.3", + "minimatch": "^10.2.2", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.0.tgz", + "integrity": "sha512-0up3oArJZBYnzOaEXKo8DmI43QvMZyPoFEt9LWzRJcyl/RcJjfKKPebknN1VbTgXBf3M/KggUh5uUMdURLnseg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.72.0", + "@typescript-eslint/types": "8.72.0", + "@typescript-eslint/typescript-estree": "8.72.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.0.tgz", + "integrity": "sha512-E2mroviasaWecDzTGiGMtuEguuLVOeRggnrIn93CJuxYJzQBHbyymlT08aVQydbBal5538o+JkBKXh2sRuCyIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.72.0", + "eslint-visitor-keys": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@vitejs/plugin-vue": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.10.tgz", + "integrity": "sha512-b80aUQh3n+qEzzZm5oQp3rT2QImeCx58K6eFl/RkJ3d65KW0kTuv5lNsLRVAjbW9YRUpo/wzmvzMgV34bTAItA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "vue": "^3.2.25 || ^3.6.0-rc.10" + } + }, + "node_modules/@vitest/mocker": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.5.tgz", + "integrity": "sha512-xLL3lkDegJZw+MGoGaCCsFayDZthGgpAtr3Vziyfc4p7xH89K7KRPcRBBh/kEYm0Aqkt5DtTmkYpBtRV/FrHZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.31", + "@vitest/spy": "5.0.5", + "estree-walker": "^3.0.3", + "magic-string": "^1.4.3" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "msw": "^2.4.9 || ^3.0.0", + "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "msw": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/@vitest/mocker/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/@vitest/mocker/node_modules/magic-string": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.3.tgz", + "integrity": "sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/@vitest/spy": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.5.tgz", + "integrity": "sha512-lwJRExuH417257Q5wv9QYugN9IMJkoxcrKrYxGPQkBzl7wlNpTUxD/5yNX4ESKVUIShKPgkGchYPFMWOOk0wzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.28.tgz", + "integrity": "sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.28" + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.28.tgz", + "integrity": "sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.28", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.28.tgz", + "integrity": "sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.28", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue-flow/background": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@vue-flow/background/-/background-1.3.2.tgz", + "integrity": "sha512-eJPhDcLj1wEo45bBoqTXw1uhl0yK2RaQGnEINqvvBsAFKh/camHJd5NPmOdS1w+M9lggc9igUewxaEd3iCQX2w==", + "license": "MIT", + "peerDependencies": { + "@vue-flow/core": "^1.23.0", + "vue": "^3.3.0" + } + }, + "node_modules/@vue-flow/controls": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@vue-flow/controls/-/controls-1.1.3.tgz", + "integrity": "sha512-XCf+G+jCvaWURdFlZmOjifZGw3XMhN5hHlfMGkWh9xot+9nH9gdTZtn+ldIJKtarg3B21iyHU8JjKDhYcB6JMw==", + "license": "MIT", + "peerDependencies": { + "@vue-flow/core": "^1.23.0", + "vue": "^3.3.0" + } + }, + "node_modules/@vue-flow/core": { + "version": "1.48.2", + "resolved": "https://registry.npmjs.org/@vue-flow/core/-/core-1.48.2.tgz", + "integrity": "sha512-raxhgKWE+G/mcEvXJjGFUDYW9rAI3GOtiHR3ZkNpwBWuIaCC1EYiBmKGwJOoNzVFgwO7COgErnK7i08i287AFA==", + "license": "MIT", + "dependencies": { + "@vueuse/core": "^10.5.0", + "d3-drag": "^3.0.0", + "d3-interpolate": "^3.0.1", + "d3-selection": "^3.0.0", + "d3-zoom": "^3.0.0" + }, + "peerDependencies": { + "vue": "^3.3.0" + } + }, + "node_modules/@vue-flow/core/node_modules/@types/web-bluetooth": { + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", + "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==", + "license": "MIT" + }, + "node_modules/@vue-flow/core/node_modules/@vueuse/core": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-10.11.1.tgz", + "integrity": "sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.20", + "@vueuse/metadata": "10.11.1", + "@vueuse/shared": "10.11.1", + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vue-flow/core/node_modules/@vueuse/core/node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@vue-flow/core/node_modules/@vueuse/metadata": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-10.11.1.tgz", + "integrity": "sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vue-flow/core/node_modules/@vueuse/shared": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-10.11.1.tgz", + "integrity": "sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==", + "license": "MIT", + "dependencies": { + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vue-flow/core/node_modules/@vueuse/shared/node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/@vue-flow/minimap": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/@vue-flow/minimap/-/minimap-1.5.4.tgz", + "integrity": "sha512-l4C+XTAXnRxsRpUdN7cAVFBennC1sVRzq4bDSpVK+ag7tdMczAnhFYGgbLkUw3v3sY6gokyWwMl8CDonp8eB2g==", + "license": "MIT", + "dependencies": { + "d3-selection": "^3.0.0", + "d3-zoom": "^3.0.0" + }, + "peerDependencies": { + "@vue-flow/core": "^1.23.0", + "vue": "^3.3.0" + } + }, + "node_modules/@vue-macros/common": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@vue-macros/common/-/common-3.1.4.tgz", + "integrity": "sha512-/5Fv+6DgIcM9ajY05ZmKBv+LMX1M9A0X+IUwDRVdt67ciw8OV9bvG2r34p3RiEadlsQybjhKPRKNXDC8Bp23cw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-sfc": "^3.5.22", + "ast-kit": "^2.1.2", + "local-pkg": "^1.1.2", + "magic-string-ast": "^1.0.2", + "unplugin-utils": "^0.3.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/vue-macros" + }, + "peerDependencies": { + "vue": "^2.7.0 || ^3.2.25" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.44.tgz", + "integrity": "sha512-k34nCytbK8PQ1gR2mGROYOw6Pnv/mumqIdrZ3x2tbyXZDWm7ViKGLTfdB+DRrWqEQsLgGJvn0WN9jBif5zCTLQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.9", + "@vue/shared": "3.5.44", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.2" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.44.tgz", + "integrity": "sha512-W5AoBFWdw1lQAKiHowkfgFKFab82oSRT6sGsPfw/q1GRjsy/ZJFLHGhJyBRIFN9APLTUduDH9U2JAiPOIyKuYg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.44", + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.44.tgz", + "integrity": "sha512-dzHmQ4jXTpdr5FjIQUeykVakN/uzqFbUo9/C5ikBFg3a3PeM6uRxeczx1ZbXBML0/zJstEh3ygYipzR5Z7b2Pw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.9", + "@vue/compiler-core": "3.5.44", + "@vue/compiler-dom": "3.5.44", + "@vue/compiler-ssr": "3.5.44", + "@vue/shared": "3.5.44", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.29", + "source-map-js": "^1.2.2" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.44.tgz", + "integrity": "sha512-xr5gb1JVHlfXJwSlRz1FeP6uxoazdzHuMTVLE7up+4Vrqxk219CvxLPxD9NXBt47yvZW7+p4DXfyp4O1fkByIA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.44", + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/devtools-api": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-8.2.1.tgz", + "integrity": "sha512-6u4vXBlIBAC1wMplIZgpyPn7uh/s4Bf6F5bMzvLv+EdJ0aHs/+4B7Ygv864EStQSjRbsRzTko/kUG1A1IejQ3A==", + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^8.2.1" + } + }, + "node_modules/@vue/devtools-kit": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.2.1.tgz", + "integrity": "sha512-FIGIuq3AWReEpbAHY/cRGeHDfI0qOb8OCQ3YjbEAX04uaxIDbGc9rhkbVcG7rnfHPXE3RsU5KrWOu9V/okd8AQ==", + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^8.2.1", + "birpc": "^2.6.1", + "hookable": "^5.5.3", + "perfect-debounce": "^2.0.0" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.2.1.tgz", + "integrity": "sha512-Fkac7lUdGReh6pVOi3AYPRGe82LQqRmAfThW7RRligOAP0ZA/Z1z9XLHDM9dv34pV2HRc79DK8uKPeG2fLnA/g==", + "license": "MIT" + }, + "node_modules/@vue/eslint-config-typescript": { + "version": "14.9.0", + "resolved": "https://registry.npmjs.org/@vue/eslint-config-typescript/-/eslint-config-typescript-14.9.0.tgz", + "integrity": "sha512-E3j9hDlfVf10F30MRcLTPY2IIhWIx1nsvkVukk14kTcuA+oBVot9zsP1hzsO+PAMDxV3Fd9FimBJtUBNBL5KFA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "^8.60.0", + "fast-glob": "^3.3.3", + "typescript-eslint": "^8.60.0", + "vue-eslint-parser": "^10.4.0" + }, + "bin": { + "vue-eslint-config-typescript": "dist/bin.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "eslint": "^9.10.0 || ^10.0.0", + "eslint-plugin-vue": "^9.28.0 || ^10.0.0", + "typescript": ">=4.8.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue/language-core": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.3.13.tgz", + "integrity": "sha512-axA0Xemn5LuUKuKWob0/kVq7xQ2mJJM6VqA9Exvt35nM9yRC31goWVve/G/Zb2ZCLsXC8FHYjjfXlnshknSCew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.28", + "@vue/compiler-dom": "^3.5.0", + "@vue/shared": "^3.5.0", + "alien-signals": "^3.2.1", + "muggle-string": "^0.4.1", + "path-browserify": "^1.0.1", + "picomatch": "^4.0.4" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.44.tgz", + "integrity": "sha512-u+QJdKeBBEADkPdevsL+6E12QlYVfBD8Zcw5qjDQKtamI6l14KyqazJMobhCKelhWN5zpyKUiEDoTyHE93cqWw==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.44.tgz", + "integrity": "sha512-uEa/ndwjhrrhnOfb2p+sZy6zeoamJOISqaLSJGk/8R6nABT1ZldpzcJoPzKj+zHVomVBPcmQYyC2r4LtvDV6CQ==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.44", + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.44.tgz", + "integrity": "sha512-3fc4ARcXVhVBaJ3ujWiNZJARD6pkyRcwG+ZYhMzjKtKUp7MAY0HLwr7r3Smep3Li6ZaWT6ewdmx8XqdaD5oNZg==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.44", + "@vue/runtime-core": "3.5.44", + "@vue/shared": "3.5.44", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.44.tgz", + "integrity": "sha512-R4S1UoH4h5Frrauv8Z5XE5TxV9oBiUSgWIC4TyVK1FK+RocRnOLwFA5Xcmo2011RlgJp+AbZCnw6afrhlgRuUQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.44", + "@vue/runtime-dom": "3.5.44", + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.44.tgz", + "integrity": "sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==", + "license": "MIT" + }, + "node_modules/@vue/test-utils": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/@vue/test-utils/-/test-utils-2.5.1.tgz", + "integrity": "sha512-V/4a99odJ7hapr0bRt35XxljGk8hefq31gSOnlKTcEq2fUeoj2qb+FcpJYfQu4qfYhW9Ug+O2+CZ3QmZ7gXDzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-beautify": "^2.0.0", + "vue-component-type-helpers": "^3.0.0" + }, + "peerDependencies": { + "@vue/compiler-dom": "3.x", + "@vue/server-renderer": "3.x", + "vue": "3.x" + }, + "peerDependenciesMeta": { + "@vue/server-renderer": { + "optional": true + } + } + }, + "node_modules/@vuetify/loader-shared": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@vuetify/loader-shared/-/loader-shared-2.1.2.tgz", + "integrity": "sha512-X+1jBLmXHkpQEnC0vyOb4rtX2QSkBiFhaFXz8yhQqN2A4vQ6k2nChxN4Ol7VAY5KoqMdFoRMnmNdp/1qYXDQig==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "upath": "^2.0.1" + }, + "peerDependencies": { + "vue": "^3.0.0", + "vuetify": ">=3" + } + }, + "node_modules/@vuetify/v0": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@vuetify/v0/-/v0-1.3.0.tgz", + "integrity": "sha512-Tvknc64ciwaOdKzifg3maMOiczbEenWxYINoZIotfKQ8VWBs/yeHbvHffW4w1j+xYnNyYi0S9LK5UCzyQrYg9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/johnleider" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/vuetify" + } + ], + "license": "MIT", + "peerDependencies": { + "@adobe/leonardo-contrast-colors": ">=1.0.0", + "@ant-design/colors": ">=7.0.0", + "@flagsmith/flagsmith": ">=11.0.0", + "@floating-ui/dom": ">=1.8.0", + "@js-temporal/polyfill": ">=0.5.0", + "@material/material-color-utilities": ">=0.3.0", + "@vue/devtools-api": ">=7.0.0", + "launchdarkly-js-client-sdk": "^3.0.0", + "posthog-js": "^1.0.0", + "vue": ">=3.5.0 || >=3.6.0-0", + "vue-i18n": ">=10.0.0" + }, + "peerDependenciesMeta": { + "@adobe/leonardo-contrast-colors": { + "optional": true + }, + "@ant-design/colors": { + "optional": true + }, + "@flagsmith/flagsmith": { + "optional": true + }, + "@floating-ui/dom": { + "optional": true + }, + "@js-temporal/polyfill": { + "optional": true + }, + "@material/material-color-utilities": { + "optional": true + }, + "@vue/devtools-api": { + "optional": true + }, + "launchdarkly-js-client-sdk": { + "optional": true + }, + "posthog-js": { + "optional": true + }, + "vue-i18n": { + "optional": true + } + } + }, + "node_modules/@vueuse/core": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-15.0.0.tgz", + "integrity": "sha512-Zv67h5mrk7YHDJsRObx+DXaCBz6RKBUpxqLesJ+3xZNPG6yuQs7ja7kg3veFrrouYLWAqydQ7CwGEbLVxB43Ng==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "15.0.0", + "@vueuse/shared": "15.0.0" + }, + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/@vueuse/metadata": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-15.0.0.tgz", + "integrity": "sha512-sfWE5LADAKJ0KnjtGliMdSN8Ij/L7uP6rXIZlgPloAI4zvvefbw6H5Lt7KJA6RqQOYgVqWF5Guj50HHMIzygBg==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-15.0.0.tgz", + "integrity": "sha512-vbNXhGrbV53xPOMSyOzMHQRvhMgZf7oNDw2RChUetVxwTIEkInQ1joZ9JbT0G3z2n2AJNjvmCWeM9ySYrnvogA==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/abbrev": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-5.0.0.tgz", + "integrity": "sha512-/XrFJgzQQQHpti1raDJC6m4ws6aNktmjBlhk8Fdlk7LwCEuDoieEJJY9OFHjfiFJFFRM2tK+Ky/IsfbbmlMu1w==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" + } + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/acorn": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/alien-signals": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-3.2.1.tgz", + "integrity": "sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==", + "dev": true, + "license": "MIT" + }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/assertion-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", + "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/ast-kit": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-2.2.0.tgz", + "integrity": "sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "pathe": "^2.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/ast-walker-scope/-/ast-walker-scope-0.10.0.tgz", + "integrity": "sha512-KzvoxDfXNz2Gm8KYLh47K3qcY3Zza3WKOuh2xoqa7LBu6MDKWAZLovJtU9DuAd/Er+rhQHCRn619lHS5U+qmhw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^8.0.0", + "@babel/types": "^8.0.0", + "ast-kit": "^3.0.0" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope/node_modules/@babel/helper-string-parser": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.6.tgz", + "integrity": "sha512-+6HYEBnsDRZHJtUTAEfMQd0zMDqdFHS7C+5vAsEZqBUr3vEMWOWlHJ0Jz1gS8jJIlCvLsuA6ivmeoqzH936YcA==", + "license": "MIT", + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/ast-walker-scope/node_modules/@babel/helper-validator-identifier": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.6.tgz", + "integrity": "sha512-HYx0YmuchRxRSpnjvcNffnPS8DCauKNmnumIuHG3jnQAVewRA7kfJGwF13ayEpSZs7s4R/oBH4eppuXcAQd5JQ==", + "license": "MIT", + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/ast-walker-scope/node_modules/@babel/parser": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.0.7.tgz", + "integrity": "sha512-UkDwEbPO1px2JQSrdh4qIgaH1JgG7GO/pFeJkpxhDxIETkT/QvGpnigXIw75ViHYPtIgKITmVUJqLjiO+JuWjA==", + "license": "MIT", + "dependencies": { + "@babel/types": "^8.0.6" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/ast-walker-scope/node_modules/@babel/types": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-8.0.6.tgz", + "integrity": "sha512-c+xgSWboV2pdwXP67BUWDVRHi2BO5Q3KwxyFVs7taVTY+fsK47/L51ZXQoV9rozHJDNHvJ4v4WEsI/IlxV2l2A==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^8.0.6", + "@babel/helper-validator-identifier": "^8.0.6" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/ast-walker-scope/node_modules/ast-kit": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-3.0.0.tgz", + "integrity": "sha512-8OG92q3R35qjC/4i6BLBMg8IB+fClWu/1PEwg2Z9Rn+BuNaiEgJzpzn+pxWOdHJWDCAwu2JP0wCDTozAM4QirQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^8.0.0", + "estree-walker": "^3.0.3", + "pathe": "^2.0.3" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/birpc": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true, + "license": "ISC" + }, + "node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer-image-size": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/buffer-image-size/-/buffer-image-size-0.6.4.tgz", + "integrity": "sha512-nEh+kZOPY1w+gcCMobZ6ETUp9WfibndnosbpwB1iJk/8Gt5ZF2bhS6+B6bPYz424KtwsR6Rflc3tCz1/ghX2dQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/cacheable": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz", + "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/memory": "^2.2.0", + "@cacheable/utils": "^2.5.0", + "hookified": "^1.15.0", + "keyv": "^5.6.0", + "qified": "^0.10.1" + } + }, + "node_modules/chai": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-6.3.0.tgz", + "integrity": "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/change-case": { + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/colorette": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz", + "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==", + "dev": true, + "license": "MIT" + }, + "node_modules/commander": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz", + "integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/confbox": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.1.tgz", + "integrity": "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==", + "license": "MIT" + }, + "node_modules/config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-dispatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-drag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-selection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", + "license": "ISC", + "dependencies": { + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" + } + }, + "node_modules/d3-zoom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "devOptional": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/dompurify": { + "version": "3.4.15", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.15.tgz", + "integrity": "sha512-EUBjM+B+lkDE41iE82DDSCfkoPGfXx8IxFxPMjNzm/Uk4xDet77rTN9wqlxlVg71kK7XGuUMv6wUxJUwwv+Xyw==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, + "node_modules/editorconfig": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-3.0.2.tgz", + "integrity": "sha512-T0ix8GhtxyKVfUFEcvdNDt3YGqlwkFHbD4/5bgFUDgFmxhI/cSRAeJ87/Sz//Cq8Eam6JX/e23RkoFO71P7aAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@one-ini/wasm": "0.2.1", + "commander": "^14.0.3", + "minimatch": "~10.2.4", + "semver": "^7.7.4" + }, + "bin": { + "editorconfig": "bin/editorconfig" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es-module-lexer": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", + "dev": true, + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.13.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.13.0.tgz", + "integrity": "sha512-UohDjD4zSzEwhf58M3O7vc/ycc8O1I7dNlhtD0WxE8Px8EHNJKtUwzBqrzeGhisRuv2ag4sAYswszCJRgKXYUg==", + "dev": true, + "license": "MIT", + "workspaces": [ + "packages/*" + ], + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.5", + "@eslint/config-helpers": "^0.7.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.3", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "11.1.5 || >11.1.6 <12", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^10.2.5", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-config-prettier": { + "version": "10.1.8", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz", + "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", + "dev": true, + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "funding": { + "url": "https://opencollective.com/eslint-config-prettier" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-plugin-vue": { + "version": "10.11.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.11.1.tgz", + "integrity": "sha512-pasVXhl7wUmIvhujoqs/m0mJ9r59QW1IR9XXYKGR0FETzSM+Hhlf4qKIYgWiDDP+9YKv4YfbwskD7LqIdVcgQw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "natural-compare": "^1.4.0", + "nth-check": "^2.1.1", + "postcss-selector-parser": "^7.1.4", + "semver": "^7.8.5", + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "peerDependencies": { + "@stylistic/eslint-plugin": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", + "@typescript-eslint/parser": "^7.0.0 || ^8.0.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "vue-eslint-parser": "^10.3.0" + }, + "peerDependenciesMeta": { + "@stylistic/eslint-plugin": { + "optional": true + }, + "@typescript-eslint/parser": { + "optional": true + } + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/eventsource": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-2.0.2.tgz", + "integrity": "sha512-IzUmBGPR3+oUG9dUeXynyNmf91/3zUSJg1lCktzKw47OXuhco54U3r9B7O4XX+Rb1Itm9OZ2b0RkTs10bICOxA==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/expect-type": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/exsolve": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.1.3.tgz", + "integrity": "sha512-kuzL9zherLQoqDeQaS55AiiIg1kb4KYXaSusTtgZTPlvKP2gGCI82LNmBNh5RjDVUXIcmgx+/Mx7vPwRzBbhJA==", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fetch-cookie": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/fetch-cookie/-/fetch-cookie-2.2.0.tgz", + "integrity": "sha512-h9AgfjURuCgA2+2ISl8GbavpUdR+WGAM2McW/ovn4tVccegp8ZqCKWSBR8uRdM8dDNlx5WdKRWxBYUwteLDCNQ==", + "license": "Unlicense", + "dependencies": { + "set-cookie-parser": "^2.4.8", + "tough-cookie": "^4.0.0" + } + }, + "node_modules/file-entry-cache": { + "version": "11.1.5", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz", + "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^6.1.23" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "6.1.23", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz", + "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "cacheable": "^2.5.0", + "flatted": "^3.4.2", + "hookified": "^1.15.0" + } + }, + "node_modules/flatted": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/glob": { + "version": "13.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", + "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^10.2.2", + "minipass": "^7.1.3", + "path-scurry": "^2.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/happy-dom": { + "version": "21.0.4", + "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-21.0.4.tgz", + "integrity": "sha512-tFm+GaLBgo6o0awHnvHaNoraVo27qJ+2tZEtZ+cIa08hXbeitrxAJajLI05hsUy/2/YTKcUjQYzHe5mCcraLBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": ">=20.0.0", + "@types/whatwg-mimetype": "^3.0.2", + "@types/ws": "^8.18.1", + "buffer-image-size": "^0.6.4", + "entities": "^7.0.1", + "whatwg-mimetype": "^3.0.0", + "ws": "^8.21.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/happy-dom/node_modules/ws": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz", + "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/hashery": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz", + "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^1.15.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", + "license": "MIT" + }, + "node_modules/hookified": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz", + "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/index-to-position": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/index-to-position/-/index-to-position-1.2.0.tgz", + "integrity": "sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true, + "license": "ISC" + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "devOptional": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/js-beautify": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-2.0.3.tgz", + "integrity": "sha512-cyFbh3tkPhknnTD/0bLf0T0yy2ZIbqL05mttzbt4y1Zfr7NxqXQZ62dkBLKs3oHH/lpjmDRAnciJiSUyOy8XwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "config-chain": "^1.1.13", + "editorconfig": "^3.0.2", + "glob": "^13.0.6", + "js-cookie": "^3.0.8", + "nopt": "^10.0.1" + }, + "bin": { + "css-beautify": "js/bin/css-beautify.js", + "html-beautify": "js/bin/html-beautify.js", + "js-beautify": "js/bin/js-beautify.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/js-cookie": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.8.tgz", + "integrity": "sha512-yeJd4aNAdYZQjaon2bpD/Gb0B/omw7HQOsynXXcOiWVCacbBcPlgn8S/d1X6blFSaHao7ozqtW7NZW19xpCtIw==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-levenshtein": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", + "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/keyv": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@keyv/serialize": "^1.1.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "devOptional": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/local-pkg": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.2.1.tgz", + "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==", + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-cache": { + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/magic-string-ast": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/magic-string-ast/-/magic-string-ast-1.0.3.tgz", + "integrity": "sha512-CvkkH1i81zl7mmb94DsRiFeG9V2fR2JeuK8yDgS8oiZSFa++wWLEgZ5ufEOyLHbvSbD1gTRKv9NdX69Rnvr9JA==", + "license": "MIT", + "dependencies": { + "magic-string": "^0.30.19" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/marked": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-14.0.0.tgz", + "integrity": "sha512-uIj4+faQ+MgHgwUW1l2PsPglZLOLOT1uErt06dAPtx2kjteLAkbsd/0FiYg/MGS+i7ZKLb7w2WClxHkzOOuryQ==", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mlly": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", + "license": "MIT", + "dependencies": { + "acorn": "^8.16.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.3" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/monaco-editor": { + "version": "0.57.0", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.57.0.tgz", + "integrity": "sha512-5BkI9KGoqrNvBGUe15/QlZq3OooZ8WLg1AxTpaqHRCP3HNpzPPZKE2EDz8M7c+VRmCeUw1Brp4cx/PWm3kI/5A==", + "license": "MIT", + "dependencies": { + "dompurify": "3.4.15", + "marked": "14.0.0" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/nopt": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-10.0.1.tgz", + "integrity": "sha512-df3sBr/6ax9hSGuC3CspvLlbnX8cP5L5nZwXF8cGN8l0zSWR6BvzmQ6jPUKjvo6+/xdpkNvEcucBNUdBeeV13g==", + "dev": true, + "license": "ISC", + "dependencies": { + "abbrev": "^5.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" + } + }, + "node_modules/nostics": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/nostics/-/nostics-1.3.0.tgz", + "integrity": "sha512-wzRsrJwNlFbqIRQt8aCeL2WE8USip/uuvGSOZV1D02CxX8ABTMbw8IywKjH7yWHETMXbWJI4OBpihg9rmz2Vyg==", + "license": "MIT" + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/obug": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/obug/-/obug-3.0.0.tgz", + "integrity": "sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/openapi-fetch": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/openapi-fetch/-/openapi-fetch-0.17.0.tgz", + "integrity": "sha512-PsbZR1wAPcG91eEthKhN+Zn92FMHxv+/faECIwjXdxfTODGSGegYv0sc1Olz+HYPvKOuoXfp+0pA2XVt2cI0Ig==", + "license": "MIT", + "dependencies": { + "openapi-typescript-helpers": "^0.1.0" + } + }, + "node_modules/openapi-typescript": { + "version": "7.13.0", + "resolved": "https://registry.npmjs.org/openapi-typescript/-/openapi-typescript-7.13.0.tgz", + "integrity": "sha512-EFP392gcqXS7ntPvbhBzbF8TyBA+baIYEm791Hy5YkjDYKTnk/Tn5OQeKm5BIZvJihpp8Zzr4hzx0Irde1LNGQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@redocly/openapi-core": "^1.34.6", + "ansi-colors": "^4.1.3", + "change-case": "^5.4.4", + "parse-json": "^8.3.0", + "supports-color": "^10.2.2", + "yargs-parser": "^21.1.1" + }, + "bin": { + "openapi-typescript": "bin/cli.js" + }, + "peerDependencies": { + "typescript": "^5.x" + } + }, + "node_modules/openapi-typescript-helpers": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/openapi-typescript-helpers/-/openapi-typescript-helpers-0.1.0.tgz", + "integrity": "sha512-OKTGPthhivLw/fHz6c3OPtg72vi86qaMlqbJuVJ23qOvQ+53uw1n7HdmkJFibloF7QEjDrDkzJiOJuockM/ljw==", + "license": "MIT" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse-json": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-8.3.0.tgz", + "integrity": "sha512-ybiGyvspI+fAoRQbIPRddCcSTV9/LsJbf0e/S85VLowVGzRmokfneg2kwVW/KU5rOXrPSbF1qAKPMgNTqqROQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.26.2", + "index-to-position": "^1.1.0", + "type-fest": "^4.39.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" + }, + "node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pinia": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/pinia/-/pinia-4.1.0.tgz", + "integrity": "sha512-+5/HMuVjYQfKlCD5xQ7zfXn1xUzYFEa7pd0DQK5SaMfZCaFRTHlaH/c02N1FoGOdlzSiwf5EOPgJx//1QDw6gw==", + "license": "MIT", + "dependencies": { + "nostics": "^1.2.0" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@vue/devtools-api": "^8.2.1", + "typescript": ">=5.6.0", + "vue": "^3.5.11" + }, + "peerDependenciesMeta": { + "@vue/devtools-api": { + "optional": false + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/pkg-types": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.4.0.tgz", + "integrity": "sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==", + "license": "MIT", + "dependencies": { + "confbox": "^0.3.1", + "exsolve": "^1.1.3", + "pathe": "^2.0.3" + } + }, + "node_modules/pluralize": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss": { + "version": "8.5.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.31.tgz", + "integrity": "sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.7.tgz", + "integrity": "sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.10.tgz", + "integrity": "sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==", + "dev": true, + "license": "ISC" + }, + "node_modules/psl": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", + "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/lupomontero" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qified": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz", + "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^2.1.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/qified/node_modules/hookified": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz", + "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==", + "dev": true, + "license": "MIT" + }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "license": "MIT" + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rolldown": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.14.tgz", + "integrity": "sha512-eTBTTqMR6uHKLgcUqpJP8ntzDI6V4LYA8negAMBEI7gkgVvOdrx6VsvS2Ym+83KhOPdLCHWJu0w7UQFJZhHKNw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.154.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.14", + "@rolldown/binding-android-arm64": "1.2.14", + "@rolldown/binding-darwin-arm64": "1.2.14", + "@rolldown/binding-darwin-x64": "1.2.14", + "@rolldown/binding-freebsd-x64": "1.2.14", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.14", + "@rolldown/binding-linux-arm64-gnu": "1.2.14", + "@rolldown/binding-linux-arm64-musl": "1.2.14", + "@rolldown/binding-linux-ppc64-gnu": "1.2.14", + "@rolldown/binding-linux-s390x-gnu": "1.2.14", + "@rolldown/binding-linux-x64-gnu": "1.2.14", + "@rolldown/binding-linux-x64-musl": "1.2.14", + "@rolldown/binding-openharmony-arm64": "1.2.14", + "@rolldown/binding-win32-arm64-msvc": "1.2.14", + "@rolldown/binding-win32-x64-msvc": "1.2.14" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-cookie-parser": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz", + "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==", + "license": "MIT" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/std-env": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.3.0.tgz", + "integrity": "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==", + "dev": true, + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", + "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/tinybench": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.2.tgz", + "integrity": "sha512-nIZ2N2dFpjBsg2hgitKu7mA+FvsIJuGJOwysRngmVRRmWgR/UyPjwJj8c/fT/dhm8EkHnF5EOogRf+0Z2qrimA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/tinyexec": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.4.tgz", + "integrity": "sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/ts-api-utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", + "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "devOptional": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.72.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.72.0.tgz", + "integrity": "sha512-r26Fkc8As+mZvqp7SLsMmNFyYUup/6CjK7/eHBHmhOw6GH6n6YFxHVFrG0jN1c5CMpDzelLPxvgeCOzx7BjN+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.72.0", + "@typescript-eslint/parser": "8.72.0", + "@typescript-eslint/typescript-estree": "8.72.0", + "@typescript-eslint/utils": "8.72.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/ufo": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "7.24.6", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unplugin": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.4.0.tgz", + "integrity": "sha512-9skdIFlCsPdFV7wUfZxNsFInlW+7nJmGu2gkTu0OUhF56aXGsHab9x52/QhdJ4lC7ZDPWTxbiC4ANqVlsuaW3w==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "picomatch": "^4.0.7", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@farmfe/core": "*", + "@rsbuild/core": "*", + "@rspack/core": "*", + "bun-types-no-globals": "*", + "esbuild": "*", + "rolldown": "*", + "rollup": "*", + "unloader": "*", + "vite": "*", + "webpack": "*" + }, + "peerDependenciesMeta": { + "@farmfe/core": { + "optional": true + }, + "@rsbuild/core": { + "optional": true + }, + "@rspack/core": { + "optional": true + }, + "bun-types-no-globals": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "rolldown": { + "optional": true + }, + "rollup": { + "optional": true + }, + "unloader": { + "optional": true + }, + "vite": { + "optional": true + }, + "webpack": { + "optional": true + } + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/unplugin-utils/-/unplugin-utils-0.3.2.tgz", + "integrity": "sha512-xVToRh2CTmLk2HnEG7ac4rl1MJTT3RFkpS8B++/SnB0kXvuaavD+n3m/vrzyWQOdJNSZQACnbz01pnppbwV5BA==", + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/upath": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/upath/-/upath-2.0.1.tgz", + "integrity": "sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=4", + "yarn": "*" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uri-js-replace": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uri-js-replace/-/uri-js-replace-1.0.1.tgz", + "integrity": "sha512-W+C9NWNLFOoBI2QWDp4UT9pv65r2w5Cx+3sTYFvtMdDBxkKt1syCqsUdSFAChbEe1uK5TfS04wt/nGwmaeIQ0g==", + "dev": true, + "license": "MIT" + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "license": "MIT", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.4.tgz", + "integrity": "sha512-IftLE8phJhdNRIGNEV4JCCvfNScoZQVfcXaN8TQropWGJtOHcu+iAB9pHcuGvmEb/kddw0LBe/jS8ztdC6xdiQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.29", + "rolldown": "~1.2.12", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite-plugin-vuetify": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/vite-plugin-vuetify/-/vite-plugin-vuetify-2.1.3.tgz", + "integrity": "sha512-Q4SC/4TqbNvaZIFb9YsfBqkGlYHbJJJ6uU3CnRBZqLUF3s5eCMVZAaV4GkTbehIH/bhSj42lMXztOwc71u6rVw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@vuetify/loader-shared": "^2.1.2", + "debug": "^4.3.3", + "upath": "^2.0.1" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": ">=5", + "vue": "^3.0.0", + "vuetify": ">=3" + } + }, + "node_modules/vitest": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.5.tgz", + "integrity": "sha512-cPODOMF8YnkiiYtDdHo6n4wWmBrOBBbOIYH2d33M4l3CdNn72h+qMmO6uXffUN6A5AZFXNND/d+krS9mgkXRfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/chai": "^5.2.2", + "@vitest/mocker": "5.0.5", + "chai": "^6.3.0", + "es-module-lexer": "^2.3.2", + "expect-type": "^1.4.0", + "magic-string": "^1.4.3", + "obug": "^3.0.0", + "picomatch": "^4.0.7", + "std-env": "^4.3.0", + "tinybench": "^6.2.2", + "tinyexec": "^1.3.1", + "tinyglobby": "^0.2.17", + "why-is-node-running": "3.2.1" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@opentelemetry/api": "^1.9.0", + "@types/node": "^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "5.0.5", + "@vitest/browser-preview": "5.0.5", + "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", + "@vitest/coverage-istanbul": "5.0.5", + "@vitest/coverage-v8": "5.0.5", + "@vitest/ui": "5.0.5", + "happy-dom": "*", + "jsdom": "*", + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@opentelemetry/api": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser-playwright": { + "optional": true + }, + "@vitest/browser-preview": { + "optional": true + }, + "@vitest/browser-webdriverio": { + "optional": true + }, + "@vitest/coverage-istanbul": { + "optional": true + }, + "@vitest/coverage-v8": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + }, + "vite": { + "optional": false + } + } + }, + "node_modules/vitest/node_modules/magic-string": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.3.tgz", + "integrity": "sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/vscode-uri": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.2.0.tgz", + "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/vue": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.44.tgz", + "integrity": "sha512-dvvmaOCG7lAMkJTPqPwWeGMsPS6DIsFsfZDUgBp9V6mHf9b3+/wyVwYR4Es+WV6uJC0FKRxp81Obcq0ZwUcGFQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.44", + "@vue/compiler-sfc": "3.5.44", + "@vue/runtime-dom": "3.5.44", + "@vue/server-renderer": "3.5.44", + "@vue/shared": "3.5.44" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-component-type-helpers": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.3.13.tgz", + "integrity": "sha512-02KCxSmKDhIITjKyJ4QT5csP6L0WoRborLqY/34a40+S9uvMvdNgMV0yVjO3p2Gkz3ZoPmFz/0JsGHacwJYTxw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vue-eslint-parser": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.4.1.tgz", + "integrity": "sha512-Gk6gRDj0n/fkRa3C3l0bBheoBckUq/Rs0F/TvMWIS6nzzx67amAViMe9CkNgsP2tXyQONvGiHQESHwFtZ3aYDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "eslint-scope": "^8.2.0 || ^9.0.0", + "eslint-visitor-keys": "^4.2.0 || ^5.0.0", + "espree": "^10.3.0 || ^11.0.0", + "esquery": "^1.6.0", + "semver": "^7.6.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0" + } + }, + "node_modules/vue-eslint-parser/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/vue-i18n": { + "version": "11.4.16", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.4.16.tgz", + "integrity": "sha512-Kv9tp6iTmaAeOwop7hkAo28N1IBsbSVpnxyE26b6gqc4Q2E9Ke3ZHHA3oqqwS6/cYLT1henZU4etTaLQxrK98Q==", + "license": "MIT", + "dependencies": { + "@intlify/core-base": "11.4.16", + "@intlify/devtools-types": "11.4.16", + "@intlify/shared": "11.4.16", + "@vue/devtools-api": "^6.5.0" + }, + "engines": { + "node": ">= 22" + }, + "funding": { + "url": "https://github.com/sponsors/kazupon" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/vue-i18n/node_modules/@vue/devtools-api": { + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" + }, + "node_modules/vue-router": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.4.0.tgz", + "integrity": "sha512-pFvcYcxinDHjZUlf7AzFBrT8r8Xqvv4uMHoJnjc+EqPawXQvHTkF8S4tfSmQLpriVHUGfkaKlI7Et0KRjTMTdw==", + "license": "MIT", + "dependencies": { + "@vue-macros/common": "^3.1.3", + "@vue/devtools-api": "^8.1.5", + "ast-walker-scope": "^0.10.0", + "chokidar": "^5.0.0", + "confbox": "^0.3.1", + "local-pkg": "^1.2.1", + "magic-string": "^1.4.3", + "mlly": "^1.8.2", + "muggle-string": "^0.4.1", + "nostics": "^1.3.0", + "pathe": "^2.0.3", + "picomatch": "^4.0.7", + "scule": "^1.3.0", + "tinyglobby": "^0.2.17", + "unplugin": "^3.4.0", + "unplugin-utils": "^0.3.2" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@pinia/colada": ">=0.21.2", + "@vue/compiler-sfc": "^3.5.34 || ^4.0.0", + "pinia": "^3.0.4 || ^4.0.2", + "vite": "^7.3.0 || ^8.0.0", + "vue": "^3.5.34 || ^4.0.0" + }, + "peerDependenciesMeta": { + "@pinia/colada": { + "optional": true + }, + "@vue/compiler-sfc": { + "optional": true + }, + "pinia": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/vue-router/node_modules/magic-string": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.3.tgz", + "integrity": "sha512-z12OxmaPGE0F4xlpGdjuAUckipLpQlTAuAmyGhNoD7ODpYUzvDfvtxUbjM/jwznyP178oju/KDdyi220wNJ0RQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/vue-tsc": { + "version": "3.3.13", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.3.13.tgz", + "integrity": "sha512-jE4/bXdOMSHVxEGgQCqNllJy+9N3Gx6tfSAsg0yhFK/MAN6eXqISihupnDEKSCt12VVnjN2gI3AqLYcqoh5x/A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.28", + "@vue/language-core": "3.3.13" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/vuetify": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-4.2.6.tgz", + "integrity": "sha512-W91vPxyJT7Br2wc3Iu2fUzC1YRZCTGxtrvywxnf7vGZF6Cfz2QvTvKvXmwMreie8oCHW6kA9yw7auCgQuwBUjQ==", + "license": "MIT", + "dependencies": { + "@vuetify/v0": "^1.2.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/johnleider" + }, + "peerDependencies": { + "typescript": ">=4.7", + "vite-plugin-vuetify": ">=2.1.0", + "vue": "^3.5.0 || ^3.6.0-0", + "webpack-plugin-vuetify": ">=3.1.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + }, + "vite-plugin-vuetify": { + "optional": true + }, + "webpack-plugin-vuetify": { + "optional": true + } + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "license": "MIT" + }, + "node_modules/whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/why-is-node-running": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.1.tgz", + "integrity": "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==", + "dev": true, + "license": "MIT", + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=20.11" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ws": { + "version": "7.5.13", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.13.tgz", + "integrity": "sha512-rsKI6xDBFVf4r/x8XyChGK04QR/XHroxs/jUcoWvtEZM8TPU/X/uIY9B1CsSzYws9ZJb/6bbBu7dPhFW00CAoA==", + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/yaml-ast-parser": { + "version": "0.0.43", + "resolved": "https://registry.npmjs.org/yaml-ast-parser/-/yaml-ast-parser-0.0.43.tgz", + "integrity": "sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/panel/package.json b/panel/package.json new file mode 100644 index 0000000..4cf1d40 --- /dev/null +++ b/panel/package.json @@ -0,0 +1,59 @@ +{ + "name": "psr-panel", + "private": true, + "version": "0.1.0", + "description": "Painel do PythonScriptRunner (spec 008), embutido no pacote PythonScriptRunner.Dashboard.", + "type": "module", + "engines": { + "node": ">=24 <25" + }, + "scripts": { + "dev": "vite", + "build": "vue-tsc --noEmit && vite build && node scripts/check-bundle.mjs", + "preview": "vite preview", + "test": "vitest run", + "test:watch": "vitest", + "lint": "eslint . && prettier --check .", + "format": "prettier --write . && eslint . --fix", + "typecheck": "vue-tsc --noEmit", + "api": "node scripts/generate-api.mjs", + "api:check": "node scripts/generate-api.mjs --check" + }, + "dependencies": { + "@dagrejs/dagre": "3.1.1", + "@fontsource/roboto": "5.3.0", + "@mdi/font": "7.4.47", + "@microsoft/signalr": "10.0.11", + "@vue-flow/background": "1.3.2", + "@vue-flow/controls": "1.1.3", + "@vue-flow/core": "1.48.2", + "@vue-flow/minimap": "1.5.4", + "@vueuse/core": "15.0.0", + "monaco-editor": "0.57.0", + "openapi-fetch": "0.17.0", + "pinia": "4.1.0", + "vue": "3.5.44", + "vue-i18n": "11.4.16", + "vue-router": "5.4.0", + "vuetify": "4.2.6" + }, + "devDependencies": { + "@types/node": "24.19.2", + "@vitejs/plugin-vue": "6.0.10", + "@vue/eslint-config-typescript": "14.9.0", + "@vue/test-utils": "2.5.1", + "eslint": "10.13.0", + "eslint-config-prettier": "10.1.8", + "eslint-plugin-vue": "10.11.1", + "happy-dom": "21.0.4", + "jiti": "2.7.0", + "openapi-typescript": "7.13.0", + "prettier": "3.9.10", + "typescript": "5.9.3", + "typescript-eslint": "8.72.0", + "vite": "8.3.4", + "vite-plugin-vuetify": "2.1.3", + "vitest": "5.0.5", + "vue-tsc": "3.3.13" + } +} diff --git a/panel/public/favicon.svg b/panel/public/favicon.svg new file mode 100644 index 0000000..4bd3020 --- /dev/null +++ b/panel/public/favicon.svg @@ -0,0 +1 @@ + diff --git a/panel/scripts/check-bundle.mjs b/panel/scripts/check-bundle.mjs new file mode 100644 index 0000000..100fd00 --- /dev/null +++ b/panel/scripts/check-bundle.mjs @@ -0,0 +1,22 @@ +// Orçamento do bundle inicial (spec 008): ≤ 500 KB gzip para os arquivos que index.html carrega. +// Monaco e Vue Flow ficam em chunks carregados sob demanda e não entram na conta. +import { readFile } from 'node:fs/promises' +import { gzipSync } from 'node:zlib' +import { fileURLToPath } from 'node:url' + +const limit = 500 * 1024 +const dist = fileURLToPath(new URL('../dist/', import.meta.url)) +const html = await readFile(`${dist}index.html`, 'utf8') +const files = [...html.matchAll(/(?:src|href)="\.\/(assets\/[^"]+\.(?:js|css))"/g)].map((m) => m[1]) +let total = 0 +for (const file of new Set(files)) { + const size = gzipSync(await readFile(`${dist}${file}`)).length + total += size + console.log(`${(size / 1024).toFixed(1).padStart(8)} KB ${file}`) +} + +console.log(`${(total / 1024).toFixed(1).padStart(8)} KB inicial (gzip), limite ${limit / 1024} KB`) +if (total > limit) { + console.error('O bundle inicial passou do orçamento da spec 008.') + process.exit(1) +} diff --git a/panel/scripts/generate-api.mjs b/panel/scripts/generate-api.mjs new file mode 100644 index 0000000..3e56cfc --- /dev/null +++ b/panel/scripts/generate-api.mjs @@ -0,0 +1,51 @@ +// Gera src/api/schema.d.ts a partir do snapshot versionado do OpenAPI do painel (spec 008; D-137). +// Os caminhos perdem o prefixo /psr/api (o painel usa o prefixo lido de ) e os números +// aparecem como números (a API sempre os escreve assim; o "ou string" vem só da leitura tolerante). +// Uso: npm run api (gera) +// npm run api:check (falha se o arquivo gerado estiver desatualizado; usado no CI) +import { readFile, writeFile } from 'node:fs/promises' +import { fileURLToPath } from 'node:url' +import openapiTS, { astToString } from 'openapi-typescript' + +const snapshot = fileURLToPath( + new URL('../../tests/PythonScriptRunner.Dashboard.Tests/Snapshots/openapi-v1.verified.json', import.meta.url), +) +const output = fileURLToPath(new URL('../src/api/schema.d.ts', import.meta.url)) + +const document = JSON.parse(await readFile(snapshot, 'utf8')) +document.paths = Object.fromEntries(Object.entries(document.paths).map(([path, item]) => [path.replace(/^\/psr\/api/, ''), item])) +plainNumbers(document) + +const header = '// Gerado por scripts/generate-api.mjs a partir do snapshot do OpenAPI. Não edite à mão: rode `npm run api`.\n\n' +const generated = header + astToString(await openapiTS(document, { defaultNonNullable: false, emptyObjectsUnknown: true })) + +if (process.argv.includes('--check')) { + const current = await readFile(output, 'utf8').catch(() => '') + if (current.replaceAll('\r\n', '\n') !== generated) { + console.error('src/api/schema.d.ts está desatualizado: rode `npm run api` e faça commit.') + process.exit(1) + } +} else { + await writeFile(output, generated) +} + +function plainNumbers(node) { + if (Array.isArray(node)) { + node.forEach(plainNumbers) + return + } + + if (node === null || typeof node !== 'object') { + return + } + + if (Array.isArray(node.type) && node.type.includes('string')) { + const numeric = node.type.filter((t) => t === 'integer' || t === 'number') + if (numeric.length === 1) { + node.type = node.type.includes('null') ? [numeric[0], 'null'] : numeric[0] + delete node.pattern + } + } + + Object.values(node).forEach(plainNumbers) +} diff --git a/panel/src/App.vue b/panel/src/App.vue new file mode 100644 index 0000000..f823884 --- /dev/null +++ b/panel/src/App.vue @@ -0,0 +1,51 @@ + + + diff --git a/panel/src/api/client.ts b/panel/src/api/client.ts new file mode 100644 index 0000000..1554d0f --- /dev/null +++ b/panel/src/api/client.ts @@ -0,0 +1,156 @@ +import createClient from 'openapi-fetch' +import type { components, paths } from './schema' + +/** Esquemas da API do painel (spec 007), gerados do snapshot do OpenAPI. */ +export type Schemas = components['schemas'] +export type Role = Schemas['DashboardRole'] +export type AccessMode = Schemas['DashboardAccessMode'] + +/** Raiz do painel lida de (o pacote injeta o prefixo configurado; spec 007, AC-14). */ +export const basePath = new URL(document.baseURI).pathname.replace(/\/?$/, '/') +export const apiBase = `${basePath}api` +export const hubUrl = `${basePath}hubs/runs` + +/** Erro da API no formato ProblemDetails, com o `code` estável da spec 007. */ +export class ApiError extends Error { + constructor( + readonly status: number, + readonly code: string, + readonly problem: Record, + ) { + super(typeof problem.detail === 'string' ? problem.detail : typeof problem.title === 'string' ? problem.title : code) + this.name = 'ApiError' + } + + /** Valor de uma extensão do ProblemDetails (ex.: `current`, `errors`, `line`). */ + extension(name: string): T | undefined { + return this.problem[name] as T | undefined + } +} + +/** Reações da sessão a 401/403 (registradas pela store de sessão; evita dependência circular). */ +export interface AuthHooks { + /** Sessão perdida no meio do uso; devolve `true` quando o usuário entrou de novo e a chamada pode ser refeita. */ + unauthorized(): Promise + /** Ação negada: o papel pode ter mudado (D-152). */ + forbidden(required: Role | null): void +} + +let hooks: AuthHooks | null = null + +export function setAuthHooks(value: AuthHooks | null) { + hooks = value +} + +const roleRules: [string, RegExp, Role][] = [ + ['DELETE', /^\/(stages|pipelines)\/[^/]+$/, 'Admin'], + ['PATCH', /^\/pipelines\/[^/]+\/retention$/, 'Admin'], + ['*', /^\/(audit|admin\/)/, 'Admin'], + ['POST', /^\/(stages|pipelines)\/[^/]+\/runs$/, 'Executor'], + ['POST', /^\/runs\/[^/]+\/(cancel|reprocess)$/, 'Executor'], + ['POST', /^\/schedules\/preview$/, 'Reader'], + ['GET', /^\/(stages|pipelines)\/[^/]+\/draft$/, 'Author'], + ['GET', /./, 'Reader'], + ['*', /./, 'Author'], +] + +/** Papel exigido por uma chamada (mesma matriz do servidor; usado na mensagem "seu acesso mudou"). */ +export function requiredRole(method: string, path: string): Role | null { + if (path.startsWith('/auth') || path === '/me') { + return null + } + + const rule = roleRules.find(([m, pattern]) => (m === '*' || m === method) && pattern.test(path)) + return rule ? rule[2] : null +} + +function apiPath(url: string): string { + const pathname = new URL(url, document.baseURI).pathname + return pathname.startsWith(apiBase) ? pathname.slice(apiBase.length) : pathname +} + +/** + * Envia uma requisição da API: `X-PSR-Request: 1` nas mutantes (CSRF; spec 007) e, em 401 no meio do uso, espera o + * novo login e refaz a chamada (D-138). + */ +export async function send(input: Request): Promise { + const request = new Request(input, { credentials: 'same-origin' }) + if (request.method !== 'GET' && request.method !== 'HEAD') { + request.headers.set('X-PSR-Request', '1') + } + + const path = apiPath(request.url) + const retry = request.clone() + const response = await fetch(request) + if (response.status === 401 && hooks && !path.startsWith('/auth')) { + return (await hooks.unauthorized()) ? fetch(retry) : response + } + + if (response.status === 403 && hooks) { + hooks.forbidden(requiredRole(request.method, path)) + } + + return response +} + +/** Requisição direta (multipart, downloads, texto) com o mesmo tratamento de sessão. */ +export function apiFetch(path: string, init?: RequestInit): Promise { + return send(new Request(`${apiBase}${path}`, init)) +} + +export const api = createClient({ baseUrl: apiBase, fetch: send }) + +/** Converte uma resposta de erro em {@link ApiError}. */ +export async function toApiError(response: Response, body?: unknown): Promise { + let problem = body as Record | undefined + if (problem === undefined) { + try { + problem = (await response.clone().json()) as Record + } catch { + problem = {} + } + } + + const code = typeof problem?.code === 'string' ? problem.code : `HTTP_${response.status}` + return new ApiError(response.status, code, problem ?? {}) +} + +interface FetchResult { + data?: T + error?: unknown + response: Response +} + +/** Devolve os dados de uma chamada do cliente tipado ou lança {@link ApiError}. */ +export async function unwrap(call: Promise>): Promise { + const { data, error, response } = await call + if (!response.ok) { + throw await toApiError(response, error) + } + + return data as T +} + +/** Como {@link unwrap}, devolvendo também o ETag (concorrência otimista; spec 007). */ +export async function unwrapWithETag(call: Promise>): Promise<{ data: T; etag: string }> { + const { data, error, response } = await call + if (!response.ok) { + throw await toApiError(response, error) + } + + return { data: data as T, etag: response.headers.get('ETag') ?? '' } +} + +/** Lança {@link ApiError} quando a resposta direta falhou. */ +export async function ensureOk(response: Response): Promise { + if (!response.ok) { + throw await toApiError(response) + } + + return response +} + +/** Endereço de download de um arquivo de execução. */ +export function artifactUrl(id: string): string { + return `${apiBase}/artifacts/${id}` +} diff --git a/panel/src/api/schema.d.ts b/panel/src/api/schema.d.ts new file mode 100644 index 0000000..96cf49d --- /dev/null +++ b/panel/src/api/schema.d.ts @@ -0,0 +1,3766 @@ +// Gerado por scripts/generate-api.mjs a partir do snapshot do OpenAPI. Não edite à mão: rode `npm run api`. + +export interface paths { + "/auth": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetAuth"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/auth/login": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["Login"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/auth/logout": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["Logout"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/me": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetMe"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/import": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["Import"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/overview": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetOverview"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/artifacts/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["DownloadArtifact"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/audit": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ListAudit"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/admin/secrets": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ListSecrets"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/admin/settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetSettings"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/meta/field-types": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetFieldTypes"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ListStages"]; + put?: never; + post: operations["CreateStage"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages/{key}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetStage"]; + put?: never; + post?: never; + delete: operations["DeleteStage"]; + options?: never; + head?: never; + patch: operations["UpdateStage"]; + trace?: never; + }; + "/stages/{key}/versions/{version}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetStageVersion"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages/{key}/draft": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetStageDraft"]; + put: operations["SaveStageDraft"]; + post: operations["CreateStageDraft"]; + delete: operations["DiscardStageDraft"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages/{key}/draft/validate": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ValidateStageDraft"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages/{key}/draft/test": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["TestStageDraft"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages/{key}/draft/publish": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["PublishStage"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages/{key}/versions/{version}/archive": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ArchiveStageVersion"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages/{key}/versions/{version}/export": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ExportStageVersion"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/stages/{key}/runs": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["RunStage"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ListPipelines"]; + put?: never; + post: operations["CreatePipeline"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/validate": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ValidatePipeline"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetPipeline"]; + put?: never; + post?: never; + delete: operations["DeletePipeline"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}/versions/{version}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetPipelineVersion"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}/draft": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetPipelineDraft"]; + put: operations["SavePipelineDraft"]; + post: operations["CreatePipelineDraft"]; + delete: operations["DiscardPipelineDraft"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}/draft/test": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["TestPipelineDraft"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}/draft/publish": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["PublishPipeline"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}/versions/{version}/archive": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ArchivePipelineVersion"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}/settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch: operations["UpdatePipelineSettings"]; + trace?: never; + }; + "/pipelines/{key}/retention": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch: operations["UpdatePipelineRetention"]; + trace?: never; + }; + "/pipelines/{key}/versions/{version}/export": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ExportPipelineVersion"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}/runs": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["RunPipeline"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/pipelines/{key}/schedules": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["CreateSchedule"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/runs": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ListRuns"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/runs/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetRun"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/runs/{id}/attempts/{attemptId}/logs/{stream}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["GetAttemptLog"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/runs/{id}/cancel": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["CancelRun"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/runs/{id}/reprocess": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ReprocessRun"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/schedules": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ListSchedules"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/schedules/{id}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put: operations["UpdateSchedule"]; + post?: never; + delete: operations["DeleteSchedule"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/schedules/{id}/enable": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["EnableSchedule"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/schedules/{id}/disable": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["DisableSchedule"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/schedules/preview": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["PreviewSchedule"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; +} +export type webhooks = Record; +export interface components { + schemas: { + /** @description One page of a catalog list. */ + ApiPageOfPipelineSummary: { + /** @description Items of the page. */ + items: components["schemas"]["PipelineSummary"][]; + /** + * Format: int32 + * @description 1-based page number. + */ + page: number; + /** + * Format: int32 + * @description Items per page. + */ + pageSize: number; + /** + * Format: int32 + * @description Number of items in every page. + */ + total: number; + }; + /** @description One page of a catalog list. */ + ApiPageOfScheduleDetail: { + /** @description Items of the page. */ + items: components["schemas"]["ScheduleDetail"][]; + /** + * Format: int32 + * @description 1-based page number. + */ + page: number; + /** + * Format: int32 + * @description Items per page. + */ + pageSize: number; + /** + * Format: int32 + * @description Number of items in every page. + */ + total: number; + }; + /** @description One page of a catalog list. */ + ApiPageOfStageSummary: { + /** @description Items of the page. */ + items: components["schemas"]["StageSummary"][]; + /** + * Format: int32 + * @description 1-based page number. + */ + page: number; + /** + * Format: int32 + * @description Items per page. + */ + pageSize: number; + /** + * Format: int32 + * @description Number of items in every page. + */ + total: number; + }; + /** + * @description Whether a stored file was given to a run or produced by it. + * @enum {unknown} + */ + ArtifactDirection: "Input" | "Output"; + /** + * Format: uuid + * @description Identifier of a stored file (time-ordered UUID v7). + */ + ArtifactId: string; + /** @description Metadata of a stored file. */ + ArtifactInfo: { + /** @description File identifier. */ + id: components["schemas"]["ArtifactId"]; + /** @description Run that owns the file. */ + runId: components["schemas"]["RunId"]; + /** @description Step that produced the file (`null` for run inputs). */ + stepKey?: null | string; + /** @description Input or output. */ + direction: components["schemas"]["ArtifactDirection"]; + /** @description Field that carries the file. */ + fieldName: string; + /** + * Format: int32 + * @description Position in a `list<file>`. + */ + listIndex?: number | null; + /** @description File name. */ + fileName: string; + /** @description MIME type. */ + contentType: string; + /** + * Format: int64 + * @description Size in bytes. + */ + sizeBytes: number; + /** @description SHA-256 as lowercase hex. */ + sha256: string; + /** + * Format: date-time + * @description When the content is deleted. + */ + contentExpiresAt: string; + /** + * Format: date-time + * @description When the content was deleted (downloads then fail with `ARTIFACT_EXPIRED`). + */ + contentDeletedAt?: null | string; + }; + /** + * @description Why an attempt was started. + * @enum {unknown} + */ + AttemptCause: "Initial" | "AutoRetry" | "Reprocess" | "LeaseRecovery"; + /** + * Format: uuid + * @description Identifier of one attempt of a step (time-ordered UUID v7). + */ + AttemptId: string; + /** @description A persisted attempt (one Python process). */ + AttemptSnapshot: { + /** @description Attempt identifier. */ + id: components["schemas"]["AttemptId"]; + /** + * Format: int32 + * @description 1-based number within the step. + */ + number: number; + /** @description Why it started. */ + cause: components["schemas"]["AttemptCause"]; + /** @description Who started it (user for reprocessing, `system:*` otherwise). */ + triggeredBy: string; + /** @description Status. */ + status: components["schemas"]["AttemptStatus"]; + /** @description Worker that executed it (asynchronous runs). */ + workerId?: null | string; + /** @description Python environment used. */ + environmentHash?: null | string; + /** + * Format: int32 + * @description Exit code of the process. + */ + exitCode?: number | null; + error?: null | components["schemas"]["RunError"]; + /** + * Format: date-time + * @description Start time. + */ + startedAt: string; + /** + * Format: date-time + * @description End time. + */ + finishedAt?: null | string; + /** @description Total duration. */ + duration?: null | string; + /** @description Time spent by the runner outside the Python process. */ + overhead?: null | string; + /** @description Logs captured (content is read with Task<AttemptLog?> IRunManager.GetAttemptLogAsync(RunId runId, AttemptId attemptId, LogStream stream, CancellationToken cancellationToken = default(CancellationToken))). */ + logs?: components["schemas"]["LogStream"][]; + }; + /** + * @description Final status of one attempt. + * @enum {unknown} + */ + AttemptStatus: "Running" | "Succeeded" | "Failed" | "TimedOut" | "Cancelled" | "WorkerLost"; + /** @description A stored audit event. */ + AuditEvent: { + /** + * Format: uuid + * @description Event identifier. + */ + id: string; + /** + * Format: date-time + * @description When it happened. + */ + occurredAt: string; + /** @description Subject of the user. */ + actor: string; + /** @description What was done. */ + action: string; + /** @description Entity type. */ + entityType: string; + /** + * Format: uuid + * @description Entity identifier. + */ + entityId: null | string; + /** @description Readable reference. */ + entityKey: null | string; + details: null | components["schemas"]["JsonObject"]; + /** @description OpenTelemetry trace. */ + traceId: null | string; + }; + /** @description How the panel signs in (`GET /auth`); never lists users. */ + AuthInfo: { + /** @description Access mode. */ + mode: components["schemas"]["DashboardAccessMode"]; + /** @description Host login page (host authentication). */ + loginUrl: null | string; + /** @description Host logout page (host authentication). */ + logoutUrl: null | string; + /** @description Whether local requests enter without login. */ + localRequests: boolean; + }; + /** @description Creation and last change of a row. */ + Authorship: { + /** + * Format: date-time + * @description Creation time. + */ + createdAt: string; + /** @description Creator subject. */ + createdBy: string; + /** + * Format: date-time + * @description Last change. + */ + updatedAt: string; + /** @description Subject of the last change. */ + updatedBy: string; + }; + /** @description Origin of a bound value. */ + BindingSource: { + /** @enum {string} */ + kind: "pipeline"; + field: string; + } | { + /** @enum {string} */ + kind: "step"; + step: string; + field: string; + } | { + /** @enum {string} */ + kind: "constant"; + value?: unknown; + }; + /** @description Changes to the name or description; `null` keeps the current value. */ + CatalogItemChanges: { + /** @description New name. */ + name?: null | string; + /** @description New description. */ + description?: null | string; + }; + /** + * @description How the dashboard identifies its users (ADR-0021). + * @enum {unknown} + */ + DashboardAccessMode: "FixedLogin" | "Filter" | "Host" | "Localhost"; + /** @enum {unknown} */ + DashboardRole: "Reader" | "Executor" | "Author" | "Admin"; + /** + * @description Classification of a failure. + * @enum {unknown} + */ + ErrorKind: "InputValidation" | "OutputContractViolation" | "ScriptError" | "Timeout" | "MemoryLimitExceeded" | "Cancelled" | "WorkerLost" | "EnvironmentSetupFailed" | "ArtifactLimitExceeded" | "SecretNotFound" | "ProcessCrashed" | "Expired"; + /** + * @description How a run is executed. + * @enum {unknown} + */ + ExecutionMode: "Sync" | "Async"; + /** @description One field type. */ + FieldTypeInfo: { + /** @description Wire name (`number`, `list`...). */ + name: string; + /** @description Whether it is a scalar. */ + scalar: boolean; + /** @description Widget of the input form. */ + inputWidget: string; + /** @description How outputs are shown. */ + outputWidget: string; + /** @description Whether a default value can be declared. */ + allowsDefault: boolean; + }; + /** @description Field types for the editor (`GET /meta/field-types`). */ + FieldTypesResponse: { + /** @description The 12 types and their widgets. */ + types: components["schemas"]["FieldTypeInfo"][]; + /** @description Which source types can feed which target types (representative types; see Rules). */ + compatibility: { + [key: string]: string[]; + }; + /** @description Rules that depend on the declaration (enum values, table columns, file content types, list items). */ + rules: string[]; + }; + /** @description A draft created by an import. */ + ImportedItem: { + /** @description `Stage` or `Pipeline`. */ + kind: string; + /** @description Key. */ + key: string; + /** + * Format: int32 + * @description Version of the created draft. + */ + version: number; + /** @description Whether the key did not exist before. */ + newKey: boolean; + }; + /** @description Result of an import. */ + ImportReport: { + /** @description Drafts created. */ + items: components["schemas"]["ImportedItem"][]; + }; + /** @description Where one input of a step comes from. */ + InputBinding: { + /** @description Input name of the stage. */ + input: string; + /** @description Origin of the value. */ + source: components["schemas"]["BindingSource"]; + }; + JsonNode: unknown; + JsonObject: Record; + /** @description One page of a keyset-paginated list (newest first). */ + KeysetPageOfAuditEvent: { + /** @description Items of the page. */ + items: components["schemas"]["AuditEvent"][]; + /** @description Opaque cursor of the next page; `null` on the last page. */ + nextCursor: null | string; + }; + /** @description One page of a keyset-paginated list (newest first). */ + KeysetPageOfRunSummary: { + /** @description Items of the page. */ + items: components["schemas"]["RunSummary"][]; + /** @description Opaque cursor of the next page; `null` on the last page. */ + nextCursor: null | string; + }; + /** @description Limits of runs and uploads. */ + LimitSettings: { + /** + * Format: int64 + * @description Largest input or output file. + */ + maxFileBytes: number; + /** + * Format: int64 + * @description Largest total of the files of a run. + */ + maxRunFilesBytes: number; + /** + * Format: int32 + * @description Log tail kept per stream. + */ + maxLogBytes: number; + /** @description Default timeout of an attempt. */ + defaultTimeout: string; + /** + * Format: int32 + * @description Default memory limit. + */ + defaultMemoryLimitMb: number; + /** + * Format: int32 + * @description Python processes per instance. + */ + maxConcurrentProcesses: number; + /** @description Default Python version. */ + defaultPythonVersion: string; + }; + /** @description Fixed login credentials. */ + LoginRequest: { + /** @description User name. */ + name: null | string; + /** @description Password. */ + password: null | string; + }; + /** + * @description Output stream of a Python process. + * @enum {unknown} + */ + LogStream: "Stdout" | "Stderr"; + /** @description The current user (`GET /me`). */ + MeResponse: { + /** @description Recorded in the audit. */ + subject: string; + /** @description Display name. */ + name: string; + role: null | components["schemas"]["DashboardRole"]; + /** @description Every role the user has (cumulative). */ + roles: components["schemas"]["DashboardRole"][]; + /** @description How the user was identified. */ + mode: components["schemas"]["DashboardAccessMode"]; + }; + /** @description A new stage or pipeline. */ + NewCatalogItem: { + /** @description Slug (immutable). */ + key: string; + /** @description Display name. */ + name: string; + /** @description Description. */ + description?: null | string; + }; + /** @description Copies a version into a new draft. */ + NewDraftRequest: { + /** + * Format: int32 + * @description Version to copy. + */ + fromVersion: number; + }; + /** @description Run counters and lists of `GET /overview` (D-115). */ + OverviewResponse: { + /** + * Format: date-time + * @description When it was computed. + */ + generatedAt: string; + /** @description Runs created in the last 24 hours, by status. */ + last24Hours: { + [key: string]: number; + }; + /** @description Runs created in the 24 hours before, by status. */ + previous24Hours: { + [key: string]: number; + }; + /** @description Runs pending, queued, running or cancelling (newest first, up to 50). */ + inProgress: components["schemas"]["RunSummary"][]; + /** @description The 10 latest failed runs (last 7 days). */ + recentFailures: components["schemas"]["RunSummary"][]; + /** @description The 5 next schedule firings. */ + upcomingSchedules: components["schemas"]["UpcomingSchedule"][]; + }; + /** @description A pipeline with its versions and settings. */ + PipelineDetail: { + /** @description Pipeline key. */ + key: string; + /** @description Display name. */ + name: string; + /** @description Description. */ + description: null | string; + /** + * Format: int32 + * @description Latest published version. + */ + latestPublishedVersion: number | null; + /** @description Every version, newest first. */ + versions: components["schemas"]["VersionSummary"][]; + /** @description Operational settings. */ + settings: components["schemas"]["PipelineSettings"]; + /** @description Retention. */ + retention: components["schemas"]["PipelineRetention"]; + /** + * Format: uint32 + * @description Concurrency token of the pipeline row. + */ + rowVersion: number; + /** @description Creation and last change. */ + authorship: components["schemas"]["Authorship"]; + }; + /** @description The current draft of a pipeline. */ + PipelineDraft: { + /** @description Pipeline key. */ + key: string; + /** + * Format: int32 + * @description Draft version. + */ + version: number; + /** @description Content. */ + data: components["schemas"]["PipelineDraftData"]; + /** + * Format: uint32 + * @description Concurrency token (send it back when saving). + */ + rowVersion: number; + /** @description Creation and last change. */ + authorship: components["schemas"]["Authorship"]; + }; + /** @description Editable content of a pipeline version. */ + PipelineDraftData: { + /** @description Inputs received by the pipeline. */ + inputs?: { + name: string; + /** @enum {string} */ + type: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime" | "enum" | "json" | "table" | "file" | "list"; + /** @enum {string} */ + itemType?: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime" | "enum" | "json" | "table" | "file"; + /** @default true */ + required?: boolean; + /** @description Default value in wire format (not for files and tables). */ + default?: unknown; + description?: string; + enumValues?: string[]; + contentTypes?: string[]; + columns?: { + name: string; + /** @enum {string} */ + type: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime"; + }[]; + }[]; + /** @description Steps in execution order. */ + steps?: components["schemas"]["PipelineStepDefinition"][]; + /** @description Declared outputs. */ + outputs?: components["schemas"]["PipelineOutputDefinition"][]; + layout?: null | components["schemas"]["JsonNode"]; + }; + /** @description A declared output of the pipeline, taken from an output of a step. */ + PipelineOutputDefinition: { + /** @description Output name. */ + name: string; + /** @description Step output that provides the value (its type is inherited). */ + source: components["schemas"]["StepOutputSource"]; + /** @description Description shown in the panel. */ + description?: null | string; + }; + /** @description Result of publishing a pipeline. */ + PipelinePublication: { + /** @description The published version. */ + version: components["schemas"]["PipelineVersionDetail"]; + /** @description Validation warnings (they do not block publication). */ + warnings: components["schemas"]["ValidationIssue"][]; + }; + /** @description Retention of a pipeline; it can only be shorter than the global retention. */ + PipelineRetention: { + /** + * Format: int32 + * @description Days the files are kept; `null` = global. + */ + artifactRetentionDays: number | null; + /** + * Format: int32 + * @description Days the runs are kept; `null` = global. + */ + runRetentionDays: number | null; + }; + /** @description Operational settings of a pipeline (not versioned). */ + PipelineSettings: { + /** + * Format: int32 + * @description Maximum simultaneous asynchronous runs; `null` = no limit. + */ + maxConcurrentRuns: number | null; + }; + /** @description One step of a pipeline: a fixed stage version and the bindings of its inputs. */ + PipelineStepDefinition: { + /** @description Step key (slug, unique in the pipeline). */ + key: string; + /** @description Key of the executed stage. */ + stageKey: string; + /** + * Format: int32 + * @description Exact version of the executed stage. + */ + stageVersion: number; + /** @description Label shown in the panel. */ + displayName?: null | string; + /** @description Explicit bindings; unbound inputs use the implicit binding by name. */ + bindings?: components["schemas"]["InputBinding"][]; + }; + /** @description A pipeline in a list. */ + PipelineSummary: { + /** @description Pipeline key. */ + key: string; + /** @description Display name. */ + name: string; + /** @description Description. */ + description: null | string; + /** + * Format: int32 + * @description Latest published version. + */ + latestPublishedVersion: number | null; + /** + * Format: int32 + * @description Version of the current draft. + */ + draftVersion: number | null; + /** + * Format: date-time + * @description Last change. + */ + updatedAt: string; + }; + /** @description One version of a pipeline. */ + PipelineVersionDetail: { + /** @description Pipeline key. */ + key: string; + /** + * Format: int32 + * @description Version number. + */ + version: number; + /** @description Status. */ + status: components["schemas"]["VersionStatus"]; + /** @description Content. */ + data: components["schemas"]["PipelineDraftData"]; + /** + * Format: date-time + * @description Publication time. + */ + publishedAt?: null | string; + /** @description Who published. */ + publishedBy?: null | string; + /** + * Format: date-time + * @description Archiving time. + */ + archivedAt?: null | string; + /** @description Who archived. */ + archivedBy?: null | string; + /** + * Format: uint32 + * @description Concurrency token. + */ + rowVersion: number; + /** @description Creation and last change. */ + authorship: components["schemas"]["Authorship"]; + }; + ProblemDetails: { + type?: null | string; + title?: null | string; + /** Format: int32 */ + status?: number | null; + detail?: null | string; + instance?: null | string; + }; + /** @description Global retention in days. */ + RetentionSettings: { + /** + * Format: double + * @description File contents. + */ + artifactDays: number; + /** + * Format: double + * @description Runs. + */ + runDays: number; + /** + * Format: double + * @description Audit events. + */ + auditDays: number; + }; + /** @description Automatic retry policy of a stage. */ + RetryPolicy: { + /** + * Format: int32 + * @description Number of retries after the first attempt (0 = no retry). + */ + maxAttempts: number; + /** @description Delay before the first retry. */ + initialDelay: string; + /** + * Format: double + * @description Multiplier applied to the delay on each further retry. + */ + backoffMultiplier: number; + }; + /** @description Why a run, step or attempt failed. */ + RunError: { + /** @description Failure classification. */ + kind: components["schemas"]["ErrorKind"]; + /** @description Human-readable message. */ + message: string; + /** @description Stable code (e.g. a `StageError` code or `UNDECLARED_OUTPUT`). */ + code?: null | string; + /** @description Key of the step that failed. */ + stepKey?: null | string; + /** @description Python traceback, when available. */ + traceback?: null | string; + details?: null | components["schemas"]["JsonNode"]; + }; + /** @description A queued run. */ + RunHandle: { + /** @description Run identifier. */ + runId: components["schemas"]["RunId"]; + /** @description RunStatus.Queued or RunStatus.Pending (the current status when deduplicated). */ + status: components["schemas"]["RunStatus"]; + /** @description Whether an earlier run with the same idempotency key was returned. */ + deduplicated: boolean; + }; + /** + * Format: uuid + * @description Identifier of a run (time-ordered UUID v7). Its timestamp is the creation time of the run. + */ + RunId: string; + /** + * @description What a run executes. + * @enum {unknown} + */ + RunKind: "Pipeline" | "PipelineTest" | "Stage" | "StageTest"; + /** @description A persisted run with its steps, attempts and files. */ + RunSnapshot: { + /** @description Run identifier. */ + id: components["schemas"]["RunId"]; + /** @description What was executed. */ + kind: components["schemas"]["RunKind"]; + /** @description Sync or async. */ + mode: components["schemas"]["ExecutionMode"]; + /** @description Status. */ + status: components["schemas"]["RunStatus"]; + /** @description Pipeline or stage key. */ + targetKey: string; + /** + * Format: int32 + * @description Pipeline or stage version. + */ + targetVersion: number; + /** @description How the run started. */ + trigger: components["schemas"]["RunTrigger"]; + /** @description Who started it. */ + triggeredBy: string; + /** @description Validated inputs; files as `{"$artifact": "<id>"}`. */ + inputs: components["schemas"]["JsonObject"]; + outputs?: null | components["schemas"]["JsonObject"]; + error?: null | components["schemas"]["RunError"]; + /** @description Idempotency key given by the caller. */ + idempotencyKey?: null | string; + /** @description Correlation given by the caller (returned in the events). */ + correlationId?: null | string; + scheduleId?: null | components["schemas"]["ScheduleId"]; + triggerDetails?: null | components["schemas"]["JsonObject"]; + /** + * Format: date-time + * @description Creation time. + */ + createdAt: string; + /** + * Format: date-time + * @description When it was queued. + */ + queuedAt?: null | string; + /** + * Format: date-time + * @description Start time. + */ + startedAt?: null | string; + /** + * Format: date-time + * @description End time. + */ + finishedAt?: null | string; + /** + * Format: date-time + * @description When cancellation was requested. + */ + cancelRequestedAt?: null | string; + /** @description Who requested cancellation. */ + cancelRequestedBy?: null | string; + /** + * Format: date-time + * @description When the run is deleted (pipelines with a shorter retention). + */ + expiresAt?: null | string; + /** @description Steps in order. */ + steps: components["schemas"]["StepRunSnapshot"][]; + /** @description Input and output files. */ + artifacts: components["schemas"]["ArtifactInfo"][]; + }; + /** + * @description Status of a run. + * @enum {unknown} + */ + RunStatus: "Pending" | "Queued" | "Running" | "Succeeded" | "Failed" | "Cancelling" | "Cancelled"; + /** @description A run in a list. */ + RunSummary: { + /** @description Run identifier. */ + id: components["schemas"]["RunId"]; + /** @description What was executed. */ + kind: components["schemas"]["RunKind"]; + /** @description Sync or async. */ + mode: components["schemas"]["ExecutionMode"]; + /** @description Status. */ + status: components["schemas"]["RunStatus"]; + /** @description Pipeline or stage key. */ + targetKey: string; + /** + * Format: int32 + * @description Pipeline or stage version. + */ + targetVersion: number; + /** @description How the run started. */ + trigger: components["schemas"]["RunTrigger"]; + /** @description Who started it. */ + triggeredBy: string; + /** + * Format: date-time + * @description Creation time. + */ + createdAt: string; + /** + * Format: date-time + * @description Start time. + */ + startedAt: null | string; + /** + * Format: date-time + * @description End time. + */ + finishedAt: null | string; + error: null | components["schemas"]["RunError"]; + }; + /** + * @description Who or what started a run. + * @enum {unknown} + */ + RunTrigger: "Library" | "Dashboard" | "Schedule" | "QueueCommand"; + /** @description Settings of a cron schedule of a pipeline. */ + ScheduleData: { + /** @description Display name (1-200 chars). */ + name: string; + /** @description Cron expression with 5 fields (minute precision) or 6 fields (with seconds). */ + cron: string; + /** @description IANA time zone in which the expression is evaluated (daylight saving time handled). */ + timeZone?: string; + /** + * Format: int32 + * @description Version to run; `null` runs the latest published version at each firing. + */ + pinnedVersion?: number | null; + /** @description Fixed inputs of the pipeline (no files). */ + inputs?: components["schemas"]["JsonObject"]; + /** @description Whether the schedule fires. */ + isEnabled?: boolean; + }; + /** @description A stored schedule. */ + ScheduleDetail: { + /** @description Identifier. */ + id: components["schemas"]["ScheduleId"]; + /** @description Scheduled pipeline. */ + pipelineKey: string; + /** @description Settings. */ + data: components["schemas"]["ScheduleData"]; + /** + * Format: date-time + * @description Next firing (UTC); `null` when disabled. + */ + nextRunAt?: null | string; + /** + * Format: date-time + * @description Last firing. + */ + lastFiredAt?: null | string; + lastRunId?: null | components["schemas"]["RunId"]; + /** @description Why the last firing was rejected (cleared by the next successful one). */ + lastError?: null | string; + /** + * Format: uint32 + * @description Row version for optimistic concurrency. + */ + rowVersion: number; + /** @description Who created and last changed it. */ + authorship: components["schemas"]["Authorship"]; + }; + /** + * Format: uuid + * @description Identifier of a schedule (UUID v7). + */ + ScheduleId: string; + /** @description One occurrence of a schedule. */ + ScheduleOccurrence: { + /** + * Format: date-time + * @description Instant in UTC. + */ + utc: string; + /** + * Format: date-time + * @description Same instant in the schedule time zone (with its offset). + */ + local: string; + }; + /** @description Next occurrences of a cron expression. */ + SchedulePreviewRequest: { + /** @description Cron expression (5 or 6 fields). */ + cron: string; + /** @description IANA time zone (default `America/Sao_Paulo`). */ + timeZone: null | string; + /** + * Format: int32 + * @description How many (1-20; default 5). + */ + count: number | null; + }; + /** @description Status of a secret declared by stages (never its value). */ + SecretStatus: { + /** @description Secret name. */ + name: string; + /** @description Stage versions that declare it (`key@version`). */ + declaredBy: string[]; + /** @description Whether the secret provider returns a value. */ + resolved: boolean; + }; + /** @description Read-only settings (`GET /admin/settings`). */ + SettingsResponse: { + /** @description Global retention. */ + retention: components["schemas"]["RetentionSettings"]; + /** @description Limits of runs and uploads. */ + limits: components["schemas"]["LimitSettings"]; + /** @description Access mode of the dashboard. */ + access: components["schemas"]["AuthInfo"]; + /** @description Versions of the components. */ + versions: { + [key: string]: string; + }; + }; + /** @description A stage with its versions and usages. */ + StageDetail: { + /** @description Stage key. */ + key: string; + /** @description Display name. */ + name: string; + /** @description Description. */ + description: null | string; + /** + * Format: int32 + * @description Latest published version. + */ + latestPublishedVersion: number | null; + /** @description Every version, newest first. */ + versions: components["schemas"]["VersionSummary"][]; + /** @description Pipeline steps that use a version of the stage. */ + usedBy: components["schemas"]["StageUsage"][]; + /** + * Format: uint32 + * @description Concurrency token of the stage row. + */ + rowVersion: number; + /** @description Creation and last change. */ + authorship: components["schemas"]["Authorship"]; + }; + /** @description The current draft of a stage. */ + StageDraft: { + /** @description Stage key. */ + key: string; + /** + * Format: int32 + * @description Draft version. + */ + version: number; + /** @description Content. */ + data: components["schemas"]["StageDraftData"]; + /** + * Format: uint32 + * @description Concurrency token (send it back when saving). + */ + rowVersion: number; + /** @description Creation and last change. */ + authorship: components["schemas"]["Authorship"]; + }; + /** @description Editable content of a stage version. */ + StageDraftData: { + /** @description Python source of the single script. */ + script: string; + /** @description Python version (e.g. `3.12`). */ + pythonVersion: string; + /** @description Dependencies in requirements.txt format. */ + requirements?: null | string; + /** @description Declared inputs. */ + inputs?: { + name: string; + /** @enum {string} */ + type: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime" | "enum" | "json" | "table" | "file" | "list"; + /** @enum {string} */ + itemType?: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime" | "enum" | "json" | "table" | "file"; + /** @default true */ + required?: boolean; + /** @description Default value in wire format (not for files and tables). */ + default?: unknown; + description?: string; + enumValues?: string[]; + contentTypes?: string[]; + columns?: { + name: string; + /** @enum {string} */ + type: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime"; + }[]; + }[]; + /** @description Declared outputs. */ + outputs?: { + name: string; + /** @enum {string} */ + type: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime" | "enum" | "json" | "table" | "file" | "list"; + /** @enum {string} */ + itemType?: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime" | "enum" | "json" | "table" | "file"; + /** @default true */ + required?: boolean; + /** @description Default value in wire format (not for files and tables). */ + default?: unknown; + description?: string; + enumValues?: string[]; + contentTypes?: string[]; + columns?: { + name: string; + /** @enum {string} */ + type: "number" | "integer" | "decimal" | "string" | "bool" | "date" | "datetime"; + }[]; + }[]; + /** @description Names of the secrets the script needs. */ + requiredSecrets?: string[]; + /** @description Maximum duration of one attempt. */ + timeout?: string; + /** + * Format: int32 + * @description Memory limit in MB; `null` uses the runner default. + */ + memoryLimitMb?: number | null; + /** @description Automatic retry policy. */ + retry?: components["schemas"]["RetryPolicy"]; + /** @description Whether running the script twice with the same inputs is safe. */ + idempotent?: boolean; + }; + /** @description A stage in a list. */ + StageSummary: { + /** @description Stage key. */ + key: string; + /** @description Display name. */ + name: string; + /** @description Description. */ + description: null | string; + /** + * Format: int32 + * @description Latest published version. + */ + latestPublishedVersion: number | null; + /** + * Format: int32 + * @description Version of the current draft. + */ + draftVersion: number | null; + /** + * Format: date-time + * @description Last change. + */ + updatedAt: string; + /** + * Format: int32 + * @description Distinct pipelines with a published version that uses any version of the stage. + */ + usedByPipelines: number; + }; + /** @description A pipeline step that uses a stage version. */ + StageUsage: { + /** @description Pipeline key. */ + pipelineKey: string; + /** + * Format: int32 + * @description Pipeline version. + */ + pipelineVersion: number; + /** @description Status of the pipeline version. */ + pipelineStatus: components["schemas"]["VersionStatus"]; + /** @description Step key. */ + stepKey: string; + /** + * Format: int32 + * @description Stage version used by the step. + */ + stageVersion: number; + }; + /** @description One version of a stage. */ + StageVersionDetail: { + /** @description Stage key. */ + key: string; + /** + * Format: int32 + * @description Version number. + */ + version: number; + /** @description Status. */ + status: components["schemas"]["VersionStatus"]; + /** @description Content. */ + data: components["schemas"]["StageDraftData"]; + /** @description SHA-256 of the script. */ + scriptSha256: string; + /** @description Locked dependencies (published versions). */ + lockedRequirements?: null | string; + /** @description Hash of the Python environment (published versions). */ + environmentHash?: null | string; + /** + * Format: date-time + * @description Publication time. + */ + publishedAt?: null | string; + /** @description Who published. */ + publishedBy?: null | string; + /** + * Format: date-time + * @description Archiving time. + */ + archivedAt?: null | string; + /** @description Who archived. */ + archivedBy?: null | string; + /** + * Format: uint32 + * @description Concurrency token. + */ + rowVersion: number; + /** @description Creation and last change. */ + authorship: components["schemas"]["Authorship"]; + }; + /** @description An output of an earlier step (`$steps.<step>.<field>`). */ + StepOutputSource: { + /** @description Step key. */ + step: string; + /** @description Output name of that step. */ + field: string; + }; + /** + * Format: uuid + * @description Identifier of a step within a run (time-ordered UUID v7). + */ + StepRunId: string; + /** @description A persisted step of a run. */ + StepRunSnapshot: { + /** @description Step identifier. */ + id: components["schemas"]["StepRunId"]; + /** @description Step key (the stage key for single-stage runs). */ + stepKey: string; + /** + * Format: int32 + * @description 1-based position. + */ + order: number; + /** @description Executed stage. */ + stageKey: string; + /** + * Format: int32 + * @description Exact stage version. + */ + stageVersion: number; + /** @description Status. */ + status: components["schemas"]["StepStatus"]; + /** + * Format: int32 + * @description Number of the last attempt (0 = not executed). + */ + currentAttempt: number; + inputs?: null | components["schemas"]["JsonObject"]; + outputs?: null | components["schemas"]["JsonObject"]; + error?: null | components["schemas"]["RunError"]; + /** + * Format: date-time + * @description Start time. + */ + startedAt?: null | string; + /** + * Format: date-time + * @description End time. + */ + finishedAt?: null | string; + /** @description Attempts in order. */ + attempts: components["schemas"]["AttemptSnapshot"][]; + }; + /** + * @description Status of a step within a run. + * @enum {unknown} + */ + StepStatus: "Pending" | "Queued" | "Running" | "Succeeded" | "Failed" | "TimedOut" | "Cancelled" | "Skipped"; + /** @description A next schedule firing. */ + UpcomingSchedule: { + /** @description Schedule identifier. */ + id: components["schemas"]["ScheduleId"]; + /** @description Schedule name. */ + name: string; + /** @description Scheduled pipeline. */ + pipelineKey: string; + /** + * Format: date-time + * @description Next firing (UTC). + */ + nextRunAt: string; + }; + /** @description One validation problem. */ + ValidationIssue: { + /** @description Stable code (e.g. `PIPE_TYPE_MISMATCH`). */ + code: string; + /** @description Human-readable message. */ + message: string; + /** @description Step key, when the problem belongs to a step. */ + step?: null | string; + /** @description Field name (step input, pipeline input or output). */ + field?: null | string; + }; + /** @description Result of a pipeline validation. */ + ValidationReport: { + /** @description Problems that block publication. */ + errors: components["schemas"]["ValidationIssue"][]; + /** @description Problems that do not block publication. */ + warnings: components["schemas"]["ValidationIssue"][]; + /** @description Whether there are no errors. */ + isValid?: boolean; + }; + /** @enum {unknown} */ + VersionStatus: "Draft" | "Published" | "Archived"; + /** @description A version in a list. */ + VersionSummary: { + /** + * Format: int32 + * @description Version number. + */ + version: number; + /** @description Status. */ + status: components["schemas"]["VersionStatus"]; + /** + * Format: date-time + * @description Publication time. + */ + publishedAt: null | string; + /** + * Format: date-time + * @description Last change. + */ + updatedAt: string; + }; + }; + responses: never; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + GetAuth: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["AuthInfo"]; + }; + }; + }; + }; + Login: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": null | components["schemas"]["LoginRequest"]; + }; + }; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Unauthorized */ + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Too Many Requests */ + 429: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + Logout: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetMe: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["MeResponse"]; + }; + }; + }; + }; + Import: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ImportReport"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Payload Too Large */ + 413: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetOverview: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["OverviewResponse"]; + }; + }; + }; + }; + DownloadArtifact: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Gone */ + 410: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ListAudit: { + parameters: { + query?: { + actor?: string; + action?: string; + entityType?: string; + entityKey?: string; + from?: string; + to?: string; + cursor?: string; + limit?: number; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["KeysetPageOfAuditEvent"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ListSecrets: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SecretStatus"][]; + }; + }; + }; + }; + GetSettings: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["SettingsResponse"]; + }; + }; + }; + }; + GetFieldTypes: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["FieldTypesResponse"]; + }; + }; + }; + }; + ListStages: { + parameters: { + query?: { + search?: string; + status?: components["schemas"]["VersionStatus"]; + page?: number; + pageSize?: number; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ApiPageOfStageSummary"]; + }; + }; + }; + }; + CreateStage: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["NewCatalogItem"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageDetail"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetStage: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageDetail"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + DeleteStage: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + UpdateStage: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CatalogItemChanges"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageDetail"]; + }; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Precondition Required */ + 428: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetStageVersion: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + version: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageVersionDetail"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetStageDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageDraft"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + SaveStageDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["StageDraftData"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageDraft"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + CreateStageDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["NewDraftRequest"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageDraft"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + DiscardStageDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ValidateStageDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ValidationReport"]; + }; + }; + }; + }; + TestStageDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Accepted */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RunHandle"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Payload Too Large */ + 413: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Unprocessable Entity */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + PublishStage: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageVersionDetail"]; + }; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Unprocessable Entity */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Gateway Timeout */ + 504: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ArchiveStageVersion: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + version: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["StageVersionDetail"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ExportStageVersion: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + version: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + RunStage: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Accepted */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RunHandle"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Payload Too Large */ + 413: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ListPipelines: { + parameters: { + query?: { + search?: string; + status?: components["schemas"]["VersionStatus"]; + page?: number; + pageSize?: number; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ApiPageOfPipelineSummary"]; + }; + }; + }; + }; + CreatePipeline: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["NewCatalogItem"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineDetail"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ValidatePipeline: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PipelineDraftData"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ValidationReport"]; + }; + }; + }; + }; + GetPipeline: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineDetail"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + DeletePipeline: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetPipelineVersion: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + version: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineVersionDetail"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetPipelineDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineDraft"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + SavePipelineDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PipelineDraftData"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineDraft"]; + }; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Unprocessable Entity */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + CreatePipelineDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["NewDraftRequest"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineDraft"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + DiscardPipelineDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + TestPipelineDraft: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Accepted */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RunHandle"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Payload Too Large */ + 413: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Unprocessable Entity */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + PublishPipeline: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelinePublication"]; + }; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Unprocessable Entity */ + 422: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ArchivePipelineVersion: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + version: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineVersionDetail"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + UpdatePipelineSettings: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PipelineSettings"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineDetail"]; + }; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + UpdatePipelineRetention: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PipelineRetention"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["PipelineDetail"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ExportPipelineVersion: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + version: number; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + RunPipeline: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Accepted */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RunHandle"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Payload Too Large */ + 413: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + CreateSchedule: { + parameters: { + query?: never; + header?: never; + path: { + key: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ScheduleData"]; + }; + }; + responses: { + /** @description Created */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ScheduleDetail"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ListRuns: { + parameters: { + query?: { + pipelineKey?: string; + stageKey?: string; + kind?: components["schemas"]["RunKind"]; + status?: components["schemas"]["RunStatus"]; + trigger?: components["schemas"]["RunTrigger"]; + from?: string; + to?: string; + cursor?: string; + limit?: number; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["KeysetPageOfRunSummary"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetRun: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RunSnapshot"]; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + GetAttemptLog: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + attemptId: string; + stream: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "text/plain": string; + }; + }; + /** @description Not Found */ + 404: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + CancelRun: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Accepted */ + 202: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ReprocessRun: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Accepted */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["RunHandle"]; + }; + }; + /** @description Conflict */ + 409: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + ListSchedules: { + parameters: { + query?: { + pipelineKey?: string; + page?: number; + pageSize?: number; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ApiPageOfScheduleDetail"]; + }; + }; + }; + }; + UpdateSchedule: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ScheduleData"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ScheduleDetail"]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + DeleteSchedule: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No Content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + /** @description Precondition Failed */ + 412: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; + EnableSchedule: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ScheduleDetail"]; + }; + }; + }; + }; + DisableSchedule: { + parameters: { + query?: never; + header?: never; + path: { + id: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ScheduleDetail"]; + }; + }; + }; + }; + PreviewSchedule: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SchedulePreviewRequest"]; + }; + }; + responses: { + /** @description OK */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": components["schemas"]["ScheduleOccurrence"][]; + }; + }; + /** @description Bad Request */ + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/problem+json": components["schemas"]["ProblemDetails"]; + }; + }; + }; + }; +} diff --git a/panel/src/components/auth/LoginForm.vue b/panel/src/components/auth/LoginForm.vue new file mode 100644 index 0000000..7b9c54c --- /dev/null +++ b/panel/src/components/auth/LoginForm.vue @@ -0,0 +1,100 @@ + + + diff --git a/panel/src/components/auth/SessionExpiredDialog.vue b/panel/src/components/auth/SessionExpiredDialog.vue new file mode 100644 index 0000000..fd7b2c0 --- /dev/null +++ b/panel/src/components/auth/SessionExpiredDialog.vue @@ -0,0 +1,27 @@ + + + diff --git a/panel/src/components/common/CatalogList.vue b/panel/src/components/common/CatalogList.vue new file mode 100644 index 0000000..fc7430d --- /dev/null +++ b/panel/src/components/common/CatalogList.vue @@ -0,0 +1,218 @@ + + + diff --git a/panel/src/components/common/ConfirmDialog.vue b/panel/src/components/common/ConfirmDialog.vue new file mode 100644 index 0000000..5f97b0f --- /dev/null +++ b/panel/src/components/common/ConfirmDialog.vue @@ -0,0 +1,22 @@ + + + diff --git a/panel/src/components/common/ConflictDialog.vue b/panel/src/components/common/ConflictDialog.vue new file mode 100644 index 0000000..0802824 --- /dev/null +++ b/panel/src/components/common/ConflictDialog.vue @@ -0,0 +1,40 @@ + + + diff --git a/panel/src/components/common/PageHeader.vue b/panel/src/components/common/PageHeader.vue new file mode 100644 index 0000000..1f52fdf --- /dev/null +++ b/panel/src/components/common/PageHeader.vue @@ -0,0 +1,15 @@ + + + diff --git a/panel/src/components/common/ProblemList.vue b/panel/src/components/common/ProblemList.vue new file mode 100644 index 0000000..24305a8 --- /dev/null +++ b/panel/src/components/common/ProblemList.vue @@ -0,0 +1,31 @@ + + + diff --git a/panel/src/components/common/StatusChip.vue b/panel/src/components/common/StatusChip.vue new file mode 100644 index 0000000..2391b52 --- /dev/null +++ b/panel/src/components/common/StatusChip.vue @@ -0,0 +1,26 @@ + + + diff --git a/panel/src/components/editor/CodeEditor.vue b/panel/src/components/editor/CodeEditor.vue new file mode 100644 index 0000000..a873b13 --- /dev/null +++ b/panel/src/components/editor/CodeEditor.vue @@ -0,0 +1,133 @@ + + + + + diff --git a/panel/src/components/editor/DiffView.vue b/panel/src/components/editor/DiffView.vue new file mode 100644 index 0000000..774774b --- /dev/null +++ b/panel/src/components/editor/DiffView.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/panel/src/components/editor/monaco.ts b/panel/src/components/editor/monaco.ts new file mode 100644 index 0000000..53f6089 --- /dev/null +++ b/panel/src/components/editor/monaco.ts @@ -0,0 +1,65 @@ +// Monaco carregado sob demanda (spec 008: fora do bundle inicial), com os workers empacotados localmente +// (CSP `worker-src 'self' blob:`). Só realce de Python + snippets do psrunner (QA-008-2) e JSON com validação. +import * as monaco from 'monaco-editor/editor/editor.api' +import 'monaco-editor/languages/definitions/python/register' +import 'monaco-editor/language/json/monaco.contribution' +import EditorWorker from 'monaco-editor/editor/editor.worker?worker' +import JsonWorker from 'monaco-editor/language/json/json.worker?worker' + +declare global { + interface Window { + MonacoEnvironment?: monaco.Environment + } +} + +window.MonacoEnvironment = { + getWorker: (_id: string, label: string) => (label === 'json' ? new JsonWorker() : new EditorWorker()), +} + +const snippets: { label: string; documentation: string; insertText: string }[] = [ + { + label: 'psrunner stage', + documentation: 'Esqueleto de um Stage (@stage def run(inputs, ctx))', + insertText: [ + 'from psrunner import stage', + '', + '', + '@stage', + 'def run(inputs, ctx):', + ' ${1:valor} = inputs["${2:entrada}"]', + ' return {"${3:saida}": ${1:valor}}', + '', + ].join('\n'), + }, + { label: 'ctx.log.info', documentation: 'Log no stdout da tentativa', insertText: 'ctx.log.info("${1:mensagem}")' }, + { + label: 'ctx.new_file', + documentation: 'Arquivo de saída (devolva-o no dicionário de saídas)', + insertText: '${1:arquivo} = ctx.new_file("${2:nome.txt}", "${3:text/plain}")', + }, + { label: 'ctx.secrets', documentation: 'Segredo declarado no Stage', insertText: 'ctx.secrets["${1:NOME}"]' }, + { + label: 'StageError', + documentation: 'Falha de negócio com código estável', + insertText: 'raise StageError("${1:mensagem}", code="${2:CODIGO}")', + }, +] + +monaco.languages.registerCompletionItemProvider('python', { + provideCompletionItems: (model, position) => { + const word = model.getWordUntilPosition(position) + const range = new monaco.Range(position.lineNumber, word.startColumn, position.lineNumber, word.endColumn) + return { + suggestions: snippets.map((s) => ({ + label: s.label, + kind: monaco.languages.CompletionItemKind.Snippet, + documentation: s.documentation, + insertText: s.insertText, + insertTextRules: monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet, + range, + })), + } + }, +}) + +export { monaco } diff --git a/panel/src/components/editor/types.ts b/panel/src/components/editor/types.ts new file mode 100644 index 0000000..20e082e --- /dev/null +++ b/panel/src/components/editor/types.ts @@ -0,0 +1,6 @@ +/** Problema marcado no editor (ex.: erro de sintaxe com linha e coluna). */ +export interface Marker { + line: number + column?: number + message: string +} diff --git a/panel/src/components/fields/FieldBuilder.vue b/panel/src/components/fields/FieldBuilder.vue new file mode 100644 index 0000000..a502b7d --- /dev/null +++ b/panel/src/components/fields/FieldBuilder.vue @@ -0,0 +1,290 @@ + + + diff --git a/panel/src/components/fields/FieldForm.spec.ts b/panel/src/components/fields/FieldForm.spec.ts new file mode 100644 index 0000000..440d276 --- /dev/null +++ b/panel/src/components/fields/FieldForm.spec.ts @@ -0,0 +1,43 @@ +import { mount } from '@vue/test-utils' +import { describe, expect, it } from 'vitest' +import { nextTick } from 'vue' +import FieldForm from './FieldForm.vue' +import type { FieldDefinition, UiValue } from './values' + +/** Spec 008, AC-14: o formulário gerado mostra um widget por tipo e valida antes de enviar. */ +const fields: FieldDefinition[] = [ + { name: 'numero', type: 'number' }, + { name: 'inteiro', type: 'integer' }, + { name: 'valor', type: 'decimal' }, + { name: 'texto', type: 'string' }, + { name: 'ativo', type: 'bool' }, + { name: 'dia', type: 'date' }, + { name: 'quando', type: 'datetime' }, + { name: 'cor', type: 'enum', enumValues: ['azul', 'verde'] }, + { name: 'dados', type: 'json' }, + { name: 'linhas', type: 'table' }, + { name: 'arquivo', type: 'file' }, + { name: 'termos', type: 'list', itemType: 'number' }, +] + +describe('Spec008_AC14 formulário gerado', () => { + it('mostra um widget por tipo e aponta os obrigatórios vazios', async () => { + let values: Record = {} + const wrapper = mount(FieldForm, { + props: { fields, modelValue: values, 'onUpdate:modelValue': (v: Record) => (values = v) }, + }) + await nextTick() + + for (const field of fields) { + expect(wrapper.find(`[data-field="${field.name}"]`).exists(), field.name).toBe(true) + } + + expect(wrapper.find('[data-field="dia"] input[type="date"]').exists()).toBe(true) + expect(wrapper.find('[data-field="quando"] input[type="datetime-local"]').exists()).toBe(true) + expect(wrapper.find('[data-field="arquivo"] input[type="file"]').exists()).toBe(true) + expect((wrapper.vm as unknown as { check: () => boolean }).check()).toBe(false) + await nextTick() + expect(wrapper.text()).toContain('Obrigatório.') + expect(Object.keys(values)).toEqual(fields.map((f) => f.name)) + }) +}) diff --git a/panel/src/components/fields/FieldForm.vue b/panel/src/components/fields/FieldForm.vue new file mode 100644 index 0000000..99c6b82 --- /dev/null +++ b/panel/src/components/fields/FieldForm.vue @@ -0,0 +1,85 @@ + + + diff --git a/panel/src/components/fields/FieldInput.vue b/panel/src/components/fields/FieldInput.vue new file mode 100644 index 0000000..3c79b1d --- /dev/null +++ b/panel/src/components/fields/FieldInput.vue @@ -0,0 +1,209 @@ + + + + + diff --git a/panel/src/components/fields/FieldOutput.vue b/panel/src/components/fields/FieldOutput.vue new file mode 100644 index 0000000..36a8474 --- /dev/null +++ b/panel/src/components/fields/FieldOutput.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/panel/src/components/fields/FileCard.vue b/panel/src/components/fields/FileCard.vue new file mode 100644 index 0000000..3e48d2e --- /dev/null +++ b/panel/src/components/fields/FileCard.vue @@ -0,0 +1,38 @@ + + + diff --git a/panel/src/components/fields/JsonTree.vue b/panel/src/components/fields/JsonTree.vue new file mode 100644 index 0000000..c458e57 --- /dev/null +++ b/panel/src/components/fields/JsonTree.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/panel/src/components/fields/values.spec.ts b/panel/src/components/fields/values.spec.ts new file mode 100644 index 0000000..d73aab1 --- /dev/null +++ b/panel/src/components/fields/values.spec.ts @@ -0,0 +1,117 @@ +import { describe, expect, it } from 'vitest' +import { + collectInputs, + emptyValue, + fromWire, + localToOffset, + parseCsv, + toFormData, + toWire, + validate, + type FieldDefinition, +} from './values' + +/** Spec 008, AC-14: os widgets dos 12 tipos validam e serializam conforme o mapeamento (decimal como texto, datetime com deslocamento). */ +const field = (type: FieldDefinition['type'], extra: Partial = {}): FieldDefinition => ({ + name: 'campo', + type, + ...extra, +}) + +describe('Spec008_AC14 widgets dos 12 tipos', () => { + it('number aceita vírgula ou ponto e vira número', () => { + expect(validate(field('number'), '1,5')).toBeNull() + expect(toWire(field('number'), '1,5')).toBe(1.5) + expect(validate(field('number'), 'abc')?.key).toBe('fields.errors.number') + }) + + it('integer recusa fração', () => { + expect(toWire(field('integer'), '42')).toBe(42) + expect(validate(field('integer'), '4.2')?.key).toBe('fields.errors.integer') + }) + + it('decimal fica como texto, sem arredondar', () => { + expect(toWire(field('decimal'), '0,1000000000000000055511')).toBe('0.1000000000000000055511') + expect(toWire(field('decimal'), ',5')).toBe('0.5') + expect(validate(field('decimal'), '1.2.3')?.key).toBe('fields.errors.decimal') + }) + + it('string e bool', () => { + expect(toWire(field('string'), 'olá')).toBe('olá') + expect(toWire(field('bool'), true)).toBe(true) + expect(toWire(field('bool'), false)).toBe(false) + }) + + it('date valida o calendário', () => { + expect(toWire(field('date'), '2026-02-28')).toBe('2026-02-28') + expect(validate(field('date'), '2026-02-30')?.key).toBe('fields.errors.date') + }) + + it('datetime sai com o deslocamento do fuso local', () => { + const wire = toWire(field('datetime'), '2026-10-20T08:30') as string + expect(wire).toMatch(/^2026-10-20T08:30:00[+-]\d{2}:\d{2}$/) + expect(new Date(wire).getTime()).toBe(new Date(2026, 9, 20, 8, 30).getTime()) + expect(localToOffset('2026-13-01T00:00')).toBeNull() + expect(fromWire(field('datetime'), wire)).toBe('2026-10-20T08:30:00') + }) + + it('enum só aceita os valores declarados', () => { + const color = field('enum', { enumValues: ['azul', 'verde'] }) + expect(validate(color, 'azul')).toBeNull() + expect(validate(color, 'roxo')?.key).toBe('fields.errors.enum') + }) + + it('json e table são interpretados', () => { + expect(toWire(field('json'), '{"a": [1, 2]}')).toEqual({ a: [1, 2] }) + expect(validate(field('json'), '{a:1}')?.key).toBe('fields.errors.json') + expect(toWire(field('table'), '[{"x": 1}]')).toEqual([{ x: 1 }]) + expect(validate(field('table'), '[1, 2]')?.key).toBe('fields.errors.table') + }) + + it('table importa CSV tipando pelas colunas', () => { + const rows = parseCsv('nome;valor;ativo\n"Ana; filha";10,5;sim\nBia;2;não\n', [ + { name: 'valor', type: 'number' }, + { name: 'ativo', type: 'bool' }, + ]) + expect(rows).toEqual([ + { nome: 'Ana; filha', valor: 10.5, ativo: true }, + { nome: 'Bia', valor: 2, ativo: false }, + ]) + }) + + it('file confere tamanho e tipo, e vai como parte do multipart', () => { + const pdf = new File(['%PDF'], 'a.pdf', { type: 'application/pdf' }) + expect(validate(field('file', { contentTypes: ['application/pdf'] }), pdf)).toBeNull() + expect(validate(field('file', { contentTypes: ['text/html'] }), pdf)?.key).toBe('fields.errors.fileType') + expect(validate(field('file'), pdf, 2)?.key).toBe('fields.errors.fileSize') + const run = collectInputs([field('file', { name: 'html' }), field('string', { name: 'assunto' })], { + html: pdf, + assunto: 'oi', + }) + expect(run).toEqual({ inputs: { assunto: 'oi' }, files: [['html', pdf]] }) + + // A parte "inputs" vai como texto (um Blob viraria o arquivo "blob"); cada arquivo, pelo nome do campo. + const form = toFormData(run, { version: '2', idempotencyKey: '' }) + expect(form.get('inputs')).toBe('{"assunto":"oi"}') + expect((form.get('html') as File).name).toBe(pdf.name) + expect(form.get('version')).toBe('2') + expect(form.has('idempotencyKey')).toBe(false) + }) + + it('list valida e serializa cada item com o widget do tipo do item', () => { + const numbers = field('list', { itemType: 'number' }) + expect(toWire(numbers, ['1', '2,5'])).toEqual([1, 2.5]) + expect(validate(numbers, ['1', 'x'])).toEqual({ + key: 'fields.errors.item', + params: { index: 2, reason: 'fields.errors.number' }, + }) + expect(fromWire(numbers, [3, 4])).toEqual(['3', '4']) + }) + + it('obrigatório vazio falha; opcional e com default não', () => { + expect(validate(field('string'), '')?.key).toBe('fields.errors.required') + expect(validate(field('string', { required: false }), '')).toBeNull() + expect(emptyValue(field('integer', { default: 7 }))).toBe('7') + expect(toWire(field('string', { required: false }), '')).toBeUndefined() + }) +}) diff --git a/panel/src/components/fields/values.ts b/panel/src/components/fields/values.ts new file mode 100644 index 0000000..eb6c214 --- /dev/null +++ b/panel/src/components/fields/values.ts @@ -0,0 +1,379 @@ +import type { Schemas } from '@/api/client' + +/** Declaração de um campo no formato do manifesto (spec 003; data mapping §2.1). */ +export type FieldDefinition = NonNullable[number] +export type FieldKind = FieldDefinition['type'] +export type ColumnKind = NonNullable[number]['type'] + +/** Arquivo escolhido no formulário. */ +export type FileValue = File | null + +/** + * Valor de um campo enquanto está no formulário: números e textos como digitados, data/hora local, JSON como texto, + * arquivos como `File` e listas como arrays do valor do item. + */ +export type UiValue = string | boolean | FileValue | File[] | UiValue[] | null + +/** Chave i18n de um problema de validação (com parâmetros). */ +export interface ValueError { + key: string + params?: Record +} + +const integerPattern = /^-?\d+$/ +const decimalPattern = /^-?\d+(\.\d+)?$/ +const datePattern = /^\d{4}-\d{2}-\d{2}$/ +const localDateTimePattern = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/ + +/** Tipo dos itens de uma lista (ou o próprio tipo). */ +export function itemField(field: FieldDefinition): FieldDefinition { + return { ...field, type: field.itemType ?? 'string', itemType: undefined, required: true, default: undefined } +} + +/** Número digitado em pt-BR ou en: aceita vírgula ou ponto como separador decimal (sem separador de milhar). */ +export function normalizeNumber(text: string): string { + return text.trim().replace(',', '.') +} + +function isEmpty(field: FieldDefinition, value: UiValue): boolean { + switch (field.type) { + case 'bool': + return value === null + case 'file': + return value === null || value === undefined + case 'list': + return !Array.isArray(value) || value.length === 0 + default: + return value === null || value === undefined || (typeof value === 'string' && value.trim() === '') + } +} + +/** Valor inicial do formulário (o default declarado, quando há). */ +export function emptyValue(field: FieldDefinition): UiValue { + if (field.default !== undefined && field.default !== null) { + return fromWire(field, field.default) + } + + switch (field.type) { + case 'bool': + return field.required === false ? null : false + case 'file': + return null + case 'list': + return [] + default: + return '' + } +} + +/** Formata um instante para o seletor de data/hora local (`YYYY-MM-DDTHH:mm:ss`). */ +export function toLocalInput(value: Date): string { + const pad = (n: number) => String(n).padStart(2, '0') + return `${value.getFullYear()}-${pad(value.getMonth() + 1)}-${pad(value.getDate())}T${pad(value.getHours())}:${pad(value.getMinutes())}:${pad(value.getSeconds())}` +} + +/** Data/hora local do seletor → ISO 8601 com o deslocamento do fuso do navegador naquela data. */ +export function localToOffset(local: string): string | null { + const match = localDateTimePattern.exec(local.trim()) + if (!match) { + return null + } + + const [, y, mo, d, h, mi, s] = match + const date = new Date(Number(y), Number(mo) - 1, Number(d), Number(h), Number(mi), Number(s ?? '0')) + if (Number.isNaN(date.getTime()) || date.getMonth() !== Number(mo) - 1 || date.getDate() !== Number(d)) { + return null + } + + const offset = -date.getTimezoneOffset() + const sign = offset >= 0 ? '+' : '-' + const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, '0') + const minutes = String(Math.abs(offset) % 60).padStart(2, '0') + return `${toLocalInput(date)}${sign}${hours}:${minutes}` +} + +function isValidDate(text: string): boolean { + if (!datePattern.test(text)) { + return false + } + + const [y, m, d] = text.split('-').map(Number) as [number, number, number] + const date = new Date(Date.UTC(y, m - 1, d)) + return date.getUTCFullYear() === y && date.getUTCMonth() === m - 1 && date.getUTCDate() === d +} + +function parseJson(text: string): { ok: true; value: unknown } | { ok: false } { + try { + return { ok: true, value: JSON.parse(text) } + } catch { + return { ok: false } + } +} + +function isRecordArray(value: unknown): value is Record[] { + return Array.isArray(value) && value.every((row) => row !== null && typeof row === 'object' && !Array.isArray(row)) +} + +function acceptedType(field: FieldDefinition, file: File): boolean { + const accepted = field.contentTypes + if (!accepted || accepted.length === 0) { + return true + } + + const type = file.type.split(';')[0]?.trim().toLowerCase() ?? '' + return accepted.some((a) => a.toLowerCase() === type || (a.endsWith('/*') && type.startsWith(a.slice(0, -1).toLowerCase()))) +} + +/** Valida um valor do formulário; `null` quando está certo. */ +export function validate(field: FieldDefinition, value: UiValue, maxFileBytes = 50 * 1024 * 1024): ValueError | null { + if (isEmpty(field, value)) { + return field.required === false || field.default !== undefined ? null : { key: 'fields.errors.required' } + } + + switch (field.type) { + case 'number': { + const text = normalizeNumber(String(value)) + return Number.isFinite(Number(text)) && text !== '' && !/^[+-]?(infinity|nan)$/i.test(text) + ? null + : { key: 'fields.errors.number' } + } + case 'integer': { + const text = normalizeNumber(String(value)) + return integerPattern.test(text) && Number.isSafeInteger(Number(text)) ? null : { key: 'fields.errors.integer' } + } + case 'decimal': + return decimalPattern.test(normalizeNumber(String(value))) ? null : { key: 'fields.errors.decimal' } + case 'string': + case 'bool': + return null + case 'date': + return isValidDate(String(value).trim()) ? null : { key: 'fields.errors.date' } + case 'datetime': + return localToOffset(String(value)) ? null : { key: 'fields.errors.datetime' } + case 'enum': + return (field.enumValues ?? []).includes(String(value)) ? null : { key: 'fields.errors.enum' } + case 'json': + return parseJson(String(value)).ok ? null : { key: 'fields.errors.json' } + case 'table': { + const parsed = parseJson(String(value)) + return parsed.ok && isRecordArray(parsed.value) ? null : { key: 'fields.errors.table' } + } + case 'file': { + const file = value as File + if (file.size > maxFileBytes) { + return { key: 'fields.errors.fileSize', params: { mb: Math.round(maxFileBytes / (1024 * 1024)) } } + } + + return acceptedType(field, file) + ? null + : { key: 'fields.errors.fileType', params: { types: field.contentTypes?.join(', ') } } + } + case 'list': { + const item = itemField(field) + const items = value as UiValue[] + for (let i = 0; i < items.length; i++) { + const error = validate(item, items[i] ?? null, maxFileBytes) + if (error) { + return { key: 'fields.errors.item', params: { index: i + 1, ...error.params, reason: error.key } } + } + } + + return null + } + default: + return null + } +} + +/** + * Converte o valor do formulário para o formato da API (wire; spec 003): `decimal` como texto, `datetime` com + * deslocamento, `json`/`table` já interpretados. Arquivos não entram (vão como partes do multipart). + * `undefined` quando o campo ficou vazio. + */ +export function toWire(field: FieldDefinition, value: UiValue): unknown { + if (isEmpty(field, value)) { + return undefined + } + + switch (field.type) { + case 'number': + case 'integer': + return Number(normalizeNumber(String(value))) + case 'decimal': { + const text = normalizeNumber(String(value)) + return text.startsWith('.') ? `0${text}` : text + } + case 'string': + case 'enum': + return String(value) + case 'bool': + return value === true + case 'date': + return String(value).trim() + case 'datetime': + return localToOffset(String(value)) ?? undefined + case 'json': + case 'table': + return JSON.parse(String(value)) as unknown + case 'file': + return undefined + case 'list': { + const item = itemField(field) + if (item.type === 'file') { + return undefined + } + + return (value as UiValue[]).map((v) => toWire(item, v)) + } + default: + return value + } +} + +/** Converte um valor da API (wire) para o formulário (defaults, entradas fixas de agendamento). */ +export function fromWire(field: FieldDefinition, wire: unknown): UiValue { + if (wire === null || wire === undefined) { + return emptyValue({ ...field, default: undefined }) + } + + switch (field.type) { + case 'number': + case 'integer': + case 'decimal': + case 'string': + case 'enum': + case 'date': + return String(wire) + case 'bool': + return wire === true + case 'datetime': { + const date = new Date(String(wire)) + return Number.isNaN(date.getTime()) ? String(wire) : toLocalInput(date) + } + case 'json': + case 'table': + return JSON.stringify(wire, null, 2) + case 'list': { + const item = itemField(field) + return Array.isArray(wire) ? wire.map((v) => fromWire(item, v)) : [] + } + default: + return null + } +} + +/** Entradas de uma execução: os valores (wire) e os arquivos por campo. */ +export interface RunInputs { + inputs: Record + files: [string, File][] +} + +/** Separa os valores do formulário em JSON e arquivos. */ +export function collectInputs(fields: FieldDefinition[], values: Record): RunInputs { + const inputs: Record = {} + const files: [string, File][] = [] + for (const field of fields) { + const value = values[field.name] ?? null + if (field.type === 'file' && value instanceof File) { + files.push([field.name, value]) + } else if (field.type === 'list' && field.itemType === 'file' && Array.isArray(value)) { + value.filter((v): v is File => v instanceof File).forEach((file) => files.push([field.name, file])) + } else { + const wire = toWire(field, value) + if (wire !== undefined) { + inputs[field.name] = wire + } + } + } + + return { inputs, files } +} + +/** Corpo multipart de um disparo ou teste (parte `inputs` em JSON + arquivos pelo nome do campo; spec 007). */ +export function toFormData(run: RunInputs, extra: Record = {}): FormData { + const form = new FormData() + // Texto, não Blob: um Blob vira arquivo ("blob") e o servidor o trataria como entrada do tipo file. + form.append('inputs', JSON.stringify(run.inputs)) + for (const [name, file] of run.files) { + form.append(name, file, file.name) + } + + for (const [name, value] of Object.entries(extra)) { + if (value !== undefined && value !== '') { + form.append(name, value) + } + } + + return form +} + +/** Lê um CSV (vírgula ou ponto e vírgula; aspas duplas) como linhas de uma tabela, tipando pelas colunas declaradas. */ +export function parseCsv(text: string, columns?: FieldDefinition['columns']): Record[] { + const rows = splitCsv(text.replace(/^/, '')) + const header = rows.shift()?.map((h) => h.trim()) ?? [] + const types = new Map((columns ?? []).map((c) => [c.name, c.type])) + return rows + .filter((row) => row.some((cell) => cell.trim() !== '')) + .map((row) => Object.fromEntries(header.map((name, i) => [name, typedCell(row[i] ?? '', types.get(name))]))) +} + +function typedCell(cell: string, type: ColumnKind | undefined): unknown { + const text = cell.trim() + switch (type) { + case 'number': + case 'integer': { + const n = Number(normalizeNumber(text)) + return text === '' || Number.isNaN(n) ? text : n + } + case 'bool': + return /^(true|sim|1)$/i.test(text) ? true : /^(false|não|nao|0)$/i.test(text) ? false : text + case 'decimal': + return normalizeNumber(text) + default: + return cell + } +} + +function splitCsv(text: string): string[][] { + const delimiter = (text.split('\n')[0] ?? '').includes(';') ? ';' : ',' + const rows: string[][] = [] + let row: string[] = [] + let cell = '' + let quoted = false + for (let i = 0; i < text.length; i++) { + const char = text[i] + if (quoted) { + if (char === '"' && text[i + 1] === '"') { + cell += '"' + i++ + } else if (char === '"') { + quoted = false + } else { + cell += char + } + } else if (char === '"') { + quoted = true + } else if (char === delimiter) { + row.push(cell) + cell = '' + } else if (char === '\n' || char === '\r') { + if (char === '\r' && text[i + 1] === '\n') { + i++ + } + + row.push(cell) + rows.push(row) + row = [] + cell = '' + } else { + cell += char + } + } + + if (cell !== '' || row.length > 0) { + row.push(cell) + rows.push(row) + } + + return rows +} diff --git a/panel/src/components/flow/FlowCanvas.vue b/panel/src/components/flow/FlowCanvas.vue new file mode 100644 index 0000000..d6eb3c2 --- /dev/null +++ b/panel/src/components/flow/FlowCanvas.vue @@ -0,0 +1,163 @@ + + + diff --git a/panel/src/components/flow/IoNode.vue b/panel/src/components/flow/IoNode.vue new file mode 100644 index 0000000..fbccbda --- /dev/null +++ b/panel/src/components/flow/IoNode.vue @@ -0,0 +1,61 @@ + + + diff --git a/panel/src/components/flow/RunFlow.vue b/panel/src/components/flow/RunFlow.vue new file mode 100644 index 0000000..b0af269 --- /dev/null +++ b/panel/src/components/flow/RunFlow.vue @@ -0,0 +1,25 @@ + + + diff --git a/panel/src/components/flow/StepNode.vue b/panel/src/components/flow/StepNode.vue new file mode 100644 index 0000000..e975ad0 --- /dev/null +++ b/panel/src/components/flow/StepNode.vue @@ -0,0 +1,101 @@ + + + diff --git a/panel/src/components/flow/context.ts b/panel/src/components/flow/context.ts new file mode 100644 index 0000000..c0ecae9 --- /dev/null +++ b/panel/src/components/flow/context.ts @@ -0,0 +1,21 @@ +import type { InjectionKey, Ref } from 'vue' + +/** Origem da ligação sendo arrastada no editor. */ +export interface DragSource { + nodeId: string + handleId: string +} + +/** Contexto do canvas para os nós (somente leitura no fluxo ao vivo). */ +export interface FlowContext { + editable: boolean + dragging: Ref + /** A entrada `handleId` do nó `nodeId` aceita a ligação que está sendo arrastada? (tipos da spec 003 + ordem linear; D-52) */ + accepts(nodeId: string, handleId: string): boolean + /** Clique numa entrada (valor fixo ou ligação implícita). */ + inputClicked(nodeId: string, input: string): void + /** Clique no nó (painel lateral). */ + nodeClicked(nodeId: string): void +} + +export const flowContextKey: InjectionKey = Symbol('psr-flow') diff --git a/panel/src/components/flow/editing.spec.ts b/panel/src/components/flow/editing.spec.ts new file mode 100644 index 0000000..4c9f37b --- /dev/null +++ b/panel/src/components/flow/editing.spec.ts @@ -0,0 +1,93 @@ +import { describe, expect, it } from 'vitest' +import type { FieldDefinition } from '@/components/fields/values' +import { accepts, connect, removeEdges, removeStep, renameStep } from './editing' +import { + buildGraph, + contractKey, + implicitSource, + inputsNode, + outputsNode, + stepNodeId, + type PipelineData, + type StageContract, +} from './model' + +const f = (name: string, type: FieldDefinition['type'], extra: Partial = {}): FieldDefinition => ({ + name, + type, + ...extra, +}) + +const contracts = new Map([ + [contractKey('texto', 1), { key: 'texto', version: 1, inputs: [f('n', 'integer')], outputs: [f('texto', 'string')] }], + [ + contractKey('soma', 1), + { key: 'soma', version: 1, inputs: [f('n', 'integer'), f('x', 'number')], outputs: [f('total', 'number')] }, + ], +]) +const matrix: Record = { + integer: ['integer', 'number', 'decimal', 'json'], + string: ['string', 'json'], + number: ['number', 'json'], +} +const assignable = (s: FieldDefinition, t: FieldDefinition) => (matrix[s.type] ?? [s.type]).includes(t.type) + +const data: PipelineData = { + inputs: [f('n', 'integer')], + steps: [ + { key: 'a', stageKey: 'texto', stageVersion: 1, bindings: [] }, + { key: 'b', stageKey: 'soma', stageVersion: 1, bindings: [] }, + { key: 'c', stageKey: 'soma', stageVersion: 1, bindings: [] }, + ], + outputs: [], +} + +describe('Editor visual: regras de ligação (spec 008 §3)', () => { + it('Spec008_AC04 saída string não liga em entrada integer (handle desabilitado)', () => { + expect(accepts(data, contracts, assignable, { nodeId: stepNodeId('a'), handleId: 'o:texto' }, stepNodeId('b'), 'i:n')).toBe( + false, + ) + expect(accepts(data, contracts, assignable, { nodeId: inputsNode, handleId: 'o:n' }, stepNodeId('b'), 'i:x')).toBe(true) + }) + + it('Spec008_AC05 ligação de um passo posterior para um anterior é bloqueada (linear; D-52)', () => { + expect(accepts(data, contracts, assignable, { nodeId: stepNodeId('c'), handleId: 'o:total' }, stepNodeId('b'), 'i:x')).toBe( + false, + ) + expect(accepts(data, contracts, assignable, { nodeId: stepNodeId('b'), handleId: 'o:total' }, stepNodeId('c'), 'i:x')).toBe( + true, + ) + }) + + it('ligar substitui a ligação anterior; a saída da trilha aceita saídas de passo', () => { + let next = connect(data, { source: inputsNode, sourceHandle: 'o:n', target: stepNodeId('b'), targetHandle: 'i:x' }) + next = connect(next, { source: stepNodeId('a'), sourceHandle: 'o:texto', target: stepNodeId('b'), targetHandle: 'i:x' }) + expect(next.steps![1]!.bindings).toEqual([{ input: 'x', source: { kind: 'step', step: 'a', field: 'texto' } }]) + expect( + accepts(next, contracts, assignable, { nodeId: stepNodeId('c'), handleId: 'o:total' }, outputsNode, 'new-output'), + ).toBe(true) + next = connect(next, { source: stepNodeId('c'), sourceHandle: 'o:total', target: outputsNode, targetHandle: 'new-output' }) + expect(next.outputs).toEqual([{ name: 'total', source: { step: 'c', field: 'total' } }]) + }) + + it('remover passo apaga as ligações e saídas que dependiam dele; renomear atualiza referências', () => { + let next = connect(data, { source: stepNodeId('b'), sourceHandle: 'o:total', target: stepNodeId('c'), targetHandle: 'i:x' }) + next = connect(next, { source: stepNodeId('b'), sourceHandle: 'o:total', target: outputsNode, targetHandle: 'new-output' }) + const renamed = renameStep(next, 'b', 'soma-1') + expect(renamed.steps![2]!.bindings![0]!.source).toEqual({ kind: 'step', step: 'soma-1', field: 'total' }) + expect(renamed.outputs![0]!.source.step).toBe('soma-1') + + const removed = removeStep(next, 'b') + expect(removed.steps!.map((s) => s.key)).toEqual(['a', 'c']) + expect(removed.steps![1]!.bindings).toEqual([]) + expect(removed.outputs).toEqual([]) + expect(removeEdges(next, ['e:step:c:x']).steps![2]!.bindings).toEqual([]) + }) + + it('ligação implícita: 1º passo ← entrada da trilha; demais ← saída de mesmo nome do anterior', () => { + expect(implicitSource(data, 0, 'n', contracts)).toEqual({ kind: 'pipeline', field: 'n' }) + expect(implicitSource(data, 1, 'n', contracts), 'o passo "a" não tem saída "n"').toBeNull() + const graph = buildGraph(data, contracts, { nodes: {} }) + expect(graph.edges.some((e) => e.id === `implicit:${stepNodeId('a')}:n`)).toBe(true) + }) +}) diff --git a/panel/src/components/flow/editing.ts b/panel/src/components/flow/editing.ts new file mode 100644 index 0000000..7e230dd --- /dev/null +++ b/panel/src/components/flow/editing.ts @@ -0,0 +1,257 @@ +import type { Connection } from '@vue-flow/core' +import type { FieldDefinition } from '@/components/fields/values' +import { + contractKey, + inputsNode, + outputsNode, + stepNodeId, + type BindingSource, + type PipelineData, + type StageContract, +} from './model' + +/** + * Regras de edição do editor visual (spec 008 §3; D-48, D-52): a definição da trilha é a fonte da verdade e cada ação + * devolve uma nova definição. + */ +export type Assignable = (source: FieldDefinition, target: FieldDefinition) => boolean + +const stepKeyPattern = /^[a-z0-9]+(-[a-z0-9]+)*$/ + +function clone(data: PipelineData): PipelineData { + return { + ...data, + inputs: [...(data.inputs ?? [])], + outputs: [...(data.outputs ?? [])], + steps: (data.steps ?? []).map((s) => ({ ...s, bindings: [...(s.bindings ?? [])] })), + } +} + +export function stepIndexOf(data: PipelineData, nodeId: string): number { + return (data.steps ?? []).findIndex((s) => stepNodeId(s.key) === nodeId) +} + +function contractOf(data: PipelineData, index: number, contracts: Map) { + const step = data.steps?.[index] + return step ? contracts.get(contractKey(step.stageKey, step.stageVersion)) : undefined +} + +/** Campo de origem de um handle de saída (entrada da trilha ou saída de um passo). */ +export function sourceField( + data: PipelineData, + contracts: Map, + nodeId: string, + handleId: string, +): FieldDefinition | null { + const name = handleId.replace(/^o:/, '') + if (nodeId === inputsNode) { + return (data.inputs ?? []).find((f) => f.name === name) ?? null + } + + return contractOf(data, stepIndexOf(data, nodeId), contracts)?.outputs.find((f) => f.name === name) ?? null +} + +/** Campo de destino de um handle de entrada (entrada de um passo). */ +export function targetField( + data: PipelineData, + contracts: Map, + nodeId: string, + handleId: string, +): FieldDefinition | null { + const name = handleId.replace(/^i:/, '') + return contractOf(data, stepIndexOf(data, nodeId), contracts)?.inputs.find((f) => f.name === name) ?? null +} + +/** + * A ligação é permitida? Tipos compatíveis (matriz da spec 003) e só de passos anteriores (linear; D-52); a saída da + * trilha aceita qualquer saída de passo. + */ +export function accepts( + data: PipelineData, + contracts: Map, + assignable: Assignable, + source: { nodeId: string; handleId: string }, + nodeId: string, + handleId: string, +): boolean { + const from = sourceField(data, contracts, source.nodeId, source.handleId) + if (!from || source.nodeId === outputsNode) { + return false + } + + if (nodeId === outputsNode) { + return source.nodeId !== inputsNode && handleId === 'new-output' + } + + const targetIndex = stepIndexOf(data, nodeId) + if (targetIndex < 0) { + return false + } + + if (source.nodeId !== inputsNode && stepIndexOf(data, source.nodeId) >= targetIndex) { + return false + } + + const to = targetField(data, contracts, nodeId, handleId) + return to !== null && assignable(from, to) +} + +function sourceOf(data: PipelineData, nodeId: string, handleId: string): BindingSource { + const field = handleId.replace(/^o:/, '') + return nodeId === inputsNode + ? { kind: 'pipeline', field } + : { kind: 'step', step: data.steps![stepIndexOf(data, nodeId)]!.key, field } +} + +/** Nome livre para uma saída da trilha. */ +export function uniqueOutputName(data: PipelineData, base: string): string { + const taken = new Set((data.outputs ?? []).map((o) => o.name)) + let name = base + for (let i = 2; taken.has(name); i++) { + name = `${base}_${i}` + } + + return name +} + +/** Aplica uma ligação feita no canvas (substitui a ligação anterior da mesma entrada). */ +export function connect(data: PipelineData, connection: Connection): PipelineData { + const next = clone(data) + if (!connection.sourceHandle || !connection.targetHandle) { + return data + } + + const source = sourceOf(next, connection.source, connection.sourceHandle) + if (connection.target === outputsNode) { + if (source.kind !== 'step') { + return data + } + + next.outputs!.push({ name: uniqueOutputName(next, source.field), source: { step: source.step, field: source.field } }) + return next + } + + const step = next.steps![stepIndexOf(next, connection.target)] + if (!step) { + return data + } + + const input = connection.targetHandle.replace(/^i:/, '') + step.bindings = [...step.bindings!.filter((b) => b.input !== input), { input, source }] + return next +} + +/** Remove arestas: ligações de entradas (`e::`) ou saídas da trilha (`out:`). */ +export function removeEdges(data: PipelineData, ids: string[]): PipelineData { + const next = clone(data) + for (const id of ids) { + if (id.startsWith('out:')) { + next.outputs = next.outputs!.filter((o) => `out:${o.name}` !== id) + continue + } + + const match = /^e:step:(.+):([^:]+)$/.exec(id) + if (match) { + const step = next.steps!.find((s) => s.key === match[1]) + if (step) { + step.bindings = step.bindings!.filter((b) => b.input !== match[2]) + } + } + } + + return next +} + +/** Remove um passo e tudo que dependia dele (ligações dos passos seguintes e saídas da trilha). */ +export function removeStep(data: PipelineData, key: string): PipelineData { + const next = clone(data) + next.steps = next.steps!.filter((s) => s.key !== key) + for (const step of next.steps) { + step.bindings = step.bindings!.filter((b) => !(b.source.kind === 'step' && b.source.step === key)) + } + + next.outputs = next.outputs!.filter((o) => o.source.step !== key) + return next +} + +/** Chave livre para um passo (slug a partir da chave da Etapa). */ +export function uniqueStepKey(data: PipelineData, base: string): string { + const taken = new Set((data.steps ?? []).map((s) => s.key)) + let key = base + for (let i = 2; taken.has(key); i++) { + key = `${base}-${i}` + } + + return key +} + +export function addStep(data: PipelineData, stageKey: string, stageVersion: number): { data: PipelineData; key: string } { + const next = clone(data) + const key = uniqueStepKey(next, stageKey) + next.steps!.push({ key, stageKey, stageVersion, bindings: [] }) + return { data: next, key } +} + +/** Define (ou remove, com `undefined`) o valor fixo de uma entrada. */ +export function setConstant(data: PipelineData, stepKey: string, input: string, value: unknown): PipelineData { + const next = clone(data) + const step = next.steps!.find((s) => s.key === stepKey) + if (step) { + step.bindings = step.bindings!.filter((b) => b.input !== input) + if (value !== undefined) { + step.bindings.push({ input, source: { kind: 'constant', value } }) + } + } + + return next +} + +/** Liga uma entrada a uma origem escolhida na lista (alternativa acessível ao canvas). */ +export function bind(data: PipelineData, stepKey: string, input: string, source: BindingSource | null): PipelineData { + const next = clone(data) + const step = next.steps!.find((s) => s.key === stepKey) + if (step) { + step.bindings = step.bindings!.filter((b) => b.input !== input) + if (source) { + step.bindings.push({ input, source }) + } + } + + return next +} + +/** Renomeia um passo e atualiza as referências a ele. */ +export function renameStep(data: PipelineData, from: string, to: string): PipelineData { + if (!stepKeyPattern.test(to) || (data.steps ?? []).some((s) => s.key === to)) { + return data + } + + const next = clone(data) + for (const step of next.steps!) { + if (step.key === from) { + step.key = to + } + + step.bindings = step.bindings!.map((b) => + b.source.kind === 'step' && b.source.step === from ? { ...b, source: { ...b.source, step: to } } : b, + ) + } + + next.outputs = next.outputs!.map((o) => (o.source.step === from ? { ...o, source: { ...o.source, step: to } } : o)) + return next +} + +/** Muda a posição de um passo na ordem linear (a validação aponta ligações que ficaram para trás). */ +export function moveStep(data: PipelineData, from: number, to: number): PipelineData { + const next = clone(data) + const [step] = next.steps!.splice(from, 1) + if (step) { + next.steps!.splice(Math.max(0, Math.min(to, next.steps!.length)), 0, step) + } + + return next +} + +export function isValidStepKey(key: string): boolean { + return stepKeyPattern.test(key) && key.length <= 64 +} diff --git a/panel/src/components/flow/flow.css b/panel/src/components/flow/flow.css new file mode 100644 index 0000000..2f99eda --- /dev/null +++ b/panel/src/components/flow/flow.css @@ -0,0 +1,167 @@ +.flow-canvas { + position: relative; + border: 1px solid rgba(var(--v-border-color), var(--v-border-opacity)); + border-radius: 6px; + background: rgb(var(--v-theme-surface)); +} + +.flow-canvas .vue-flow__node-step, +.flow-canvas .vue-flow__node-io { + padding: 0; + border: 0; + background: transparent; + width: auto; +} + +.step-node, +.io-node { + min-width: 220px; + background: rgb(var(--v-theme-surface)); + color: rgb(var(--v-theme-on-surface)); + border: 2px solid rgba(var(--v-border-color), 0.4); + border-radius: 8px; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); + font-size: 13px; +} + +.io-node--inputs, +.io-node--outputs { + border-style: dashed; +} + +.step-node__header, +.io-node__header { + display: flex; + align-items: center; + gap: 8px; + padding: 8px; +} + +.step-node__order { + display: inline-flex; + align-items: center; + justify-content: center; + width: 22px; + height: 22px; + border-radius: 50%; + background: rgb(var(--v-theme-primary)); + color: rgb(var(--v-theme-on-primary)); + font-weight: 600; + font-size: 12px; +} + +.step-node__title { + flex: 1; +} + +.step-node__ports { + display: flex; + justify-content: space-between; + gap: 16px; + padding: 4px 0 8px; +} + +.step-node__port, +.io-node__port { + position: relative; + display: flex; + align-items: center; + min-height: 24px; + padding: 0 12px; +} + +.step-node__port--out, +.io-node--inputs .io-node__port { + justify-content: flex-end; +} + +.step-node__port-label { + display: inline-flex; + align-items: center; + gap: 4px; + background: none; + border: 0; + color: inherit; + font: inherit; + cursor: default; + padding: 0; +} + +button.step-node__port-label { + cursor: pointer; +} + +.step-node__port--implicit .step-node__port-label { + font-style: italic; + opacity: 0.8; +} + +.io-node__label { + display: inline-flex; + align-items: center; + gap: 4px; +} + +.io-node__drop { + position: relative; + padding: 4px 12px 8px; + opacity: 0.8; +} + +.flow-canvas .vue-flow__handle { + width: 10px; + height: 10px; + background: rgb(var(--v-theme-primary)); + border: 2px solid rgb(var(--v-theme-surface)); +} + +.flow-canvas .vue-flow__handle.handle--disabled { + background: rgba(var(--v-theme-on-surface), 0.25); + cursor: not-allowed; +} + +.flow-canvas .vue-flow__edge.edge--implicit .vue-flow__edge-path { + stroke-dasharray: 6 4; + opacity: 0.6; +} + +/* Fluxo ao vivo: cor por status e nó em execução pulsando (spec 008). */ +.vue-flow__node.step--succeeded .step-node { + border-color: rgb(var(--v-theme-success)); +} + +.vue-flow__node.step--failed .step-node, +.vue-flow__node.step--timedout .step-node { + border-color: rgb(var(--v-theme-error)); +} + +.vue-flow__node.step--running .step-node { + border-color: rgb(var(--v-theme-info)); + animation: psr-pulse 1.4s ease-in-out infinite; +} + +.vue-flow__node.step--queued .step-node, +.vue-flow__node.step--pending .step-node { + border-color: rgb(var(--v-theme-warning)); +} + +.vue-flow__node.step--cancelled .step-node, +.vue-flow__node.step--skipped .step-node { + opacity: 0.6; +} + +@keyframes psr-pulse { + 0%, + 100% { + box-shadow: 0 0 0 0 rgba(var(--v-theme-info), 0.5); + } + 50% { + box-shadow: 0 0 0 8px rgba(var(--v-theme-info), 0); + } +} + +@media (prefers-reduced-motion: reduce) { + .vue-flow__node.step--running .step-node { + animation: none; + } +} diff --git a/panel/src/components/flow/model.ts b/panel/src/components/flow/model.ts new file mode 100644 index 0000000..7defc69 --- /dev/null +++ b/panel/src/components/flow/model.ts @@ -0,0 +1,273 @@ +import dagre from '@dagrejs/dagre' +import type { Edge, Node, XYPosition } from '@vue-flow/core' +import type { Schemas } from '@/api/client' +import type { FieldDefinition } from '@/components/fields/values' + +export type PipelineData = Schemas['PipelineDraftData'] +export type PipelineStep = Schemas['PipelineStepDefinition'] +export type BindingSource = Schemas['BindingSource'] + +/** Contrato de uma versão de Etapa usada por um passo. */ +export interface StageContract { + key: string + version: number + name?: string + inputs: FieldDefinition[] + outputs: FieldDefinition[] +} + +/** Estado de um passo numa execução (fluxo ao vivo). */ +export interface StepRunState { + status: string + attempt: number +} + +export type InputState = 'edge' | 'constant' | 'implicit' | 'none' + +export interface StepNodeData { + kind: 'step' + index: number + step: PipelineStep + contract: StageContract | null + inputs: { field: FieldDefinition; state: InputState; implicitFrom: string | null; constant: unknown }[] + run?: StepRunState +} + +export interface IoNodeData { + kind: 'inputs' | 'outputs' + fields: FieldDefinition[] +} + +export const inputsNode = 'inputs' +export const outputsNode = 'outputs' + +export const stepNodeId = (key: string) => `step:${key}` +export const inHandle = (name: string) => `i:${name}` +export const outHandle = (name: string) => `o:${name}` + +/** Chave de uma versão de Etapa (`chave@versão`). */ +export const contractKey = (stageKey: string, version: number) => `${stageKey}@${version}` + +/** Posições salvas no `layout` do rascunho (não afetam a execução). */ +export interface Layout { + nodes: Record +} + +export function readLayout(value: unknown): Layout { + const nodes = (value as { nodes?: Record } | null)?.nodes + return { nodes: nodes && typeof nodes === 'object' ? { ...nodes } : {} } +} + +/** Origem implícita de uma entrada sem ligação (spec 003): 1º passo ← entrada da trilha; demais ← saída do passo anterior. */ +export function implicitSource( + data: PipelineData, + index: number, + input: string, + contracts: Map, +): BindingSource | null { + if (index === 0) { + return (data.inputs ?? []).some((f) => f.name === input) ? { kind: 'pipeline', field: input } : null + } + + const previous = data.steps?.[index - 1] + const contract = previous ? contracts.get(contractKey(previous.stageKey, previous.stageVersion)) : undefined + return previous && contract?.outputs.some((o) => o.name === input) ? { kind: 'step', step: previous.key, field: input } : null +} + +function describe(source: BindingSource | null): string | null { + if (!source) { + return null + } + + return source.kind === 'pipeline' + ? `$pipeline.${source.field}` + : source.kind === 'step' + ? `$steps.${source.step}.${source.field}` + : null +} + +/** Tipo de uma saída da trilha (herdado do passo de origem). */ +export function outputField( + data: PipelineData, + output: Schemas['PipelineOutputDefinition'], + contracts: Map, +): FieldDefinition { + const step = data.steps?.find((s) => s.key === output.source.step) + const contract = step ? contracts.get(contractKey(step.stageKey, step.stageVersion)) : undefined + const field = contract?.outputs.find((o) => o.name === output.source.field) + return { ...(field ?? { type: 'json' }), name: output.name, description: output.description ?? field?.description } +} + +/** Monta nós e arestas do canvas a partir da definição da trilha (fonte da verdade do editor). */ +export function buildGraph( + data: PipelineData, + contracts: Map, + layout: Layout, + runState?: Map, +): { nodes: Node[]; edges: Edge[] } { + const steps = data.steps ?? [] + const nodes: Node[] = [ + { + id: inputsNode, + type: 'io', + position: layout.nodes[inputsNode] ?? { x: 0, y: 0 }, + data: { kind: 'inputs', fields: data.inputs ?? [] } satisfies IoNodeData, + deletable: false, + }, + ] + const edges: Edge[] = [] + steps.forEach((step, index) => { + const contract = contracts.get(contractKey(step.stageKey, step.stageVersion)) ?? null + const id = stepNodeId(step.key) + const inputs = (contract?.inputs ?? []).map((field) => { + const binding = (step.bindings ?? []).find((b) => b.input === field.name) + const implicit = binding ? null : describe(implicitSource(data, index, field.name, contracts)) + const state: InputState = binding + ? binding.source.kind === 'constant' + ? 'constant' + : 'edge' + : implicit + ? 'implicit' + : 'none' + return { + field, + state, + implicitFrom: implicit, + constant: binding?.source.kind === 'constant' ? binding.source.value : undefined, + } + }) + const run = runState?.get(step.key) + nodes.push({ + id, + type: 'step', + position: layout.nodes[id] ?? { x: 0, y: 0 }, + data: { kind: 'step', index, step, contract, inputs, run } satisfies StepNodeData, + class: run ? `step--${run.status.toLowerCase()}` : undefined, + }) + for (const binding of step.bindings ?? []) { + const source = binding.source + if (source.kind === 'constant') { + continue + } + + const fromNode = source.kind === 'pipeline' ? inputsNode : stepNodeId(source.step) + const running = run?.status === 'Running' + edges.push({ + id: `e:${id}:${binding.input}`, + source: fromNode, + sourceHandle: outHandle(source.field), + target: id, + targetHandle: inHandle(binding.input), + animated: running, + }) + } + + // Ligações implícitas aparecem tracejadas (não são salvas como ligação). + for (const input of inputs.filter((x) => x.state === 'implicit')) { + const source = implicitSource(data, index, input.field.name, contracts) + if (!source || source.kind === 'constant') { + continue + } + + edges.push({ + id: `implicit:${id}:${input.field.name}`, + source: source.kind === 'pipeline' ? inputsNode : stepNodeId(source.step), + sourceHandle: outHandle(source.field), + target: id, + targetHandle: inHandle(input.field.name), + class: 'edge--implicit', + selectable: false, + deletable: false, + animated: run?.status === 'Running', + }) + } + }) + const outputs = (data.outputs ?? []).map((o) => outputField(data, o, contracts)) + nodes.push({ + id: outputsNode, + type: 'io', + position: layout.nodes[outputsNode] ?? { x: 0, y: 0 }, + data: { kind: 'outputs', fields: outputs } satisfies IoNodeData, + deletable: false, + }) + for (const output of data.outputs ?? []) { + edges.push({ + id: `out:${output.name}`, + source: stepNodeId(output.source.step), + sourceHandle: outHandle(output.source.field), + target: outputsNode, + targetHandle: inHandle(output.name), + }) + } + + return { nodes, edges } +} + +/** Auto-layout da esquerda para a direita (dagre); só os nós sem posição salva quando `onlyMissing`. */ +export function autoLayout(nodes: Node[], edges: Edge[], layout: Layout, onlyMissing = false): Layout { + const graph = new dagre.graphlib.Graph() + graph.setGraph({ rankdir: 'LR', nodesep: 40, ranksep: 90 }) + graph.setDefaultEdgeLabel(() => ({})) + for (const node of nodes) { + const rows = + node.type === 'step' + ? Math.max((node.data as StepNodeData).inputs.length, (node.data as StepNodeData).contract?.outputs.length ?? 0) + : (node.data as IoNodeData).fields.length + graph.setNode(node.id, { width: 240, height: 70 + rows * 26 }) + } + + // A ordem dos passos define as colunas (linear; D-52). + const ordered = nodes + .filter((n) => n.type === 'step') + .sort((a, b) => (a.data as StepNodeData).index - (b.data as StepNodeData).index) + const chain = [inputsNode, ...ordered.map((n) => n.id), outputsNode] + chain.slice(1).forEach((id, i) => graph.setEdge(chain[i]!, id)) + edges.filter((e) => !e.id.startsWith('implicit:')).forEach((e) => graph.setEdge(e.source, e.target)) + dagre.layout(graph) + const result: Layout = { nodes: { ...layout.nodes } } + for (const node of nodes) { + if (onlyMissing && layout.nodes[node.id]) { + continue + } + + const { x, y, width, height } = graph.node(node.id) + result.nodes[node.id] = { x: Math.round(x - width / 2), y: Math.round(y - height / 2) } + } + + return result +} + +/** Ícone de cada tipo de campo (handles e listas). */ +export function typeIcon(type: string | undefined): string { + switch (type) { + case 'number': + case 'integer': + return 'mdi-numeric' + case 'decimal': + return 'mdi-decimal' + case 'string': + return 'mdi-format-text' + case 'bool': + return 'mdi-toggle-switch-outline' + case 'date': + return 'mdi-calendar' + case 'datetime': + return 'mdi-calendar-clock' + case 'enum': + return 'mdi-format-list-bulleted' + case 'json': + return 'mdi-code-json' + case 'table': + return 'mdi-table' + case 'file': + return 'mdi-file-outline' + case 'list': + return 'mdi-format-list-numbered' + default: + return 'mdi-help-circle-outline' + } +} + +export function typeLabel(field: FieldDefinition): string { + return field.type === 'list' ? `list<${field.itemType ?? '?'}>` : field.type +} diff --git a/panel/src/components/layout/AppShell.vue b/panel/src/components/layout/AppShell.vue new file mode 100644 index 0000000..500e562 --- /dev/null +++ b/panel/src/components/layout/AppShell.vue @@ -0,0 +1,104 @@ + + + diff --git a/panel/src/components/layout/CenteredCard.vue b/panel/src/components/layout/CenteredCard.vue new file mode 100644 index 0000000..5efc4d3 --- /dev/null +++ b/panel/src/components/layout/CenteredCard.vue @@ -0,0 +1,18 @@ + + + diff --git a/panel/src/composables/useApiAction.ts b/panel/src/composables/useApiAction.ts new file mode 100644 index 0000000..e2d185c --- /dev/null +++ b/panel/src/composables/useApiAction.ts @@ -0,0 +1,50 @@ +import { ref } from 'vue' +import { useI18n } from 'vue-i18n' +import { ApiError } from '@/api/client' +import { useNotify } from '@/stores/notify' + +/** Mensagem legível de um erro da API (código estável → texto do i18n, ou o detalhe do servidor). */ +export function useErrorText() { + const { t, te } = useI18n() + return (error: unknown): string => { + if (error instanceof ApiError) { + const key = `errors.${error.code}` + if (te(key)) { + return t(key) + } + + return error.message || t('errors.generic') + } + + return t('errors.generic') + } +} + +/** Executa uma ação da API com indicador de carregamento e aviso de erro (401/403 já tratados pela sessão). */ +export function useApiAction() { + const busy = ref(false) + const notify = useNotify() + const text = useErrorText() + + async function run(action: () => Promise, options: { silentCodes?: string[] } = {}): Promise { + busy.value = true + try { + return await action() + } catch (error) { + if (error instanceof ApiError && options.silentCodes?.includes(error.code)) { + throw error + } + + // 401 e 403 já foram tratados pela sessão (diálogo, redirecionamento ou aviso "seu acesso mudou"). + if (!(error instanceof ApiError && (error.status === 401 || error.status === 403))) { + notify.error(text(error)) + } + + return undefined + } finally { + busy.value = false + } + } + + return { busy, run } +} diff --git a/panel/src/composables/useContracts.ts b/panel/src/composables/useContracts.ts new file mode 100644 index 0000000..2ac0be0 --- /dev/null +++ b/panel/src/composables/useContracts.ts @@ -0,0 +1,51 @@ +import { reactive } from 'vue' +import { api, unwrap } from '@/api/client' +import { contractKey, type StageContract } from '@/components/flow/model' + +const cache = reactive(new Map()) +const pending = new Map>() + +/** Contratos (entradas e saídas) das versões de Etapa usadas pelos passos, com cache por `chave@versão`. */ +export function useContracts() { + async function load(stageKey: string, version: number): Promise { + const key = contractKey(stageKey, version) + if (cache.has(key)) { + return cache.get(key) ?? null + } + + let request = pending.get(key) + if (!request) { + request = unwrap(api.GET('/stages/{key}/versions/{version}', { params: { path: { key: stageKey, version } } })) + .then((detail) => ({ + key: stageKey, + version, + inputs: detail.data.inputs ?? [], + outputs: detail.data.outputs ?? [], + })) + .catch(() => null) + .then((contract) => { + cache.set(key, contract) + pending.delete(key) + return contract + }) + pending.set(key, request) + } + + return request + } + + async function loadAll(steps: { stageKey: string; stageVersion: number }[]): Promise> { + await Promise.all(steps.map((s) => load(s.stageKey, s.stageVersion))) + const result = new Map() + for (const step of steps) { + const contract = cache.get(contractKey(step.stageKey, step.stageVersion)) + if (contract) { + result.set(contractKey(step.stageKey, step.stageVersion), contract) + } + } + + return result + } + + return { load, loadAll } +} diff --git a/panel/src/composables/useFieldTypes.ts b/panel/src/composables/useFieldTypes.ts new file mode 100644 index 0000000..b2099fc --- /dev/null +++ b/panel/src/composables/useFieldTypes.ts @@ -0,0 +1,59 @@ +import { ref } from 'vue' +import { api, unwrap, type Schemas } from '@/api/client' +import type { FieldDefinition } from '@/components/fields/values' + +const cache = ref(null) +let loading: Promise | null = null + +/** Tipos de campo e matriz de compatibilidade (`GET /meta/field-types`), carregados uma vez. */ +export function useFieldTypes() { + async function load() { + if (cache.value) { + return + } + + loading ??= unwrap(api.GET('/meta/field-types')).then((data) => { + cache.value = data + }) + await loading + } + + /** + * Uma saída alimenta uma entrada? Mesma regra da spec 003: matriz por tipo + regras de enum, tabela, arquivo e lista + * conferidas com a declaração. + */ + function assignable(source: FieldDefinition, target: FieldDefinition): boolean { + if (target.type === 'json') { + return source.type !== 'file' && !(source.type === 'list' && source.itemType === 'file') + } + + if (source.type === 'list' && target.type === 'list') { + return assignable({ ...source, type: source.itemType ?? 'string' }, { ...target, type: target.itemType ?? 'string' }) + } + + if (source.type === 'enum' && target.type === 'enum') { + return (source.enumValues ?? []).every((v) => (target.enumValues ?? []).includes(v)) + } + + if (source.type === 'file' && target.type === 'file') { + const a = source.contentTypes ?? [] + const b = target.contentTypes ?? [] + return a.length === 0 || b.length === 0 || a.some((x) => b.some((y) => x.toLowerCase() === y.toLowerCase())) + } + + if (source.type === 'table' && target.type === 'table') { + const wanted = target.columns ?? [] + const given = source.columns ?? [] + return wanted.length === 0 || (given.length > 0 && wanted.every((w) => given.some((g) => g.name === w.name))) + } + + const matrix = cache.value?.compatibility + if (matrix) { + return (matrix[source.type] ?? []).includes(target.type) + } + + return source.type === target.type + } + + return { types: cache, load, assignable } +} diff --git a/panel/src/composables/useLive.ts b/panel/src/composables/useLive.ts new file mode 100644 index 0000000..05d151a --- /dev/null +++ b/panel/src/composables/useLive.ts @@ -0,0 +1,45 @@ +import { onBeforeUnmount, onMounted, ref, type Ref } from 'vue' +import { useRealtime, type LiveHandlers, type Subscription } from '@/stores/realtime' + +/** Acompanha grupos do hub enquanto o componente está montado (e o *polling* de 5 s sem conexão). */ +export function useLive(subscriptions: Subscription[] | (() => Subscription[]), handlers: LiveHandlers) { + const realtime = useRealtime() + let stop: (() => void) | null = null + + function start() { + stop?.() + stop = realtime.watch(typeof subscriptions === 'function' ? subscriptions() : subscriptions, handlers) + } + + onMounted(start) + onBeforeUnmount(() => stop?.()) + return { restart: start } +} + +/** Relógio local para durações ao vivo (sem requisições; spec 008). */ +export function useNow(intervalMs = 1000): Ref { + const now = ref(Date.now()) + let timer: ReturnType | null = null + onMounted(() => (timer = setInterval(() => (now.value = Date.now()), intervalMs))) + onBeforeUnmount(() => timer && clearInterval(timer)) + return now +} + +/** Executa no máximo uma vez por janela, sem perder a última chamada (recarregar /overview; D-150). */ +export function throttle(action: () => void, windowMs: number): () => void { + let last = 0 + let pending: ReturnType | null = null + return () => { + const wait = last + windowMs - Date.now() + if (wait <= 0) { + last = Date.now() + action() + } else if (pending === null) { + pending = setTimeout(() => { + pending = null + last = Date.now() + action() + }, wait) + } + } +} diff --git a/panel/src/composables/useLocalDraft.ts b/panel/src/composables/useLocalDraft.ts new file mode 100644 index 0000000..a58acf1 --- /dev/null +++ b/panel/src/composables/useLocalDraft.ts @@ -0,0 +1,64 @@ +import { onBeforeUnmount, ref } from 'vue' +import { onBeforeRouteLeave } from 'vue-router' +import { useI18n } from 'vue-i18n' +import { useDrafts, type LocalDraft } from '@/stores/drafts' +import { useSession } from '@/stores/session' + +/** + * Rascunho local de um editor (QA-008-4, D-143): oferece restaurar ao abrir, grava ao sair com alterações não salvas + * (inclusive no redirecionamento ao login do host) e apaga depois de salvar com sucesso. + */ +export function useLocalDraft(entity: () => string, current: () => T | undefined) { + const drafts = useDrafts() + const session = useSession() + const { t } = useI18n() + const offer = ref | null>(null) + const subject = () => session.me?.subject ?? 'anonymous' + const unregister = drafts.register(subject(), entity(), current) + + function check() { + offer.value = drafts.load(subject(), entity()) + } + + function discard() { + drafts.remove(subject(), entity()) + offer.value = null + } + + /** Alterações salvas no servidor: o rascunho local deixa de existir. */ + function saved() { + drafts.remove(subject(), entity()) + offer.value = null + } + + function keep() { + const data = current() + if (data !== undefined) { + drafts.save(subject(), entity(), data) + } + } + + function onUnload(event: BeforeUnloadEvent) { + if (current() !== undefined) { + keep() + event.preventDefault() + } + } + + window.addEventListener('beforeunload', onUnload) + onBeforeUnmount(() => { + window.removeEventListener('beforeunload', onUnload) + unregister() + }) + onBeforeRouteLeave(() => { + if (current() === undefined) { + return true + } + + // Alterações não salvas: confirma e preserva o rascunho local (spec 008, casos de borda). + keep() + return window.confirm(t('drafts.leave')) + }) + + return { offer, check, discard, saved, keep } +} diff --git a/panel/src/i18n/catalog.spec.ts b/panel/src/i18n/catalog.spec.ts new file mode 100644 index 0000000..8ab9aae --- /dev/null +++ b/panel/src/i18n/catalog.spec.ts @@ -0,0 +1,60 @@ +import { readdirSync, readFileSync, statSync } from 'node:fs' +import { join } from 'node:path' +import { describe, expect, it } from 'vitest' +import ptBR from './pt-BR' + +/** Spec 008 (i18n): toda chave usada no código existe no catálogo pt-BR. */ +function files(dir: string): string[] { + return readdirSync(dir).flatMap((name) => { + const path = join(dir, name) + return statSync(path).isDirectory() ? files(path) : /\.(vue|ts)$/.test(name) && !name.endsWith('.spec.ts') ? [path] : [] + }) +} + +function has(key: string): boolean { + let node: unknown = ptBR + for (const part of key.split('.')) { + if (node === null || typeof node !== 'object' || !(part in node)) { + return false + } + + node = (node as Record)[part] + } + + return typeof node === 'string' +} + +describe('Catálogo pt-BR', () => { + it('tem todas as chaves usadas no código', () => { + const source = files(join(__dirname, '..')) + .map((file) => readFileSync(file, 'utf8')) + .join('\n') + const keys = new Set( + [ + ...source.matchAll(/\bte?\(\s*'([a-zA-Z]+(?:\.[a-zA-Z]+)+)'/g), + ...source.matchAll(/\b(?:key|title|label): '([a-z][a-zA-Z]+\.[a-zA-Z.]+)'/g), + ] + .map((m) => m[1]!) + .filter((key) => !key.startsWith('ctx.')), + ) + + expect([...keys].filter((key) => !has(key))).toEqual([]) + expect(keys.size).toBeGreaterThan(300) + }) + + it('tem os textos das chaves dinâmicas (status, tipos, origens, papéis)', () => { + const dynamic = [ + ...['Pending', 'Queued', 'Running', 'Succeeded', 'Failed', 'Cancelling', 'Cancelled'].map((s) => `status.run.${s}`), + ...['Pending', 'Queued', 'Running', 'Succeeded', 'Failed', 'TimedOut', 'Cancelled', 'Skipped'].map( + (s) => `status.step.${s}`, + ), + ...['Draft', 'Published', 'Archived'].map((s) => `status.version.${s}`), + ...['Pipeline', 'PipelineTest', 'Stage', 'StageTest'].map((k) => `kind.${k}`), + ...['Library', 'Dashboard', 'Schedule', 'QueueCommand'].map((k) => `trigger.${k}`), + ...['Reader', 'Executor', 'Author', 'Admin'].map((r) => `roles.${r}`), + ...['FixedLogin', 'Filter', 'Host', 'Localhost'].map((m) => `accessMode.${m}`), + ...['stages', 'pipelines'].flatMap((k) => [`catalog.${k}.title`, `catalog.${k}.subtitle`, `catalog.${k}.create`]), + ] + expect(dynamic.filter((key) => !has(key))).toEqual([]) + }) +}) diff --git a/panel/src/i18n/index.ts b/panel/src/i18n/index.ts new file mode 100644 index 0000000..10673d7 --- /dev/null +++ b/panel/src/i18n/index.ts @@ -0,0 +1,14 @@ +import { createI18n } from 'vue-i18n' +import ptBR from './pt-BR' + +export type MessageSchema = typeof ptBR + +/** Textos do painel (D-67): pt-BR; a estrutura já aceita inglês. */ +export const i18n = createI18n<[MessageSchema], 'pt-BR'>({ + legacy: false, + locale: 'pt-BR', + fallbackLocale: 'pt-BR', + messages: { 'pt-BR': ptBR }, + missingWarn: false, + fallbackWarn: false, +}) diff --git a/panel/src/i18n/pt-BR.ts b/panel/src/i18n/pt-BR.ts new file mode 100644 index 0000000..e7dcc7e --- /dev/null +++ b/panel/src/i18n/pt-BR.ts @@ -0,0 +1,538 @@ +// Textos do painel em pt-BR (D-67). Placeholders entre chaves; "|" separa singular e plural. +export default { + nav: { + label: 'Navegação principal', + toggle: 'Abrir ou fechar o menu', + overview: 'Visão geral', + stages: 'Etapas', + pipelines: 'Trilhas', + runs: 'Execuções', + schedules: 'Agendamentos', + audit: 'Auditoria', + admin: 'Administração', + }, + theme: { label: 'Tema', system: 'Seguir o sistema', light: 'Claro', dark: 'Escuro' }, + roles: { Reader: 'Leitor', Executor: 'Executor', Author: 'Autor', Admin: 'Admin' }, + accessMode: { FixedLogin: 'Login fixo', Filter: 'Filtro próprio', Host: 'Autenticação do host', Localhost: 'Somente local' }, + access: { + changed: 'Seu acesso mudou: a ação requer papel {role}.', + forbidden: 'Seu acesso mudou: você não tem permissão para esta ação.', + }, + auth: { + logout: 'Sair', + login: { + title: 'Entrar', + subtitle: 'Painel do PythonScriptRunner', + name: 'Usuário', + password: 'Senha', + submit: 'Entrar', + invalid: 'Usuário ou senha inválidos.', + throttled: 'Muitas tentativas. Tente de novo em {seconds} s.', + }, + expired: { + title: 'Sua sessão expirou', + text: 'Entre de novo para continuar; o que está aberto nesta tela não se perde.', + switchUser: 'Entrar como outro usuário', + }, + noAccess: { + title: 'Sem acesso', + text: 'Você não tem acesso ao painel; fale com o administrador.', + retry: 'Tentar novamente', + }, + noRole: { + title: 'Sem papel no painel', + text: 'Você entrou como {name}, mas não tem papel no painel; peça acesso ao administrador.', + }, + forbidden: { title: 'Sem permissão', text: 'Seu papel não permite abrir esta página.' }, + }, + notFound: { title: 'Página não encontrada', text: 'O endereço não existe no painel.' }, + realtime: { unavailable: 'Atualização em tempo real indisponível; a tela continua atualizando a cada 5 segundos.' }, + common: { + cancel: 'Cancelar', + close: 'Fechar', + copy: 'Copiar', + create: 'Criar', + delete: 'Excluir', + edit: 'Editar', + filter: 'Filtrar', + loadMore: 'Carregar mais', + no: 'Não', + yes: 'Sim', + refresh: 'Atualizar', + save: 'Salvar', + search: 'Buscar', + view: 'Ver', + }, + status: { + run: { + Pending: 'Pendente', + Queued: 'Na fila', + Running: 'Executando', + Succeeded: 'Concluída', + Failed: 'Falhou', + Cancelling: 'Cancelando', + Cancelled: 'Cancelada', + }, + step: { + Pending: 'Pendente', + Queued: 'Na fila', + Running: 'Executando', + Succeeded: 'Concluído', + Failed: 'Falhou', + TimedOut: 'Tempo esgotado', + Cancelled: 'Cancelado', + Skipped: 'Pulado', + }, + attempt: { + Running: 'Executando', + Succeeded: 'Concluída', + Failed: 'Falhou', + TimedOut: 'Tempo esgotado', + Cancelled: 'Cancelada', + WorkerLost: 'Worker perdido', + }, + version: { Draft: 'Rascunho', Published: 'Publicada', Archived: 'Arquivada' }, + }, + kind: { Pipeline: 'Trilha', PipelineTest: 'Teste de trilha', Stage: 'Etapa', StageTest: 'Teste de etapa' }, + trigger: { Library: 'Biblioteca', Dashboard: 'Painel', Schedule: 'Agendamento', QueueCommand: 'Comando na fila' }, + cause: { Initial: 'Inicial', AutoRetry: 'Nova tentativa automática', Reprocess: 'Reprocesso', LeaseRecovery: 'Recuperação' }, + errorKind: { + InputValidation: 'Entrada inválida', + OutputContractViolation: 'Saída fora do contrato', + ScriptError: 'Erro no script', + Timeout: 'Tempo esgotado', + MemoryLimitExceeded: 'Limite de memória', + Cancelled: 'Cancelada', + WorkerLost: 'Worker perdido', + EnvironmentSetupFailed: 'Falha ao preparar o ambiente Python', + ArtifactLimitExceeded: 'Limite de arquivos', + SecretNotFound: 'Segredo não configurado', + ProcessCrashed: 'O processo terminou de forma inesperada', + Expired: 'Expirada', + }, + auditActions: { + StageCreated: 'Etapa criada', + StageUpdated: 'Etapa alterada', + StageDraftCreated: 'Rascunho de etapa criado', + StageDraftSaved: 'Rascunho de etapa salvo', + StageDraftDiscarded: 'Rascunho de etapa descartado', + StagePublished: 'Etapa publicada', + StageVersionArchived: 'Versão de etapa arquivada', + StageDeleted: 'Etapa excluída', + StageTested: 'Etapa testada', + PipelineCreated: 'Trilha criada', + PipelineUpdated: 'Trilha alterada', + PipelineDraftCreated: 'Rascunho de trilha criado', + PipelineDraftSaved: 'Rascunho de trilha salvo', + PipelineDraftDiscarded: 'Rascunho de trilha descartado', + PipelinePublished: 'Trilha publicada', + PipelineVersionArchived: 'Versão de trilha arquivada', + PipelineDeleted: 'Trilha excluída', + PipelineSettingsChanged: 'Configurações da trilha alteradas', + PipelineTested: 'Trilha testada', + ScheduleCreated: 'Agendamento criado', + ScheduleUpdated: 'Agendamento alterado', + ScheduleDeleted: 'Agendamento excluído', + ScheduleEnabled: 'Agendamento ligado', + ScheduleDisabled: 'Agendamento desligado', + RunTriggered: 'Execução disparada', + RunCancelled: 'Execução cancelada', + RunReprocessed: 'Execução reprocessada', + CatalogImported: 'Catálogo importado', + LoginSucceeded: 'Entrou no painel', + LoggedOut: 'Saiu do painel', + UserLocked: 'Usuário bloqueado', + }, + errors: { + generic: 'Não foi possível concluir a ação. Tente de novo.', + NOT_FOUND: 'Não encontrado.', + INVALID_ARGUMENT: 'Dados inválidos.', + INPUT_INVALID: 'As entradas não seguem o contrato.', + CONCURRENCY_CONFLICT: 'Alguém alterou este item antes de você.', + IF_MATCH_REQUIRED: 'Recarregue a página antes de salvar.', + STAGE_KEY_TAKEN: 'Já existe uma etapa com essa chave.', + PIPELINE_KEY_TAKEN: 'Já existe uma trilha com essa chave.', + DRAFT_ALREADY_EXISTS: 'Já existe um rascunho.', + VERSION_IMMUTABLE: 'Versões publicadas e arquivadas não mudam.', + VERSION_REFERENCED: 'A versão é usada por trilhas publicadas.', + VERSION_SCHEDULED: 'A versão está fixada num agendamento ligado.', + VERSION_NOT_RUNNABLE: 'A versão não pode executar.', + DELETE_NOT_ALLOWED: 'Não pode ser excluído: está em uso ou tem execuções no histórico.', + RETENTION_EXCEEDS_GLOBAL: 'A retenção da trilha não pode ser maior que a global.', + RUN_NOT_CANCELLABLE: 'A execução já terminou.', + RUN_NOT_FAILED: 'Só execuções que falharam podem ser reprocessadas.', + ARTIFACTS_EXPIRED: 'Arquivos necessários ao reprocesso já expiraram.', + ARTIFACT_EXPIRED: 'O arquivo expirou.', + IMPORT_INVALID: 'O arquivo importado não é um catálogo válido.', + SCHEDULE_FILE_INPUT: 'Trilhas com entrada de arquivo não podem ser agendadas.', + SCHEDULE_INVALID: 'O agendamento aponta para uma versão que não executa.', + INVALID_CRON: 'Expressão cron inválida.', + INVALID_TIME_ZONE: 'Fuso horário desconhecido.', + PAYLOAD_TOO_LARGE: 'O envio passou do limite de tamanho.', + PUBLISH_TIMEOUT: 'A publicação demorou demais; o rascunho foi mantido.', + CSRF_HEADER_MISSING: 'Requisição recusada pela proteção do painel.', + }, + overview: { + title: 'Visão geral', + subtitle: 'Últimas 24 horas, comparadas às 24 horas anteriores', + previous: 'antes: {count}', + inProgress: 'Em andamento', + noneInProgress: 'Nenhuma execução em andamento.', + recentFailures: 'Falhas recentes', + noFailures: 'Nenhuma falha nos últimos 7 dias.', + upcoming: 'Próximos agendamentos', + noSchedules: 'Nenhum agendamento ligado.', + }, + catalog: { + stages: { title: 'Etapas', subtitle: 'Scripts Python com contrato de entrada e saída', create: 'Nova etapa' }, + pipelines: { title: 'Trilhas', subtitle: 'Etapas encadeadas em ordem', create: 'Nova trilha' }, + key: 'Chave', + keyHint: 'Letras minúsculas, números e hífen; não muda depois.', + name: 'Nome', + description: 'Descrição', + status: 'Status', + published: 'Publicada', + draft: 'Rascunho', + usedBy: 'Uso', + usedByCount: 'nenhuma trilha | usada em {count} trilha | usada em {count} trilhas', + updated: 'Alterada em', + version: 'Versão', + publishedAt: 'Publicada em', + pipeline: 'Trilha', + export: 'Exportar', + archive: 'Arquivar', + import: 'Importar zip', + imported: '{count} rascunhos criados pela importação.', + }, + stages: { + newVersion: 'Nova versão', + editDraft: 'Editar rascunho v{version}', + archived: 'Versão {version} arquivada.', + archiveBlocked: 'A versão é usada por trilhas publicadas: {pipelines}.', + deleted: 'Etapa excluída.', + deleteTitle: 'Excluir etapa', + deleteText: 'Excluir a etapa {key} e todas as versões? Não dá para desfazer.', + publishedBy: 'Publicada por {who} em {when}', + script: 'Script Python', + inputs: 'Entradas', + outputs: 'Saídas', + lock: 'Dependências travadas', + requirements: 'Dependências (requirements.txt)', + step: 'Passo', + unused: 'Nenhuma trilha usa esta etapa.', + diffFrom: 'De', + diffTo: 'Para', + tabs: { versions: 'Versões', version: 'Versão', usage: 'Uso', diff: 'Comparar' }, + editor: { + title: 'Editor de etapa', + subtitle: '{key} · rascunho v{version}', + noDraft: 'Esta etapa não tem rascunho.', + contract: 'Contrato', + dependencies: 'Dependências', + execution: 'Execução', + problems: 'Problemas', + python: 'Versão do Python', + requirementsHint: 'As dependências são travadas com hashes na publicação.', + timeout: 'Tempo máximo por tentativa', + memory: 'Limite de memória', + memoryHint: 'Vazio usa o padrão do runner.', + retry: 'Novas tentativas automáticas', + retries: 'Tentativas extras', + retryDelay: 'Espera inicial', + backoff: 'Multiplicador', + idempotent: 'Idempotente', + idempotentHint: 'Executar duas vezes com as mesmas entradas é seguro.', + secrets: 'Segredos', + secretsHint: 'Nomes dos segredos que o script usa (os valores ficam na configuração do servidor).', + validateHint: 'Clique em Validar para conferir o contrato.', + }, + test: { + help: 'O teste vai para a fila e roda num worker com o rascunho salvo.', + run: 'Executar teste', + open: 'Abrir execução', + overhead: 'overhead {value}', + }, + publish: { + progress: 'Publicando: verificando a sintaxe e resolvendo as dependências…', + done: 'Versão {version} publicada', + view: 'Ver etapa', + noDependencies: 'Sem dependências externas.', + syntax: 'Erro de sintaxe na linha {line}, coluna {column}: {message}', + invalid: 'O contrato tem problemas; veja a aba Problemas.', + }, + }, + pipelines: { + canvas: 'Fluxo da trilha', + archived: 'Versão {version} arquivada.', + deleteTitle: 'Excluir trilha', + deleteText: 'Excluir a trilha {key}, as versões e os agendamentos? Não dá para desfazer.', + recentRuns: 'Execuções recentes', + allRuns: 'Ver todas as execuções', + run: { + open: 'Disparar', + title: 'Disparar {name}', + version: 'Versão', + latest: 'Última publicada (v{version})', + idempotencyKey: 'Chave de idempotência', + idempotencyHint: 'Opcional: repetir a mesma chave em 24 h devolve a mesma execução.', + inputs: 'Entradas', + submit: 'Disparar', + }, + settings: { + title: 'Configurações', + concurrency: 'Concorrência', + maxConcurrentRuns: 'Execuções simultâneas', + maxConcurrentRunsHint: 'Vazio = sem limite; as demais esperam como Pendente.', + retention: 'Retenção (só encurta a global)', + artifactDays: 'Arquivos', + runDays: 'Execuções', + retentionHint: 'Vazio usa a retenção global.', + saved: 'Configurações salvas.', + }, + editor: { + title: 'Editor visual de trilha', + noDraft: 'Esta trilha não tem rascunho.', + palette: 'Etapas publicadas', + noStages: 'Nenhuma etapa publicada.', + version: 'Versão', + addStep: 'Adicionar {stage}', + canvas: 'Canvas', + list: 'Lista', + order: 'Ordem', + autoLayout: 'Organizar', + selection: 'Seleção', + selectHelp: 'Clique num nó para editar; arraste uma etapa da paleta para criar um passo.', + outputsHelp: 'Arraste uma saída de passo até o nó Saídas da trilha.', + stepKey: 'Chave do passo', + displayName: 'Rótulo', + removeStep: 'Remover passo', + source: 'Origem', + implicitOrNone: 'Implícita (mesmo nome) ou nenhuma', + emptyList: 'Nenhum passo ainda.', + inputTitle: 'Entrada {input} de {step}', + currentSource: 'Origem atual', + implicit: 'implícita', + unbound: 'sem ligação', + setConstant: 'Usar valor fixo', + clearBinding: 'Remover ligação', + fileNoConstant: 'Entradas de arquivo não aceitam valor fixo.', + invalid: 'A trilha tem problemas; veja a lista de problemas.', + publishing: 'Publicando a trilha…', + published: 'Versão {version} publicada', + noWarnings: 'Publicada sem avisos.', + view: 'Ver trilha', + testTitle: 'Testar rascunho', + testHelp: 'O teste roda o rascunho salvo num worker, sem publicar versão.', + }, + }, + runs: { + title: 'Execuções', + subtitle: 'Atualizadas em tempo real', + empty: 'Nenhuma execução no período.', + notFound: 'Execução não encontrada (ou além da retenção).', + flow: 'Fluxo da execução', + correlation: 'correlação', + step: 'passo', + traceback: 'Traceback', + cancel: 'Cancelar', + cancelTitle: 'Cancelar execução', + cancelText: 'Os processos em andamento são encerrados e a execução termina como Cancelada.', + cancelRequested: 'Cancelamento solicitado.', + reprocess: 'Reprocessar', + reprocessTitle: 'Reprocessar execução', + reprocessText: + 'Os passos concluídos são reaproveitados; o passo que falhou ganha uma nova tentativa, com a mesma versão e as mesmas entradas.', + reprocessQueued: 'Reprocesso enfileirado.', + noWorker: 'Nenhum worker assumiu a execução ainda; verifique se há workers no ar.', + noOutputs: 'Sem saídas (ainda).', + noFiles: 'Sem arquivos.', + noAttempts: 'Nenhuma tentativa ainda.', + files: { Input: 'Entradas', Output: 'Saídas' }, + tabs: { + inputs: 'Entradas', + outputs: 'Saídas', + steps: 'Passos', + logs: 'Logs', + files: 'Arquivos', + timeline: 'Linha do tempo', + }, + columns: { + status: 'Status', + target: 'Trilha ou etapa', + kind: 'Tipo', + trigger: 'Origem', + created: 'Criada em', + duration: 'Duração', + step: 'Passo', + attempt: 'Tentativa', + cause: 'Causa', + worker: 'Worker', + overhead: 'Overhead', + }, + filters: { + pipeline: 'Trilha', + stage: 'Etapa', + kind: 'Tipo', + status: 'Status', + trigger: 'Origem', + from: 'De', + to: 'Até', + window: 'Sem período, mostra as últimas 24 horas (no máximo 90 dias).', + }, + logs: { + attempt: 'Tentativa', + empty: 'Sem log para esta tentativa.', + truncated: 'Mostrando os últimos {shown} de {total}.', + }, + }, + schedules: { + title: 'Agendamentos', + subtitle: 'Disparos por cron, com fuso horário', + create: 'Novo agendamento', + edit: 'Editar agendamento', + empty: 'Nenhum agendamento.', + name: 'Nome', + pipeline: 'Trilha', + cron: 'Cron', + cronHint: 'minuto hora dia mês dia-da-semana (ex.: 0 2 * * * = todo dia às 02:00); 6 campos aceitam segundos.', + timeZone: 'Fuso horário', + version: 'Versão', + latest: 'Última publicada em cada disparo', + preview: 'Próximas 5 ocorrências', + inputs: 'Entradas fixas', + fileInput: 'Esta trilha recebe arquivo e não pode ser agendada (entradas de arquivo só pelo painel ou pela biblioteca).', + next: 'Próximo disparo', + last: 'Último disparo', + lastRun: 'ver execução', + enabled: 'Ligado', + saved: 'Agendamento salvo.', + deleteTitle: 'Excluir agendamento', + deleteText: 'Excluir o agendamento {name}? As execuções continuam no histórico.', + }, + audit: { + title: 'Auditoria', + subtitle: 'Ações humanas no painel e na biblioteca', + when: 'Quando', + actor: 'Quem', + action: 'Ação', + entity: 'Item', + entityType: 'Tipo do item', + entityKey: 'Chave do item', + details: 'Detalhes', + empty: 'Nenhum evento no período.', + }, + admin: { + title: 'Administração', + secrets: 'Segredos', + secretName: 'Nome', + declaredBy: 'Declarado por', + resolved: 'Configurado', + yesResolved: 'configurado', + notResolved: 'não configurado', + noSecrets: 'Nenhuma etapa declara segredos.', + settings: 'Configurações (somente leitura)', + retentionArtifacts: 'Retenção de arquivos', + retentionRuns: 'Retenção de execuções', + retentionAudit: 'Retenção da auditoria', + days: '{days} dias', + maxFile: 'Maior arquivo', + maxRunFiles: 'Arquivos por execução', + maxLog: 'Log por fluxo', + defaultTimeout: 'Tempo máximo padrão', + defaultMemory: 'Memória padrão', + processes: 'Processos Python por instância', + python: 'Python padrão', + access: 'Acesso ao painel', + }, + fields: { + noInputs: 'Sem entradas.', + addItem: 'Adicionar item', + removeItem: 'Remover item {index}', + importCsv: 'Importar CSV', + datetimeHint: 'Horário local ({offset})', + errors: { + required: 'Obrigatório.', + number: 'Informe um número.', + integer: 'Informe um número inteiro.', + decimal: 'Informe um decimal (ex.: 10,25).', + date: 'Informe uma data válida.', + datetime: 'Informe data e hora válidas.', + enum: 'Escolha um dos valores.', + json: 'JSON inválido.', + table: 'Informe uma lista de objetos em JSON.', + fileSize: 'O arquivo passa de {mb} MB.', + fileType: 'Tipo de arquivo não aceito (aceitos: {types}).', + item: 'Item {index}: {reason}', + }, + }, + files: { + download: 'Baixar {name}', + expired: 'expirado em {when}', + missing: 'arquivo indisponível', + }, + fieldBuilder: { + empty: { inputs: 'Nenhuma entrada declarada.', outputs: 'Nenhuma saída declarada.' }, + add: { inputs: 'Adicionar entrada', outputs: 'Adicionar saída' }, + name: 'Nome', + nameInvalid: 'Use letras minúsculas, números e _ (até 64).', + nameDuplicated: 'Nome repetido.', + type: 'Tipo', + itemType: 'Tipo dos itens', + required: 'Obrigatório', + optional: 'opcional', + enumValues: 'Valores permitidos', + contentTypes: 'Tipos de arquivo aceitos', + contentTypesHint: 'Ex.: text/html, application/pdf; vazio aceita qualquer tipo.', + columns: 'Colunas', + columnName: 'Coluna', + addColumn: 'Adicionar coluna', + removeColumn: 'Remover coluna', + default: 'Valor padrão', + defaultHint: 'Usado quando a entrada não é informada.', + description: 'Descrição', + moveUp: 'Mover para cima', + moveDown: 'Mover para baixo', + remove: 'Remover', + }, + flow: { + inputs: 'Entradas da trilha', + outputs: 'Saídas da trilha', + inputsEmpty: 'Nenhuma entrada; clique para declarar.', + outputsEmpty: 'Nenhuma saída; ligue uma saída de passo aqui.', + newOutput: 'Solte aqui para criar uma saída', + order: 'Passo {order}', + attempt: 'Tentativa {attempt}', + implicit: 'Ligação implícita: {source}', + constant: 'Valor fixo', + missingStage: 'Versão de etapa indisponível', + minimap: 'Minimapa', + zoomIn: 'Aproximar', + zoomOut: 'Afastar', + fitView: 'Mostrar a trilha inteira', + }, + editor: { + code: 'Código', + unsaved: 'Alterações não salvas', + saved: 'Rascunho salvo.', + validate: 'Validar', + test: 'Testar', + publish: 'Publicar', + discard: 'Descartar rascunho', + discardTitle: 'Descartar rascunho', + discardText: 'O rascunho é apagado no servidor; as versões publicadas continuam.', + }, + conflict: { + title: 'Alguém salvou antes de você', + text: 'O rascunho foi alterado por {author} em {when}.', + changed: 'O que difere da sua versão:', + reload: 'Recarregar', + overwrite: 'Sobrescrever', + }, + drafts: { + offer: 'Há alterações não salvas deste item, de {when}.', + restore: 'Restaurar', + discard: 'Descartar', + leave: 'Há alterações não salvas. Elas ficam guardadas neste navegador. Sair mesmo assim?', + }, + validation: { ok: 'Nenhum problema encontrado.' }, +} diff --git a/panel/src/main.ts b/panel/src/main.ts new file mode 100644 index 0000000..bea4412 --- /dev/null +++ b/panel/src/main.ts @@ -0,0 +1,14 @@ +import { createPinia } from 'pinia' +import { createApp } from 'vue' +import App from './App.vue' +import { i18n } from './i18n' +import { vuetify } from './plugins/vuetify' +import { createAppRouter } from './router' +import { useSession } from './stores/session' + +const app = createApp(App) +const pinia = createPinia() +const router = createAppRouter() +app.use(pinia).use(i18n).use(vuetify).use(router) +useSession(pinia).connect({ navigate: (target) => void router.push(target) }) +app.mount('#app') diff --git a/panel/src/plugins/vuetify.ts b/panel/src/plugins/vuetify.ts new file mode 100644 index 0000000..745aa7b --- /dev/null +++ b/panel/src/plugins/vuetify.ts @@ -0,0 +1,50 @@ +import '@fontsource/roboto/400.css' +import '@fontsource/roboto/500.css' +import '@fontsource/roboto/700.css' +import '@mdi/font/css/materialdesignicons.css' +import 'vuetify/styles' +import { createVuetify } from 'vuetify' +import { pt } from 'vuetify/locale' + +/** Vuetify 4 (D-159) com os temas claro e escuro do painel; fontes e ícones empacotados (CSP `'self'`). */ +export const vuetify = createVuetify({ + locale: { locale: 'pt', messages: { pt } }, + theme: { + defaultTheme: 'light', + themes: { + light: { + dark: false, + colors: { + primary: '#1e5aa8', + secondary: '#3c6e71', + success: '#2e7d32', + warning: '#b26a00', + error: '#c62828', + info: '#0277bd', + }, + // 0,60 (padrão) deixa rótulos e textos secundários em 4,3:1 sobre branco; WCAG AA pede 4,5:1 (spec 008, AC-15). + variables: { 'medium-emphasis-opacity': 0.7 }, + }, + dark: { + dark: true, + colors: { + primary: '#7fb0ff', + secondary: '#8fc1c3', + success: '#81c784', + warning: '#ffb74d', + error: '#ef9a9a', + info: '#81d4fa', + }, + }, + }, + }, + defaults: { + VBtn: { variant: 'flat' }, + VTextField: { variant: 'outlined', density: 'comfortable' }, + VTextarea: { variant: 'outlined', density: 'comfortable' }, + VSelect: { variant: 'outlined', density: 'comfortable' }, + VAutocomplete: { variant: 'outlined', density: 'comfortable' }, + VCombobox: { variant: 'outlined', density: 'comfortable' }, + VFileInput: { variant: 'outlined', density: 'comfortable' }, + }, +}) diff --git a/panel/src/router/guard.spec.ts b/panel/src/router/guard.spec.ts new file mode 100644 index 0000000..fb6a5cc --- /dev/null +++ b/panel/src/router/guard.spec.ts @@ -0,0 +1,123 @@ +import { createPinia, setActivePinia } from 'pinia' +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +import type { RouteLocationNormalized } from 'vue-router' +import { setAuthHooks } from '@/api/client' +import { mockApi } from '@/test/api-mock' +import { useDrafts } from '@/stores/drafts' +import { useSession } from '@/stores/session' +import { guard, safeReturn } from '.' + +const route = (path: string, meta: Record = {}, name?: string) => + ({ path, fullPath: path, meta, name, query: {} }) as unknown as RouteLocationNormalized + +function auth(mode: string, extra: Record = {}) { + return { status: 200, body: { mode, loginUrl: null, logoutUrl: null, localRequests: false, ...extra } } +} + +describe('Entrada no painel conforme o modo de acesso (spec 008 §0)', () => { + const assign = vi.fn() + + beforeEach(() => { + setAuthHooks(null) + setActivePinia(createPinia()) + window.localStorage.clear() + vi.stubGlobal('location', { ...window.location, assign }) + assign.mockReset() + }) + + afterEach(() => vi.unstubAllGlobals()) + + it('Spec008_AC17 login fixo sem sessão vai para /entrar e volta à rota pedida', async () => { + mockApi({ 'GET /auth': auth('FixedLogin'), 'GET /me': { status: 401 } }) + + expect(await guard(route('/execucoes', { role: 'Reader' }))).toEqual({ name: 'login', query: { volta: '/execucoes' } }) + expect(safeReturn('/execucoes')).toBe('/execucoes') + expect(safeReturn('//malicioso.com')).toBe('/') + }) + + it('Spec008_AC20 host sem sessão grava o rascunho local e vai para a loginUrl', async () => { + mockApi({ 'GET /auth': auth('Host', { loginUrl: '/conta/entrar?returnUrl=%2Fpsr%2F' }), 'GET /me': { status: 401 } }) + const session = useSession() + session.connect({ navigate: vi.fn(), redirect: assign }) + + expect(await guard(route('/etapas', { role: 'Reader' }))).toBe(false) + expect(assign).toHaveBeenCalledWith('/conta/entrar?returnUrl=%2Fpsr%2F') + }) + + it('Spec008_AC20 host: sessão perdida no meio do uso grava o rascunho e redireciona', async () => { + mockApi({ + 'GET /auth': auth('Host', { loginUrl: '/conta/entrar', logoutUrl: '/conta/sair' }), + 'GET /me': { + status: 200, + body: { subject: 'sub-1', name: 'Ana', role: 'Author', roles: ['Reader', 'Executor', 'Author'], mode: 'Host' }, + }, + 'GET /stages': { status: 401 }, + }) + const session = useSession() + const navigate = vi.fn() + session.connect({ navigate, redirect: assign }) + await session.load() + useDrafts().register('sub-1', 'stage:eco', () => ({ script: 'não salvo' })) + + const { api } = await import('@/api/client') + void api.GET('/stages') + await vi.waitFor(() => expect(assign).toHaveBeenCalledWith('/conta/entrar')) + + expect(useDrafts().load('sub-1', 'stage:eco')?.data).toEqual({ script: 'não salvo' }) + expect(session.canLogout).toBe(true) + }) + + it('Spec008_AC20 host com /me sem papel mostra "sem papel"; Sair só com logoutUrl', async () => { + mockApi({ + 'GET /auth': auth('Host', { loginUrl: '/conta/entrar' }), + 'GET /me': { status: 200, body: { subject: 'sub-2', name: 'Bia', role: null, roles: [], mode: 'Host' } }, + }) + + expect(await guard(route('/', { role: 'Reader' }))).toEqual({ name: 'no-role' }) + expect(useSession().canLogout, 'sem logoutUrl não há Sair').toBe(false) + }) + + it('Spec008_AC21 filtro que nega mostra "sem acesso" (sem login)', async () => { + mockApi({ 'GET /auth': auth('Filter'), 'GET /me': { status: 401 } }) + + expect(await guard(route('/trilhas', { role: 'Reader' }))).toEqual({ name: 'no-access' }) + expect(await guard(route('/entrar', { public: true }, 'login')), 'não existe /entrar fora do login fixo').toEqual({ + name: 'overview', + }) + }) + + it('Spec008_AC21 somente local entra como Admin e sem botão Sair', async () => { + mockApi({ + 'GET /auth': auth('Localhost', { localRequests: true }), + 'GET /me': { + status: 200, + body: { + subject: 'local', + name: 'local', + role: 'Admin', + roles: ['Reader', 'Executor', 'Author', 'Admin'], + mode: 'Localhost', + }, + }, + }) + + expect(await guard(route('/auditoria', { role: 'Admin' }))).toBe(true) + expect(useSession().canLogout).toBe(false) + }) + + it('Spec008_AC10 rota acima do papel mostra "sem permissão"', async () => { + mockApi({ + 'GET /auth': auth('FixedLogin'), + 'GET /me': { + status: 200, + body: { subject: 'login:leo', name: 'leo', role: 'Reader', roles: ['Reader'], mode: 'FixedLogin' }, + }, + }) + + expect(await guard(route('/etapas/eco/editar', { role: 'Author' }))).toEqual({ + name: 'forbidden', + query: { rota: '/etapas/eco/editar' }, + }) + expect(useSession().canLogout).toBe(true) + }) +}) diff --git a/panel/src/router/index.ts b/panel/src/router/index.ts new file mode 100644 index 0000000..08d4680 --- /dev/null +++ b/panel/src/router/index.ts @@ -0,0 +1,179 @@ +import { createRouter, createWebHistory, type RouteLocationNormalized, type RouteRecordRaw } from 'vue-router' +import { basePath, type Role } from '@/api/client' +import { useSession } from '@/stores/session' +import AppShell from '@/components/layout/AppShell.vue' + +declare module 'vue-router' { + interface RouteMeta { + /** Página sem login (entrar, sem acesso). */ + public?: boolean + /** Papel mínimo (cumulativo; D-28). */ + role?: Role + /** Chave i18n do título. */ + title?: string + } +} + +export const routes: RouteRecordRaw[] = [ + { + path: '/entrar', + name: 'login', + component: () => import('@/views/LoginView.vue'), + meta: { public: true, title: 'auth.login.title' }, + }, + { + path: '/sem-acesso', + name: 'no-access', + component: () => import('@/views/NoAccessView.vue'), + meta: { public: true, title: 'auth.noAccess.title' }, + }, + { + path: '/sem-papel', + name: 'no-role', + component: () => import('@/views/NoRoleView.vue'), + meta: { public: true, title: 'auth.noRole.title' }, + }, + { + path: '/', + component: AppShell, + children: [ + { + path: '', + name: 'overview', + component: () => import('@/views/OverviewView.vue'), + meta: { role: 'Reader', title: 'nav.overview' }, + }, + { + path: 'etapas', + name: 'stages', + component: () => import('@/views/stages/StageListView.vue'), + meta: { role: 'Reader', title: 'nav.stages' }, + }, + { + path: 'etapas/:key', + name: 'stage', + component: () => import('@/views/stages/StageDetailView.vue'), + meta: { role: 'Reader', title: 'nav.stages' }, + }, + { + path: 'etapas/:key/editar', + name: 'stage-editor', + component: () => import('@/views/stages/StageEditorView.vue'), + meta: { role: 'Author', title: 'stages.editor.title' }, + }, + { + path: 'trilhas', + name: 'pipelines', + component: () => import('@/views/pipelines/PipelineListView.vue'), + meta: { role: 'Reader', title: 'nav.pipelines' }, + }, + { + path: 'trilhas/:key', + name: 'pipeline', + component: () => import('@/views/pipelines/PipelineDetailView.vue'), + meta: { role: 'Reader', title: 'nav.pipelines' }, + }, + { + path: 'trilhas/:key/editar', + name: 'pipeline-editor', + component: () => import('@/views/pipelines/PipelineEditorView.vue'), + meta: { role: 'Author', title: 'pipelines.editor.title' }, + }, + { + path: 'execucoes', + name: 'runs', + component: () => import('@/views/runs/RunListView.vue'), + meta: { role: 'Reader', title: 'nav.runs' }, + }, + { + path: 'execucoes/:id', + name: 'run', + component: () => import('@/views/runs/RunDetailView.vue'), + meta: { role: 'Reader', title: 'nav.runs' }, + }, + { + path: 'agendamentos', + name: 'schedules', + component: () => import('@/views/schedules/ScheduleListView.vue'), + meta: { role: 'Reader', title: 'nav.schedules' }, + }, + { + path: 'auditoria', + name: 'audit', + component: () => import('@/views/audit/AuditView.vue'), + meta: { role: 'Admin', title: 'nav.audit' }, + }, + { + path: 'administracao', + name: 'admin', + component: () => import('@/views/admin/AdminView.vue'), + meta: { role: 'Admin', title: 'nav.admin' }, + }, + { + path: 'sem-permissao', + name: 'forbidden', + component: () => import('@/views/ForbiddenView.vue'), + meta: { title: 'auth.forbidden.title' }, + }, + { + path: ':pathMatch(.*)*', + name: 'not-found', + component: () => import('@/views/NotFoundView.vue'), + meta: { title: 'notFound.title' }, + }, + ], + }, +] + +/** Destino interno seguro para "voltar" depois do login (sem redirecionamento aberto). */ +export function safeReturn(value: unknown): string { + return typeof value === 'string' && value.startsWith('/') && !value.startsWith('//') && !value.startsWith('/\\') ? value : '/' +} + +/** + * Entrada conforme o modo de acesso (spec 008 §0): login fixo → /entrar; host → loginUrl; filtro ou local negado → + * "sem acesso"; host sem papel → "sem papel"; rota acima do papel → "sem permissão". + */ +export async function guard(to: RouteLocationNormalized) { + const session = useSession() + await session.load() + if (to.meta.public) { + if (to.name === 'login' && (session.identified || session.mode !== 'FixedLogin')) { + return session.identified ? safeReturn(to.query.volta) : { name: 'overview' } + } + + return true + } + + if (!session.identified) { + switch (session.mode) { + case 'FixedLogin': + return { name: 'login', query: to.fullPath === '/' ? {} : { volta: to.fullPath } } + case 'Host': + if (session.auth?.loginUrl) { + window.location.assign(session.auth.loginUrl) + return false + } + + return { name: 'no-access' } + default: + return { name: 'no-access' } + } + } + + if (session.role === null) { + return { name: 'no-role' } + } + + if (to.meta.role && !session.hasRole(to.meta.role)) { + return { name: 'forbidden', query: { rota: to.fullPath } } + } + + return true +} + +export function createAppRouter() { + const router = createRouter({ history: createWebHistory(basePath), routes }) + router.beforeEach(guard) + return router +} diff --git a/panel/src/stores/drafts.spec.ts b/panel/src/stores/drafts.spec.ts new file mode 100644 index 0000000..e47d56f --- /dev/null +++ b/panel/src/stores/drafts.spec.ts @@ -0,0 +1,54 @@ +import { createPinia, setActivePinia } from 'pinia' +import { beforeEach, describe, expect, it } from 'vitest' +import { draftLifetimeMs, useDrafts } from './drafts' + +/** Spec 008, AC-22 (D-143): rascunho local por usuário e entidade, apagado ao salvar ou depois de 7 dias. */ +describe('Spec008_AC22 rascunho local', () => { + let now = Date.UTC(2026, 9, 20) + + beforeEach(() => { + window.localStorage.clear() + setActivePinia(createPinia()) + useDrafts().useClock(() => now) + }) + + it('oferece restaurar a alteração não salva do mesmo usuário', () => { + const drafts = useDrafts() + drafts.save('login:ana', 'stage:eco', { script: 'print(1)' }) + + expect(drafts.load('login:ana', 'stage:eco')?.data).toEqual({ script: 'print(1)' }) + expect(drafts.load('login:bia', 'stage:eco'), 'rascunhos de outro usuário nunca aparecem').toBeNull() + }) + + it('depois de salvar com sucesso, a oferta some', () => { + const drafts = useDrafts() + drafts.save('login:ana', 'stage:eco', { script: 'x' }) + drafts.remove('login:ana', 'stage:eco') + + expect(drafts.load('login:ana', 'stage:eco')).toBeNull() + }) + + it('com mais de 7 dias é descartado', () => { + const drafts = useDrafts() + drafts.save('login:ana', 'stage:eco', { script: 'velho' }) + drafts.save('login:ana', 'stage:novo', { script: 'novo' }) + now += draftLifetimeMs + 1 + + expect(drafts.load('login:ana', 'stage:eco')).toBeNull() + drafts.purgeExpired() + expect(window.localStorage.length).toBe(0) + }) + + it('grava os editores abertos antes de sair (ex.: login do host)', () => { + const drafts = useDrafts() + let pending: unknown = { script: 'não salvo' } + drafts.register('login:ana', 'stage:eco', () => pending) + drafts.register('login:ana', 'pipeline:trilha', () => undefined) + + drafts.flushAll() + + expect(drafts.load('login:ana', 'stage:eco')?.data).toEqual({ script: 'não salvo' }) + expect(drafts.load('login:ana', 'pipeline:trilha')).toBeNull() + pending = undefined + }) +}) diff --git a/panel/src/stores/drafts.ts b/panel/src/stores/drafts.ts new file mode 100644 index 0000000..25dc1ba --- /dev/null +++ b/panel/src/stores/drafts.ts @@ -0,0 +1,120 @@ +import { defineStore } from 'pinia' + +const prefix = 'psr.draft:' +/** Rascunhos locais valem 7 dias (D-143). */ +export const draftLifetimeMs = 7 * 24 * 60 * 60 * 1000 + +interface StoredDraft { + savedAt: number + data: T +} + +/** Um rascunho local oferecido para restaurar. */ +export interface LocalDraft { + savedAt: Date + data: T +} + +type Provider = () => unknown + +/** + * Alterações não salvas guardadas no navegador (QA-008-4, D-143): `localStorage`, chave por usuário e entidade, + * apagadas ao salvar ou depois de 7 dias. Editores abertos se registram para que a sessão grave tudo antes de sair + * (ex.: redirecionamento ao login do host). + */ +export const useDrafts = defineStore('drafts', () => { + const providers = new Map() + let clock: () => number = () => Date.now() + + function key(subject: string, entity: string) { + return `${prefix}${subject}|${entity}` + } + + function storage(): Storage | null { + try { + return window.localStorage + } catch { + return null + } + } + + function save(subject: string, entity: string, data: T) { + try { + storage()?.setItem(key(subject, entity), JSON.stringify({ savedAt: clock(), data } satisfies StoredDraft)) + } catch { + // Sem espaço ou sem armazenamento: o rascunho local é uma garantia extra, não uma obrigação. + } + } + + function load(subject: string, entity: string): LocalDraft | null { + const store = storage() + const text = store?.getItem(key(subject, entity)) + if (!text) { + return null + } + + try { + const stored = JSON.parse(text) as StoredDraft + if (clock() - stored.savedAt > draftLifetimeMs) { + store?.removeItem(key(subject, entity)) + return null + } + + return { savedAt: new Date(stored.savedAt), data: stored.data } + } catch { + store?.removeItem(key(subject, entity)) + return null + } + } + + function remove(subject: string, entity: string) { + storage()?.removeItem(key(subject, entity)) + } + + /** Apaga os rascunhos vencidos de todos os usuários (na abertura do painel). */ + function purgeExpired() { + const store = storage() + if (!store) { + return + } + + for (let i = store.length - 1; i >= 0; i--) { + const name = store.key(i) + if (!name?.startsWith(prefix)) { + continue + } + + try { + const stored = JSON.parse(store.getItem(name) ?? '') as StoredDraft + if (clock() - stored.savedAt > draftLifetimeMs) { + store.removeItem(name) + } + } catch { + store.removeItem(name) + } + } + } + + /** Um editor aberto informa como obter suas alterações não salvas (`undefined` quando não há). */ + function register(subject: string, entity: string, provide: Provider): () => void { + providers.set(entity, { subject, provide }) + return () => providers.delete(entity) + } + + /** Grava agora as alterações não salvas de todos os editores abertos. */ + function flushAll() { + for (const [entity, { subject, provide }] of providers) { + const data = provide() + if (data !== undefined) { + save(subject, entity, data) + } + } + } + + /** Relógio dos testes (AC-22). */ + function useClock(now: () => number) { + clock = now + } + + return { save, load, remove, purgeExpired, register, flushAll, useClock } +}) diff --git a/panel/src/stores/notify.ts b/panel/src/stores/notify.ts new file mode 100644 index 0000000..22e0ad6 --- /dev/null +++ b/panel/src/stores/notify.ts @@ -0,0 +1,39 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +export type NoticeKind = 'success' | 'info' | 'warning' | 'error' + +export interface Notice { + id: number + kind: NoticeKind + text: string +} + +/** Avisos curtos (snackbar) da aplicação. */ +export const useNotify = defineStore('notify', () => { + const current = ref(null) + const queue: Notice[] = [] + let sequence = 0 + + function push(kind: NoticeKind, text: string) { + const notice = { id: ++sequence, kind, text } + if (current.value === null) { + current.value = notice + } else { + queue.push(notice) + } + } + + function next() { + current.value = queue.shift() ?? null + } + + return { + current, + next, + success: (text: string) => push('success', text), + info: (text: string) => push('info', text), + warning: (text: string) => push('warning', text), + error: (text: string) => push('error', text), + } +}) diff --git a/panel/src/stores/realtime.ts b/panel/src/stores/realtime.ts new file mode 100644 index 0000000..336b188 --- /dev/null +++ b/panel/src/stores/realtime.ts @@ -0,0 +1,193 @@ +import { HubConnectionBuilder, HubConnectionState, LogLevel, type HubConnection } from '@microsoft/signalr' +import { defineStore } from 'pinia' +import { computed, ref } from 'vue' +import { hubUrl, type Schemas } from '@/api/client' + +/** `RunUpdated` do hub (spec 007): a execução, o evento que a mudou e o passo atual. */ +export interface RunUpdate { + run: Schemas['RunSummary'] + eventType: string + currentStep: string | null +} + +/** `StepUpdated` do hub (spec 007). */ +export interface StepUpdate { + runId: string + stepKey: string + order: number + status: Schemas['StepStatus'] + attempt: number + startedAt: string | null + finishedAt: string | null + errorKind: Schemas['ErrorKind'] | null +} + +export type Subscription = + { kind: 'run'; id: string } | { kind: 'pipeline'; key: string } | { kind: 'stage'; key: string } | { kind: 'all' } + +export interface LiveHandlers { + onRun?: (update: RunUpdate) => void + onStep?: (update: StepUpdate) => void + /** Chamado a cada 5 s enquanto o tempo real está indisponível (spec 008, casos de borda). */ + poll?: () => void +} + +const pollIntervalMs = 5000 + +function method(subscription: Subscription, subscribe: boolean): [string, string | undefined] { + const verb = subscribe ? 'Subscribe' : 'Unsubscribe' + switch (subscription.kind) { + case 'run': + return [`${verb}Run`, subscription.id] + case 'pipeline': + return [`${verb}Pipeline`, subscription.key] + case 'stage': + return [`${verb}Stage`, subscription.key] + default: + return [`${verb}All`, undefined] + } +} + +function groupOf(subscription: Subscription): string { + return subscription.kind === 'all' ? 'all' : `${subscription.kind}:${'id' in subscription ? subscription.id : subscription.key}` +} + +/** + * Hub de execuções (spec 007; D-35): reconexão automática com espera crescente, reinscrição após reconectar e + * *polling* de 5 s enquanto desconectado, com banner (spec 008). + */ +export const useRealtime = defineStore('realtime', () => { + const state = ref(HubConnectionState.Disconnected) + const started = ref(false) + const groups = new Map() + const listeners = new Set() + let connection: HubConnection | null = null + let pollTimer: ReturnType | null = null + let restartTimer: ReturnType | null = null + let attempts = 0 + + const degraded = computed(() => started.value && state.value !== HubConnectionState.Connected) + + function updatePolling() { + if (degraded.value && pollTimer === null) { + pollTimer = setInterval(() => listeners.forEach((l) => l.poll?.()), pollIntervalMs) + } else if (!degraded.value && pollTimer !== null) { + clearInterval(pollTimer) + pollTimer = null + } + } + + function setState(value: HubConnectionState) { + state.value = value + updatePolling() + } + + async function resubscribe() { + for (const { subscription } of groups.values()) { + const [name, arg] = method(subscription, true) + await (arg === undefined ? connection?.invoke(name) : connection?.invoke(name, arg)) + } + } + + function delay(count: number) { + return Math.min(30_000, 1000 * 2 ** Math.min(count, 5)) + } + + async function connect() { + if (!connection) { + return + } + + try { + setState(HubConnectionState.Connecting) + await connection.start() + attempts = 0 + setState(HubConnectionState.Connected) + await resubscribe() + // Atualiza o que mudou enquanto a conexão estava fora. + listeners.forEach((l) => l.poll?.()) + } catch { + setState(HubConnectionState.Disconnected) + restartTimer = setTimeout(() => void connect(), delay(attempts++)) + } + } + + /** Abre a conexão (depois que o usuário foi identificado). */ + function start() { + if (started.value) { + return + } + + started.value = true + connection = new HubConnectionBuilder() + .withUrl(hubUrl) + .withAutomaticReconnect({ nextRetryDelayInMilliseconds: (context) => delay(context.previousRetryCount) }) + .configureLogging(LogLevel.None) + .build() + connection.on('RunUpdated', (update: RunUpdate) => listeners.forEach((l) => l.onRun?.(update))) + connection.on('StepUpdated', (update: StepUpdate) => listeners.forEach((l) => l.onStep?.(update))) + connection.onreconnecting(() => setState(HubConnectionState.Reconnecting)) + connection.onreconnected(async () => { + setState(HubConnectionState.Connected) + await resubscribe() + listeners.forEach((l) => l.poll?.()) + }) + connection.onclose(() => { + setState(HubConnectionState.Disconnected) + if (started.value) { + restartTimer = setTimeout(() => void connect(), delay(attempts++)) + } + }) + void connect() + } + + async function stop() { + started.value = false + if (restartTimer) { + clearTimeout(restartTimer) + } + + await connection?.stop() + connection = null + setState(HubConnectionState.Disconnected) + } + + /** Acompanha grupos do hub enquanto a tela estiver aberta; devolve a função que encerra. */ + function watch(subscriptions: Subscription[], handlers: LiveHandlers): () => void { + listeners.add(handlers) + for (const subscription of subscriptions) { + const group = groupOf(subscription) + const entry = groups.get(group) + if (entry) { + entry.count++ + continue + } + + groups.set(group, { subscription, count: 1 }) + if (connection?.state === HubConnectionState.Connected) { + const [name, arg] = method(subscription, true) + void (arg === undefined ? connection.invoke(name) : connection.invoke(name, arg)).catch(() => {}) + } + } + + updatePolling() + return () => { + listeners.delete(handlers) + for (const subscription of subscriptions) { + const group = groupOf(subscription) + const entry = groups.get(group) + if (!entry || --entry.count > 0) { + continue + } + + groups.delete(group) + if (connection?.state === HubConnectionState.Connected) { + const [name, arg] = method(subscription, false) + void (arg === undefined ? connection.invoke(name) : connection.invoke(name, arg)).catch(() => {}) + } + } + } + } + + return { state, started, degraded, start, stop, watch } +}) diff --git a/panel/src/stores/session.spec.ts b/panel/src/stores/session.spec.ts new file mode 100644 index 0000000..7e95329 --- /dev/null +++ b/panel/src/stores/session.spec.ts @@ -0,0 +1,80 @@ +import { createPinia, setActivePinia } from 'pinia' +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +import { api, setAuthHooks } from '@/api/client' +import { mockApi } from '@/test/api-mock' +import { useNotify } from './notify' +import { useSession } from './session' + +const me = (role: string | null) => ({ + status: 200, + body: { subject: 'login:ana', name: 'ana', role, roles: [], mode: 'FixedLogin' }, +}) + +describe('Sessão do painel', () => { + beforeEach(() => { + setAuthHooks(null) + setActivePinia(createPinia()) + }) + afterEach(() => vi.unstubAllGlobals()) + + it('Spec008_AC24 403 relê /me, esconde o que não vale e avisa "seu acesso mudou"', async () => { + let role = 'Author' + mockApi({ + 'GET /auth': { status: 200, body: { mode: 'FixedLogin', localRequests: false } }, + 'GET /me': () => me(role), + 'POST /stages': { status: 403, body: { code: 'FORBIDDEN' } }, + }) + const session = useSession() + session.connect({ navigate: vi.fn() }) + await session.load() + expect(session.hasRole('Author')).toBe(true) + + role = 'Reader' + await api.POST('/stages', { body: { key: 'x', name: 'x' } }) + + await vi.waitFor(() => expect(session.role).toBe('Reader')) + expect(session.hasRole('Author')).toBe(false) + expect(useNotify().current?.text).toBe('Seu acesso mudou: a ação requer papel Autor.') + }) + + it('Spec008_AC19 sessão expirada: o diálogo pede o mesmo usuário e a chamada é refeita depois do login', async () => { + let logged = true + const { calls } = mockApi({ + 'GET /auth': { status: 200, body: { mode: 'FixedLogin', localRequests: false } }, + 'GET /me': () => (logged ? me('Author') : { status: 401 }), + 'PUT /stages/eco/draft': () => (logged ? { status: 200, body: { key: 'eco' } } : { status: 401 }), + 'POST /auth/login': () => { + logged = true + return { status: 204 } + }, + }) + const session = useSession() + session.connect({ navigate: vi.fn() }) + await session.load() + + logged = false + const save = api.PUT('/stages/{key}/draft', { + params: { path: { key: 'eco' } }, + body: { script: 'x', pythonVersion: '3.12' }, + headers: { 'If-Match': '"1"' }, + }) + await vi.waitFor(() => expect(session.expired).toBe(true)) + expect(session.me?.name, 'o nome do diálogo é o do usuário da sessão').toBe('ana') + + expect(await session.login('ana', 'senha')).toEqual({ ok: true }) + const { response } = await save + + expect(response.status).toBe(200) + expect(session.expired).toBe(false) + const puts = calls.filter((c) => c.method === 'PUT') + expect(puts).toHaveLength(2) + expect(puts[1]!.headers.get('X-PSR-Request')).toBe('1') + expect(puts[1]!.headers.get('If-Match')).toBe('"1"') + }) + + it('Spec008_AC18 429 devolve o tempo de espera do Retry-After', async () => { + mockApi({ 'POST /auth/login': { status: 429, headers: { 'Retry-After': '42' } } }) + + expect(await useSession().login('ana', 'x')).toEqual({ ok: false, reason: 'throttled', retryAfter: 42 }) + }) +}) diff --git a/panel/src/stores/session.ts b/panel/src/stores/session.ts new file mode 100644 index 0000000..71ffc67 --- /dev/null +++ b/panel/src/stores/session.ts @@ -0,0 +1,181 @@ +import { defineStore } from 'pinia' +import { computed, ref } from 'vue' +import { api, setAuthHooks, type AccessMode, type Role, type Schemas } from '@/api/client' +import { i18n } from '@/i18n' +import { useDrafts } from './drafts' +import { useNotify } from './notify' + +const roles: Role[] = ['Reader', 'Executor', 'Author', 'Admin'] + +/** Posição de um papel (cumulativos; D-28). */ +export function roleRank(role: Role | null | undefined): number { + return role ? roles.indexOf(role) : -1 +} + +export type LoginResult = { ok: true } | { ok: false; reason: 'invalid' } | { ok: false; reason: 'throttled'; retryAfter: number } + +type Navigate = (target: { name: string; query?: Record }) => void + +/** + * Sessão do painel conforme o modo de acesso (spec 008 §0, ADR-0021): lê `/auth` e `/me`, faz login e logout do login + * fixo, reage a 401 (diálogo de sessão expirada, redirecionamento ao host, página "sem acesso") e a 403 (D-152). + */ +export const useSession = defineStore('session', () => { + const auth = ref(null) + const me = ref(null) + const loaded = ref(false) + /** O diálogo de sessão expirada está aberto (D-138). */ + const expired = ref(false) + let waiters: ((ok: boolean) => void)[] = [] + let loading: Promise | null = null + let navigate: Navigate = () => {} + let redirect: (url: string) => void = (url) => window.location.assign(url) + + const identified = computed(() => me.value !== null) + const role = computed(() => me.value?.role ?? null) + const mode = computed(() => auth.value?.mode ?? null) + /** Como o usuário atual foi identificado (o "Sair" depende disso; D-145). */ + const identifiedBy = computed(() => me.value?.mode ?? null) + const canLogout = computed( + () => identifiedBy.value === 'FixedLogin' || (identifiedBy.value === 'Host' && Boolean(auth.value?.logoutUrl)), + ) + + function hasRole(minimum: Role): boolean { + return roleRank(role.value) >= roleRank(minimum) + } + + async function refreshMe() { + const { data, response } = await api.GET('/me') + me.value = response.ok && data ? data : null + } + + function load(force = false): Promise { + if (loaded.value && !force) { + return Promise.resolve() + } + + loading ??= (async () => { + try { + const { data } = await api.GET('/auth') + auth.value = data ?? null + await refreshMe() + useDrafts().purgeExpired() + loaded.value = true + } finally { + loading = null + } + })() + return loading + } + + async function login(name: string, password: string): Promise { + const { response } = await api.POST('/auth/login', { body: { name, password } }) + if (response.status === 204) { + await refreshMe() + expired.value = false + resolveWaiters(true) + return { ok: true } + } + + if (response.status === 429) { + const seconds = Number.parseInt(response.headers.get('Retry-After') ?? '', 10) + return { ok: false, reason: 'throttled', retryAfter: Number.isFinite(seconds) && seconds > 0 ? seconds : 60 } + } + + return { ok: false, reason: 'invalid' } + } + + async function logout() { + useDrafts().flushAll() + if (identifiedBy.value === 'Host' && auth.value?.logoutUrl) { + redirect(auth.value.logoutUrl) + return + } + + await api.POST('/auth/logout') + me.value = null + navigate({ name: 'login' }) + } + + /** Sessão expirada: "Entrar como outro usuário" fecha o diálogo e vai para /entrar (D-151). */ + function switchUser() { + useDrafts().flushAll() + expired.value = false + me.value = null + resolveWaiters(false) + navigate({ name: 'login' }) + } + + function resolveWaiters(ok: boolean) { + const pending = waiters + waiters = [] + pending.forEach((resolve) => resolve(ok)) + } + + function unauthorized(): Promise { + if (!identified.value && !expired.value) { + return Promise.resolve(false) + } + + switch (identifiedBy.value) { + case 'FixedLogin': + expired.value = true + return new Promise((resolve) => waiters.push(resolve)) + case 'Host': + useDrafts().flushAll() + if (auth.value?.loginUrl) { + redirect(auth.value.loginUrl) + return new Promise(() => {}) + } + + me.value = null + navigate({ name: 'no-access' }) + return Promise.resolve(false) + default: + me.value = null + navigate({ name: 'no-access' }) + return Promise.resolve(false) + } + } + + async function forbidden(required: Role | null) { + useDrafts().flushAll() + await refreshMe() + const t = i18n.global.t + const notify = useNotify() + if (required) { + notify.warning(t('access.changed', { role: t(`roles.${required}`) })) + } else { + notify.warning(t('access.forbidden')) + } + } + + /** Liga a sessão ao roteador e ao cliente da API (chamado uma vez na inicialização). */ + function connect(options: { navigate: Navigate; redirect?: (url: string) => void }) { + navigate = options.navigate + if (options.redirect) { + redirect = options.redirect + } + + setAuthHooks({ unauthorized, forbidden: (required) => void forbidden(required) }) + } + + return { + auth, + me, + loaded, + expired, + identified, + role, + mode, + identifiedBy, + canLogout, + hasRole, + load, + refreshMe, + login, + logout, + switchUser, + connect, + } +}) diff --git a/panel/src/stores/theme.ts b/panel/src/stores/theme.ts new file mode 100644 index 0000000..e5d3d7d --- /dev/null +++ b/panel/src/stores/theme.ts @@ -0,0 +1,41 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +export type ThemeChoice = 'system' | 'light' | 'dark' + +const storageKey = 'psr.theme' + +function read(): ThemeChoice { + try { + const value = window.localStorage.getItem(storageKey) + return value === 'light' || value === 'dark' ? value : 'system' + } catch { + return 'system' + } +} + +/** Tema claro/escuro seguindo o sistema, com alternância manual persistida (spec 008, AC-12). */ +export const useThemeChoice = defineStore('theme', () => { + const choice = ref(read()) + const systemDark = ref(window.matchMedia?.('(prefers-color-scheme: dark)').matches ?? false) + window.matchMedia?.('(prefers-color-scheme: dark)').addEventListener?.('change', (event) => (systemDark.value = event.matches)) + + function resolved(): 'light' | 'dark' { + return choice.value === 'system' ? (systemDark.value ? 'dark' : 'light') : choice.value + } + + function set(value: ThemeChoice) { + choice.value = value + try { + if (value === 'system') { + window.localStorage.removeItem(storageKey) + } else { + window.localStorage.setItem(storageKey, value) + } + } catch { + // Sem armazenamento: vale só nesta aba. + } + } + + return { choice, systemDark, resolved, set } +}) diff --git a/panel/src/test/api-mock.ts b/panel/src/test/api-mock.ts new file mode 100644 index 0000000..03b6c23 --- /dev/null +++ b/panel/src/test/api-mock.ts @@ -0,0 +1,22 @@ +import { vi } from 'vitest' + +type Reply = { status: number; body?: unknown; headers?: Record } +type Handler = (request: Request) => Reply | Promise + +/** Substitui o fetch: `routes` mapeia "MÉTODO /caminho-da-api" para a resposta (ou uma função que a calcula). */ +export function mockApi(routes: Record) { + const calls: Request[] = [] + const fetchMock = vi.fn(async (input: RequestInfo | URL, init?: RequestInit) => { + const request = input instanceof Request ? input : new Request(String(input), init) + calls.push(request) + const path = new URL(request.url).pathname.replace(/^.*\/api/, '') + const route = routes[`${request.method} ${path}`] + const reply = typeof route === 'function' ? await route(request) : (route ?? { status: 404 }) + return new Response(reply.body === undefined ? null : JSON.stringify(reply.body), { + status: reply.status, + headers: { 'Content-Type': 'application/json', ...reply.headers }, + }) + }) + vi.stubGlobal('fetch', fetchMock) + return { calls, fetch: fetchMock } +} diff --git a/panel/src/test/setup.ts b/panel/src/test/setup.ts new file mode 100644 index 0000000..1863ccf --- /dev/null +++ b/panel/src/test/setup.ts @@ -0,0 +1,14 @@ +import { config } from '@vue/test-utils' +import { createVuetify } from 'vuetify' +import { i18n } from '@/i18n' + +// Vuetify mede elementos com ResizeObserver, que o happy-dom não implementa por completo. +globalThis.ResizeObserver ??= class { + observe() {} + unobserve() {} + disconnect() {} +} as unknown as typeof ResizeObserver + +config.global.plugins = [createVuetify(), i18n] +// O Monaco não roda no happy-dom: os editores viram um campo simples nos testes. +config.global.stubs = { CodeEditor: { props: ['modelValue'], template: '