Commit Graph
57 Commits
Author SHA1 Message Date
apairon 21472bdc72 Schema: ngram.sizes auf 2–10 begrenzen, combinedCache ergänzen
continuous-integration/drone/push Build is passing
Die Gesamtabnahme fand zwei Lücken im Config-Vertrag:

- ngram.sizes erlaubte minimum 1 und hatte kein maximum; der Server akzeptiert
  nur 2–10 (collection_setup.go) — das Schema ließ also Configs durch, die beim
  Projektload scheitern.
- combinedCache fehlte komplett, obwohl Server (models.CombinedCacheConfig) und
  Doku den Block als Projekt-YAML führen; additionalProperties:false lehnte
  gültige, dokumentierte Configs ab.

Ergänzt in collection.schema.json und index.d.ts (CombinedCacheConfig mit
enabled/ttl/maxEntries). Die Demo-Collection ngram-stopwords.yml enthält jetzt
eine Combined-Config mit combinedCache, sodass validate:schemas den Block
abdeckt. Gegenprobe per AJV: sizes [1] und [11] werden abgelehnt, [2,3] und
combinedCache akzeptiert.
2026-10-19 22:34:56 +00:00
apairon 9e12a8e9c3 Schema: ngram.stopwords, queryFilter und inMemory ergänzen
continuous-integration/drone/push Build is passing
Der Config-Vertrag kannte nur sizes und normalize. Damit lehnte
`validate:schemas` jedes Projekt ab, das die bereits im Server vorhandenen
ngram-Optionen nutzt (additionalProperties: false), und die generierte
Schema-Referenz konnte sie nie zeigen.

Ergänzt in collection.schema.json und index.d.ts:

- stopwords: { presets?: string[], words?: string[] }
- queryFilter: { minMatchRatio?: 0..1 }
- inMemory: { enabled?, maxDocs?, maxMemoryMB? }

plus demo-api/collections/ngram-stopwords.yml als Validierungs-Fixture; ohne
Schema-Erweiterung schlägt validate:schemas dort mit "must NOT have additional
properties" fehl.
2026-10-19 20:48:10 +00:00
apairon 1233bd393d fix(schema): latencyWindow ist ein String, duration-Muster folgt der Go-Grammatik
Review-Nachbefunde am neuen embedding-Schema:
- latencyWindow war als integer/number deklariert, ist in Go aber ein String
  (ConfigEmbeddingGroup.OnSingleQuery.LatencyWindow, per Atoi geprüft) — Schema
  und index.d.ts auf digits-String (>0) umgestellt.
- duration-Pattern erlaubte nur eine Einheit und akzeptierte Unsinn wie "1ss":
  jetzt (Zahl+Einheit)+, damit auch 1m30s/1h1m/1.5h gelten und 1ss/8/abc fallen.
- Beispiel examples/server/embedding.yml übt latencyWindow und Mehrfach-Einheiten
  aus (npm test: 5 YAML gegen 17 Schemas, tsc --noEmit --strict grün).
2026-10-17 14:07:30 +00:00
apairon 5a45c4dd3f feat(types): Embedding-Abschnitt der Server-Config (Provider, Failover-Gruppen, goldener Pfad) + Status-Payloads
index.d.ts: EmbeddingProviderConfig/EmbeddingGroupConfig (onSingleQuery, onBulkWrite,
health), EmbeddingConfig für config.server().embedding (Roh-JSON von config.Server.
Embedding) sowie die Status-Payloads von GET …/admin/embedding/status (Projekt- und
Server-Scope, Zustände live|degraded|quarantined|offline, Breaker closed|open|half-open).
VectorConfig.provider dokumentiert jetzt, dass dort auch ein Gruppenname stehen darf.

schemas/config/embedding.schema.json: validierbares Schema des Server-Abschnitts
(Enums für Policies/Distributionen, Go-Duration-Muster, Pflichtfelder, keine
erfundenen Properties); Beispiel examples/server/embedding.yml, per
scripts/validate-schemas.mjs mitgeprüft (npm test: 5 YAML gegen 17 Schemas).

Quelle der Wahrheit: internal/config/server.go + internal/config/embedding_group.go
(tibi-server). Typecheck: tsc --noEmit --strict über index.d.ts grün.
2026-10-17 14:00:53 +00:00
apairon 40b441df04 ✨ feat: add new JSON schemas for Tibi configuration including fields, hooks, jobs, and permissions
- Introduced `field-list.schema.json`, `field-meta.schema.json`, and `field.schema.json` for field configurations.
- Added `hooks.schema.json` for defining hooks in the Tibi project.
- Created `image-filter.schema.json` for image processing configurations.
- Implemented `job.schema.json` for job scheduling configurations.
- Added `openapi.schema.json` for OpenAPI metadata generation.
- Introduced `permissions.schema.json` for managing permissions in the project.
- Created `project.schema.json` for overall project configuration.
- Added `projections.schema.json` for defining projections in the project.
- Implemented a validation script `validate-schemas.mjs` to ensure schema compliance.
2026-07-01 09:23:43 +00:00
apairon 4b588d1269 feat(types): add action api types to ApiInfo 2026-04-16 15:59:32 +00:00
apairon 025a7ccca4 ✨ feat(schema): enhance API configuration schemas with new properties and validations
continuous-integration/drone/push Build is passing
- Updated collection.json to include upload defaults, audit logging, query limits, and more.
- Enhanced collectionNavigation.json with viewHint configurations.
- Added project-wide upload defaults and hook configurations in config.json.
- Expanded field.json to support new field types, validations, and properties.
- Improved fieldMeta.json with additional widget configurations and properties.
- Updated hooks.json to include new bulk operation hooks and audit logging.
- Enhanced imageFilter.json with additional image processing options.
- Added timeout properties to job.json for better execution control.
- Refined permissions.json to allow more granular control over HTTP method permissions and added filter and field visibility options.
2026-03-30 12:28:50 +00:00
apairon c2a54a4474 ✨ feat(index.d.ts): update CollectionDocument to use generic types for insertTime and updateTime
continuous-integration/drone/push Build is passing
2026-01-21 14:36:06 +00:00
apairon 1bb16ad994 ✨ feat(index.d.ts): add base64 property to global context for Base64Package interface 2026-01-21 13:57:14 +00:00
apairon 8696b25e9b ✨ feat(index.d.ts): add Base64Package interface for encoding and decoding data
continuous-integration/drone/push Build is passing
2025-08-28 14:31:06 +00:00
apairon 102a93f20c ✨ feat(index.d.ts): add includeHeader option to create method
continuous-integration/drone/push Build is passing
2025-08-27 16:51:08 +00:00
apairon 99e7d940ee ✨ feat(index.d.ts): extend create method options to include rootElement parameter
continuous-integration/drone/push Build is passing
2025-08-27 16:32:38 +00:00
apairon c4d4a2f6e0 ✨ feat(index.d.ts): update create method parameter type for XML string creation
continuous-integration/drone/push Build is passing
2025-08-27 14:36:04 +00:00
apairon fe548c0537 ✨ feat(index.d.ts): add ExecPackage interface to global context
continuous-integration/drone/push Build is passing
2025-08-27 09:06:57 +00:00
apairon b724100477 ✨ feat(index.d.ts): add ExecPackage interface for command execution with options
continuous-integration/drone/push Build is passing
2025-08-27 08:55:15 +00:00
apairon 303652101b feat(index.d.ts): erweitere Bildverarbeitungsoptionen um Resampling, Anker, und Dimensionseinsparungen
continuous-integration/drone/push Build is passing
2025-04-24 10:04:10 +00:00
apairon 592ee4a42b feat(index.d.ts): add outputType option for image processing configuration
continuous-integration/drone/push Build is passing
2025-04-23 17:07:51 +00:00
apairon ca8d37815b feat(index.d.ts): add lossless option to image processing configuration
continuous-integration/drone/push Build is passing
2025-04-23 16:49:52 +00:00
apairon 9beb4d3a43 feat(index.d.ts): add sameSite option to set cookie's SameSite attribute
continuous-integration/drone/push Build is passing
2024-09-26 13:18:14 +00:00
apairon 2b0edd2c9f sleep in hook and cors in config
continuous-integration/drone/push Build is passing
2024-08-23 14:01:15 +00:00
apairon 1b48015c98 context.cyrpto.md5
continuous-integration/drone/push Build is passing
2024-06-26 14:58:39 +00:00
apairon b0771bdfb5 📝 docs(index.d.ts): add server config object definition for better documentation
continuous-integration/drone/push Build is passing
The server config object definition has been added to the global declaration file to provide clear documentation on the structure of the server configuration object. This will help developers understand the expected format of the server configuration object and its properties.
2024-02-23 10:56:56 +00:00
apairon 380bd89787 🚀 feat(index.d.ts): add ConfigPackage interface to provide utility functions for configuration management
continuous-integration/drone/push Build is passing
The ConfigPackage interface is added to provide utility functions for configuration management. It includes methods to get the current namespace string and the current project object, enhancing the flexibility and ease of managing configurations within the application.
2024-02-23 10:40:10 +00:00
apairon 194cd2eba8 🚀 feat(index.d.ts): add copy method to the global declaration to enable file or directory copying
continuous-integration/drone/push Build is passing
The copy method is added to the global declaration in order to provide a convenient way to copy files or directories. This method takes the source path and destination path as parameters and performs the copy operation. This addition enhances the functionality of the global declaration and allows for easier file management within the application.
2024-01-09 14:25:14 +00:00
apairon c0c3b2b593 🚀 feat(index.d.ts): add api(), project(), and collection() methods to global declaration
continuous-integration/drone/push Build is passing
This commit adds three new methods to the global declaration file: api(), project(), and collection(). These methods return an object with any key-value pairs, allowing for more flexibility in the codebase.
2023-05-25 12:47:34 +00:00
apairon 65626872e3 📝 docs(index.d.ts): add timeout property to RequestOptions interface
continuous-integration/drone/push Build is passing
The RequestOptions interface now includes a timeout property, which specifies the number of seconds before the request times out. This improves the usability of the interface by allowing developers to specify a timeout for requests.
2023-05-02 16:23:55 +00:00
apairon b51fe632de smtp with auth
continuous-integration/drone/push Build is passing
2023-02-24 09:20:04 +00:00
apairon a6911b3ed6 context.json package
continuous-integration/drone/push Build is passing
2022-12-07 14:53:01 +00:00
apairon 6350eac2c5 ts types into global scope
continuous-integration/drone/push Build is passing
2022-11-28 05:25:11 +00:00
apairon c7a3d26f42 log HookException
continuous-integration/drone/push Build is passing
2022-11-09 16:51:26 +00:00
apairon d0773b5ceb added json prop
continuous-integration/drone/push Build is passing
2022-05-19 10:08:02 +02:00
apairon 39da9c02fc context.fs.writeFile
continuous-integration/drone/push Build is passing
2022-02-22 14:03:10 +01:00
apairon de02d51100 job type and schema
continuous-integration/drone/push Build is passing
2022-02-21 10:23:11 +01:00
apairon c4cd7b35fc fs.configDir
continuous-integration/drone/push Build is passing
2022-02-08 18:54:53 +01:00
apairon d2109ddea4 fs.configDir
continuous-integration/drone/push Build is passing
2022-02-08 18:49:52 +01:00
apairon b261b9cf92 pdfcpu type
continuous-integration/drone/push Build is passing
2022-02-08 16:11:43 +01:00
apairon 9e4132af0f pdfcpu type
continuous-integration/drone/push Build is passing
2022-02-08 16:06:09 +01:00
apairon 78b33639c5 pdf merge
continuous-integration/drone/push Build is passing
2022-02-05 10:57:29 +01:00
apairon 7e82ac91a7 pdfcpu
continuous-integration/drone/push Build is passing
2022-02-04 11:14:02 +01:00
apairon 123dc3dc92 pdfcpu
continuous-integration/drone/push Build is passing
2022-02-04 10:38:35 +01:00
apairon af7ded48f4 pdfcpu
continuous-integration/drone/push Build is passing
2022-02-03 17:20:13 +01:00
apairon d40b64676e wkhtmltopdf ..Html options
continuous-integration/drone/push Build is passing
2022-02-03 14:36:54 +01:00
apairon efbc2f3b2e pdf package 2022-01-13 18:38:02 +01:00
apairon 25106547e9 add pipelineMod 2021-11-11 17:13:29 +01:00
apairon dfa5f6a8c8 add pipelineMod 2021-11-11 15:33:48 +01:00
apairon 29a722b1fc hook packages 2021-08-19 16:00:35 +02:00
apairon 13fa91f126 hook packages 2021-08-19 15:02:01 +02:00
apairon b7a4a17ea5 hook packages 2021-08-19 14:32:38 +02:00
apairon 2c7319d00b hook packages 2021-08-19 14:30:37 +02:00
apairon 80249666f6 hook packages 2021-08-19 14:29:24 +02:00