@aiquants/enrichment-react 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -87,7 +87,8 @@ a `履歴` button per row (`ingest-history-button-${id}`) that asks the host to
87
87
 
88
88
  Required props: `tenantId`, `sources: readonly SourceSpec[]` and `domainOptions: readonly { key; label }[]` (empty → the select is disabled and `ingest-domain-empty` explains why). The console reads the root's zone and format, so it renders inside `ConsoleUiRoot`.
89
89
  `sources` is the deployment's source catalog (`GET /ai/sources`, `@aiquants/enrichment-core`'s `SourceCatalogSchema`), and the console names no scheme of its own: one button per source in the catalog's order (`scheme-select-${scheme}`, labelled `<scheme>:// (<title.ja>)`; the first source is selected at first, and again when the selected one leaves the catalog),
90
- the prefix badge (`scheme-prefix-badge`), the input's example (`input_hint.ja`) and guidance (`guidance.ja`), the check of the identifier written after the prefix (`identifierMatches`: a full match of the source's form, refused as `<title>の識別子の形ではありません (例: <input_example>)。`) and the extraction of an identifier from a pasted text such as a share link (`pastedIdentifier`, before a full URI is split by its longest prefix, `sourceOfUri`).
90
+ the prefix badge (`scheme-prefix-badge`), the input's example (`input_hint.ja`) and guidance (`guidance.ja`), the check of the identifier written after the prefix (`identifierMatches`: a full match of the source's form, refused as `<title>の識別子の形ではありません (例: <input_example>)。`).
91
+ The console reads a typed or pasted text in this order: a full URI of a catalog source is split by its longest prefix (`sourceOfUri`) and kept as written, a text that fully matches the chosen source's form is that source's identifier, and only then is an identifier extracted from a pasted text such as a share link (`pastedIdentifier`), so a path that merely contains a share link's marks stays with its own source.
91
92
  A URI no source's prefix starts names every prefix of the catalog in its refusal, and `..` stays refused as the console's own guard. An empty catalog shows `取り込める源が配備にありません。` (`ingest-no-sources`, a warning `Notice`) with no button and a disabled input, and nothing can be inspected or sent.
92
93
  `recentItems` is `readonly RecentIngestEntry[]`: a readable row `{ kind: "readable", item: RecentIngestItem }` or a restricted mark (`RestrictedIngestMark`, V11) that the table draws as one row with the fixed text `隔離 (RESTRICTED) の文書`, its registration time and its sync status only (`recent-item-restricted-${position}`, `data-restricted-mark="ingest"`), with no history entry and no row action;
93
94
  a mark whose `syncStatus` is `null` (the document has no enrichment record) reads the neutral `取り込みの記録なし` (`NO_ENRICHMENT_RECORD_TEXT`, no status badge) in its status cell (`recent-item-restricted-status-${position}`). Each `RecentIngestItem` carries `lastRun: ReadableEntry<{ runId; status; retryScheduled; failedStepKey; finishedAt }> | RestrictedRunMark | null`; a `FAILED` run with `retryScheduled: true` reads `失敗 (再試行予定)`, and a last run that is a mark reads `隔離されていた期間の実行` with its status (`ingest-last-run-restricted-${id}`).