\u2028",
+ });
+ expect(sent.last['content']['text'], "it's \"quoted\" \u2028");
+ });
+}
diff --git a/Phone-App/test/widget_test.dart b/Phone-App/test/widget_test.dart
index 20839f5..bb3c90e 100644
--- a/Phone-App/test/widget_test.dart
+++ b/Phone-App/test/widget_test.dart
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import 'dart:convert';
import 'package:docwell_mobile/api/docwell_api.dart';
@@ -11,6 +13,12 @@ const ann = {
'id': 'u1',
'email': 'ann@docwell.test',
'name': 'Ann',
+ 'avatar': '',
+ 'locale': 'en',
+ 'theme': 'system',
+ 'status': 'active',
+ 'verified': true,
+ 'created': '2026-10-01 09:00:00.000Z',
'role': 'admin',
'organization': 'o1',
'organizationName': 'Acme',
diff --git a/Phone-App/tool/generate_api.dart b/Phone-App/tool/generate_api.dart
new file mode 100644
index 0000000..1031993
--- /dev/null
+++ b/Phone-App/tool/generate_api.dart
@@ -0,0 +1,299 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+// Generates Dart models from the schemas in api/openapi.yaml.
+//
+// dart run tool/generate_api.dart (from Phone-App/)
+//
+// Handles what the contract uses: objects, string enums, $ref, arrays, maps
+// (additionalProperties) and "object or null". Inline objects and enums become
+// classes named after their parent and property (WorkspaceMember.user ->
+// WorkspaceMemberUser).
+import 'dart:io';
+
+import 'package:yaml/yaml.dart';
+
+const _specPath = '../api/openapi.yaml';
+const _outPath = 'lib/api/generated/models.dart';
+
+void main() {
+ final spec = loadYaml(File(_specPath).readAsStringSync()) as YamlMap;
+ final schemas = (spec['components'] as YamlMap)['schemas'] as YamlMap;
+ final gen = _Generator({
+ for (final e in schemas.entries)
+ if ((e.value as YamlMap)['enum'] != null) e.key as String,
+ });
+ for (final entry in schemas.entries) {
+ gen.schema(_className(entry.key as String), entry.value as YamlMap);
+ }
+ File(_outPath)
+ ..createSync(recursive: true)
+ ..writeAsStringSync(gen.render());
+ final fmt = Process.runSync('dart', ['format', _outPath], runInShell: true);
+ if (fmt.exitCode != 0) {
+ stderr.write(fmt.stderr);
+ exit(fmt.exitCode);
+ }
+ stdout.writeln('wrote $_outPath (${schemas.length} schemas)');
+}
+
+/// Schema names that would hide a dart:core type get an Api prefix (Error -> ApiError).
+const _coreNames = {
+ 'Error',
+ 'Exception',
+ 'Object',
+ 'Type',
+ 'List',
+ 'Map',
+ 'Set',
+ 'Duration',
+ 'Uri',
+};
+
+String _className(String schema) =>
+ _coreNames.contains(schema) ? 'Api$schema' : schema;
+
+class _Field {
+ _Field(this.name, this.type, this.required, this.description);
+ final String name;
+ final _Type type;
+ final bool required;
+ final String? description;
+}
+
+/// A Dart type plus how to convert it from and to JSON.
+class _Type {
+ _Type(this.dart, this.fromJson, this.toJson, {this.nullable = false});
+ final String dart;
+ final String Function(String v) fromJson;
+ final String Function(String v) toJson;
+ final bool nullable;
+}
+
+class _Generator {
+ _Generator(this.enumSchemas);
+
+ final Set enumSchemas;
+ final _out = [];
+
+ String render() => [
+ '// SPDX-License-Identifier: AGPL-3.0-or-later',
+ '',
+ '// Code generated by tool/generate_api.dart from api/openapi.yaml. DO NOT EDIT.',
+ '',
+ '// ignore_for_file: constant_identifier_names',
+ '',
+ ..._out,
+ ].join('\n');
+
+ void schema(String name, YamlMap s) {
+ if (s['enum'] != null) {
+ _enum(name, s);
+ } else if (s['type'] == 'object') {
+ _class(name, s);
+ } else {
+ throw UnsupportedError('schema $name: type ${s['type']}');
+ }
+ }
+
+ void _enum(String name, YamlMap s) {
+ final values = (s['enum'] as YamlList).cast();
+ final b = StringBuffer();
+ _doc(b, s['description'] as String?, '');
+ b.writeln('enum $name {');
+ for (final v in values) {
+ b.writeln(" ${_ident(v)}('$v'),");
+ }
+ b.writeln(' ;');
+ b.writeln();
+ b.writeln(' const $name(this.value);');
+ b.writeln(' final String value;');
+ b.writeln();
+ b.writeln(' static $name fromJson(String value) =>');
+ b.writeln(' values.firstWhere((e) => e.value == value,');
+ b.writeln(
+ " orElse: () => throw FormatException('unknown $name', value));",
+ );
+ b.writeln();
+ b.writeln(' String toJson() => value;');
+ b.writeln('}');
+ _out.add(b.toString());
+ }
+
+ void _class(String name, YamlMap s) {
+ final required = ((s['required'] as YamlList?) ?? YamlList())
+ .cast();
+ final props = (s['properties'] as YamlMap?) ?? YamlMap();
+ final fields = <_Field>[];
+ for (final e in props.entries) {
+ final prop = e.key as String;
+ final ps = e.value as YamlMap;
+ fields.add(
+ _Field(
+ prop,
+ _type(name + _pascal(prop), ps),
+ required.contains(prop),
+ ps['description'] as String?,
+ ),
+ );
+ }
+
+ final b = StringBuffer();
+ _doc(b, s['description'] as String?, '');
+ b.writeln('class $name {');
+ if (fields.isEmpty) {
+ b.writeln(' const $name();');
+ } else {
+ b.writeln(' const $name({');
+ for (final f in fields) {
+ b.writeln(
+ ' ${f.required ? 'required ' : ''}this.${_ident(f.name)},',
+ );
+ }
+ b.writeln(' });');
+ }
+ b.writeln();
+ b.writeln(' factory $name.fromJson(Map json) => $name(');
+ for (final f in fields) {
+ final v = "json['${f.name}']";
+ final conv = f.required && !f.type.nullable
+ ? f.type.fromJson(v)
+ : '$v == null ? null : ${f.type.fromJson(v)}';
+ b.writeln(' ${_ident(f.name)}: $conv,');
+ }
+ b.writeln(' );');
+ for (final f in fields) {
+ b.writeln();
+ _doc(b, f.description, ' ');
+ final opt = !f.required || f.type.nullable;
+ b.writeln(' final ${f.type.dart}${opt ? '?' : ''} ${_ident(f.name)};');
+ }
+ b.writeln();
+ b.writeln(' Map toJson() => {');
+ for (final f in fields) {
+ final id = _ident(f.name);
+ // `id?` short-circuits the conversion chain when the value is null.
+ final plain = f.type.toJson('x') == 'x';
+ final maybe = plain ? id : f.type.toJson('$id?');
+ if (f.required) {
+ b.writeln(
+ " '${f.name}': ${f.type.nullable ? maybe : f.type.toJson(id)},",
+ );
+ } else {
+ b.writeln(" '${f.name}': ?$maybe,");
+ }
+ }
+ b.writeln(' };');
+ b.writeln('}');
+ _out.add(b.toString());
+ }
+
+ _Type _type(String inlineName, YamlMap s) {
+ final ref = s[r'$ref'] as String?;
+ if (ref != null) {
+ final target = _className(ref.split('/').last);
+ return _Type(
+ target,
+ (v) =>
+ '$target.fromJson($v as ${_isEnumRef(s) ? 'String' : 'Map'})',
+ (v) => '$v.toJson()',
+ );
+ }
+ final oneOf = s['oneOf'] as YamlList?;
+ if (oneOf != null) {
+ final nonNull = oneOf
+ .cast()
+ .where((o) => o['type'] != 'null')
+ .toList();
+ if (nonNull.length != 1 || nonNull.length == oneOf.length) {
+ throw UnsupportedError(
+ '$inlineName: only "T or null" oneOf is supported',
+ );
+ }
+ final t = _type(inlineName, nonNull.single);
+ return _Type(t.dart, t.fromJson, t.toJson, nullable: true);
+ }
+ if (s['enum'] != null) {
+ _enum(inlineName, s);
+ return _Type(
+ inlineName,
+ (v) => '$inlineName.fromJson($v as String)',
+ (v) => '$v.toJson()',
+ );
+ }
+ switch (s['type']) {
+ case 'string':
+ return _Type('String', (v) => '$v as String', (v) => v);
+ case 'integer':
+ return _Type('int', (v) => '($v as num).toInt()', (v) => v);
+ case 'number':
+ return _Type('double', (v) => '($v as num).toDouble()', (v) => v);
+ case 'boolean':
+ return _Type('bool', (v) => '$v as bool', (v) => v);
+ case 'array':
+ final item = _type(inlineName, s['items'] as YamlMap);
+ return _Type(
+ 'List<${item.dart}>',
+ (v) => '($v as List).map((e) => ${item.fromJson('e')}).toList()',
+ (v) => '$v.map((e) => ${item.toJson('e')}).toList()',
+ );
+ case 'object':
+ final extra = s['additionalProperties'];
+ if (s['properties'] != null) {
+ _class(inlineName, s);
+ return _Type(
+ inlineName,
+ (v) => '$inlineName.fromJson($v as Map)',
+ (v) => '$v.toJson()',
+ );
+ }
+ if (extra is YamlMap) {
+ final val = _type(inlineName, extra);
+ final plain = val.toJson('e') == 'e';
+ return _Type(
+ 'Map',
+ (v) =>
+ '($v as Map).map((k, e) => MapEntry(k, ${val.fromJson('e')}))',
+ (v) =>
+ plain ? v : '$v.map((k, e) => MapEntry(k, ${val.toJson('e')}))',
+ );
+ }
+ return _Type(
+ 'Map',
+ (v) => '$v as Map',
+ (v) => v,
+ );
+ }
+ throw UnsupportedError('$inlineName: type ${s['type']}');
+ }
+
+ // Enum schemas are referenced by name; the spec's enums are all strings.
+ bool _isEnumRef(YamlMap s) =>
+ enumSchemas.contains((s[r'$ref'] as String).split('/').last);
+
+ static void _doc(StringBuffer b, String? text, String indent) {
+ if (text == null) return;
+ for (final line in text.trim().split('\n')) {
+ b.writeln('$indent/// ${line.trim()}');
+ }
+ }
+
+ static String _pascal(String s) => s[0].toUpperCase() + s.substring(1);
+
+ static const _reserved = {
+ 'default',
+ 'enum',
+ 'class',
+ 'new',
+ 'switch',
+ 'in',
+ 'is',
+ };
+
+ static String _ident(String s) {
+ final id = s.replaceAllMapped(
+ RegExp(r'[-_ ](\w)'),
+ (m) => m[1]!.toUpperCase(),
+ );
+ return _reserved.contains(id) ? '${id}_' : id;
+ }
+}
diff --git a/README.md b/README.md
index b754756..2641c84 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
An open-source, self-hostable knowledge base and collaborative document editor. It is wiki-first like Docmost and Outline, and will grow Notion-style databases later.
-> Status: **Phase 0 scaffold.** All services build and run, but no product features exist yet.
+> Status: **Phase 0 done; Phase 1 (MVP wiki) in progress.** Sign-in, organizations, workspaces, spaces, the page tree, the editor and real-time collaboration with page history work. Most of the MVP (search, comments, sharing, import and export) is still to come.
## Components
@@ -13,7 +13,7 @@ An open-source, self-hostable knowledge base and collaborative document editor.
| `Web-App/` | **docwell-web**: serves the end-user web app | Go 1.26, Vue 3, Tailwind CSS 4, Tiptap |
| `Desktop-App/` | Desktop app; reuses the web app UI | Wails v3 |
| `Phone-App/` | Mobile app (Android, iOS) | Flutter |
-| `Packages/` | Shared frontend code: `@docwell/editor`, `@docwell/ui`, `@docwell/api-client` | TypeScript |
+| `Packages/` | Shared frontend code: `@docwell/editor`, `@docwell/ui`, `@docwell/api-client`, and `@docwell/editor-bridge` (the editor as one HTML page for the phone app's WebView) | TypeScript |
| `Docker/` | The three services as separate containers | docker compose |
| `Docker-AIO/` | Everything in one container | docker compose |
@@ -91,24 +91,29 @@ npm run dev:admin
# Desktop app (from Desktop-App/)
wails3 dev
-# Mobile app (from Phone-App/), e.g. on an Android emulator
+# Mobile app (from Phone-App/), e.g. on an Android emulator. Build the editor
+# page into its assets first: npm run build -w @docwell/editor-bridge
flutter run
```
-Tests and checks:
+Tests and checks (CI runs all of them; see [CONTRIBUTING.md](CONTRIBUTING.md)):
```bash
go test ./Server/... ./Web-App/... ./Desktop-App/
-npm run typecheck && npm test
+npm run lint && npm run format:check && npm run typecheck && npm test
cd Phone-App && flutter analyze && flutter test
```
-After changing `api/openapi.yaml`, regenerate the TypeScript types:
+Go code is linted with `golangci-lint run` from each module folder.
+
+After changing `api/openapi.yaml`, regenerate the TypeScript, Go and Dart types:
```bash
-npm run generate -w @docwell/api-client
+npm run generate
```
+Desktop release builds set the update feed and its signing key; see [Desktop-App/updates.go](Desktop-App/updates.go). Development builds never update themselves.
+
## License
[GNU Affero General Public License v3.0 or later](LICENSE).
diff --git a/Server/admin/src/App.vue b/Server/admin/src/App.vue
index 21db0b3..5b95248 100644
--- a/Server/admin/src/App.vue
+++ b/Server/admin/src/App.vue
@@ -1,3 +1,4 @@
+
@@ -127,7 +134,13 @@ async function remove(u: User) {
-
+
- {{ editing === "new" ? "Create user" : "Save" }}
+ {{
+ editing === "new" ? "Create user" : "Save"
+ }}
Cancel
@@ -197,12 +219,23 @@ async function remove(u: User) {
{{ roleLabel[u.role] }} |
{{ u.organizationName || "—" }} |
- {{ u.status }}
+ {{ u.status }}
|
Edit
-
+
Delete
diff --git a/Server/admin/vite.config.ts b/Server/admin/vite.config.ts
index d711100..bab5322 100644
--- a/Server/admin/vite.config.ts
+++ b/Server/admin/vite.config.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import tailwindcss from "@tailwindcss/vite";
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vite";
diff --git a/Server/go.mod b/Server/go.mod
index 30bf468..9db924c 100644
--- a/Server/go.mod
+++ b/Server/go.mod
@@ -3,7 +3,31 @@ module docwell/server
go 1.26
require (
- github.com/coder/websocket v1.8.15 // indirect
- github.com/tetratelabs/wazero v1.12.0 // indirect
- golang.org/x/sys v0.44.0 // indirect
+ github.com/coder/websocket v1.8.15
+ github.com/oapi-codegen/runtime v1.8.0
+ github.com/tetratelabs/wazero v1.12.0
+ gopkg.in/yaml.v3 v3.0.1
)
+
+require (
+ github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect
+ github.com/getkin/kin-openapi v0.142.0 // indirect
+ github.com/go-openapi/jsonpointer v0.23.1 // indirect
+ github.com/go-openapi/swag/jsonname v0.26.0 // indirect
+ github.com/google/uuid v1.6.0 // indirect
+ github.com/oapi-codegen/oapi-codegen/v2 v2.8.1 // indirect
+ github.com/oasdiff/yaml v0.1.1 // indirect
+ github.com/oasdiff/yaml3 v0.0.14 // indirect
+ github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
+ github.com/speakeasy-api/jsonpath v0.6.3 // indirect
+ github.com/speakeasy-api/openapi v1.24.0 // indirect
+ github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect
+ go.yaml.in/yaml/v3 v3.0.4 // indirect
+ golang.org/x/mod v0.38.0 // indirect
+ golang.org/x/sync v0.22.0 // indirect
+ golang.org/x/sys v0.47.0 // indirect
+ golang.org/x/text v0.40.0 // indirect
+ golang.org/x/tools v0.48.0 // indirect
+)
+
+tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
diff --git a/Server/go.sum b/Server/go.sum
index 4ef828d..40979b4 100644
--- a/Server/go.sum
+++ b/Server/go.sum
@@ -1,6 +1,179 @@
+github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
+github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
+github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/coder/websocket v1.8.15 h1:6B2JPeOGlpff2Uz6vOEH1Vzpi0iUz20A+lPVhPHtNUA=
github.com/coder/websocket v1.8.15/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
+github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/dlclark/regexp2 v1.11.4 h1:rPYF9/LECdNymJufQKmri9gV604RvvABwgOA8un7yAo=
+github.com/dlclark/regexp2 v1.11.4/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
+github.com/dprotaso/go-yit v0.0.0-20191028211022-135eb7262960/go.mod h1:9HQzr9D/0PGwMEbC3d5AB7oi67+h4TsQqItC1GVYG58=
+github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 h1:PRxIJD8XjimM5aTknUK9w6DHLDox2r2M3DI4i2pnd3w=
+github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936/go.mod h1:ttYvX5qlB+mlV1okblJqcSMtR4c52UKxDiX9GRBS8+Q=
+github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
+github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
+github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
+github.com/getkin/kin-openapi v0.142.0 h1:izj0vBdFprMhitfzaX8sTqztsEQyvwhssBoB6n8NO7w=
+github.com/getkin/kin-openapi v0.142.0/go.mod h1:3BH9M9XDe/y9M5DSvEocVYAYq1w0qrhJHjC/vZi0AaY=
+github.com/go-openapi/jsonpointer v0.23.1 h1:1HBACs7XIwR2RcmItfdSFlALhGbe6S92p0ry4d1GWg4=
+github.com/go-openapi/jsonpointer v0.23.1/go.mod h1:iWRmZTrGn7XwYhtPt/fvdSFj1OfNBngqRT2UG3BxSqY=
+github.com/go-openapi/swag/jsonname v0.26.0 h1:gV1NFX9M8avo0YSpmWogqfQISigCmpaiNci8cGECU5w=
+github.com/go-openapi/swag/jsonname v0.26.0/go.mod h1:urBBR8bZNoDYGr653ynhIx+gTeIz0ARZxHkAPktJK2M=
+github.com/go-openapi/testify/v2 v2.4.2 h1:tiByHpvE9uHrrKjOszax7ZvKB7QOgizBWGBLuq0ePx4=
+github.com/go-openapi/testify/v2 v2.4.2/go.mod h1:SgsVHtfooshd0tublTtJ50FPKhujf47YRqauXXOUxfw=
+github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
+github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
+github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
+github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
+github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
+github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
+github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
+github.com/oapi-codegen/oapi-codegen/v2 v2.8.1 h1:7gjJwSzbXBUhTJFa6bd4ZpVXIF2Xjwei/Ni1LW4fztk=
+github.com/oapi-codegen/oapi-codegen/v2 v2.8.1/go.mod h1:yae2TI9IYB5vxQ35gFrpXh9L5H1eJv4MAUK1jumGMTo=
+github.com/oapi-codegen/runtime v1.8.0 h1:RJzEgQSJQADEPaG1cYuSCKYai/cCVRE2xnkrqhJs/3c=
+github.com/oapi-codegen/runtime v1.8.0/go.mod h1:GwV7hC2hviaMzj+ITfHVRESK5J2W/GefVwIND/bMGvU=
+github.com/oasdiff/yaml v0.1.1 h1:6nHx+pn9gBRM6YpBlFZFQGCCd1nuvqOBtTD3KKTgGxY=
+github.com/oasdiff/yaml v0.1.1/go.mod h1:EYJNoyktvWMJ0Hmhx+6qTaqMOsalUaRGT8Sj1hNcegU=
+github.com/oasdiff/yaml3 v0.0.14 h1:aLJee3hxBK2H5wdXd9iPcIXb93Nty1Ge0pT171eHtkw=
+github.com/oasdiff/yaml3 v0.0.14/go.mod h1:csto2xfDjYccdUn/yw/bPjj/cYTdp6HtFA0J4TWG+gg=
+github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
+github.com/onsi/ginkgo v1.10.2/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
+github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
+github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc=
+github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0=
+github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c=
+github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
+github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
+github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
+github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
+github.com/onsi/gomega v1.19.0 h1:4ieX6qQjPP/BfC3mpsAtIGGlxTWPeA3Inl/7DtXw1tw=
+github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
+github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
+github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
+github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ=
+github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=
+github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
+github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
+github.com/speakeasy-api/jsonpath v0.6.3 h1:c+QPwzAOdrWvzycuc9HFsIZcxKIaWcNpC+xhOW9rJxU=
+github.com/speakeasy-api/jsonpath v0.6.3/go.mod h1:2cXloNuQ+RSXi5HTRaeBh7JEmjRXTiaKpFTdZiL7URI=
+github.com/speakeasy-api/openapi v1.24.0 h1:opoD27rupX7zBVPq1HkIGLeMOzNNA7JalhYP8q34i04=
+github.com/speakeasy-api/openapi v1.24.0/go.mod h1:g3+dIMe0AYgbbGvnlQZqesmjAVWSm9BmsjLevnefQrg=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
+github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
+github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
github.com/tetratelabs/wazero v1.12.0 h1:DuWcpNu/FzgEXgGBDp8J1Spc+CWOvvtvVyjKlaZopYU=
github.com/tetratelabs/wazero v1.12.0/go.mod h1:LvKtzl2RqO4gyF27BiXU+nKAjcV8f38U+kP/q2vgxh0=
-golang.org/x/sys v0.44.0 h1:ildZl3J4uzeKP07r2F++Op7E9B29JRUy+a27EibtBTQ=
-golang.org/x/sys v0.44.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+github.com/vmware-labs/yaml-jsonpath v0.3.2 h1:/5QKeCBGdsInyDCyVNLbXyilb61MXGi9NP674f9Hobk=
+github.com/vmware-labs/yaml-jsonpath v0.3.2/go.mod h1:U6whw1z03QyqgWdgXxvVnQ90zN1BWz5V+51Ewf8k+rQ=
+github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
+go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.38.0 h1:MECBjubtXD7yj4HrhIUcywNaGeNVUdfVnxmPajOk4yk=
+golang.org/x/mod v0.38.0/go.mod h1:V6Xz0pq8TQ3dGqVQ1FVHuelZpAL0uNhSkk9ogYP3c40=
+golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
+golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
+golang.org/x/net v0.57.0 h1:K5+3DljvIuDG9/Jv9rvyMywYNFCQ9RSUY6OOTTkT+tE=
+golang.org/x/net v0.57.0/go.mod h1:KpXc8iv+r3XplLAG/f7Jsf9RPszJzdR0f58q9vGOuEU=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
+golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
+golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
+golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
+golang.org/x/text v0.40.0 h1:Ub2Z6/xjgF1WrYQz2nuITOEegKFtiIy+rieRJ5lHZKs=
+golang.org/x/text v0.40.0/go.mod h1:hpnzDAfGV753zIKo+wk3u1bVKCGPbrnF7+7LBF/UHVY=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
+golang.org/x/tools v0.48.0 h1:3+hClM1aLL5mjMKm5ovokw9epgRXPuu2tILgismM6RE=
+golang.org/x/tools v0.48.0/go.mod h1:08xX0orndb/F7jJxGDicx061tyd5pcMto75YMAXr6lk=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
+google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
+gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
+gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
+gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+gopkg.in/yaml.v3 v3.0.0-20191026110619-0b21df46bc1d/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
diff --git a/Server/internal/access/access.go b/Server/internal/access/access.go
index 208e0de..40ff385 100644
--- a/Server/internal/access/access.go
+++ b/Server/internal/access/access.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package access holds Docwell's authorization rules as pure functions, so
// every decision is testable without a database.
//
diff --git a/Server/internal/access/access_test.go b/Server/internal/access/access_test.go
index 7c1ece8..58cd858 100644
--- a/Server/internal/access/access_test.go
+++ b/Server/internal/access/access_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package access
import (
diff --git a/Server/internal/access/spaces.go b/Server/internal/access/spaces.go
index 01555c2..6f411e3 100644
--- a/Server/internal/access/spaces.go
+++ b/Server/internal/access/spaces.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package access
import "docwell/server/internal/apperr"
diff --git a/Server/internal/access/spaces_test.go b/Server/internal/access/spaces_test.go
index a8c4f01..5a6e88b 100644
--- a/Server/internal/access/spaces_test.go
+++ b/Server/internal/access/spaces_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package access
import (
diff --git a/Server/internal/admin/embed.go b/Server/internal/admin/embed.go
index fe7d639..679a95e 100644
--- a/Server/internal/admin/embed.go
+++ b/Server/internal/admin/embed.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package admin embeds the built admin panel (Server/admin, output copied to
// dist/ by `npm run build:admin`) and serves it as a single-page app.
package admin
diff --git a/Server/internal/api/api.gen.go b/Server/internal/api/api.gen.go
new file mode 100644
index 0000000..bde6113
--- /dev/null
+++ b/Server/internal/api/api.gen.go
@@ -0,0 +1,614 @@
+// Package api provides primitives to interact with the openapi HTTP API.
+//
+// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT.
+package api
+
+import (
+ openapi_types "github.com/oapi-codegen/runtime/types"
+)
+
+// Defines values for Role.
+const (
+ RoleAdmin Role = "admin"
+ RoleSuperadmin Role = "superadmin"
+ RoleUser Role = "user"
+)
+
+// Valid indicates whether the value is a known member of the Role enum.
+func (e Role) Valid() bool {
+ switch e {
+ case RoleAdmin:
+ return true
+ case RoleSuperadmin:
+ return true
+ case RoleUser:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for SpaceDefaultRole.
+const (
+ SpaceDefaultRoleCommenter SpaceDefaultRole = "commenter"
+ SpaceDefaultRoleEditor SpaceDefaultRole = "editor"
+ SpaceDefaultRoleViewer SpaceDefaultRole = "viewer"
+)
+
+// Valid indicates whether the value is a known member of the SpaceDefaultRole enum.
+func (e SpaceDefaultRole) Valid() bool {
+ switch e {
+ case SpaceDefaultRoleCommenter:
+ return true
+ case SpaceDefaultRoleEditor:
+ return true
+ case SpaceDefaultRoleViewer:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for SpaceRole.
+const (
+ SpaceRoleAdmin SpaceRole = "admin"
+ SpaceRoleCommenter SpaceRole = "commenter"
+ SpaceRoleEditor SpaceRole = "editor"
+ SpaceRoleViewer SpaceRole = "viewer"
+)
+
+// Valid indicates whether the value is a known member of the SpaceRole enum.
+func (e SpaceRole) Valid() bool {
+ switch e {
+ case SpaceRoleAdmin:
+ return true
+ case SpaceRoleCommenter:
+ return true
+ case SpaceRoleEditor:
+ return true
+ case SpaceRoleViewer:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for SpaceVisibility.
+const (
+ Open SpaceVisibility = "open"
+ Private SpaceVisibility = "private"
+)
+
+// Valid indicates whether the value is a known member of the SpaceVisibility enum.
+func (e SpaceVisibility) Valid() bool {
+ switch e {
+ case Open:
+ return true
+ case Private:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for StatusStatus.
+const (
+ Ok StatusStatus = "ok"
+ Unavailable StatusStatus = "unavailable"
+)
+
+// Valid indicates whether the value is a known member of the StatusStatus enum.
+func (e StatusStatus) Valid() bool {
+ switch e {
+ case Ok:
+ return true
+ case Unavailable:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for UpdateUserRequestStatus.
+const (
+ UpdateUserRequestStatusActive UpdateUserRequestStatus = "active"
+ UpdateUserRequestStatusDisabled UpdateUserRequestStatus = "disabled"
+ UpdateUserRequestStatusInvited UpdateUserRequestStatus = "invited"
+)
+
+// Valid indicates whether the value is a known member of the UpdateUserRequestStatus enum.
+func (e UpdateUserRequestStatus) Valid() bool {
+ switch e {
+ case UpdateUserRequestStatusActive:
+ return true
+ case UpdateUserRequestStatusDisabled:
+ return true
+ case UpdateUserRequestStatusInvited:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for UserStatus.
+const (
+ UserStatusActive UserStatus = "active"
+ UserStatusDisabled UserStatus = "disabled"
+ UserStatusInvited UserStatus = "invited"
+)
+
+// Valid indicates whether the value is a known member of the UserStatus enum.
+func (e UserStatus) Valid() bool {
+ switch e {
+ case UserStatusActive:
+ return true
+ case UserStatusDisabled:
+ return true
+ case UserStatusInvited:
+ return true
+ default:
+ return false
+ }
+}
+
+// Defines values for WorkspaceRole.
+const (
+ WorkspaceRoleAdmin WorkspaceRole = "admin"
+ WorkspaceRoleGuest WorkspaceRole = "guest"
+ WorkspaceRoleMember WorkspaceRole = "member"
+ WorkspaceRoleOwner WorkspaceRole = "owner"
+)
+
+// Valid indicates whether the value is a known member of the WorkspaceRole enum.
+func (e WorkspaceRole) Valid() bool {
+ switch e {
+ case WorkspaceRoleAdmin:
+ return true
+ case WorkspaceRoleGuest:
+ return true
+ case WorkspaceRoleMember:
+ return true
+ case WorkspaceRoleOwner:
+ return true
+ default:
+ return false
+ }
+}
+
+// AuthMethods defines model for AuthMethods.
+type AuthMethods struct {
+ Mfa bool `json:"mfa"`
+ Oauth2 []string `json:"oauth2"`
+ Otp bool `json:"otp"`
+ Password bool `json:"password"`
+ Signup bool `json:"signup"`
+}
+
+// CreateUserRequest defines model for CreateUserRequest.
+type CreateUserRequest struct {
+ Email openapi_types.Email `json:"email"`
+ Name string `json:"name"`
+
+ // Organization Superadmins only; admins always create in their own
+ Organization *string `json:"organization,omitempty"`
+ Password string `json:"password"`
+
+ // Role Instance role. admin manages their own organization; superadmin manages everything.
+ Role *Role `json:"role,omitempty"`
+}
+
+// EmailRequest defines model for EmailRequest.
+type EmailRequest struct {
+ Email openapi_types.Email `json:"email"`
+}
+
+// Error defines model for Error.
+type Error struct {
+ // Error invalid_json, validation, invalid_credentials, mfa_required, unauthorized, forbidden, account_disabled, signup_disabled, domain_not_allowed, invalid_token, invalid, not_found, conflict, internal
+ Error string `json:"error"`
+ Fields *map[string]string `json:"fields,omitempty"`
+
+ // Message Human-readable explanation
+ Message *string `json:"message,omitempty"`
+ MfaId *string `json:"mfaId,omitempty"`
+}
+
+// LoginRequest defines model for LoginRequest.
+type LoginRequest struct {
+ Email openapi_types.Email `json:"email"`
+ MfaId *string `json:"mfaId,omitempty"`
+ Password string `json:"password"`
+}
+
+// NameRequest defines model for NameRequest.
+type NameRequest struct {
+ Name string `json:"name"`
+}
+
+// Organization defines model for Organization.
+type Organization struct {
+ Created string `json:"created"`
+ Id string `json:"id"`
+ Members int `json:"members"`
+ Name string `json:"name"`
+ Workspaces int `json:"workspaces"`
+}
+
+// Page defines model for Page.
+type Page struct {
+ // Ancestors Root first
+ Ancestors []PageRef `json:"ancestors"`
+ Created string `json:"created"`
+
+ // DeletedAt When the page itself was trashed; empty otherwise
+ DeletedAt string `json:"deletedAt"`
+ Icon string `json:"icon"`
+ Id string `json:"id"`
+
+ // InTrash The page or one of its ancestors is in the trash
+ InTrash bool `json:"inTrash"`
+ Parent string `json:"parent"`
+ Role SpaceRole `json:"role"`
+ Space string `json:"space"`
+ Title string `json:"title"`
+ Updated string `json:"updated"`
+ Workspace string `json:"workspace"`
+}
+
+// PageContent defines model for PageContent.
+type PageContent struct {
+ // Content Tiptap JSON with type "doc"; null for a page that was never edited
+ Content *map[string]interface{} `json:"content"`
+ Updated string `json:"updated"`
+}
+
+// PageNode defines model for PageNode.
+type PageNode struct {
+ Icon string `json:"icon"`
+ Id string `json:"id"`
+
+ // Parent Parent page id; empty at the top level
+ Parent string `json:"parent"`
+
+ // Position Fractional sort key among siblings
+ Position string `json:"position"`
+ Title string `json:"title"`
+ Updated string `json:"updated"`
+}
+
+// PageRef defines model for PageRef.
+type PageRef struct {
+ Icon string `json:"icon"`
+ Id string `json:"id"`
+ Title string `json:"title"`
+}
+
+// PageVersion defines model for PageVersion.
+type PageVersion struct {
+ // Author Name (or email) of the last person who edited before it was taken
+ Author string `json:"author"`
+ Created string `json:"created"`
+ Id string `json:"id"`
+ Label string `json:"label"`
+}
+
+// Role Instance role. admin manages their own organization; superadmin manages everything.
+type Role string
+
+// Session defines model for Session.
+type Session struct {
+ Token string `json:"token"`
+ User User `json:"user"`
+}
+
+// SignupRequest defines model for SignupRequest.
+type SignupRequest struct {
+ Email openapi_types.Email `json:"email"`
+ Name string `json:"name"`
+ Password string `json:"password"`
+}
+
+// Space defines model for Space.
+type Space struct {
+ Created string `json:"created"`
+
+ // DefaultRole Role that workspace members (not guests) get in an open space without an explicit role.
+ DefaultRole SpaceDefaultRole `json:"defaultRole"`
+ Description string `json:"description"`
+ Icon string `json:"icon"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Role SpaceRole `json:"role"`
+ Slug string `json:"slug"`
+
+ // Visibility open - every workspace member gets the default role; private - explicit members only.
+ Visibility SpaceVisibility `json:"visibility"`
+ Workspace string `json:"workspace"`
+}
+
+// SpaceDefaultRole Role that workspace members (not guests) get in an open space without an explicit role.
+type SpaceDefaultRole string
+
+// SpaceMember defines model for SpaceMember.
+type SpaceMember struct {
+ Role SpaceRole `json:"role"`
+ User struct {
+ Email string `json:"email"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ } `json:"user"`
+}
+
+// SpaceRole defines model for SpaceRole.
+type SpaceRole string
+
+// SpaceVisibility open - every workspace member gets the default role; private - explicit members only.
+type SpaceVisibility string
+
+// Status defines model for Status.
+type Status struct {
+ Db *string `json:"db,omitempty"`
+ Status StatusStatus `json:"status"`
+}
+
+// StatusStatus defines model for Status.Status.
+type StatusStatus string
+
+// TrashedPage defines model for TrashedPage.
+type TrashedPage struct {
+ DeletedAt string `json:"deletedAt"`
+ Icon string `json:"icon"`
+ Id string `json:"id"`
+ Title string `json:"title"`
+}
+
+// UpdateUserRequest defines model for UpdateUserRequest.
+type UpdateUserRequest struct {
+ Email *openapi_types.Email `json:"email,omitempty"`
+ Name *string `json:"name,omitempty"`
+
+ // Organization Superadmins only; empty string detaches
+ Organization *string `json:"organization,omitempty"`
+ Password *string `json:"password,omitempty"`
+
+ // Role Instance role. admin manages their own organization; superadmin manages everything.
+ Role *Role `json:"role,omitempty"`
+ Status *UpdateUserRequestStatus `json:"status,omitempty"`
+ Verified *bool `json:"verified,omitempty"`
+}
+
+// UpdateUserRequestStatus defines model for UpdateUserRequest.Status.
+type UpdateUserRequestStatus string
+
+// User defines model for User.
+type User struct {
+ Avatar string `json:"avatar"`
+ Created string `json:"created"`
+ Email openapi_types.Email `json:"email"`
+ Id string `json:"id"`
+ Locale string `json:"locale"`
+ Name string `json:"name"`
+
+ // Organization Organization id
+ Organization string `json:"organization"`
+ OrganizationName string `json:"organizationName"`
+
+ // Role Instance role. admin manages their own organization; superadmin manages everything.
+ Role Role `json:"role"`
+ Status UserStatus `json:"status"`
+ Theme string `json:"theme"`
+ Verified bool `json:"verified"`
+}
+
+// UserStatus defines model for User.Status.
+type UserStatus string
+
+// UserList defines model for UserList.
+type UserList struct {
+ Items []User `json:"items"`
+ Page int `json:"page"`
+ PerPage int `json:"perPage"`
+ TotalItems int `json:"totalItems"`
+}
+
+// Version defines model for Version.
+type Version struct {
+ Name string `json:"name"`
+ Version string `json:"version"`
+}
+
+// Workspace defines model for Workspace.
+type Workspace struct {
+ Created string `json:"created"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ Organization string `json:"organization"`
+ OrganizationName string `json:"organizationName"`
+ Role WorkspaceRole `json:"role"`
+ Slug string `json:"slug"`
+}
+
+// WorkspaceMember defines model for WorkspaceMember.
+type WorkspaceMember struct {
+ Role WorkspaceRole `json:"role"`
+ User struct {
+ Email string `json:"email"`
+ Id string `json:"id"`
+ Name string `json:"name"`
+ } `json:"user"`
+}
+
+// WorkspaceRole defines model for WorkspaceRole.
+type WorkspaceRole string
+
+// LoginWithOtpJSONBody defines parameters for LoginWithOtp.
+type LoginWithOtpJSONBody struct {
+ Code string `json:"code"`
+ MfaId *string `json:"mfaId,omitempty"`
+ OtpId string `json:"otpId"`
+}
+
+// ConfirmPasswordResetJSONBody defines parameters for ConfirmPasswordReset.
+type ConfirmPasswordResetJSONBody struct {
+ Password string `json:"password"`
+ Token string `json:"token"`
+}
+
+// ConfirmVerificationJSONBody defines parameters for ConfirmVerification.
+type ConfirmVerificationJSONBody struct {
+ Token string `json:"token"`
+}
+
+// DeletePageParams defines parameters for DeletePage.
+type DeletePageParams struct {
+ Permanent *bool `form:"permanent,omitempty" json:"permanent,omitempty"`
+}
+
+// UpdatePageJSONBody defines parameters for UpdatePage.
+type UpdatePageJSONBody struct {
+ Icon *string `json:"icon,omitempty"`
+ Title *string `json:"title,omitempty"`
+}
+
+// SavePageContentJSONBody defines parameters for SavePageContent.
+type SavePageContentJSONBody struct {
+ // Content Tiptap JSON with type "doc"
+ Content map[string]interface{} `json:"content"`
+}
+
+// MovePageJSONBody defines parameters for MovePage.
+type MovePageJSONBody struct {
+ // Index Position among the new parent's other children
+ Index int `json:"index"`
+
+ // Parent New parent page id; empty for the top level
+ Parent *string `json:"parent,omitempty"`
+}
+
+// UpdateSpaceJSONBody defines parameters for UpdateSpace.
+type UpdateSpaceJSONBody struct {
+ // DefaultRole Role that workspace members (not guests) get in an open space without an explicit role.
+ DefaultRole *SpaceDefaultRole `json:"defaultRole,omitempty"`
+ Description *string `json:"description,omitempty"`
+ Icon *string `json:"icon,omitempty"`
+ Name *string `json:"name,omitempty"`
+
+ // Visibility open - every workspace member gets the default role; private - explicit members only.
+ Visibility *SpaceVisibility `json:"visibility,omitempty"`
+}
+
+// SetSpaceMemberJSONBody defines parameters for SetSpaceMember.
+type SetSpaceMemberJSONBody struct {
+ Email openapi_types.Email `json:"email"`
+ Role SpaceRole `json:"role"`
+}
+
+// CreatePageJSONBody defines parameters for CreatePage.
+type CreatePageJSONBody struct {
+ // Index Position among the parent's children; missing appends
+ Index *int `json:"index,omitempty"`
+
+ // Parent Parent page id; empty or missing for the top level
+ Parent *string `json:"parent,omitempty"`
+ Title *string `json:"title,omitempty"`
+}
+
+// ListUsersParams defines parameters for ListUsers.
+type ListUsersParams struct {
+ Page *int `form:"page,omitempty" json:"page,omitempty"`
+ PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"`
+
+ // Q Search in email and name
+ Q *string `form:"q,omitempty" json:"q,omitempty"`
+
+ // Organization Superadmin only: an organization id, or 'none'
+ Organization *string `form:"organization,omitempty" json:"organization,omitempty"`
+}
+
+// CreateWorkspaceJSONBody defines parameters for CreateWorkspace.
+type CreateWorkspaceJSONBody struct {
+ Name string `json:"name"`
+ Organization *string `json:"organization,omitempty"`
+}
+
+// SetWorkspaceMemberJSONBody defines parameters for SetWorkspaceMember.
+type SetWorkspaceMemberJSONBody struct {
+ Email openapi_types.Email `json:"email"`
+ Role WorkspaceRole `json:"role"`
+}
+
+// CreateSpaceJSONBody defines parameters for CreateSpace.
+type CreateSpaceJSONBody struct {
+ Description *string `json:"description,omitempty"`
+ Icon *string `json:"icon,omitempty"`
+ Name string `json:"name"`
+
+ // Visibility open - every workspace member gets the default role; private - explicit members only.
+ Visibility *SpaceVisibility `json:"visibility,omitempty"`
+}
+
+// LoginJSONRequestBody defines body for Login for application/json ContentType.
+type LoginJSONRequestBody = LoginRequest
+
+// LoginWithOtpJSONRequestBody defines body for LoginWithOtp for application/json ContentType.
+type LoginWithOtpJSONRequestBody LoginWithOtpJSONBody
+
+// RequestOtpJSONRequestBody defines body for RequestOtp for application/json ContentType.
+type RequestOtpJSONRequestBody = EmailRequest
+
+// ConfirmPasswordResetJSONRequestBody defines body for ConfirmPasswordReset for application/json ContentType.
+type ConfirmPasswordResetJSONRequestBody ConfirmPasswordResetJSONBody
+
+// RequestPasswordResetJSONRequestBody defines body for RequestPasswordReset for application/json ContentType.
+type RequestPasswordResetJSONRequestBody = EmailRequest
+
+// SignupJSONRequestBody defines body for Signup for application/json ContentType.
+type SignupJSONRequestBody = SignupRequest
+
+// ConfirmVerificationJSONRequestBody defines body for ConfirmVerification for application/json ContentType.
+type ConfirmVerificationJSONRequestBody ConfirmVerificationJSONBody
+
+// RequestVerificationJSONRequestBody defines body for RequestVerification for application/json ContentType.
+type RequestVerificationJSONRequestBody = EmailRequest
+
+// CreateOrgJSONRequestBody defines body for CreateOrg for application/json ContentType.
+type CreateOrgJSONRequestBody = NameRequest
+
+// RenameOrgJSONRequestBody defines body for RenameOrg for application/json ContentType.
+type RenameOrgJSONRequestBody = NameRequest
+
+// UpdatePageJSONRequestBody defines body for UpdatePage for application/json ContentType.
+type UpdatePageJSONRequestBody UpdatePageJSONBody
+
+// SavePageContentJSONRequestBody defines body for SavePageContent for application/json ContentType.
+type SavePageContentJSONRequestBody SavePageContentJSONBody
+
+// MovePageJSONRequestBody defines body for MovePage for application/json ContentType.
+type MovePageJSONRequestBody MovePageJSONBody
+
+// UpdateSpaceJSONRequestBody defines body for UpdateSpace for application/json ContentType.
+type UpdateSpaceJSONRequestBody UpdateSpaceJSONBody
+
+// SetSpaceMemberJSONRequestBody defines body for SetSpaceMember for application/json ContentType.
+type SetSpaceMemberJSONRequestBody SetSpaceMemberJSONBody
+
+// CreatePageJSONRequestBody defines body for CreatePage for application/json ContentType.
+type CreatePageJSONRequestBody CreatePageJSONBody
+
+// CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
+type CreateUserJSONRequestBody = CreateUserRequest
+
+// UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
+type UpdateUserJSONRequestBody = UpdateUserRequest
+
+// CreateWorkspaceJSONRequestBody defines body for CreateWorkspace for application/json ContentType.
+type CreateWorkspaceJSONRequestBody CreateWorkspaceJSONBody
+
+// RenameWorkspaceJSONRequestBody defines body for RenameWorkspace for application/json ContentType.
+type RenameWorkspaceJSONRequestBody = NameRequest
+
+// SetWorkspaceMemberJSONRequestBody defines body for SetWorkspaceMember for application/json ContentType.
+type SetWorkspaceMemberJSONRequestBody SetWorkspaceMemberJSONBody
+
+// CreateSpaceJSONRequestBody defines body for CreateSpace for application/json ContentType.
+type CreateSpaceJSONRequestBody CreateSpaceJSONBody
diff --git a/Server/internal/api/api.go b/Server/internal/api/api.go
new file mode 100644
index 0000000..17d8266
--- /dev/null
+++ b/Server/internal/api/api.go
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+// Package api holds the request and response types generated from
+// api/openapi.yaml, the contract every client is generated from.
+package api
+
+//go:generate go tool oapi-codegen -config oapi-codegen.yaml ../../../api/openapi.yaml
diff --git a/Server/internal/api/oapi-codegen.yaml b/Server/internal/api/oapi-codegen.yaml
new file mode 100644
index 0000000..05a27bd
--- /dev/null
+++ b/Server/internal/api/oapi-codegen.yaml
@@ -0,0 +1,5 @@
+# oapi-codegen settings for the Go types generated from api/openapi.yaml.
+package: api
+output: api.gen.go
+generate:
+ models: true
diff --git a/Server/internal/apperr/apperr.go b/Server/internal/apperr/apperr.go
index b3f524d..1edaad5 100644
--- a/Server/internal/apperr/apperr.go
+++ b/Server/internal/apperr/apperr.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package apperr defines the errors business logic returns to the HTTP layer:
// each carries an HTTP-friendly kind, a stable code and a human message.
package apperr
diff --git a/Server/internal/auth/auth.go b/Server/internal/auth/auth.go
index 2a21831..ce6d0af 100644
--- a/Server/internal/auth/auth.go
+++ b/Server/internal/auth/auth.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package auth implements Docwell sign-in on top of PocketBase's "users" auth
// collection. PocketBase stores the credentials and issues the tokens;
// docwell-server forwards the calls and adds Docwell rules (signup policy,
diff --git a/Server/internal/auth/auth_test.go b/Server/internal/auth/auth_test.go
index 7abb67c..30420ed 100644
--- a/Server/internal/auth/auth_test.go
+++ b/Server/internal/auth/auth_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package auth
import (
diff --git a/Server/internal/collab/hub.go b/Server/internal/collab/hub.go
index 45a2ff0..1aeeecc 100644
--- a/Server/internal/collab/hub.go
+++ b/Server/internal/collab/hub.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package collab relays Yjs updates between the editors of a page and
// persists them (PLAN.md §6, ADR-3).
//
@@ -122,7 +124,7 @@ func (h *Hub) acquire(ctx context.Context, page string) (*room, error) {
r = &room{h: h, page: page, ready: make(chan struct{}), sessions: map[*Session]struct{}{}}
h.rooms[page] = r
h.wg.Add(1)
- go r.run()
+ go r.run() //nolint:gosec // a room outlives the request that opened it
}
h.mu.Unlock()
select {
diff --git a/Server/internal/collab/hub_test.go b/Server/internal/collab/hub_test.go
index 6a746e6..2f01ff5 100644
--- a/Server/internal/collab/hub_test.go
+++ b/Server/internal/collab/hub_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package collab
import (
diff --git a/Server/internal/collab/protocol.go b/Server/internal/collab/protocol.go
index 7a45b6d..0537fa3 100644
--- a/Server/internal/collab/protocol.go
+++ b/Server/internal/collab/protocol.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package collab
import (
diff --git a/Server/internal/collab/store.go b/Server/internal/collab/store.go
index f5c10dd..ab4e4e7 100644
--- a/Server/internal/collab/store.go
+++ b/Server/internal/collab/store.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package collab
import (
diff --git a/Server/internal/config/config.go b/Server/internal/config/config.go
index 63d5d0f..c687b3c 100644
--- a/Server/internal/config/config.go
+++ b/Server/internal/config/config.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package config loads docwell-server settings from environment variables.
package config
diff --git a/Server/internal/config/config_test.go b/Server/internal/config/config_test.go
index f2368e0..73092a2 100644
--- a/Server/internal/config/config_test.go
+++ b/Server/internal/config/config_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package config
import (
diff --git a/Server/internal/directory/content.go b/Server/internal/directory/content.go
index 964a67c..0bb0f4b 100644
--- a/Server/internal/directory/content.go
+++ b/Server/internal/directory/content.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package directory
import (
diff --git a/Server/internal/directory/directory.go b/Server/internal/directory/directory.go
index e62257b..23d3e36 100644
--- a/Server/internal/directory/directory.go
+++ b/Server/internal/directory/directory.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package directory manages users, organizations, workspaces, spaces, pages
// and their memberships in PocketBase. Every action asks the access package
// first; this package only loads the facts those rules need and applies the
diff --git a/Server/internal/directory/pages.go b/Server/internal/directory/pages.go
index 1af4887..d7a49f3 100644
--- a/Server/internal/directory/pages.go
+++ b/Server/internal/directory/pages.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package directory
import (
diff --git a/Server/internal/directory/position.go b/Server/internal/directory/position.go
index 39a4c8c..a464bee 100644
--- a/Server/internal/directory/position.go
+++ b/Server/internal/directory/position.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package directory
import "strings"
diff --git a/Server/internal/directory/position_test.go b/Server/internal/directory/position_test.go
index 22690be..4aa7070 100644
--- a/Server/internal/directory/position_test.go
+++ b/Server/internal/directory/position_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package directory
import (
diff --git a/Server/internal/directory/spaces.go b/Server/internal/directory/spaces.go
index f3993a8..4b4d818 100644
--- a/Server/internal/directory/spaces.go
+++ b/Server/internal/directory/spaces.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package directory
import (
diff --git a/Server/internal/httpapi/auth.go b/Server/internal/httpapi/auth.go
index f689a92..ec635fa 100644
--- a/Server/internal/httpapi/auth.go
+++ b/Server/internal/httpapi/auth.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package httpapi
import (
@@ -62,7 +64,7 @@ func (a *api) requireManager(next http.HandlerFunc) http.HandlerFunc {
})
}
-func (a *api) routes(mux *http.ServeMux) {
+func (a *api) routes(mux *routeMux) {
mux.HandleFunc("GET /api/v1/auth/methods", func(w http.ResponseWriter, r *http.Request) {
m, err := a.auth.Methods(r.Context())
a.respond(w, m, err)
diff --git a/Server/internal/httpapi/auth_test.go b/Server/internal/httpapi/auth_test.go
index 43838ff..a9043f0 100644
--- a/Server/internal/httpapi/auth_test.go
+++ b/Server/internal/httpapi/auth_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package httpapi
import (
diff --git a/Server/internal/httpapi/collab.go b/Server/internal/httpapi/collab.go
index 221b486..e808416 100644
--- a/Server/internal/httpapi/collab.go
+++ b/Server/internal/httpapi/collab.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package httpapi
import (
@@ -31,7 +33,7 @@ const (
// collabRoute serves /collab?page=: the y-websocket protocol for one page.
// Browsers cannot set headers on a WebSocket, and tokens in URLs end up in
// logs, so the first message must be a text frame holding the session token.
-func (a *api) collabRoute(mux *http.ServeMux, origins []string) {
+func (a *api) collabRoute(mux *routeMux, origins []string) {
patterns := make([]string, 0, len(origins))
for _, o := range origins {
if u, err := url.Parse(o); err == nil && u.Host != "" {
diff --git a/Server/internal/httpapi/contract_test.go b/Server/internal/httpapi/contract_test.go
new file mode 100644
index 0000000..a8c509a
--- /dev/null
+++ b/Server/internal/httpapi/contract_test.go
@@ -0,0 +1,66 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+package httpapi
+
+import (
+ "io"
+ "log/slog"
+ "net/http"
+ "os"
+ "slices"
+ "strings"
+ "testing"
+
+ "gopkg.in/yaml.v3"
+)
+
+// notInSpec are routes that OpenAPI does not describe: the catch-all 404, the
+// admin SPA and the collaboration WebSocket.
+var notInSpec = []string{"/api/", "GET /admin/", "GET /admin", "GET /collab"}
+
+// TestRoutesMatchContract checks that the router and api/openapi.yaml list the
+// same operations, so neither can change without the other.
+func TestRoutesMatchContract(t *testing.T) {
+ raw, err := os.ReadFile("../../../api/openapi.yaml")
+ if err != nil {
+ t.Fatal(err)
+ }
+ var spec struct {
+ Paths map[string]map[string]any `yaml:"paths"`
+ }
+ if err := yaml.Unmarshal(raw, &spec); err != nil {
+ t.Fatal(err)
+ }
+ var want []string
+ for path, ops := range spec.Paths {
+ for method := range ops {
+ switch method {
+ case "get", "put", "post", "patch", "delete":
+ want = append(want, strings.ToUpper(method)+" "+path)
+ }
+ }
+ }
+
+ mux := newMux(Deps{
+ DB: fakeDB{},
+ Admin: http.NotFoundHandler(),
+ Log: slog.New(slog.NewTextHandler(io.Discard, nil)),
+ })
+ var got []string
+ for _, p := range mux.patterns {
+ if !slices.Contains(notInSpec, p) {
+ got = append(got, p)
+ }
+ }
+
+ for _, op := range want {
+ if !slices.Contains(got, op) {
+ t.Errorf("%s is in api/openapi.yaml but not routed", op)
+ }
+ }
+ for _, p := range got {
+ if !slices.Contains(want, p) {
+ t.Errorf("%s is routed but missing from api/openapi.yaml", p)
+ }
+ }
+}
diff --git a/Server/internal/httpapi/directory.go b/Server/internal/httpapi/directory.go
index 571b9fa..63635f2 100644
--- a/Server/internal/httpapi/directory.go
+++ b/Server/internal/httpapi/directory.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package httpapi
import (
@@ -38,7 +40,7 @@ func caller(r *http.Request) access.Caller {
return u.Caller()
}
-func (a *api) directoryRoutes(mux *http.ServeMux) {
+func (a *api) directoryRoutes(mux *routeMux) {
// Users (admins: own organization; superadmins: everyone).
mux.HandleFunc("GET /api/v1/users", a.requireManager(func(w http.ResponseWriter, r *http.Request) {
q := r.URL.Query()
diff --git a/Server/internal/httpapi/router.go b/Server/internal/httpapi/router.go
index 08e42dd..44964ba 100644
--- a/Server/internal/httpapi/router.go
+++ b/Server/internal/httpapi/router.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package httpapi wires the public HTTP surface of docwell-server.
package httpapi
@@ -27,8 +29,28 @@ type Deps struct {
Log *slog.Logger
}
+// routeMux is a ServeMux that remembers its patterns, so a test can compare
+// them with api/openapi.yaml.
+type routeMux struct {
+ *http.ServeMux
+ patterns []string
+}
+
+func (m *routeMux) Handle(pattern string, h http.Handler) {
+ m.patterns = append(m.patterns, pattern)
+ m.ServeMux.Handle(pattern, h)
+}
+
+func (m *routeMux) HandleFunc(pattern string, h func(http.ResponseWriter, *http.Request)) {
+ m.Handle(pattern, http.HandlerFunc(h))
+}
+
func NewRouter(d Deps) http.Handler {
- mux := http.NewServeMux()
+ return logRequests(d.Log, cors(d.CORSOrigins, newMux(d)))
+}
+
+func newMux(d Deps) *routeMux {
+ mux := &routeMux{ServeMux: http.NewServeMux()}
a := &api{auth: d.Auth, dir: d.Directory, collab: d.Collab, log: d.Log}
a.routes(mux)
a.collabRoute(mux, d.CORSOrigins)
@@ -58,7 +80,7 @@ func NewRouter(d Deps) http.Handler {
mux.Handle("GET /admin", http.RedirectHandler("/admin/", http.StatusMovedPermanently))
}
- return logRequests(d.Log, cors(d.CORSOrigins, mux))
+ return mux
}
func writeJSON(w http.ResponseWriter, status int, v any) {
diff --git a/Server/internal/httpapi/router_test.go b/Server/internal/httpapi/router_test.go
index 049cfd2..5cbc7c2 100644
--- a/Server/internal/httpapi/router_test.go
+++ b/Server/internal/httpapi/router_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package httpapi
import (
diff --git a/Server/internal/httpapi/spaces.go b/Server/internal/httpapi/spaces.go
index 4ecbb72..8d15c95 100644
--- a/Server/internal/httpapi/spaces.go
+++ b/Server/internal/httpapi/spaces.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package httpapi
import (
@@ -37,7 +39,7 @@ type SpaceService interface {
PurgePage(ctx context.Context, c access.Caller, id string) error
}
-func (a *api) spaceRoutes(mux *http.ServeMux) {
+func (a *api) spaceRoutes(mux *routeMux) {
// Spaces. Rights are resolved per space (see access.SpaceRole).
mux.HandleFunc("GET /api/v1/workspaces/{id}/spaces", a.requireUser(func(w http.ResponseWriter, r *http.Request) {
list, err := a.dir.ListSpaces(r.Context(), caller(r), r.PathValue("id"))
diff --git a/Server/internal/httpapi/spaces_test.go b/Server/internal/httpapi/spaces_test.go
index 4c3b839..947a8f3 100644
--- a/Server/internal/httpapi/spaces_test.go
+++ b/Server/internal/httpapi/spaces_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package httpapi
import (
diff --git a/Server/internal/store/pocketbase/client.go b/Server/internal/store/pocketbase/client.go
index f0685b9..4ab4838 100644
--- a/Server/internal/store/pocketbase/client.go
+++ b/Server/internal/store/pocketbase/client.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package pocketbase is a minimal typed client for the PocketBase REST API,
// authenticated as a superuser. It is the only way docwell-server reaches the
// database service.
diff --git a/Server/internal/store/pocketbase/client_test.go b/Server/internal/store/pocketbase/client_test.go
index 8b78b42..b285f90 100644
--- a/Server/internal/store/pocketbase/client_test.go
+++ b/Server/internal/store/pocketbase/client_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package pocketbase
import (
@@ -22,7 +24,7 @@ func fakePocketBase(t *testing.T, authCalls *atomic.Int32) *httptest.Server {
})
mux.HandleFunc("POST /api/collections/_superusers/auth-with-password", func(w http.ResponseWriter, r *http.Request) {
n := authCalls.Add(1)
- json.NewEncoder(w).Encode(map[string]string{"token": "tok" + string(rune('0'+n))})
+ json.NewEncoder(w).Encode(map[string]string{"token": "tok" + string(rune('0')+n)})
})
mux.HandleFunc("GET /api/collections/workspaces/records", func(w http.ResponseWriter, r *http.Request) {
// The first token is treated as expired to exercise the retry path.
diff --git a/Server/internal/ycrdt/pool.go b/Server/internal/ycrdt/pool.go
index 59f53ea..28b4e46 100644
--- a/Server/internal/ycrdt/pool.go
+++ b/Server/internal/ycrdt/pool.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package ycrdt
import (
diff --git a/Server/internal/ycrdt/ycrdt.go b/Server/internal/ycrdt/ycrdt.go
index 1c6133a..83243e7 100644
--- a/Server/internal/ycrdt/ycrdt.go
+++ b/Server/internal/ycrdt/ycrdt.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package ycrdt runs yrs (the Rust Yjs port) compiled to WebAssembly under
// wazero, so the server can compact and read Yjs documents without cgo (ADR-3).
//
@@ -133,7 +135,7 @@ func (i *Instance) call(ctx context.Context, fn api.Function, inputs ...[]byte)
return nil, err
}
ptr := uint32(res[0])
- defer i.free.Call(ctx, uint64(ptr), uint64(len(in)))
+ defer func() { _, _ = i.free.Call(ctx, uint64(ptr), uint64(len(in))) }()
if !mem.Write(ptr, in) {
return nil, errors.New("yrs: write out of range")
}
diff --git a/Server/internal/ycrdt/ycrdt_test.go b/Server/internal/ycrdt/ycrdt_test.go
index d6efe32..3a6721e 100644
--- a/Server/internal/ycrdt/ycrdt_test.go
+++ b/Server/internal/ycrdt/ycrdt_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package ycrdt
import (
diff --git a/Server/ycrdt-wasm/build.sh b/Server/ycrdt-wasm/build.sh
index 1325395..5dfe301 100644
--- a/Server/ycrdt-wasm/build.sh
+++ b/Server/ycrdt-wasm/build.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
+# SPDX-License-Identifier: AGPL-3.0-or-later
# Builds docwell_yrs.wasm and copies it into Server/internal/ycrdt, which embeds it.
# Needs Rust with the wasm32-wasip1 target (rustup target add wasm32-wasip1).
set -e
diff --git a/Spikes/yrs-wasm/build.sh b/Spikes/yrs-wasm/build.sh
index ce9a797..f837ec2 100644
--- a/Spikes/yrs-wasm/build.sh
+++ b/Spikes/yrs-wasm/build.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
+# SPDX-License-Identifier: AGPL-3.0-or-later
# Builds yrs.wasm and copies it next to the Go host, which embeds it.
set -e
cd "$(dirname "$0")"
diff --git a/Spikes/yrs-wasm/go/timing_test.go b/Spikes/yrs-wasm/go/timing_test.go
index 5859f65..babc72d 100644
--- a/Spikes/yrs-wasm/go/timing_test.go
+++ b/Spikes/yrs-wasm/go/timing_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package yrs
import (
diff --git a/Spikes/yrs-wasm/go/yrs.go b/Spikes/yrs-wasm/go/yrs.go
index c84bc60..536f24d 100644
--- a/Spikes/yrs-wasm/go/yrs.go
+++ b/Spikes/yrs-wasm/go/yrs.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package yrs runs yrs (the Rust Yjs port) compiled to WebAssembly under wazero,
// so the Go server can merge, compact and read Yjs documents without cgo.
//
diff --git a/Spikes/yrs-wasm/go/yrs_test.go b/Spikes/yrs-wasm/go/yrs_test.go
index a1209d5..cc976b1 100644
--- a/Spikes/yrs-wasm/go/yrs_test.go
+++ b/Spikes/yrs-wasm/go/yrs_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package yrs
import (
diff --git a/Web-App/frontend/public/site.webmanifest b/Web-App/frontend/public/site.webmanifest
index 4bedf8f..077b738 100644
--- a/Web-App/frontend/public/site.webmanifest
+++ b/Web-App/frontend/public/site.webmanifest
@@ -21,4 +21,4 @@
"theme_color": "#12403C",
"background_color": "#12403C",
"display": "standalone"
-}
\ No newline at end of file
+}
diff --git a/Web-App/frontend/src/App.vue b/Web-App/frontend/src/App.vue
index 0d51b75..c8f3fe9 100644
--- a/Web-App/frontend/src/App.vue
+++ b/Web-App/frontend/src/App.vue
@@ -1,3 +1,4 @@
+
diff --git a/Web-App/frontend/src/components/PageHistory.vue b/Web-App/frontend/src/components/PageHistory.vue
index 54ff52d..5933dd0 100644
--- a/Web-App/frontend/src/components/PageHistory.vue
+++ b/Web-App/frontend/src/components/PageHistory.vue
@@ -1,3 +1,4 @@
+
@@ -62,7 +67,9 @@ const item = "flex h-control-sm w-full cursor-pointer items-center gap-2 rounded
{{ ws.name }}
- {{ ws.organizationName }}
+ {{
+ ws.organizationName
+ }}
diff --git a/Web-App/frontend/src/composables/useFormErrors.ts b/Web-App/frontend/src/composables/useFormErrors.ts
index cff80f8..0006f22 100644
--- a/Web-App/frontend/src/composables/useFormErrors.ts
+++ b/Web-App/frontend/src/composables/useFormErrors.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { ApiError } from "@docwell/api-client";
import { ref } from "vue";
import { useI18n } from "vue-i18n";
diff --git a/Web-App/frontend/src/composables/useSidebar.ts b/Web-App/frontend/src/composables/useSidebar.ts
index 576289f..bb1dd81 100644
--- a/Web-App/frontend/src/composables/useSidebar.ts
+++ b/Web-App/frontend/src/composables/useSidebar.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { ref, watch } from "vue";
const storageKey = "docwell.sidebar";
diff --git a/Web-App/frontend/src/i18n.ts b/Web-App/frontend/src/i18n.ts
index 2f26642..4187aca 100644
--- a/Web-App/frontend/src/i18n.ts
+++ b/Web-App/frontend/src/i18n.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { createI18n } from "vue-i18n";
import en from "./locales/en.json";
import pl from "./locales/pl.json";
diff --git a/Web-App/frontend/src/lib/tree.test.ts b/Web-App/frontend/src/lib/tree.test.ts
index 4ee1212..ac3d489 100644
--- a/Web-App/frontend/src/lib/tree.test.ts
+++ b/Web-App/frontend/src/lib/tree.test.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import type { PageNode } from "@docwell/api-client";
import { describe, expect, it } from "vitest";
import { applyMove, childrenByParent, dropPlacement, isWithin, zoneAt } from "./tree";
diff --git a/Web-App/frontend/src/lib/tree.ts b/Web-App/frontend/src/lib/tree.ts
index 95e6520..9f2112c 100644
--- a/Web-App/frontend/src/lib/tree.ts
+++ b/Web-App/frontend/src/lib/tree.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import type { PageNode } from "@docwell/api-client";
/** Children of each page ("" = top level), in the order the server sent them. */
diff --git a/Web-App/frontend/src/main.ts b/Web-App/frontend/src/main.ts
index ccbb11a..179c1fc 100644
--- a/Web-App/frontend/src/main.ts
+++ b/Web-App/frontend/src/main.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { createDocwellApp } from "./app";
import { webPlatform } from "./platform";
import "./style.css";
diff --git a/Web-App/frontend/src/platform.ts b/Web-App/frontend/src/platform.ts
index 0f77129..058eddf 100644
--- a/Web-App/frontend/src/platform.ts
+++ b/Web-App/frontend/src/platform.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { inject, type InjectionKey } from "vue";
/** Runtime settings the app needs to reach docwell-server. */
@@ -15,6 +17,8 @@ export interface RuntimeConfig {
export interface Platform {
kind: "web" | "desktop" | "mobile";
loadConfig(): Promise;
+ /** Calls open with an app route (e.g. "/p/abc") when the OS opens a docwell:// link. */
+ onOpenRoute?(open: (route: string) => void): void;
}
export const webPlatform: Platform = {
diff --git a/Web-App/frontend/src/router.ts b/Web-App/frontend/src/router.ts
index bd41bc6..e46b2b8 100644
--- a/Web-App/frontend/src/router.ts
+++ b/Web-App/frontend/src/router.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { createMemoryHistory, createRouter, createWebHistory } from "vue-router";
import type { Platform } from "./platform";
import { useAuthStore } from "./stores/auth";
@@ -45,7 +47,11 @@ export function createDocwellRouter(platform: Platform) {
name: "organization",
component: () => import("./views/settings/OrganizationView.vue"),
},
- { path: "/workspaces/new", name: "new-workspace", component: () => import("./views/workspace/NewWorkspaceView.vue") },
+ {
+ path: "/workspaces/new",
+ name: "new-workspace",
+ component: () => import("./views/workspace/NewWorkspaceView.vue"),
+ },
{
path: "/w/:id/settings",
name: "workspace-settings",
diff --git a/Web-App/frontend/src/stores/auth.test.ts b/Web-App/frontend/src/stores/auth.test.ts
index a5564d6..83a2ad9 100644
--- a/Web-App/frontend/src/stores/auth.test.ts
+++ b/Web-App/frontend/src/stores/auth.test.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { ApiError, type DocwellClient, type User } from "@docwell/api-client";
import { createPinia, setActivePinia } from "pinia";
import { beforeEach, describe, expect, it, vi } from "vitest";
diff --git a/Web-App/frontend/src/stores/auth.ts b/Web-App/frontend/src/stores/auth.ts
index 61b6057..6fa534d 100644
--- a/Web-App/frontend/src/stores/auth.ts
+++ b/Web-App/frontend/src/stores/auth.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { ApiError, type DocwellClient, type Session, type SignupRequest, type User } from "@docwell/api-client";
import { defineStore } from "pinia";
import { computed, ref, shallowRef } from "vue";
diff --git a/Web-App/frontend/src/stores/spaces.ts b/Web-App/frontend/src/stores/spaces.ts
index 228ea69..1596c43 100644
--- a/Web-App/frontend/src/stores/spaces.ts
+++ b/Web-App/frontend/src/stores/spaces.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import type { PageNode, Space, SpaceRole } from "@docwell/api-client";
import { defineStore } from "pinia";
import { computed, ref } from "vue";
diff --git a/Web-App/frontend/src/stores/workspaces.test.ts b/Web-App/frontend/src/stores/workspaces.test.ts
index 5bf7b14..d5221aa 100644
--- a/Web-App/frontend/src/stores/workspaces.test.ts
+++ b/Web-App/frontend/src/stores/workspaces.test.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import { describe, expect, it } from "vitest";
import { atLeast, grantableRoles } from "./workspaces";
diff --git a/Web-App/frontend/src/stores/workspaces.ts b/Web-App/frontend/src/stores/workspaces.ts
index 218e26e..04cb895 100644
--- a/Web-App/frontend/src/stores/workspaces.ts
+++ b/Web-App/frontend/src/stores/workspaces.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import type { Workspace, WorkspaceRole } from "@docwell/api-client";
import { defineStore } from "pinia";
import { computed, ref } from "vue";
diff --git a/Web-App/frontend/src/style.css b/Web-App/frontend/src/style.css
index 6f056ee..537c9c8 100644
--- a/Web-App/frontend/src/style.css
+++ b/Web-App/frontend/src/style.css
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: AGPL-3.0-or-later */
+
@import "tailwindcss";
@import "@docwell/ui/theme.css";
@import "@docwell/editor/editor.css";
diff --git a/Web-App/frontend/src/views/HomeView.vue b/Web-App/frontend/src/views/HomeView.vue
index bae8aae..02bd5f8 100644
--- a/Web-App/frontend/src/views/HomeView.vue
+++ b/Web-App/frontend/src/views/HomeView.vue
@@ -1,3 +1,4 @@
+
-
+
{{ errors.message.value }}
@@ -79,13 +83,19 @@ function remove() {
{{ $t("org.dangerTitle") }}
{{ $t("org.deleteHint") }}
- {{ $t("org.delete") }}
+ {{
+ $t("org.delete")
+ }}
diff --git a/Web-App/frontend/src/views/space/NewSpaceView.vue b/Web-App/frontend/src/views/space/NewSpaceView.vue
index b4bf254..bf3d939 100644
--- a/Web-App/frontend/src/views/space/NewSpaceView.vue
+++ b/Web-App/frontend/src/views/space/NewSpaceView.vue
@@ -1,3 +1,4 @@
+
@@ -138,7 +143,9 @@ async function removeSpace() {
{{ $t("space.defaultRoleHint") }}
- {{ $t("common.save") }}
+ {{
+ $t("common.save")
+ }}
@@ -162,7 +169,12 @@ async function removeSpace() {
{{ errors.fields.value.email }}
- -
+
-
{{ m.user.name }}
{{ m.user.email }}
diff --git a/Web-App/frontend/src/views/space/SpaceView.vue b/Web-App/frontend/src/views/space/SpaceView.vue
index e14f49a..c0b7602 100644
--- a/Web-App/frontend/src/views/space/SpaceView.vue
+++ b/Web-App/frontend/src/views/space/SpaceView.vue
@@ -1,3 +1,4 @@
+
{{ $t("workspace.notFound") }}
{{ errors.message.value }}
@@ -101,7 +104,9 @@ async function removeWorkspace() {
{{ $t("workspace.name") }}
- {{ $t("common.save") }}
+ {{
+ $t("common.save")
+ }}
@@ -124,7 +129,12 @@ async function removeWorkspace() {
- -
+
-
{{ m.user.name }}
{{ m.user.email }}
diff --git a/Web-App/frontend/vite.config.ts b/Web-App/frontend/vite.config.ts
index 76005be..7af6f22 100644
--- a/Web-App/frontend/vite.config.ts
+++ b/Web-App/frontend/vite.config.ts
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
import tailwindcss from "@tailwindcss/vite";
import vue from "@vitejs/plugin-vue";
import { defineConfig } from "vitest/config";
diff --git a/Web-App/internal/spa/spa.go b/Web-App/internal/spa/spa.go
index 5edd634..156cff3 100644
--- a/Web-App/internal/spa/spa.go
+++ b/Web-App/internal/spa/spa.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
// Package spa serves the built Docwell web app (Web-App/frontend, output
// copied to dist/ by `npm run build:web`) together with its runtime config.
package spa
diff --git a/Web-App/internal/spa/spa_test.go b/Web-App/internal/spa/spa_test.go
index 3c6e29d..69a9494 100644
--- a/Web-App/internal/spa/spa_test.go
+++ b/Web-App/internal/spa/spa_test.go
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
package spa
import (
diff --git a/eslint.config.js b/eslint.config.js
new file mode 100644
index 0000000..9509581
--- /dev/null
+++ b/eslint.config.js
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import js from "@eslint/js";
+import prettier from "eslint-config-prettier";
+import vue from "eslint-plugin-vue";
+import globals from "globals";
+import ts from "typescript-eslint";
+
+export default ts.config(
+ {
+ ignores: [
+ "**/node_modules/",
+ "**/dist/",
+ "Phone-App/",
+ "Spikes/",
+ "Database/",
+ "Desktop-App/build/",
+ "Desktop-App/frontend/bindings/",
+ "Packages/api-client/src/schema.d.ts",
+ ],
+ },
+ js.configs.recommended,
+ ...ts.configs.recommended,
+ ...vue.configs["flat/recommended"],
+ {
+ files: ["**/*.vue"],
+ languageOptions: { parserOptions: { parser: ts.parser } },
+ },
+ {
+ languageOptions: { globals: { ...globals.browser, ...globals.node } },
+ rules: {
+ "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
+ // Views are named after their route (LoginView, PageView), so one word is fine for App.vue.
+ "vue/multi-word-component-names": "off",
+ // Optional props are typed `T | undefined`, so a default adds nothing.
+ "vue/require-default-prop": "off",
+ },
+ },
+ prettier,
+);
diff --git a/go.work.sum b/go.work.sum
new file mode 100644
index 0000000..fa92b7b
--- /dev/null
+++ b/go.work.sum
@@ -0,0 +1,16 @@
+github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
+github.com/yuin/goldmark v1.7.17/go.mod h1:ip/1k0VRfGynBgxOz0yCqHrbZXhcjxyuS66Brc7iBKg=
+golang.org/x/crypto v0.57.0/go.mod h1:Fdz0i5U6CoizGwLda9DttjSk6qlZo25zYNtR+ycvuZA=
+golang.org/x/mod v0.39.0/go.mod h1:bvIbwjQ0HUFFf5AKukeeYQG4ZBUG9yxQbR9aEweIwYY=
+golang.org/x/mod v0.41.0 h1:qJmnOUb4YB+FsEuM3HcWucdZASCPGhsX6uljO6pog0c=
+golang.org/x/mod v0.41.0/go.mod h1:Ek9pY8RKWXwsWvd3rQiHYtMqkjSUV+s1Rj7j4H5Ur6o=
+golang.org/x/net v0.58.0/go.mod h1:YwCddHnFlT7eLQqVprV19OnhLGtc5xOKgE0RyqgfWAU=
+golang.org/x/net v0.60.0/go.mod h1:2DA/G1UfVbCpQPeWTmMPGY7Cs2PkBkwu743bVX5PIVg=
+golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
+golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
+golang.org/x/telemetry v0.0.0-20260811182544-a038080d80e5/go.mod h1:LVehoXe41cL5SCVQilsV7Gg6BNG+Js6P9PhSbYTIUkQ=
+golang.org/x/term v0.46.0/go.mod h1:+K02xbkittuwc0Am4abfA3Fc+XRGXkvBXNO88NCXPoc=
+golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
+golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
+golang.org/x/tools v0.49.0 h1:3NI7VXzL9+1WZD52Dx2ttoPwD5DWrFGpl9mFZDlmisI=
+golang.org/x/tools v0.49.0/go.mod h1:SJNXV9DBKT0UbdttsQjbfJlAE/q+y36++zo3uL3N0Oo=
diff --git a/package-lock.json b/package-lock.json
index d4a379a..3eed475 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,6 +12,15 @@
"Web-App/frontend",
"Desktop-App/frontend"
],
+ "devDependencies": {
+ "@eslint/js": "^10.0.1",
+ "eslint": "^10.14.0",
+ "eslint-config-prettier": "^10.1.8",
+ "eslint-plugin-vue": "^10.12.0",
+ "globals": "^17.13.0",
+ "prettier": "^3.9.10",
+ "typescript-eslint": "^8.72.1"
+ },
"engines": {
"node": ">=22"
}
@@ -141,6 +150,30 @@
"specificity": "bin/cli.js"
}
},
+ "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/@csstools/color-helpers": {
"version": "6.1.2",
"resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.2.tgz",
@@ -297,6 +330,10 @@
"resolved": "Packages/editor",
"link": true
},
+ "node_modules/@docwell/editor-bridge": {
+ "resolved": "Packages/editor-bridge",
+ "link": true
+ },
"node_modules/@docwell/ui": {
"resolved": "Packages/ui",
"link": true
@@ -305,6 +342,134 @@
"resolved": "Web-App/frontend",
"link": true
},
+ "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/eslint-utils/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-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/js": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz",
+ "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "eslint": "^10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "eslint": {
+ "optional": true
+ }
+ }
+ },
+ "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/@exodus/bytes": {
"version": "1.16.0",
"resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.16.0.tgz",
@@ -375,6 +540,72 @@
"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",
@@ -481,6 +712,30 @@
"@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/@one-ini/wasm": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.2.1.tgz",
@@ -1615,12 +1870,256 @@
"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.10",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz",
"integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==",
"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/@typescript-eslint/eslint-plugin": {
+ "version": "8.72.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.1.tgz",
+ "integrity": "sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.12.2",
+ "@typescript-eslint/scope-manager": "8.72.1",
+ "@typescript-eslint/type-utils": "8.72.1",
+ "@typescript-eslint/utils": "8.72.1",
+ "@typescript-eslint/visitor-keys": "8.72.1",
+ "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.1",
+ "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.14",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz",
+ "integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.72.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.72.1.tgz",
+ "integrity": "sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.72.1",
+ "@typescript-eslint/types": "8.72.1",
+ "@typescript-eslint/typescript-estree": "8.72.1",
+ "@typescript-eslint/visitor-keys": "8.72.1",
+ "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.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.1.tgz",
+ "integrity": "sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.72.1",
+ "@typescript-eslint/types": "^8.72.1",
+ "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.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.1.tgz",
+ "integrity": "sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.72.1",
+ "@typescript-eslint/visitor-keys": "8.72.1"
+ },
+ "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.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.1.tgz",
+ "integrity": "sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==",
+ "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.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.72.1.tgz",
+ "integrity": "sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.72.1",
+ "@typescript-eslint/typescript-estree": "8.72.1",
+ "@typescript-eslint/utils": "8.72.1",
+ "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.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.1.tgz",
+ "integrity": "sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==",
+ "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.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.1.tgz",
+ "integrity": "sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.72.1",
+ "@typescript-eslint/tsconfig-utils": "8.72.1",
+ "@typescript-eslint/types": "8.72.1",
+ "@typescript-eslint/visitor-keys": "8.72.1",
+ "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.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.1.tgz",
+ "integrity": "sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.9.1",
+ "@typescript-eslint/scope-manager": "8.72.1",
+ "@typescript-eslint/types": "8.72.1",
+ "@typescript-eslint/typescript-estree": "8.72.1"
+ },
+ "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.1",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.1.tgz",
+ "integrity": "sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.72.1",
+ "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/@vitejs/plugin-vue": {
"version": "6.0.10",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.10.tgz",
@@ -1972,6 +2471,16 @@
"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",
@@ -1982,6 +2491,30 @@
"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/ajv/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/alien-signals": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-3.2.1.tgz",
@@ -2150,6 +2683,13 @@
"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",
@@ -2163,6 +2703,20 @@
"node": "20 || >=22"
}
},
+ "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",
@@ -2229,6 +2783,21 @@
"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/css-tree": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz",
@@ -2243,6 +2812,19 @@
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
}
},
+ "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",
@@ -2288,6 +2870,13 @@
"dev": true,
"license": "MIT"
},
+ "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",
@@ -2350,12 +2939,228 @@
"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.14.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.14.0.tgz",
+ "integrity": "sha512-T0pNsxkb9IKmtQjhpK3d7nWOpFv+YHuMbTJnSVMoQblF0onvXfErrtp4V1jHtsQPan7dKaGVD0q1WCXnzMF31A==",
+ "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.8",
+ "@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.6",
+ "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.12.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.12.0.tgz",
+ "integrity": "sha512-YsrHHtMaxjWqmxr/Kv9yXUfakUlbTCWtIBvr9eounzj6ZsGJdz1I4UuTIHkhzKHes793Cwo3PGTcvsoBqNyzCA==",
+ "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": "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/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/expect-type": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",
@@ -2379,6 +3184,20 @@
"dev": true,
"license": "MIT"
},
+ "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/fdir": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
@@ -2396,6 +3215,52 @@
}
}
},
+ "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/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",
@@ -2428,6 +3293,32 @@
"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/globals": {
+ "version": "17.13.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-17.13.0.tgz",
+ "integrity": "sha512-RwMTC61u7hrG3ZJMkZQOK4JLJrKS8QtoTii63EmWvFXHqycY9FObBJQCbsLxSO8kjKhWE5kV1GC+Vb1g3RI0Zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/graceful-fs": {
"version": "4.2.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
@@ -2435,12 +3326,32 @@
"dev": true,
"license": "ISC"
},
+ "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/html-encoding-sniffer": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-7.0.0.tgz",
@@ -2468,6 +3379,26 @@
"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",
@@ -2488,6 +3419,29 @@
"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-potential-custom-element-name": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
@@ -2495,6 +3449,13 @@
"dev": true,
"license": "MIT"
},
+ "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/isomorphic.js": {
"version": "0.2.5",
"resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.2.5.tgz",
@@ -2631,6 +3592,37 @@
"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/lib0": {
"version": "0.2.119",
"resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.119.tgz",
@@ -2948,6 +3940,22 @@
"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",
@@ -3075,6 +4083,13 @@
"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/nopt": {
"version": "10.0.1",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-10.0.1.tgz",
@@ -3097,6 +4112,19 @@
"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",
@@ -3132,12 +4160,62 @@
"typescript": "^5.x"
}
},
+ "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/orderedmap": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz",
"integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==",
"license": "MIT"
},
+ "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",
@@ -3189,6 +4267,26 @@
"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",
@@ -3310,6 +4408,46 @@
"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/prosemirror-changeset": {
"version": "2.4.5",
"resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.4.5.tgz",
@@ -3466,6 +4604,26 @@
"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",
@@ -3577,6 +4735,29 @@
"node": ">=10"
}
},
+ "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",
@@ -3709,6 +4890,32 @@
"node": "^22.14.0 || >=24.0.0"
}
},
+ "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",
@@ -3736,6 +4943,30 @@
"node": ">=14.17"
}
},
+ "node_modules/typescript-eslint": {
+ "version": "8.72.1",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.72.1.tgz",
+ "integrity": "sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.72.1",
+ "@typescript-eslint/parser": "8.72.1",
+ "@typescript-eslint/typescript-estree": "8.72.1",
+ "@typescript-eslint/utils": "8.72.1"
+ },
+ "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",
@@ -3827,6 +5058,16 @@
"url": "https://github.com/sponsors/sxzz"
}
},
+ "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.2",
"resolved": "https://registry.npmjs.org/uri-js-replace/-/uri-js-replace-1.0.2.tgz",
@@ -3834,6 +5075,13 @@
"dev": true,
"license": "MIT"
},
+ "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.5",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.3.5.tgz",
@@ -3912,6 +5160,28 @@
}
}
},
+ "node_modules/vite-plugin-singlefile": {
+ "version": "2.3.4",
+ "resolved": "https://registry.npmjs.org/vite-plugin-singlefile/-/vite-plugin-singlefile-2.3.4.tgz",
+ "integrity": "sha512-1FAhlTCL6KJDpSUudrVU+gspapvS+tmKCg70vwNaAU6tyXn3E/C6+NnwQIze06byhBRv7VggZ78K0h+J/Rsdrg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^4.0.7"
+ },
+ "engines": {
+ "node": ">18.0.0"
+ },
+ "peerDependencies": {
+ "rollup": "^4.59.0",
+ "vite": "^5.4.21 || ^6.0.0 || ^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "rollup": {
+ "optional": true
+ }
+ }
+ },
"node_modules/vite/node_modules/lightningcss": {
"version": "1.33.0",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",
@@ -4337,6 +5607,31 @@
"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",
+ "peer": true,
+ "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-i18n": {
"version": "11.4.16",
"resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.4.16.tgz",
@@ -4498,6 +5793,22 @@
"node": "^22.14.0 || >=24.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",
@@ -4511,6 +5822,16 @@
"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/xml-name-validator": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
@@ -4582,6 +5903,19 @@
"url": "https://github.com/sponsors/dmonad"
}
},
+ "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"
+ }
+ },
"Packages/api-client": {
"name": "@docwell/api-client",
"version": "0.0.1",
@@ -4612,6 +5946,26 @@
"vue": "^3.5.0"
}
},
+ "Packages/editor-bridge": {
+ "name": "@docwell/editor-bridge",
+ "version": "0.0.1",
+ "license": "AGPL-3.0-or-later",
+ "dependencies": {
+ "@docwell/editor": "*",
+ "@docwell/ui": "*",
+ "@tiptap/core": "^3.32.2"
+ },
+ "devDependencies": {
+ "@tailwindcss/vite": "^4.3.3",
+ "jsdom": "^30.1.3",
+ "tailwindcss": "^4.3.3",
+ "typescript": "~5.9.3",
+ "vite": "^8.3.5",
+ "vite-plugin-singlefile": "^2.3.4",
+ "vitest": "^5.0.5",
+ "vue-tsc": "^3.3.14"
+ }
+ },
"Packages/ui": {
"name": "@docwell/ui",
"version": "0.0.1",
diff --git a/package.json b/package.json
index 5a50b5a..a93dd7f 100644
--- a/package.json
+++ b/package.json
@@ -13,13 +13,28 @@
"build:packages": "npm run build -w @docwell/api-client",
"build:admin": "npm run build -w @docwell/admin",
"build:web": "npm run build -w @docwell/web-app",
- "build": "npm run build:packages && npm run build:admin && npm run build:web",
+ "build:bridge": "npm run build -w @docwell/editor-bridge",
+ "build": "npm run build:packages && npm run build:admin && npm run build:web && npm run build:bridge",
"dev:admin": "npm run dev -w @docwell/admin",
"dev:web": "npm run dev -w @docwell/web-app",
"typecheck": "npm run typecheck --workspaces --if-present",
- "test": "npm run test --workspaces --if-present"
+ "test": "npm run test --workspaces --if-present",
+ "generate": "npm run generate -w @docwell/api-client && cd Server && go generate ./internal/api && cd ../Phone-App && dart run tool/generate_api.dart",
+ "lint": "eslint .",
+ "lint:fix": "eslint . --fix",
+ "format": "prettier --write .",
+ "format:check": "prettier --check ."
},
"engines": {
"node": ">=22"
+ },
+ "devDependencies": {
+ "@eslint/js": "^10.0.1",
+ "eslint": "^10.14.0",
+ "eslint-config-prettier": "^10.1.8",
+ "eslint-plugin-vue": "^10.12.0",
+ "globals": "^17.13.0",
+ "prettier": "^3.9.10",
+ "typescript-eslint": "^8.72.1"
}
}
|