diff --git a/.changeset/34770-ai-skill-router.md b/.changeset/pre/34770-ai-skill-router.md similarity index 100% rename from .changeset/34770-ai-skill-router.md rename to .changeset/pre/34770-ai-skill-router.md diff --git a/.changeset/34770-project-skill-router.md b/.changeset/pre/34770-project-skill-router.md similarity index 100% rename from .changeset/34770-project-skill-router.md rename to .changeset/pre/34770-project-skill-router.md diff --git a/.changeset/34770-query-skill-router.md b/.changeset/pre/34770-query-skill-router.md similarity index 100% rename from .changeset/34770-query-skill-router.md rename to .changeset/pre/34770-query-skill-router.md diff --git a/.changeset/35295-date-text-mixed-spelling.md b/.changeset/pre/35295-date-text-mixed-spelling.md similarity index 100% rename from .changeset/35295-date-text-mixed-spelling.md rename to .changeset/pre/35295-date-text-mixed-spelling.md diff --git a/.changeset/37029-list-back-scroll-key.md b/.changeset/pre/37029-list-back-scroll-key.md similarity index 100% rename from .changeset/37029-list-back-scroll-key.md rename to .changeset/pre/37029-list-back-scroll-key.md diff --git a/.changeset/37088-crm-web-to-lead-form-item.md b/.changeset/pre/37088-crm-web-to-lead-form-item.md similarity index 100% rename from .changeset/37088-crm-web-to-lead-form-item.md rename to .changeset/pre/37088-crm-web-to-lead-form-item.md diff --git a/.changeset/37088-showcase-forms-as-form-items.md b/.changeset/pre/37088-showcase-forms-as-form-items.md similarity index 100% rename from .changeset/37088-showcase-forms-as-form-items.md rename to .changeset/pre/37088-showcase-forms-as-form-items.md diff --git a/.changeset/37112-forms-leave-view-switch.md b/.changeset/pre/37112-forms-leave-view-switch.md similarity index 100% rename from .changeset/37112-forms-leave-view-switch.md rename to .changeset/pre/37112-forms-leave-view-switch.md diff --git a/.changeset/37112-view-holds-lists-only.md b/.changeset/pre/37112-view-holds-lists-only.md similarity index 100% rename from .changeset/37112-view-holds-lists-only.md rename to .changeset/pre/37112-view-holds-lists-only.md diff --git a/.changeset/37195-record-page-lock-source.md b/.changeset/pre/37195-record-page-lock-source.md similarity index 100% rename from .changeset/37195-record-page-lock-source.md rename to .changeset/pre/37195-record-page-lock-source.md diff --git a/.changeset/37218-approval-ended-durable-witness.md b/.changeset/pre/37218-approval-ended-durable-witness.md similarity index 100% rename from .changeset/37218-approval-ended-durable-witness.md rename to .changeset/pre/37218-approval-ended-durable-witness.md diff --git a/.changeset/37659-screen-input-fields-wording.md b/.changeset/pre/37659-screen-input-fields-wording.md similarity index 100% rename from .changeset/37659-screen-input-fields-wording.md rename to .changeset/pre/37659-screen-input-fields-wording.md diff --git a/.changeset/37766-abandoned-mirror.md b/.changeset/pre/37766-abandoned-mirror.md similarity index 95% rename from .changeset/37766-abandoned-mirror.md rename to .changeset/pre/37766-abandoned-mirror.md index 5836107f822..8ab69f8b646 100644 --- a/.changeset/37766-abandoned-mirror.md +++ b/.changeset/pre/37766-abandoned-mirror.md @@ -2,6 +2,8 @@ '@objectstack/plugin-approvals': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + fix(approvals): an abandoned approval never writes a closed value on its status mirror (ADR-0162 D5, Execution item 7) Clause-②: no diff --git a/.changeset/37766-approval-closed-states-authoring-rule.md b/.changeset/pre/37766-approval-closed-states-authoring-rule.md similarity index 95% rename from .changeset/37766-approval-closed-states-authoring-rule.md rename to .changeset/pre/37766-approval-closed-states-authoring-rule.md index a89a93a2bab..0832eec9eb3 100644 --- a/.changeset/37766-approval-closed-states-authoring-rule.md +++ b/.changeset/pre/37766-approval-closed-states-authoring-rule.md @@ -2,6 +2,8 @@ '@objectstack/lint': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(lint): an approval that cannot show itself in progress on a field its object closes on is refused where it is authored (ADR-0162 D5) Clause-②: yes (widening) diff --git a/.changeset/37766-opening-check.md b/.changeset/pre/37766-opening-check.md similarity index 96% rename from .changeset/37766-opening-check.md rename to .changeset/pre/37766-opening-check.md index ce7e3b7040f..2dc04cbe78c 100644 --- a/.changeset/37766-opening-check.md +++ b/.changeset/pre/37766-opening-check.md @@ -2,6 +2,8 @@ '@objectstack/plugin-approvals': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(approvals): an approval that cannot show itself in progress on a field its object closes on does not open (ADR-0162 Execution item 7, the check) Clause-②: yes (widening) diff --git a/.changeset/37766-opening-judge-metadata-core.md b/.changeset/pre/37766-opening-judge-metadata-core.md similarity index 89% rename from .changeset/37766-opening-judge-metadata-core.md rename to .changeset/pre/37766-opening-judge-metadata-core.md index 545d0778953..a8c80387a3c 100644 --- a/.changeset/37766-opening-judge-metadata-core.md +++ b/.changeset/pre/37766-opening-judge-metadata-core.md @@ -2,6 +2,8 @@ '@objectstack/metadata-core': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(metadata-core): the judge of an approval's opening conditions on a closing field lives here, so every door asks one copy (ADR-0162 D5) Clause-②: yes (widening) diff --git a/.changeset/37766-opening-judge-plugin-approvals.md b/.changeset/pre/37766-opening-judge-plugin-approvals.md similarity index 85% rename from .changeset/37766-opening-judge-plugin-approvals.md rename to .changeset/pre/37766-opening-judge-plugin-approvals.md index 1f4f4cfe96b..c1cf6d015ea 100644 --- a/.changeset/37766-opening-judge-plugin-approvals.md +++ b/.changeset/pre/37766-opening-judge-plugin-approvals.md @@ -2,6 +2,8 @@ '@objectstack/plugin-approvals': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + refactor(approvals): the first-request check asks the opening judge in `@objectstack/metadata-core` (ADR-0162 D5) Clause-②: no diff --git a/.changeset/37766-opening-lead.md b/.changeset/pre/37766-opening-lead.md similarity index 90% rename from .changeset/37766-opening-lead.md rename to .changeset/pre/37766-opening-lead.md index 41fcfa5b582..3a4beb8f7fa 100644 --- a/.changeset/37766-opening-lead.md +++ b/.changeset/pre/37766-opening-lead.md @@ -2,6 +2,8 @@ '@objectstack/plugin-approvals': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + fix(approvals): the opening refusal no longer says the object closes on its approval field when its only gaps are the host's or an unreadable flow Clause-②: yes (widening) diff --git a/.changeset/37767-hold-root-run-spec.md b/.changeset/pre/37767-hold-root-run-spec.md similarity index 85% rename from .changeset/37767-hold-root-run-spec.md rename to .changeset/pre/37767-hold-root-run-spec.md index da86dbe6298..9cdcc04208e 100644 --- a/.changeset/37767-hold-root-run-spec.md +++ b/.changeset/pre/37767-hold-root-run-spec.md @@ -2,6 +2,8 @@ '@objectstack/spec': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(spec): a run's writes name the root run of its tree (`ExecutionContext.flowRootRunId`, `HookContext.provenance.flowRootRunId`, ADR-0162 D5) Clause-②: yes (widening) diff --git a/.changeset/37767-hold-root-run.md b/.changeset/pre/37767-hold-root-run.md similarity index 90% rename from .changeset/37767-hold-root-run.md rename to .changeset/pre/37767-hold-root-run.md index db64ff6ec72..56095644777 100644 --- a/.changeset/37767-hold-root-run.md +++ b/.changeset/pre/37767-hold-root-run.md @@ -5,6 +5,8 @@ '@objectstack/runtime': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(automation): every write of a run carries the root run of its tree (`flowRootRunId`, ADR-0162 D5) Clause-②: yes (widening) diff --git a/.changeset/37767-hold.md b/.changeset/pre/37767-hold.md similarity index 96% rename from .changeset/37767-hold.md rename to .changeset/pre/37767-hold.md index 227e6743eb1..7b01c4891c3 100644 --- a/.changeset/37767-hold.md +++ b/.changeset/pre/37767-hold.md @@ -2,6 +2,8 @@ '@objectstack/plugin-approvals': minor --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(approvals)!: on an object that declares `closedStates`, the document is held for the whole approval (ADR-0162 D5, Execution item 8, the hold) Clause-②: yes (narrowing) diff --git a/.changeset/37767-outcome-when-approval-over.md b/.changeset/pre/37767-outcome-when-approval-over.md similarity index 97% rename from .changeset/37767-outcome-when-approval-over.md rename to .changeset/pre/37767-outcome-when-approval-over.md index 131a7031538..8dac4ff6dbc 100644 --- a/.changeset/37767-outcome-when-approval-over.md +++ b/.changeset/pre/37767-outcome-when-approval-over.md @@ -2,6 +2,8 @@ '@objectstack/plugin-approvals': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(approvals): on a field its object closes on, an approval's decision is written when the approval is over (ADR-0162 Execution item 8, the outcome) Clause-②: yes (widening) diff --git a/.changeset/37767-reconciler.md b/.changeset/pre/37767-reconciler.md similarity index 99% rename from .changeset/37767-reconciler.md rename to .changeset/pre/37767-reconciler.md index 8c77832acc2..278784c587b 100644 --- a/.changeset/37767-reconciler.md +++ b/.changeset/pre/37767-reconciler.md @@ -3,6 +3,8 @@ '@objectstack/service-messaging': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(approvals): the reconciler, and the door reads every run of an approval (ADR-0162 Execution item 8) Clause-②: yes (widening) diff --git a/.changeset/37767-status-mirror-closing-field-refusal.md b/.changeset/pre/37767-status-mirror-closing-field-refusal.md similarity index 93% rename from .changeset/37767-status-mirror-closing-field-refusal.md rename to .changeset/pre/37767-status-mirror-closing-field-refusal.md index b74af8a9633..5c7b7efa9be 100644 --- a/.changeset/37767-status-mirror-closing-field-refusal.md +++ b/.changeset/pre/37767-status-mirror-closing-field-refusal.md @@ -3,6 +3,8 @@ '@objectstack/service-messaging': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + fix(approvals): on a field the object closes on, a refused write of the approval status mirror is no longer swallowed (ADR-0162 Execution item 8) Clause-②: no diff --git a/.changeset/37767-step-child-runs.md b/.changeset/pre/37767-step-child-runs.md similarity index 97% rename from .changeset/37767-step-child-runs.md rename to .changeset/pre/37767-step-child-runs.md index fb072d0c442..53d439fe12d 100644 --- a/.changeset/37767-step-child-runs.md +++ b/.changeset/pre/37767-step-child-runs.md @@ -2,6 +2,8 @@ '@objectstack/service-automation': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(automation): a delegating step records the child runs it started (ADR-0162 Execution item 8) Clause-②: yes (widening) diff --git a/.changeset/37767-step-log-child-runs-spec.md b/.changeset/pre/37767-step-log-child-runs-spec.md similarity index 92% rename from .changeset/37767-step-log-child-runs-spec.md rename to .changeset/pre/37767-step-log-child-runs-spec.md index 1ed247148c4..5131bf5391b 100644 --- a/.changeset/37767-step-log-child-runs-spec.md +++ b/.changeset/pre/37767-step-log-child-runs-spec.md @@ -2,6 +2,8 @@ '@objectstack/spec': minor --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(spec): a run's step log names the child runs a step started (`ExecutionStepLogSchema.childRunIds`, `childRunIdsTruncated`, ADR-0162 Execution item 8) Clause-②: yes (widening) diff --git a/.changeset/37768-closed-state-refusal-sentences.md b/.changeset/pre/37768-closed-state-refusal-sentences.md similarity index 96% rename from .changeset/37768-closed-state-refusal-sentences.md rename to .changeset/pre/37768-closed-state-refusal-sentences.md index 7cd9079c9bb..0f7b48bcaa9 100644 --- a/.changeset/37768-closed-state-refusal-sentences.md +++ b/.changeset/pre/37768-closed-state-refusal-sentences.md @@ -4,6 +4,8 @@ '@objectstack/service-storage': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(spec,objectql): the closed-state refusal's own sentences, in every locale (ADR-0162 D8) Clause-②: yes (widening: new keys in the published Operation Message Catalog and the upload-link copy; contract-review-tier review owed) diff --git a/.changeset/37768-closed-states-metadata-core.md b/.changeset/pre/37768-closed-states-metadata-core.md similarity index 87% rename from .changeset/37768-closed-states-metadata-core.md rename to .changeset/pre/37768-closed-states-metadata-core.md index 708da5d7204..f6cf2036183 100644 --- a/.changeset/37768-closed-states-metadata-core.md +++ b/.changeset/pre/37768-closed-states-metadata-core.md @@ -2,6 +2,8 @@ '@objectstack/metadata-core': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(metadata-core): the field-level-security scrub serves an object's closed states without the fields a caller cannot read Clause-②: yes (widening: one new optional authorable key, `ObjectSchema.closedStates`) diff --git a/.changeset/37768-closed-states-objectql.md b/.changeset/pre/37768-closed-states-objectql.md similarity index 96% rename from .changeset/37768-closed-states-objectql.md rename to .changeset/pre/37768-closed-states-objectql.md index 8042146d6ff..4cab477ae43 100644 --- a/.changeset/37768-closed-states-objectql.md +++ b/.changeset/pre/37768-closed-states-objectql.md @@ -2,6 +2,8 @@ '@objectstack/objectql': minor --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(objectql): a record in a closed state, and its lines, are closed to change (`closedStates`, ADR-0162 D2 to D7, D10) Clause-②: yes (widening: the engine enforces the new optional key `ObjectSchema.closedStates`; an object without it behaves exactly as before) diff --git a/.changeset/37768-closed-states-platform-objects.md b/.changeset/pre/37768-closed-states-platform-objects.md similarity index 81% rename from .changeset/37768-closed-states-platform-objects.md rename to .changeset/pre/37768-closed-states-platform-objects.md index b57babeb0eb..99b42b55296 100644 --- a/.changeset/37768-closed-states-platform-objects.md +++ b/.changeset/pre/37768-closed-states-platform-objects.md @@ -2,6 +2,8 @@ '@objectstack/platform-objects': patch --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(platform-objects): the Studio object form's closed-states row is translated in every metadata-forms locale pack Clause-②: yes (widening: one new optional authorable key, `ObjectSchema.closedStates`) diff --git a/.changeset/37768-closed-states-spec.md b/.changeset/pre/37768-closed-states-spec.md similarity index 95% rename from .changeset/37768-closed-states-spec.md rename to .changeset/pre/37768-closed-states-spec.md index 4a410432ed6..bc5a0f14259 100644 --- a/.changeset/37768-closed-states-spec.md +++ b/.changeset/pre/37768-closed-states-spec.md @@ -2,6 +2,8 @@ '@objectstack/spec': minor --- +**Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + feat(spec): an object declares its closed states (`closedStates`, ADR-0162 D1) Clause-②: yes (widening: one new optional authorable key, `ObjectSchema.closedStates`) diff --git a/.changeset/37770-one-record-lock-read.md b/.changeset/pre/37770-one-record-lock-read.md similarity index 100% rename from .changeset/37770-one-record-lock-read.md rename to .changeset/pre/37770-one-record-lock-read.md diff --git a/.changeset/37773-console-closed-lock.md b/.changeset/pre/37773-console-closed-lock.md similarity index 100% rename from .changeset/37773-console-closed-lock.md rename to .changeset/pre/37773-console-closed-lock.md diff --git a/.changeset/37773-record-page-closed-lock.md b/.changeset/pre/37773-record-page-closed-lock.md similarity index 100% rename from .changeset/37773-record-page-closed-lock.md rename to .changeset/pre/37773-record-page-closed-lock.md diff --git a/.changeset/38140-form-subforms-retired.md b/.changeset/pre/38140-form-subforms-retired.md similarity index 100% rename from .changeset/38140-form-subforms-retired.md rename to .changeset/pre/38140-form-subforms-retired.md diff --git a/.changeset/38454-ask-page-full-window.md b/.changeset/pre/38454-ask-page-full-window.md similarity index 100% rename from .changeset/38454-ask-page-full-window.md rename to .changeset/pre/38454-ask-page-full-window.md diff --git a/.changeset/38454-favourite-reopens-page.md b/.changeset/pre/38454-favourite-reopens-page.md similarity index 100% rename from .changeset/38454-favourite-reopens-page.md rename to .changeset/pre/38454-favourite-reopens-page.md diff --git a/.changeset/38454-shared-chat-title-bar.md b/.changeset/pre/38454-shared-chat-title-bar.md similarity index 100% rename from .changeset/38454-shared-chat-title-bar.md rename to .changeset/pre/38454-shared-chat-title-bar.md diff --git a/.changeset/38463-ask-page-links-new-tab.md b/.changeset/pre/38463-ask-page-links-new-tab.md similarity index 100% rename from .changeset/38463-ask-page-links-new-tab.md rename to .changeset/pre/38463-ask-page-links-new-tab.md diff --git a/.changeset/38503-validate-affinity-target.md b/.changeset/pre/38503-validate-affinity-target.md similarity index 100% rename from .changeset/38503-validate-affinity-target.md rename to .changeset/pre/38503-validate-affinity-target.md diff --git a/.changeset/38538-knowledge-document-unit-skill-text.md b/.changeset/pre/38538-knowledge-document-unit-skill-text.md similarity index 100% rename from .changeset/38538-knowledge-document-unit-skill-text.md rename to .changeset/pre/38538-knowledge-document-unit-skill-text.md diff --git a/.changeset/38551-dataset-term-names-field.md b/.changeset/pre/38551-dataset-term-names-field.md similarity index 100% rename from .changeset/38551-dataset-term-names-field.md rename to .changeset/pre/38551-dataset-term-names-field.md diff --git a/.changeset/38552-skills-bulk-actions-selection.md b/.changeset/pre/38552-skills-bulk-actions-selection.md similarity index 100% rename from .changeset/38552-skills-bulk-actions-selection.md rename to .changeset/pre/38552-skills-bulk-actions-selection.md diff --git a/.changeset/38578-db-queue-main-loop-cas.md b/.changeset/pre/38578-db-queue-main-loop-cas.md similarity index 100% rename from .changeset/38578-db-queue-main-loop-cas.md rename to .changeset/pre/38578-db-queue-main-loop-cas.md diff --git a/.changeset/38624-disabled-extender-rule-copy.md b/.changeset/pre/38624-disabled-extender-rule-copy.md similarity index 100% rename from .changeset/38624-disabled-extender-rule-copy.md rename to .changeset/pre/38624-disabled-extender-rule-copy.md diff --git a/.changeset/38644-rename-opening-sites.md b/.changeset/pre/38644-rename-opening-sites.md similarity index 100% rename from .changeset/38644-rename-opening-sites.md rename to .changeset/pre/38644-rename-opening-sites.md diff --git a/.changeset/38655-skills-save-refusals.md b/.changeset/pre/38655-skills-save-refusals.md similarity index 100% rename from .changeset/38655-skills-save-refusals.md rename to .changeset/pre/38655-skills-save-refusals.md diff --git a/.changeset/38659-bare-read-own-envelope.md b/.changeset/pre/38659-bare-read-own-envelope.md similarity index 100% rename from .changeset/38659-bare-read-own-envelope.md rename to .changeset/pre/38659-bare-read-own-envelope.md diff --git a/.changeset/38665-approval-query-options-typed.md b/.changeset/pre/38665-approval-query-options-typed.md similarity index 100% rename from .changeset/38665-approval-query-options-typed.md rename to .changeset/pre/38665-approval-query-options-typed.md diff --git a/.changeset/38666-lint-rule-explanations-by-family.md b/.changeset/pre/38666-lint-rule-explanations-by-family.md similarity index 100% rename from .changeset/38666-lint-rule-explanations-by-family.md rename to .changeset/pre/38666-lint-rule-explanations-by-family.md diff --git a/.changeset/38667-automation-engine-facets.md b/.changeset/pre/38667-automation-engine-facets.md similarity index 100% rename from .changeset/38667-automation-engine-facets.md rename to .changeset/pre/38667-automation-engine-facets.md diff --git a/.changeset/38667-automation-engine-leaf-modules.md b/.changeset/pre/38667-automation-engine-leaf-modules.md similarity index 100% rename from .changeset/38667-automation-engine-leaf-modules.md rename to .changeset/pre/38667-automation-engine-leaf-modules.md diff --git a/.changeset/38674-getrun-terminal-row-wins.md b/.changeset/pre/38674-getrun-terminal-row-wins.md similarity index 100% rename from .changeset/38674-getrun-terminal-row-wins.md rename to .changeset/pre/38674-getrun-terminal-row-wins.md diff --git a/.changeset/38676-embed-question-once.md b/.changeset/pre/38676-embed-question-once.md similarity index 100% rename from .changeset/38676-embed-question-once.md rename to .changeset/pre/38676-embed-question-once.md diff --git a/.changeset/38680-record-page-skill-keys.md b/.changeset/pre/38680-record-page-skill-keys.md similarity index 100% rename from .changeset/38680-record-page-skill-keys.md rename to .changeset/pre/38680-record-page-skill-keys.md diff --git a/.changeset/38691-approval-fanout-stop.md b/.changeset/pre/38691-approval-fanout-stop.md similarity index 100% rename from .changeset/38691-approval-fanout-stop.md rename to .changeset/pre/38691-approval-fanout-stop.md diff --git a/.changeset/38710-search-term-object.md b/.changeset/pre/38710-search-term-object.md similarity index 100% rename from .changeset/38710-search-term-object.md rename to .changeset/pre/38710-search-term-object.md diff --git a/.changeset/38710-service-segmenter.md b/.changeset/pre/38710-service-segmenter.md similarity index 100% rename from .changeset/38710-service-segmenter.md rename to .changeset/pre/38710-service-segmenter.md diff --git a/.changeset/38753-disabled-holder-counts-nothing.md b/.changeset/pre/38753-disabled-holder-counts-nothing.md similarity index 100% rename from .changeset/38753-disabled-holder-counts-nothing.md rename to .changeset/pre/38753-disabled-holder-counts-nothing.md diff --git a/.changeset/38753-draft-save-cell.md b/.changeset/pre/38753-draft-save-cell.md similarity index 100% rename from .changeset/38753-draft-save-cell.md rename to .changeset/pre/38753-draft-save-cell.md diff --git a/.changeset/38775-unconfigured-embedder-coded-refusal.md b/.changeset/pre/38775-unconfigured-embedder-coded-refusal.md similarity index 100% rename from .changeset/38775-unconfigured-embedder-coded-refusal.md rename to .changeset/pre/38775-unconfigured-embedder-coded-refusal.md diff --git a/.changeset/38776-loose-banner-movable-items.md b/.changeset/pre/38776-loose-banner-movable-items.md similarity index 100% rename from .changeset/38776-loose-banner-movable-items.md rename to .changeset/pre/38776-loose-banner-movable-items.md diff --git a/.changeset/38782-upgrade-eval-assertions.md b/.changeset/pre/38782-upgrade-eval-assertions.md similarity index 100% rename from .changeset/38782-upgrade-eval-assertions.md rename to .changeset/pre/38782-upgrade-eval-assertions.md diff --git a/.changeset/38793-skills-i18n-platform-apps.md b/.changeset/pre/38793-skills-i18n-platform-apps.md similarity index 100% rename from .changeset/38793-skills-i18n-platform-apps.md rename to .changeset/pre/38793-skills-i18n-platform-apps.md diff --git a/.changeset/38800-action-renamed-parameters.md b/.changeset/pre/38800-action-renamed-parameters.md similarity index 100% rename from .changeset/38800-action-renamed-parameters.md rename to .changeset/pre/38800-action-renamed-parameters.md diff --git a/.changeset/38801-bound-once-count-parity.md b/.changeset/pre/38801-bound-once-count-parity.md similarity index 100% rename from .changeset/38801-bound-once-count-parity.md rename to .changeset/pre/38801-bound-once-count-parity.md diff --git a/.changeset/38804-lint-form-items.md b/.changeset/pre/38804-lint-form-items.md similarity index 100% rename from .changeset/38804-lint-form-items.md rename to .changeset/pre/38804-lint-form-items.md diff --git a/.changeset/38833-item-page-outside-publish.md b/.changeset/pre/38833-item-page-outside-publish.md similarity index 100% rename from .changeset/38833-item-page-outside-publish.md rename to .changeset/pre/38833-item-page-outside-publish.md diff --git a/.changeset/38834-nav-item-object-binding-banner.md b/.changeset/pre/38834-nav-item-object-binding-banner.md similarity index 100% rename from .changeset/38834-nav-item-object-binding-banner.md rename to .changeset/pre/38834-nav-item-object-binding-banner.md diff --git a/.changeset/38835-sidebar-object-label-after-read-lands.md b/.changeset/pre/38835-sidebar-object-label-after-read-lands.md similarity index 100% rename from .changeset/38835-sidebar-object-label-after-read-lands.md rename to .changeset/pre/38835-sidebar-object-label-after-read-lands.md diff --git a/.changeset/38838-fanout-pause-refusal.md b/.changeset/pre/38838-fanout-pause-refusal.md similarity index 100% rename from .changeset/38838-fanout-pause-refusal.md rename to .changeset/pre/38838-fanout-pause-refusal.md diff --git a/.changeset/38849-discovery-advertises-approvals.md b/.changeset/pre/38849-discovery-advertises-approvals.md similarity index 100% rename from .changeset/38849-discovery-advertises-approvals.md rename to .changeset/pre/38849-discovery-advertises-approvals.md diff --git a/.changeset/38849-grid-lock-read-skips-unserved-approvals.md b/.changeset/pre/38849-grid-lock-read-skips-unserved-approvals.md similarity index 100% rename from .changeset/38849-grid-lock-read-skips-unserved-approvals.md rename to .changeset/pre/38849-grid-lock-read-skips-unserved-approvals.md diff --git a/.changeset/38854-scenarios-trailing-cli-note.md b/.changeset/pre/38854-scenarios-trailing-cli-note.md similarity index 100% rename from .changeset/38854-scenarios-trailing-cli-note.md rename to .changeset/pre/38854-scenarios-trailing-cli-note.md diff --git a/.changeset/38870-ask-skill-field-term.md b/.changeset/pre/38870-ask-skill-field-term.md similarity index 100% rename from .changeset/38870-ask-skill-field-term.md rename to .changeset/pre/38870-ask-skill-field-term.md diff --git a/.changeset/38875-conditioned-edge-pause-drop.md b/.changeset/pre/38875-conditioned-edge-pause-drop.md similarity index 100% rename from .changeset/38875-conditioned-edge-pause-drop.md rename to .changeset/pre/38875-conditioned-edge-pause-drop.md diff --git a/.changeset/38876-subflow-branch-pause-refusal.md b/.changeset/pre/38876-subflow-branch-pause-refusal.md similarity index 100% rename from .changeset/38876-subflow-branch-pause-refusal.md rename to .changeset/pre/38876-subflow-branch-pause-refusal.md diff --git a/.changeset/38879-migrate-write-exportsof.md b/.changeset/pre/38879-migrate-write-exportsof.md similarity index 100% rename from .changeset/38879-migrate-write-exportsof.md rename to .changeset/pre/38879-migrate-write-exportsof.md diff --git a/.changeset/38881-scenario-door-fresh-copy.md b/.changeset/pre/38881-scenario-door-fresh-copy.md similarity index 100% rename from .changeset/38881-scenario-door-fresh-copy.md rename to .changeset/pre/38881-scenario-door-fresh-copy.md diff --git a/.changeset/38894-action-door-delivers-attachment.md b/.changeset/pre/38894-action-door-delivers-attachment.md similarity index 100% rename from .changeset/38894-action-door-delivers-attachment.md rename to .changeset/pre/38894-action-door-delivers-attachment.md diff --git a/.changeset/38894-print-downloads-no-attachment.md b/.changeset/pre/38894-print-downloads-no-attachment.md similarity index 100% rename from .changeset/38894-print-downloads-no-attachment.md rename to .changeset/pre/38894-print-downloads-no-attachment.md diff --git a/.changeset/38895-phone-related-list-card-columns.md b/.changeset/pre/38895-phone-related-list-card-columns.md similarity index 100% rename from .changeset/38895-phone-related-list-card-columns.md rename to .changeset/pre/38895-phone-related-list-card-columns.md diff --git a/.changeset/38922-migrate-write-partial.md b/.changeset/pre/38922-migrate-write-partial.md similarity index 100% rename from .changeset/38922-migrate-write-partial.md rename to .changeset/pre/38922-migrate-write-partial.md diff --git a/.changeset/38923-stored-bulk-actions.md b/.changeset/pre/38923-stored-bulk-actions.md similarity index 100% rename from .changeset/38923-stored-bulk-actions.md rename to .changeset/pre/38923-stored-bulk-actions.md diff --git a/.changeset/38924-own-field-rows-beside-modify-all.md b/.changeset/pre/38924-own-field-rows-beside-modify-all.md similarity index 100% rename from .changeset/38924-own-field-rows-beside-modify-all.md rename to .changeset/pre/38924-own-field-rows-beside-modify-all.md diff --git a/.changeset/38925-migrate-access-matrix-hint.md b/.changeset/pre/38925-migrate-access-matrix-hint.md similarity index 100% rename from .changeset/38925-migrate-access-matrix-hint.md rename to .changeset/pre/38925-migrate-access-matrix-hint.md diff --git a/.changeset/38926-upgrade-skill-18-to-19.md b/.changeset/pre/38926-upgrade-skill-18-to-19.md similarity index 100% rename from .changeset/38926-upgrade-skill-18-to-19.md rename to .changeset/pre/38926-upgrade-skill-18-to-19.md diff --git a/.changeset/38928-validate-protocol-range.md b/.changeset/pre/38928-validate-protocol-range.md similarity index 100% rename from .changeset/38928-validate-protocol-range.md rename to .changeset/pre/38928-validate-protocol-range.md diff --git a/.changeset/38929-step19-notice-relevance.md b/.changeset/pre/38929-step19-notice-relevance.md similarity index 100% rename from .changeset/38929-step19-notice-relevance.md rename to .changeset/pre/38929-step19-notice-relevance.md diff --git a/.changeset/38930-custom-pair-info.md b/.changeset/pre/38930-custom-pair-info.md similarity index 100% rename from .changeset/38930-custom-pair-info.md rename to .changeset/pre/38930-custom-pair-info.md diff --git a/.changeset/38932-mcp-build-rename-old-draft.md b/.changeset/pre/38932-mcp-build-rename-old-draft.md similarity index 100% rename from .changeset/38932-mcp-build-rename-old-draft.md rename to .changeset/pre/38932-mcp-build-rename-old-draft.md diff --git a/.changeset/38939-data-skill-rate-table-unit-config.md b/.changeset/pre/38939-data-skill-rate-table-unit-config.md similarity index 100% rename from .changeset/38939-data-skill-rate-table-unit-config.md rename to .changeset/pre/38939-data-skill-rate-table-unit-config.md diff --git a/.changeset/38940-automation-notice-key-elevation-gate.md b/.changeset/pre/38940-automation-notice-key-elevation-gate.md similarity index 100% rename from .changeset/38940-automation-notice-key-elevation-gate.md rename to .changeset/pre/38940-automation-notice-key-elevation-gate.md diff --git a/.changeset/38941-eval-false-reds.md b/.changeset/pre/38941-eval-false-reds.md similarity index 100% rename from .changeset/38941-eval-false-reds.md rename to .changeset/pre/38941-eval-false-reds.md diff --git a/.changeset/38941-eval12.md b/.changeset/pre/38941-eval12.md similarity index 100% rename from .changeset/38941-eval12.md rename to .changeset/pre/38941-eval12.md diff --git a/.changeset/38953-booking-head-word.md b/.changeset/pre/38953-booking-head-word.md similarity index 100% rename from .changeset/38953-booking-head-word.md rename to .changeset/pre/38953-booking-head-word.md diff --git a/.changeset/38958-marketplace-upgrade-confirm.md b/.changeset/pre/38958-marketplace-upgrade-confirm.md similarity index 100% rename from .changeset/38958-marketplace-upgrade-confirm.md rename to .changeset/pre/38958-marketplace-upgrade-confirm.md diff --git a/.changeset/38959-date-text-ordering-code.md b/.changeset/pre/38959-date-text-ordering-code.md similarity index 100% rename from .changeset/38959-date-text-ordering-code.md rename to .changeset/pre/38959-date-text-ordering-code.md diff --git a/.changeset/38959-flow-condition-verdicts.md b/.changeset/pre/38959-flow-condition-verdicts.md similarity index 100% rename from .changeset/38959-flow-condition-verdicts.md rename to .changeset/pre/38959-flow-condition-verdicts.md diff --git a/.changeset/38963-data-skill-delete-floor-field-hide.md b/.changeset/pre/38963-data-skill-delete-floor-field-hide.md similarity index 100% rename from .changeset/38963-data-skill-delete-floor-field-hide.md rename to .changeset/pre/38963-data-skill-delete-floor-field-hide.md diff --git a/.changeset/38965-list-drafts-bound.md b/.changeset/pre/38965-list-drafts-bound.md similarity index 100% rename from .changeset/38965-list-drafts-bound.md rename to .changeset/pre/38965-list-drafts-bound.md diff --git a/.changeset/38966-package-list-rows.md b/.changeset/pre/38966-package-list-rows.md similarity index 100% rename from .changeset/38966-package-list-rows.md rename to .changeset/pre/38966-package-list-rows.md diff --git a/.changeset/38979-record-page-handoff.md b/.changeset/pre/38979-record-page-handoff.md similarity index 100% rename from .changeset/38979-record-page-handoff.md rename to .changeset/pre/38979-record-page-handoff.md diff --git a/.changeset/38981-list-view-columns-mix-error.md b/.changeset/pre/38981-list-view-columns-mix-error.md similarity index 100% rename from .changeset/38981-list-view-columns-mix-error.md rename to .changeset/pre/38981-list-view-columns-mix-error.md diff --git a/.changeset/38982-read-version.md b/.changeset/pre/38982-read-version.md similarity index 100% rename from .changeset/38982-read-version.md rename to .changeset/pre/38982-read-version.md diff --git a/.changeset/38983-chat-review-card-publish.md b/.changeset/pre/38983-chat-review-card-publish.md similarity index 100% rename from .changeset/38983-chat-review-card-publish.md rename to .changeset/pre/38983-chat-review-card-publish.md diff --git a/.changeset/38984-event-seq-race.md b/.changeset/pre/38984-event-seq-race.md similarity index 100% rename from .changeset/38984-event-seq-race.md rename to .changeset/pre/38984-event-seq-race.md diff --git a/.changeset/38985-ended-run-approval-step.md b/.changeset/pre/38985-ended-run-approval-step.md similarity index 100% rename from .changeset/38985-ended-run-approval-step.md rename to .changeset/pre/38985-ended-run-approval-step.md diff --git a/.changeset/38988-fanout-judge.md b/.changeset/pre/38988-fanout-judge.md similarity index 100% rename from .changeset/38988-fanout-judge.md rename to .changeset/pre/38988-fanout-judge.md diff --git a/.changeset/38988-fanout-late-steps.md b/.changeset/pre/38988-fanout-late-steps.md similarity index 100% rename from .changeset/38988-fanout-late-steps.md rename to .changeset/pre/38988-fanout-late-steps.md diff --git a/.changeset/38992-unconditional-sibling-wording.md b/.changeset/pre/38992-unconditional-sibling-wording.md similarity index 100% rename from .changeset/38992-unconditional-sibling-wording.md rename to .changeset/pre/38992-unconditional-sibling-wording.md diff --git a/.changeset/38995-record-page-data-lock.md b/.changeset/pre/38995-record-page-data-lock.md similarity index 100% rename from .changeset/38995-record-page-data-lock.md rename to .changeset/pre/38995-record-page-data-lock.md diff --git a/.changeset/38997-edit-dialog-closed-lock.md b/.changeset/pre/38997-edit-dialog-closed-lock.md similarity index 100% rename from .changeset/38997-edit-dialog-closed-lock.md rename to .changeset/pre/38997-edit-dialog-closed-lock.md diff --git a/.changeset/38997-edit-state-closing-order.md b/.changeset/pre/38997-edit-state-closing-order.md similarity index 100% rename from .changeset/38997-edit-state-closing-order.md rename to .changeset/pre/38997-edit-state-closing-order.md diff --git a/.changeset/39001-strict-read-closure.md b/.changeset/pre/39001-strict-read-closure.md similarity index 100% rename from .changeset/39001-strict-read-closure.md rename to .changeset/pre/39001-strict-read-closure.md diff --git a/.changeset/39008-core-document-text.md b/.changeset/pre/39008-core-document-text.md similarity index 100% rename from .changeset/39008-core-document-text.md rename to .changeset/pre/39008-core-document-text.md diff --git a/.changeset/39023-document-text-followups.md b/.changeset/pre/39023-document-text-followups.md similarity index 100% rename from .changeset/39023-document-text-followups.md rename to .changeset/pre/39023-document-text-followups.md diff --git a/.changeset/39037-search-timing-line.md b/.changeset/pre/39037-search-timing-line.md similarity index 100% rename from .changeset/39037-search-timing-line.md rename to .changeset/pre/39037-search-timing-line.md diff --git a/.changeset/39038-palette-create-as.md b/.changeset/pre/39038-palette-create-as.md similarity index 100% rename from .changeset/39038-palette-create-as.md rename to .changeset/pre/39038-palette-create-as.md diff --git a/.changeset/39038-palette-setup-pages.md b/.changeset/pre/39038-palette-setup-pages.md similarity index 100% rename from .changeset/39038-palette-setup-pages.md rename to .changeset/pre/39038-palette-setup-pages.md diff --git a/.changeset/39039-queue-api-name-locale.md b/.changeset/pre/39039-queue-api-name-locale.md similarity index 100% rename from .changeset/39039-queue-api-name-locale.md rename to .changeset/pre/39039-queue-api-name-locale.md diff --git a/.changeset/39042-first-run-sidebar-entry.md b/.changeset/pre/39042-first-run-sidebar-entry.md similarity index 100% rename from .changeset/39042-first-run-sidebar-entry.md rename to .changeset/pre/39042-first-run-sidebar-entry.md diff --git a/.changeset/39044-mail-provider-live-unset.md b/.changeset/pre/39044-mail-provider-live-unset.md similarity index 100% rename from .changeset/39044-mail-provider-live-unset.md rename to .changeset/pre/39044-mail-provider-live-unset.md diff --git a/.changeset/39046-access-page-title.md b/.changeset/pre/39046-access-page-title.md similarity index 100% rename from .changeset/39046-access-page-title.md rename to .changeset/pre/39046-access-page-title.md diff --git a/.changeset/39052-nav-item-keywords.md b/.changeset/pre/39052-nav-item-keywords.md similarity index 100% rename from .changeset/39052-nav-item-keywords.md rename to .changeset/pre/39052-nav-item-keywords.md diff --git a/.changeset/39053-setup-ten-group-anchors.md b/.changeset/pre/39053-setup-ten-group-anchors.md similarity index 100% rename from .changeset/39053-setup-ten-group-anchors.md rename to .changeset/pre/39053-setup-ten-group-anchors.md diff --git a/.changeset/39054-sidebar-group-memory.md b/.changeset/pre/39054-sidebar-group-memory.md similarity index 100% rename from .changeset/39054-sidebar-group-memory.md rename to .changeset/pre/39054-sidebar-group-memory.md diff --git a/.changeset/39055-palette-nav-keywords.md b/.changeset/pre/39055-palette-nav-keywords.md similarity index 100% rename from .changeset/39055-palette-nav-keywords.md rename to .changeset/pre/39055-palette-nav-keywords.md diff --git a/.changeset/39057-setup-platform-items-regrouped.md b/.changeset/pre/39057-setup-platform-items-regrouped.md similarity index 100% rename from .changeset/39057-setup-platform-items-regrouped.md rename to .changeset/pre/39057-setup-platform-items-regrouped.md diff --git a/.changeset/39062-account-menu-setup-entry.md b/.changeset/pre/39062-account-menu-setup-entry.md similarity index 100% rename from .changeset/39062-account-menu-setup-entry.md rename to .changeset/pre/39062-account-menu-setup-entry.md diff --git a/.changeset/39066-lint-walk-forms.md b/.changeset/pre/39066-lint-walk-forms.md similarity index 100% rename from .changeset/39066-lint-walk-forms.md rename to .changeset/pre/39066-lint-walk-forms.md diff --git a/.changeset/39068-deps-refresh.md b/.changeset/pre/39068-deps-refresh.md similarity index 100% rename from .changeset/39068-deps-refresh.md rename to .changeset/pre/39068-deps-refresh.md diff --git a/.changeset/39075-chat-answer-diagram.md b/.changeset/pre/39075-chat-answer-diagram.md similarity index 100% rename from .changeset/39075-chat-answer-diagram.md rename to .changeset/pre/39075-chat-answer-diagram.md diff --git a/.changeset/39080-objectql-plan-read-scope.md b/.changeset/pre/39080-objectql-plan-read-scope.md similarity index 100% rename from .changeset/39080-objectql-plan-read-scope.md rename to .changeset/pre/39080-objectql-plan-read-scope.md diff --git a/.changeset/39081-comment-thread-participants.md b/.changeset/pre/39081-comment-thread-participants.md similarity index 100% rename from .changeset/39081-comment-thread-participants.md rename to .changeset/pre/39081-comment-thread-participants.md diff --git a/.changeset/39082-grid-row-comment-dot.md b/.changeset/pre/39082-grid-row-comment-dot.md similarity index 100% rename from .changeset/39082-grid-row-comment-dot.md rename to .changeset/pre/39082-grid-row-comment-dot.md diff --git a/.changeset/39083-record-discussion-unit.md b/.changeset/pre/39083-record-discussion-unit.md similarity index 100% rename from .changeset/39083-record-discussion-unit.md rename to .changeset/pre/39083-record-discussion-unit.md diff --git a/.changeset/39084-comment-threads-query.md b/.changeset/pre/39084-comment-threads-query.md similarity index 100% rename from .changeset/39084-comment-threads-query.md rename to .changeset/pre/39084-comment-threads-query.md diff --git a/.changeset/39085-list-comments-column.md b/.changeset/pre/39085-list-comments-column.md similarity index 100% rename from .changeset/39085-list-comments-column.md rename to .changeset/pre/39085-list-comments-column.md diff --git a/.changeset/39086-phone-list-comments-page.md b/.changeset/pre/39086-phone-list-comments-page.md similarity index 100% rename from .changeset/39086-phone-list-comments-page.md rename to .changeset/pre/39086-phone-list-comments-page.md diff --git a/.changeset/39098-build-protocol-range.md b/.changeset/pre/39098-build-protocol-range.md similarity index 100% rename from .changeset/39098-build-protocol-range.md rename to .changeset/pre/39098-build-protocol-range.md diff --git a/.changeset/39101-artifact-door-replays-form-move.md b/.changeset/pre/39101-artifact-door-replays-form-move.md similarity index 100% rename from .changeset/39101-artifact-door-replays-form-move.md rename to .changeset/pre/39101-artifact-door-replays-form-move.md diff --git a/.changeset/39101-form-move-walk-once.md b/.changeset/pre/39101-form-move-walk-once.md similarity index 100% rename from .changeset/39101-form-move-walk-once.md rename to .changeset/pre/39101-form-move-walk-once.md diff --git a/.changeset/39108-contributed-group-renamed-from-clash.md b/.changeset/pre/39108-contributed-group-renamed-from-clash.md similarity index 100% rename from .changeset/39108-contributed-group-renamed-from-clash.md rename to .changeset/pre/39108-contributed-group-renamed-from-clash.md diff --git a/.changeset/39114-email-logged-status.md b/.changeset/pre/39114-email-logged-status.md similarity index 100% rename from .changeset/39114-email-logged-status.md rename to .changeset/pre/39114-email-logged-status.md diff --git a/.changeset/39117-remove-member-field.md b/.changeset/pre/39117-remove-member-field.md similarity index 100% rename from .changeset/39117-remove-member-field.md rename to .changeset/pre/39117-remove-member-field.md diff --git a/.changeset/39126-decision-admission.md b/.changeset/pre/39126-decision-admission.md similarity index 100% rename from .changeset/39126-decision-admission.md rename to .changeset/pre/39126-decision-admission.md diff --git a/.changeset/39142-comment-thread-root.md b/.changeset/pre/39142-comment-thread-root.md similarity index 100% rename from .changeset/39142-comment-thread-root.md rename to .changeset/pre/39142-comment-thread-root.md diff --git a/.changeset/39149-install-doors-upgrade-confirm.md b/.changeset/pre/39149-install-doors-upgrade-confirm.md similarity index 100% rename from .changeset/39149-install-doors-upgrade-confirm.md rename to .changeset/pre/39149-install-doors-upgrade-confirm.md diff --git a/.changeset/39171-phone-comments-thread-record-name.md b/.changeset/pre/39171-phone-comments-thread-record-name.md similarity index 100% rename from .changeset/39171-phone-comments-thread-record-name.md rename to .changeset/pre/39171-phone-comments-thread-record-name.md diff --git a/.changeset/applied-wording-followup-38879.md b/.changeset/pre/applied-wording-followup-38879.md similarity index 100% rename from .changeset/applied-wording-followup-38879.md rename to .changeset/pre/applied-wording-followup-38879.md diff --git a/.changeset/read-boundary-organization-wall.md b/.changeset/pre/read-boundary-organization-wall.md similarity index 100% rename from .changeset/read-boundary-organization-wall.md rename to .changeset/pre/read-boundary-organization-wall.md diff --git a/.changeset/studio-locale-help-app-studio.md b/.changeset/pre/studio-locale-help-app-studio.md similarity index 100% rename from .changeset/studio-locale-help-app-studio.md rename to .changeset/pre/studio-locale-help-app-studio.md diff --git a/.changeset/withdrawal-reads-every-package-binding.md b/.changeset/pre/withdrawal-reads-every-package-binding.md similarity index 100% rename from .changeset/withdrawal-reads-every-package-binding.md rename to .changeset/pre/withdrawal-reads-every-package-binding.md diff --git a/examples/app-crm/CHANGELOG.md b/examples/app-crm/CHANGELOG.md index d0b8f2489a1..565884ea4f8 100644 --- a/examples/app-crm/CHANGELOG.md +++ b/examples/app-crm/CHANGELOG.md @@ -1,5 +1,63 @@ # @objectstack/example-crm +## 4.0.107-next.4 + +### Patch Changes + +- 7625001: examples(crm): the public Web-to-Lead form is a `form` item + + Clause-②: no + Metadata-protocol: none + + The Web-to-Lead form moves out of `crm_lead`'s view container (its `formViews.web_to_lead` entry) into `src/forms/lead.form.ts`, a `defineForm` item named `crm_lead.web_to_lead` and listed in the stack's `forms:`. Its name, sections and submit answer stay as they were, and `GET /api/v1/meta/form` names the same form, now authored rather than projected. The lead view container now declares lists only. + + **The public address moves from `/forms/contact-us` to `/forms/web-to-lead`** (`GET /api/v1/forms/web-to-lead`, `POST /api/v1/forms/web-to-lead/submit`). The showcase example's contact form holds `/forms/contact-us`, and two `form` items may not share one public address, so installing the CRM example into an environment that runs the showcase was refused (`409 FORM_ADDRESS_TAKEN`). An embed or link that pointed at the CRM example's `/forms/contact-us` must point at `/forms/web-to-lead`. The resolve door answers the same body at the new address, less the old shape's `form.data` binding. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [0fff9ae] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/service-i18n@19.0.0-next.4 + ## 4.0.107-next.3 ### Patch Changes diff --git a/examples/app-crm/package.json b/examples/app-crm/package.json index cba1eeee91c..502f2e1b74b 100644 --- a/examples/app-crm/package.json +++ b/examples/app-crm/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-crm", - "version": "4.0.107-next.3", + "version": "4.0.107-next.4", "description": "Minimal CRM example \u2014 a smoke-test workspace that exercises the metadata loading pipeline (objects \u2192 views \u2192 app \u2192 dashboard \u2192 hook \u2192 flow \u2192 seed). For a full-featured enterprise CRM see https://github.com/objectstack-ai/hotcrm.", "license": "Apache-2.0", "private": true, diff --git a/examples/app-multi-package/CHANGELOG.md b/examples/app-multi-package/CHANGELOG.md index 57b56618bd3..07231a54553 100644 --- a/examples/app-multi-package/CHANGELOG.md +++ b/examples/app-multi-package/CHANGELOG.md @@ -1,5 +1,46 @@ # @objectstack/example-multi-package +## 0.0.14-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + ## 0.0.14-next.3 ### Patch Changes diff --git a/examples/app-multi-package/package.json b/examples/app-multi-package/package.json index d68b30d13d3..bd578b7acba 100644 --- a/examples/app-multi-package/package.json +++ b/examples/app-multi-package/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-multi-package", - "version": "0.0.14-next.3", + "version": "0.0.14-next.4", "description": "One release artifact carrying TWO packages that share a namespace (ADR-0130 D4) — the producer-side fixture for `packages[]`", "license": "Apache-2.0", "private": true, diff --git a/examples/app-showcase/CHANGELOG.md b/examples/app-showcase/CHANGELOG.md index 55bbc02ea92..92576229d26 100644 --- a/examples/app-showcase/CHANGELOG.md +++ b/examples/app-showcase/CHANGELOG.md @@ -1,5 +1,80 @@ # @objectstack/example-showcase +## 0.3.29-next.4 + +### Patch Changes + +- 7625001: examples(showcase): every named form is a `form` item, and each layout form has an action + + Clause-②: no + Metadata-protocol: none + + The task's default form and its four layout forms (`showcase_task.form`, `.tabbed`, `.wizard`, `.split`, `.quick`) and the public contact form (`showcase_inquiry.contact`, `/forms/contact-us`) move out of their view containers into `src/ui/forms/task.form.ts` and `src/ui/forms/inquiry.form.ts`, `defineForm` items listed in the stack's `forms:` beside the feedback form. Names, sections, links and translations stay as they were; the contact form's thank-you translation moves from `objects.showcase_inquiry._views.contact.submitBehavior` to `forms['showcase_inquiry.contact'].submitBehavior`. The task and inquiry view containers now declare lists only. + + Each layout form gets one form action as its door: **New Task (Tabbed)** and **New Task (Wizard)** on the task list toolbar, and **Edit in Tabs** (`split`) and **Quick Edit** on a task row. Before, those four forms were reachable only by typing their `/forms/NAME` address. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [4d9d12a] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [0fff9ae] +- Updated dependencies [5161056] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [712b102] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [9a13387] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/service-knowledge@19.0.0-next.4 + - @objectstack/service-print@19.0.0-next.4 + - @objectstack/connector-mcp@19.0.0-next.4 + - @objectstack/cloud-connection@19.0.0-next.4 + - @objectstack/driver-sql@19.0.0-next.4 + - @objectstack/organizations@19.0.0-next.4 + - @objectstack/connector-openapi@19.0.0-next.4 + - @objectstack/connector-rest@19.0.0-next.4 + - @objectstack/connector-slack@19.0.0-next.4 + - @objectstack/knowledge-memory@19.0.0-next.4 + - @objectstack/service-datasource@19.0.0-next.4 + - @objectstack/service-i18n@19.0.0-next.4 + - @objectstack/service-record-context@19.0.0-next.4 + ## 0.3.29-next.3 ### Patch Changes diff --git a/examples/app-showcase/package.json b/examples/app-showcase/package.json index 8e5f67ae818..7003105dfba 100644 --- a/examples/app-showcase/package.json +++ b/examples/app-showcase/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-showcase", - "version": "0.3.29-next.3", + "version": "0.3.29-next.4", "description": "Kitchen-sink showcase workspace — exercises every metadata type, every view type, every chart type, and the major end-to-end capability chains (security, automation, analytics). Built for demonstration, debugging, and coverage-driven verification.", "license": "Apache-2.0", "private": true, diff --git a/examples/app-starter/CHANGELOG.md b/examples/app-starter/CHANGELOG.md index fefae670b8e..885b24e4b3a 100644 --- a/examples/app-starter/CHANGELOG.md +++ b/examples/app-starter/CHANGELOG.md @@ -1,5 +1,54 @@ # @objectstack/example-starter +## 0.1.1-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [0fff9ae] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + ## 0.1.1-next.3 ### Patch Changes diff --git a/examples/app-starter/package.json b/examples/app-starter/package.json index 5f7f9299182..9f1d833faa9 100644 --- a/examples/app-starter/package.json +++ b/examples/app-starter/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-starter", - "version": "0.1.1-next.3", + "version": "0.1.1-next.4", "description": "Starter app: companies, contacts and help articles, with the platform's tasks and notes in the menu", "license": "Apache-2.0", "private": true, diff --git a/examples/app-todo/CHANGELOG.md b/examples/app-todo/CHANGELOG.md index e57db04ff41..2cbedbe9855 100644 --- a/examples/app-todo/CHANGELOG.md +++ b/examples/app-todo/CHANGELOG.md @@ -1,5 +1,72 @@ # @objectstack/example-todo +## 4.0.107-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [4d9d12a] +- Updated dependencies [44d0f88] +- Updated dependencies [38ab473] +- Updated dependencies [1095535] +- Updated dependencies [0fff9ae] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [712b102] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [9a13387] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/client@19.0.0-next.4 + - @objectstack/mcp@19.0.0-next.4 + - @objectstack/service-knowledge@19.0.0-next.4 + - @objectstack/metadata@19.0.0-next.4 + - @objectstack/driver-sqlite-wasm@19.0.0-next.4 + - @objectstack/knowledge-memory@19.0.0-next.4 + - @objectstack/service-i18n@19.0.0-next.4 + ## 4.0.107-next.3 ### Patch Changes diff --git a/examples/app-todo/package.json b/examples/app-todo/package.json index eff7f170b12..127e2846781 100644 --- a/examples/app-todo/package.json +++ b/examples/app-todo/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-todo", - "version": "4.0.107-next.3", + "version": "4.0.107-next.4", "description": "Example Todo App using ObjectStack Protocol", "license": "Apache-2.0", "private": true, diff --git a/examples/embed-objectql/CHANGELOG.md b/examples/embed-objectql/CHANGELOG.md index 3cde3b99828..264a6c7fad1 100644 --- a/examples/embed-objectql/CHANGELOG.md +++ b/examples/embed-objectql/CHANGELOG.md @@ -1,5 +1,54 @@ # @objectstack/example-embed-objectql +## 0.0.47-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/driver-memory@19.0.0-next.4 + ## 0.0.47-next.3 ### Patch Changes diff --git a/examples/embed-objectql/package.json b/examples/embed-objectql/package.json index e39c34cf439..37e2493e039 100644 --- a/examples/embed-objectql/package.json +++ b/examples/embed-objectql/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/example-embed-objectql", - "version": "0.0.47-next.3", + "version": "0.0.47-next.4", "private": true, "description": "Embed the ObjectQL engine as a plain library via @objectstack/objectql/core — no kernel, no plugins, no metadata protocol (ADR-0076).", "type": "module", diff --git a/packages/adapters/hono/CHANGELOG.md b/packages/adapters/hono/CHANGELOG.md index 515d2c73678..a44a2743eac 100644 --- a/packages/adapters/hono/CHANGELOG.md +++ b/packages/adapters/hono/CHANGELOG.md @@ -1,5 +1,23 @@ # @objectstack/hono +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [f42afe7] +- Updated dependencies [440574f] +- Updated dependencies [e542b7b] +- Updated dependencies [670bc89] +- Updated dependencies [0fff9ae] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [4a3b532] +- Updated dependencies [7814822] +- Updated dependencies [cef9a80] + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/plugin-hono-server@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/adapters/hono/package.json b/packages/adapters/hono/package.json index b16a33ff28c..80f22e6e6d3 100644 --- a/packages/adapters/hono/package.json +++ b/packages/adapters/hono/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/hono", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "type": "commonjs", "main": "dist/index.js", diff --git a/packages/apps/account/CHANGELOG.md b/packages/apps/account/CHANGELOG.md index 52afda537bb..d0687fb736e 100644 --- a/packages/apps/account/CHANGELOG.md +++ b/packages/apps/account/CHANGELOG.md @@ -1,5 +1,50 @@ # @objectstack/account +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/apps/account/package.json b/packages/apps/account/package.json index b864bf78744..ae1df0481a9 100644 --- a/packages/apps/account/package.json +++ b/packages/apps/account/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/account", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack Account — the end-user account/self-service console app, packaged as its own ObjectStack app package (ADR-0048: one app per package).", "type": "commonjs", diff --git a/packages/apps/connector-docusign/CHANGELOG.md b/packages/apps/connector-docusign/CHANGELOG.md index e3d78ae13d2..2a7d0c35dab 100644 --- a/packages/apps/connector-docusign/CHANGELOG.md +++ b/packages/apps/connector-docusign/CHANGELOG.md @@ -1,5 +1,47 @@ # @objectstack/connector-app-docusign +## 0.1.5-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/connector-openapi@19.0.0-next.4 + ## 0.1.5-next.3 ### Patch Changes diff --git a/packages/apps/connector-docusign/package.json b/packages/apps/connector-docusign/package.json index 08bcfb60948..35271603be8 100644 --- a/packages/apps/connector-docusign/package.json +++ b/packages/apps/connector-docusign/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-app-docusign", - "version": "0.1.5-next.3", + "version": "0.1.5-next.4", "description": "DocuSign eSignature connector app (open edition, sandbox first): DocuSign's eSignature OpenAPI document, trimmed offline to three envelope operations, as a declarative `openapi` connector instance authorized by OAuth 2.0 (`authorization_code`) with an OAuth client each deployment's administrator registers and enters on the connection.", "license": "Apache-2.0", "private": true, diff --git a/packages/apps/connector-github/CHANGELOG.md b/packages/apps/connector-github/CHANGELOG.md index 0567b385384..8672687e128 100644 --- a/packages/apps/connector-github/CHANGELOG.md +++ b/packages/apps/connector-github/CHANGELOG.md @@ -1,5 +1,48 @@ # @objectstack/connector-app-github +## 0.1.5-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [9a13387] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/connector-mcp@19.0.0-next.4 + ## 0.1.5-next.3 ### Patch Changes diff --git a/packages/apps/connector-github/package.json b/packages/apps/connector-github/package.json index 70dbf9aeac6..433589b886e 100644 --- a/packages/apps/connector-github/package.json +++ b/packages/apps/connector-github/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-app-github", - "version": "0.1.5-next.3", + "version": "0.1.5-next.4", "description": "GitHub connector app (open edition): GitHub's remote MCP server as a declarative `mcp` connector instance with a read-tool allowlist, authenticated by a personal access token the administrator supplies through the credential store.", "license": "Apache-2.0", "private": true, diff --git a/packages/apps/connector-stripe/CHANGELOG.md b/packages/apps/connector-stripe/CHANGELOG.md index 24fe2452e27..655d3d3d07b 100644 --- a/packages/apps/connector-stripe/CHANGELOG.md +++ b/packages/apps/connector-stripe/CHANGELOG.md @@ -1,5 +1,47 @@ # @objectstack/connector-app-stripe +## 0.1.5-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/connector-openapi@19.0.0-next.4 + ## 0.1.5-next.3 ### Patch Changes diff --git a/packages/apps/connector-stripe/package.json b/packages/apps/connector-stripe/package.json index e3d2ff65093..01777f0f295 100644 --- a/packages/apps/connector-stripe/package.json +++ b/packages/apps/connector-stripe/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-app-stripe", - "version": "0.1.5-next.3", + "version": "0.1.5-next.4", "description": "Stripe connector app (open edition, read only): Stripe's OpenAPI document, trimmed offline to eight read operations, as a declarative `openapi` connector instance authenticated by a restricted secret key the administrator supplies through the credential store.", "license": "Apache-2.0", "private": true, diff --git a/packages/apps/setup/CHANGELOG.md b/packages/apps/setup/CHANGELOG.md index e7f2c5b8c03..377e80146f3 100644 --- a/packages/apps/setup/CHANGELOG.md +++ b/packages/apps/setup/CHANGELOG.md @@ -1,5 +1,50 @@ # @objectstack/setup +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/apps/setup/package.json b/packages/apps/setup/package.json index ccdaefabb1b..cf69e287c02 100644 --- a/packages/apps/setup/package.json +++ b/packages/apps/setup/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/setup", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack Setup — the platform administration app, packaged as its own ObjectStack app package (ADR-0048: one app per package).", "type": "commonjs", diff --git a/packages/apps/studio/CHANGELOG.md b/packages/apps/studio/CHANGELOG.md index a9f0ece7d29..d3cd938fa9f 100644 --- a/packages/apps/studio/CHANGELOG.md +++ b/packages/apps/studio/CHANGELOG.md @@ -1,5 +1,50 @@ # @objectstack/studio +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/apps/studio/package.json b/packages/apps/studio/package.json index 75cbefb24a0..a4706f47ca7 100644 --- a/packages/apps/studio/package.json +++ b/packages/apps/studio/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/studio", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack Studio — the metadata builder app, packaged as its own ObjectStack app package (ADR-0048: one app per package).", "type": "commonjs", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 2b2464cd3f3..bafe25521af 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,396 @@ # @objectstack/cli +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 3c617a2: feat: forms leave `view` — the protocol-19 form move and its switch command (ADR-0159 card ⑤b, part 1) + + Clause-②: yes + Metadata-protocol: none + + **Sources.** `os migrate meta --from 18` moves each form a stack authors in `views[]` — a container's `form`, a `formViews` entry, a `viewKind: 'form'` item — to `forms[]`, under the name it is served as today, its binding lifted to `object` and its body at the top level, with its `sharing` block, switch and `overrides` declaration as written (conversion `view-forms-to-form-items`). An internal record form (a record-form slot, no public link, no `type: 'form'` action that opens it, no `overrides`) is deleted: New and Edit lay a record out by the object's field groups. A form that declares a public link, switched on or off, is never deleted, and an item that declares `overrides` always moves. A container left with no member is removed. A translation bundle's `objects.OBJECT._views.KEY.title` and `.submitBehavior` move to `forms['OBJECT.KEY']` for each form that is a `forms[]` item after the move (conversion `translation-view-form-tails-to-forms`); `label` and `description` stay. What the move cannot decide — a form whose `data.object` disagrees with its container, a non-object `data` binding, a key a `form` item does not carry, a name `forms[]` already holds, an unreadable body, two forms on one public address, a moved override for `os validate`, the translation tails of a form left in `views[]` or named by no `forms[]` item, a translation tail `forms` already holds, a `_views` label of a moved form — is left in place or moved as written and listed per site by `os migrate meta`. The two semantic entries are `view-forms-move-to-form-type` and `translation-form-tails-move-to-forms`. + + **Stored rows are not rewritten by the conversions.** `view-forms-to-form-items` and `translation-view-form-tails-to-forms` are on the stored seam's `STORED_ROWS_NOT_REWRITTEN`: a stored `view` row keeps its forms, read through the projection, and a stored translation row keeps the `_views` tails those forms are read through. The artifact forward door (`@objectstack/metadata-core`) refuses both by id too, so an installed package keeps its forms in `views[]`, read through the projection, until the deployment switches. + + **`os migrate protocol --to 19`** is the deployment's switch. It previews by default (the stored-form census, and whether the deployment can switch; exit 1 when a row holds it, each row with the action for its cause). `--apply` runs the stored-form ceremony all or nothing, runs the census again, and only when nothing is left to move or remove records a verified `sys_migration` row, `adr-0159-form-type-switch` (`FORM_TYPE_SWITCH_MIGRATION_ID` in `@objectstack/spec/system`). A held run writes nothing, the marker included; a database whose driver cannot roll back is refused first. + + `form-view-modal-size-removed` now applies after the move (its result over sources is unchanged; its notice names the form's address on 19). `@objectstack/lint` adds `shippedFormNames` (what a package ships as `form`, in either type, through the projection) and D7-b's rule `form-override-base-ships-no-form` with its remedy, which `os validate` prints for an override of a form its base does not ship: remove the item, or correct the name. +- 3872243: feat(platform-objects, service-segmenter): the 检索词条 object `sys_search_term`, the administrator's search words + + Clause-②: yes + Metadata-protocol: none + + `@objectstack/platform-objects` declares `sys_search_term` (检索词条, Search Term): one record per word an administrator adds to search, one set for the whole deployment (no organization column). Fields: `term`, `kind` (`word` custom word or `stop_word`), `purpose` (`knowledge`, `record_search` or `both`; default `knowledge`, the only one implemented), `knowledge_source` (one knowledge source; empty for every source), `enabled` (default on) and `note`. `term`, `kind`, `purpose` and `enabled` are the segmenter contract's `SegmenterEntry` one to one. The object is `system-data` with CSV import opted in, so New, Edit, Delete, Import, Export and record history are the platform's own; every operation, writes included, requires `manage_platform_settings`. A record that disables a platform word (年假, 脱密, 应急采购, …) is refused: those words live in the segmenter's read-only dictionary, so make one a stop word instead. A platform stop word can be disabled. The platform words move here as `PLATFORM_SEARCH_WORDS`, and the segmenter's `PLATFORM_WORDS` reads them, so the object and the service hold one list. + + `@objectstack/service-segmenter`: `SegmenterServicePlugin` registers `sys_search_term` on the manifest service (`SEARCH_TERM_BUNDLE_ID`), with no Setup entry. Nothing reads the records yet: the knowledge service passes them to the segmenter in a later release, and the object gets its Setup entry then. + + `@objectstack/spec` lists `sys_search_term` among the platform-provided object names. `@objectstack/cli` gives it a row in the organization-ownership inventory (no organization column to drop). +- 30aee20: fix(cli): an inline action target whose parameters are not named `(input, ctx)` is lowered with them bound + + Clause-②: no + Metadata-protocol: none + + `os build` lowers an inline action `target` to a body that the runtime runs as `(async (input, ctx) => { … })`. A target that named its parameters anything else shipped those names unbound: `target: async (input, c) => { c.log.info('x') }` lowered to `c.log.info('x')` with no `log` capability, and every call of the action failed with `ReferenceError: 'c' is not defined` (`500` over REST). A renamed or destructured first parameter (`async (args, ctx) => …`, `async ({ note }, ctx) => …`) failed the same way. + + Each renamed parameter is now re-emitted as the body's first statement onto the binding at its position, as a hook handler's parameter already is: `async (input, c) => { … }` ships as `var c = ctx; …`, `async ({ note }, ctx) => { … }` as `var { note } = input; …`. A renamed second parameter is read as the context for capability inference, so `c.log.info(…)` infers `log` exactly as `ctx.log.info(…)` does, and `os lint` judges the lowered body the same way. A target whose first two parameters are each plainly `input` or `ctx` ships byte-identically to before. + + What cannot be re-emitted faithfully is refused at build with a warning naming the parameter, and the action gets no body: a default value or a rest parameter on a renamed parameter, `input` or `ctx` bound at the other position beside a renamed parameter (`(c, input)`, `(ctx, c)`, or a pattern binding either name), a body that declares a rebound name, `input` or `ctx` with `let` / `const` / `class` / `function`, and a destructured `log` / `crypto` / `email` / `activity` taken apart further than one plain name. The fix is to name the parameters `(input, ctx)`. Before, each of these shipped a body that threw or read the wrong value at its call. +- 197e3ff: fix(cli, lint): `os build` and the body-capability rule count "declared once" the same way + + Clause-②: no + Metadata-protocol: none + + An inline hook or action handler can reach a gated `ctx` member through a local: a context root (`const c = ctx`, or a renamed handler parameter) or a member alias (`const l = c.log`, `const { log } = c`). Both `os build`, which infers the body's capabilities, and the `hook-body-capability-undeclared` / `action-body-capability-undeclared` / `action-body-write-capability-undeclared` publish check read such a local only when it is declared once and never assigned again, but they counted differently. So the build could lower a handler with no grant that the check then refused, such as `async (e) => { const { log } = e; try { … } catch (e) { log.error('x') } }`, or the check could miss a call the build granted. + + Both sides now count the same way: + + - A declaration is every declarator of a `const`, `let` or `var` list: a name, or an object or array pattern at any depth, in any position of the list. The check now reads `const c = ctx, l = c.log` and `const a = 1, { log } = ctx`. It no longer reads a name that an array pattern declares a second time. + - A `catch` binding is not a declaration, like a nested function's parameter. The build now infers `log` for the body above and for `const log = ctx.log; … catch (log) {} log.info('x')`, so the lowered body runs. A read of the catch binding inside its own block is taken as the outer local. That can grant a token the call never uses, which never causes a refusal. + - A destructuring assignment (`[c] = …`, `({ c } = …)`) and a `for (c of …)` / `for (c in …)` head assign the name again, as `c = …` does. + - A member alias or a destructure counts only when its value is the member or the context itself, as a root already did. `const l = ctx.log || null` is no alias on either side. + + The check also reads a semicolon-free body the way JavaScript does. A root ends at a line break when the next line opens with `++`, `--`, `!`, `~`, a string or number literal, `{` or a non-ASCII identifier, and a lone `\r`, U+2028 or U+2029 is a line break. `i++` at the end of a line steps `i`, not the name that opens the next line. + + What changes for authors: a new finding falls on a body whose gated call the sandbox already refuses (403 at the call), so no body that runs today is newly refused. The one exception is a case that already exists: the count does not follow scopes, so a nested function whose parameter has the same name as a root is read as that root. That case now also applies to a root declared later in a list. A freshly built body is granted the same capability, so only a hand-written body with no grant can see that finding. A finding the check drops is on a shape `os build` grants nothing for either (a name declared twice, assigned again, or bound to an expression on the member). A hand-written body of that shape with no grant is refused by the sandbox at the call, as before, and no longer also by the check. +- 4b56189: fix(cli): `os migrate meta --write` writes through the scaffold's `exportsOf(…)` wiring, and no run says "Applied" for edits it has not written + + Clause-②: no + Metadata-protocol: none + + **The stock template now upgrades by itself.** Every project scaffolded by `create-objectstack` wires its collections through one local helper, `const exportsOf = (barrel) => Object.values(barrel)` (typed in the current template), so `views: exportsOf(views)`. `--write` read that as an opaque call and left every site for the author (`not written [helper]: the value is built by exportsOf(…)`), so an 18.x project moving to 19 got 0 of its edits written. It now reads a project's own one-line forwarding wrapper of `Object.values` as the call it wraps and follows the barrel to the module files, as it already did for `Object.values(views)`: the scaffold reproduction writes 3 of 3 and the re-run over the written sources is clean. A wrapper is followed only when the walk can prove it forwards: a module-level `const` arrow or function expression, or a `function` declaration nothing reassigns, reached locally or through a relative import, with one plain parameter and a body that is `Object.values(param)` or `param` itself. Anything else (a filter, a sort, a second statement, a default or extra parameter, a `let`) is still refused as a `helper`, and nothing is guessed. + + **A stack the writer cannot follow now says so first, and points at each site.** When `--write` writes none of the chain's edits, the first line of its group reads `0 of N mechanical change(s) written — your stack is built by \`createAppStack(…)\`, which --write cannot follow to the sources; apply these by hand …`, naming each call that blocked the walk. Every site left for the author also gets a `found at FILE:LINE` line when exactly one object literal in the project matches the site's element by content (by its `name`, or by at least two of its values). That line is a pointer for the hand edit, not a proven source, so `--write` never writes it. Measured on a real seven-package app built by factories: 146 of its 154 sites carry one; the 8 without are translation keys assembled from merged bundles. + + **Wording.** The mechanical-change group no longer opens with "Applied N mechanical change(s)", which read as done before anything was written. A dry run prints `Would apply N mechanical change(s) (a dry run: no source is written without --write):`, and a `--write` run prints `N mechanical change(s) to apply (what --write wrote is reported below):`, then its `Wrote K of N` (or `0 of N … written`) line. The `--json` payload is unchanged. +- a533126: Clause-②: no + Metadata-protocol: none + + `os migrate meta --write` no longer throws away the edits that stand on their own when part of the write cannot be made. + + - A conversion that reports one move at several sites (a view's `bulkActions` removal and the `selection` additions on the actions it names) is written together or not at all. When one of those sites cannot be written (an action built by a helper the writer cannot follow), the whole pair is left, and the run names it: each site with its file and line, or why it cannot be written, and the files the pair is in. Which sites pair is asked of the chain itself, in memory, before anything is written. + - Every other edit is written and stays written: action-location renames, other views whose pairs can be written whole, and the declared `engines.protocol` range. + - The re-run over the written sources puts back only the edits it disagrees with (listed as `not written [unverified]`) and writes the rest again; only a disagreement no written edit can be tied to restores every file. + - A partial write says so on the write group's first line: `Wrote N of M mechanical change(s) into F file(s); K left because of …`. + - A `--write` that leaves any mechanical change, or the declared range, by hand now exits 1. A write that left nothing exits 0 as before. + - `--json`: `write` gains `pairs` (each pair's sites and files) when a pair was left; every existing field is unchanged. +- 491ea82: fix(migrate): `os migrate meta --stored` judges a stored view's `bulkActions` with the actions the deployment declares, and is not green over a row the runtime serves invalid + + Clause-②: no + Metadata-protocol: none + + **A stored view's `bulkActions`.** The stored pass replays the conversion chain over each `sys_metadata` row on its own, so a Studio-saved list view whose `list` still carried `bulkActions` was told its actions were "not declared as an action of that object", even where the package declares them on that object. The pass now runs the same conversion (`view-bulk-actions-to-action-selection`) again for such a row, with the deployment's declared objects and actions beside it, as the registry holds them: + + - the package's actions already carry the `selection` location, and no `actionLayout.selection` is needed: the view row alone is the write, so it is listed as pending and `--stored --apply` rewrites it without `bulkActions`; + - the actions are declared but still lack `selection` (or the bar's order needs the object's `actionLayout.selection`): that write is the package's, not the row's, so the row stays as stored and its TODO says so. It names the actions and both fixes: add `'selection'` to those actions in the package source and deploy it, or re-save the view without `bulkActions`; + - an action really is undeclared, two lists order the bar differently, or the object already declares an arm: the conversion's own reason, now given with the actions in view. + + **Rows the runtime serves invalid.** Each row whose body the pass reads is judged with the runtime's own check. That is the body the boot hydration registers for the row (`convertStoredItem`), validated by `computeMetadataDiagnostics`, the check behind the `[metadata_spec_invalid]` boot line and the reads' `_diagnostics` badge. A row that fails it carries `servedInvalid: { path, message }`, and the report counts them in `servedInvalid`. `storedMigrationClean` is false while that count is not zero, so `os migrate meta --stored` exits 1. The output lists each such row with its id, the site the schema refuses and its fix, and says why the run is red. `--json` gains `servedInvalid` (the count, and the per-row field) beside `clean`; no existing field is renamed or removed. Not judged: a row stored under a non-canonical type, an organization-scoped row, and a row the chain yields no item of, because the runtime serves none of them under that type. A row that converts nothing and is served invalid is now listed `skipped` with that reason, where it used to be counted `canonical`. + + **Cost.** A deployment holding an unrelated invalid stored row now goes non-green (exit 1) until that row is fixed. The line names the row and its fix. That includes a row whose only finding is a TODO no conversion can rewrite (for example a `controlled_by_parent` object the protocol refuses): those used to be `skipped` and left the run green. The report-only review lists (stored decision nodes, stored permission-set View All / Modify All entries) are unchanged: they still move no count and no verdict. +- 7f72b49: fix(cli): `os migrate meta --from 18` names each own field row beside Modify All that protocol 19 narrows + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `@objectstack/spec` exports `ownFieldRowsBesideModifyAll` and the types `OwnFieldRowBesideModifyAll`, `OwnFieldRowProtocol18Outcome` and `OwnFieldRowProtocol19Outcome`; `os migrate meta --from N --json` gains the key `ownFieldRowNarrowing`, present only when the list is not empty; `StoredViewAllFieldsReview` (`os migrate meta --stored --json`) gains the optional member `ownFieldRows`, and `@objectstack/metadata-protocol` exports its element type `StoredOwnFieldRow`. Nothing a metadata author writes changes. + + The upgrade text no longer says that the `viewAllFields: true` written beside View All or Modify All keeps every field read. It keeps the field reads the bits cast, except a field the set's own `readable: false` row hides beside Modify All, and it keeps no edit Modify All cast. The protocol-19 behaviour itself is unchanged. + + `os migrate meta --from 18` now lists each own field row beside a Modify All bit that the run writes `viewAllFields: true` beside, where the row's answer changes on protocol 19. Each line names the permission set, the `objects` entry and the field row; what the set's holders got on protocol 18 (read and edit: Modify All voted over the set's own rows); what they get on 19 through that set (`hidden`, `read-only`, `read-only-where-when-matches` for a row-conditioned lock, or `edit-only-where-when-matches` for a row-conditioned edit); and the choice: change the row to keep the protocol-18 answer, or accept the narrowing. Following the choice takes the row off the list. A set that already carries `viewAllFields` beside the bit (a source the edit was applied to) is not listed; review its own rows beside Modify All by hand. Example, for a set with View All and Modify All on `contact` and its own `'contact.salary': { readable: false }` row: + + ```text + 1 own field row(s) beside Modify All that protocol 19 narrows — the `viewAllFields: true` written beside the bit does not keep them: + ⚠ permission set 'hr_manager' (permissions[0]), objects entry 'contact', field row 'contact.salary' + protocol 18: read and edit (Modify All voted over the set's own row) + protocol 19: hidden, no read and no edit (the set's own `readable: false` row binds) + choice: to keep the protocol-18 read and edit, change the row to `readable: true, editable: true`; otherwise accept the narrowing. + ``` + + `--json` carries the same list under `ownFieldRowNarrowing` (`set`, `at`, `object`, `field`, `protocol18`, `protocol19`, `choice`); no other key changes. + + `os migrate meta --stored` names the same rows of a stored permission set under its entry in the View All Fields review list, and its `--json` entries carry them as `ownFieldRows`. View All alone is never listed: on 18.6.0 a set's own row already bound beside its own View All. Protocol 18 here means 18.6.0, the release the card measured. +- 398dc34: fix(cli): `os migrate meta` names the committed access matrix's drift and the `os build` step that clears it + + Clause-②: no + Metadata-protocol: none + + An app that commits `access-matrix.json` next to its config gets the access-matrix gate from `os build`: a matrix that differs from the snapshot fails the build with "Access matrix drift" until `os build --update-access-matrix` rewrites it. A migration edit can move that matrix. The protocol-19 hop writes `viewAllFields: true` beside every View All and Modify All entry, so an 18.x app with such a grant followed `os migrate meta --from 18 --write` and then stopped on a gate nothing in the migration had named. + + `os migrate meta` (authored-source mode) now computes the migrated stack's access matrix with the same `buildAccessMatrix` / `diffAccessMatrix` that `os build` uses, against the same file. When they differ, the report lists every change in `os build`'s own words and prints the next step: `os build --update-access-matrix`, then review and commit the matrix diff. The lead sentence says which sources it is about. On a dry run the edits would move the matrix. After `--write`, the written sources now differ. When `--write` left a change unwritten, the drift is the migrated stack's and the step waits for that change. `--json` adds `accessMatrixDrift` (`path`, `changes`, `next`) only when there is drift. Every other key is unchanged. + + The migration never writes `access-matrix.json` itself. Under ADR-0090 D7 the snapshot's diff is the human review of a capability change, so the command names the drift and leaves the rewrite to `os build --update-access-matrix`. With no `access-matrix.json` it prints nothing, because the build does not gate on it either. The exit code is unchanged. +- 006a607: fix(cli): `os validate` refuses the `engines.protocol` range the boot refuses + + Clause-②: no + Metadata-protocol: none + + On a protocol-19 toolchain, a manifest still declaring `engines: { protocol: '^18' }` passed `os validate` at exit 0, with the range shown only as a non-blocking drift warning, while `os dev` and `os serve` refused to start the same config. `os validate` now runs the boot's own protocol handshake ahead of every other check of the stack and exits 1 where the boot refuses, in the boot's words: the code `OS_PROTOCOL_INCOMPATIBLE`, the step `objectstack migrate meta --from 18`, and the registered migration entry that command lists (`protocol-18-range-refused`). `--strict` plays no part: this is an error, not a promoted warning. + + `--json` carries the refusal as one `errors[]` row: `path` (the key the range was read from, e.g. `manifest.engines.protocol`), `code`, `httpStatus`, `message`, `details` (`requiredRange`, `rangeSource`, `protocolVersion`, `targetMajor` and, when there is one, `migrateCommand`) and `migrationEntries`. + + No project that boots changes behaviour: a range the boot admits, including an absent or unrecognised one, validates as before. A project whose range the boot refuses already failed to start; it now fails `os validate` first. To fix it, declare the protocol-19 range, `engines: { protocol: '^19' }`, or run `objectstack migrate meta --from 18 --write`, which rewrites the range of a root `defineStack` manifest. `os build` and `os doctor` are unchanged and still report the range as a warning. +- a294369: fix(spec,cli): `os migrate meta --from 18` proves the protocol-19 notices a stack has no surface for absent, and says why when it cannot + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `MigrationChainResult` (`@objectstack/spec/migrations`) gains the optional member `unanswered` — `{ todos, unread }`, the entries whose relevance question the chain could not answer and what it could not read (`plugins`, `devPlugins`, `tiers`, a key whose value is not a list or a map, an unreadable manifest or package body). It moves nothing off any list; it only says why. `os migrate meta --json` emits it, under the same name, when a question stayed open; otherwise the payload is unchanged. + + Most protocol-19 semantic entries whose surface is metadata authored under top-level stack keys now carry a `relevantWhen` question naming each key it can be written under, nested sites included (an action an object carries inline counts under `objects`). On a stack that declares none of them, the chain proves the entry absent, and `os migrate meta` counts it rather than listing it (`--all` lists it). The rule: a surface that a stored copy of the same metadata also meets still takes a question, since the proof covers the stack the command loads and never what a deployment stores. An entry stays listed to every stack when its surface is host code, a deployment's own state and doors (installed packages, rows written at run time), or something every stack carries, or when its own check runs over the rows a deployment stores — the protocol-19 permission-set field vote and the move of forms out of views among them. No prose is matched. + + The question now also reads the stack's own `manifest`, as it reads a package body: a seed dataset declared under `manifest.data` keeps the seed notices listed. + + `os migrate meta` prints the count of notices proven absent even when it is zero, whenever the run crossed an entry that asks, and says why a question stayed open. A stack that lists a plugin (`plugins:`, `devPlugins:`) or a `tiers` preset proves nothing absent, because a plugin can register metadata at boot that the stack does not show. The 18.x blank template lists three connector plugins, so an app scaffolded from it keeps every notice listed, and the report now says so: + + ``` + 0 more manual change(s) not listed: no surface they ask about was proven absent from this stack. + N of the manual change(s) listed above ask whether this stack declares their surface, and this run could not prove it absent: it cannot read `plugins`. + ``` + + The proof covers the definitions the stack declares. Two sources of metadata are outside it, and the line that scopes the count names both: what a deployment stores (Studio, the metadata API), and what the app's `onEnable` hook registers through the engine it is handed at start. `onEnable` is not treated as a carrier: it is described for action handlers and drivers, and registering metadata there is off-label. + + An app that lists no plugins, such as one scaffolded from the current blank template, sees the protocol-19 notices about agents, knowledge sources and the other surfaces it does not author, among those that carry a question, leave the default list. +- cef9a80: feat(setup): Setup navigation gets ten group anchors; a nav group's `renamedFrom` keeps retired ids working + + Clause-②: yes (widening) + Metadata-protocol: added + + **New key: `renamedFrom` on a group nav item** (`GroupNavItemSchema`, optional, a list of nav ids). It names the group ids the group replaced. A `navigationContributions[]` entry whose `group` names one of them lands in that group instead of the app's top level. The merge looks for an exact group id first and reads `renamedFrom` only when none matches. The app's own parse refuses an entry that is the group's own id, repeats in the list, is an id another entry of the app still declares, or is claimed by a second group, and refuses the key on a group inside `areas[].navigation`, where no contribution is merged. Nothing changes for an app that does not write the key. `@objectstack/spec/ui` exports the check, `checkAppNavGroupRenamedFrom`, and `@object-ui/types`' `AppComponentSchema` chains it and accepts `renamedFrom` on a navigation item, so objectui's validator judges the key as the publish door does instead of dropping it. + + **New warning: `nav_contribution_group_renamed`.** A contribution that names a retired id is logged at `warn` by the runtime and reported by `os build` and `os validate` under its own headline. The message names the package, the retired id and the group that took it over; the fix is to change the contribution's `group` to the new id. It is not a relocation, so the published relocation surface keeps its contract: `NavContributionGroupDiagnostic`, `checkNavContributionGroups()` and `SchemaRegistry#getAppNavDiagnostics()` are unchanged and never carry it (a group id that resolves through `renamedFrom` is not reported there). `@objectstack/objectql` adds `checkNavContributionGroupRenames()` (the compile-time notices, `NavContributionGroupRenamedDiagnostic[]`), `resolveNavGroup()`, `navContributionGroupRenamedDiagnostic()`, `NAV_CONTRIBUTION_GROUP_RENAMED`, and the `NavContributionGroupRenamedDiagnostic` / `NavContributionGroupFinding` (either finding) / `NavGroupResolution` types; `findNavGroup()` now also finds a group through its `renamedFrom`, and `formatNavContributionGroupDiagnostic()` accepts either finding. + + **Setup's anchors.** The System Overview dashboard is pinned above the groups. The groups, in order: `group_users_org`, `group_access_sharing`, `group_apps_ai`, `group_routing_approvals`, `group_audit_data` (expanded), then `group_company`, `group_currency_units`, `group_notifications`, `group_login_security`, `group_integrations_dev` (collapsed), labelled in all 11 Setup locales. Each group that replaced an old anchor lists it in `renamedFrom`, so every existing contribution still lands in the right place, with the warning above. `group_overview` has no successor: a contribution still naming it is appended at the top level with the `nav_contribution_group_missing` warning, and it loses the `manage_platform_settings` gate that group carried. In this repository that is `@objectstack/mcp`'s "Connect an AI Assistant" entry (`nav_connect_agent`, no gate of its own): until its contribution moves to a new anchor it shows at Setup's top level to everyone who can open Setup, not only to holders of `manage_platform_settings`. The page itself was already open to every user through the Account app. + + **What a package author does.** If your package contributes into Setup, change `group` to the new id named in the warning: `group_people_org` → `group_users_org`, `group_access_control` → `group_access_sharing`, `group_apps` → `group_apps_ai`, `group_approvals` → `group_routing_approvals`, `group_diagnostics` → `group_audit_data`, `group_configuration` → `group_company`, `group_integrations` and `group_advanced` → `group_integrations_dev`. A translation bundle keyed by an old group id (`apps.setup.navigation.`) no longer labels anything; key it by the new id. +- dffe83e: feat(plugin-audit): a comment thread stores who took part in it, so "threads involving me" is one filter + + Clause-②: yes (widening) + Metadata-protocol: none + + `sys_comment` gains `participants`, a read-only list of user ids on a thread's top-level comment: its author, the author of every reply at any depth, and everyone any comment of the thread mentions. On a reply it is `null`. "The threads involving me" is now one read: `parent_id: { $null: true }, participants: { $contains: USER_ID }` (element membership on SQLite, PostgreSQL and MySQL). + + The platform keeps the list for every caller: a new top-level comment is stored with its author and the people it mentions; after a reply, after an update that names `mentions`, `parent_id` or `thread_id`, and after a delete, the record's discussion is read again and any list that no longer matches is rewritten (a system write that keeps the comment's `updated_at`). The list is the rule the comment panel's "involving me" filter already applies to a record's loaded threads, and the two are pinned equal. A client's value never lands: the create stamp replaces it silently, an ordinary update has it stripped and reported in `droppedFields`, and an update under `preserveAudit` has it dropped. Who a reply notifies is unchanged. + + The list is eventually consistent: two replies landing together can leave it one reply behind for a moment, and the keeper re-checks after every write it makes until a pass changes nothing. Each rewrite is a system update the audit writer records (a ledger row and an activity row), and deleting a user removes them from every list that names them. + + **After upgrading, run the backfill.** Threads written before this release carry no list, and the filter does not find them until `os migrate comment-participants --apply` writes their lists. Dry run first (`os migrate comment-participants`); it is idempotent, so a second run changes nothing. +- 06d9353: fix(cli): `os build` refuses the `engines.protocol` range the boot refuses + + Clause-②: no + Metadata-protocol: none + + On a protocol-19 toolchain, a manifest still declaring `engines: { protocol: '^18' }` passed `os build` at exit 0 and wrote `dist/objectstack.json`, with the range shown only as a non-blocking drift warning, while `os validate` refused it and `os dev` and `os serve` refused to start it. `os build` (and `os compile`, which `os dev` runs at boot) now makes the same protocol check `os validate` makes, right after the config loads, ahead of every other check of the stack and before anything is written. Where the boot refuses the range, the build exits 1 in the boot's words: the code `OS_PROTOCOL_INCOMPATIBLE`, the step `objectstack migrate meta --from 18`, and the registered migration entry that command lists (`protocol-18-range-refused`). No flag changes this. A refused build leaves no artifact, no runtime bundle and no access-matrix snapshot behind. + + `--json` answers `success: false` with the refusal as the one `errors[]` row `os validate --json` gives for the same project: `path`, `code`, `httpStatus`, `message`, `details` and `migrationEntries`. + + No project that boots changes behaviour: a range the boot admits, including an absent or unrecognised one, builds as before. A project whose range the boot refuses already failed to start; it now fails `os build` first. To fix it, declare the protocol-19 range, `engines: { protocol: '^19' }`, or run `objectstack migrate meta --from 18 --write`, which rewrites the range of a root `defineStack` manifest. `os doctor` is unchanged and still reports the range as a warning. +- 3dc3983: perf(plugin-audit): the comment threads read counts replies with one grouped read, and pages at PostgreSQL microsecond precision without skipping a thread + + Clause-②: yes (widening) + Metadata-protocol: none + + `sys_comment` gains `thread_root_id`, a read-only column the platform writes on each reply: the id of the top-level comment the reply's `parent_id` chain leads to within its record's discussion, or the reply's own id when it is in no thread; `null` on a top-level comment. A reply belongs to a thread up to 15 levels below its top-level comment, the rule a thread's participants are already kept by; a reply 16 or more levels deep belongs to none. The create stamps a reply from its parent, and the keeper that maintains `participants` corrects every stamped root of a discussion in the same reconcile and the same system write (the comment's `updated_at` kept), so a re-point or a delete moves the roots under it. After a write it stamps only the rows that write wrote, so a reply on a discussion full of older replies never turns into one system update (with its audit and activity rows) per older reply. A client's value never lands: the create stamp replaces it, an ordinary update has it stripped and reported in `droppedFields`, and an update under `preserveAudit` has it dropped. + + The comment threads read (`POST /api/v1/comments/threads/query`) now takes each thread's reply count and latest distinct repliers from one grouped read of the page's replies by that column, and one read of each candidate replier's newest reply, as the caller. Before, it read every reply on the page's records and followed `parent_id` in the server. The answer's shape is unchanged. Two latest repliers who replied in the same millisecond are ordered by id. The exported `CommentThreadsEngine` type now requires `aggregate`, and without one the read answers 503. One count differs: a reply exactly 16 levels deep was counted before and is not now, matching the rule the participants list and the comment panel follow. + + The read's cursor now pages by the millisecond a thread was created in, then by id, compared at the millisecond on both sides. PostgreSQL stores microseconds while every read hands back milliseconds, so two threads a database default stamped microseconds apart could be skipped at a page edge. A page whose last millisecond may hold more threads ends with that millisecond read again by id, so the page and the cursor agree. A cursor issued before this release still reads. + + **After upgrading, run the backfill.** Replies written before this release carry no root. The read still counts them, by following each one up its chain, so no count drops, but that read grows with the number of such replies. `os migrate comment-participants --apply` stamps them (dry run first, `os migrate comment-participants`; idempotent). Until it runs, they stay unstamped: a later reply or a re-point stamps only the rows it wrote, so that a user's request never pays for a discussion's backlog. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [2595004] +- Updated dependencies [e542b7b] +- Updated dependencies [00f97b3] +- Updated dependencies [ca26605] +- Updated dependencies [fbee4b7] +- Updated dependencies [f13adae] +- Updated dependencies [ad83af4] +- Updated dependencies [1aa9c57] +- Updated dependencies [8338d07] +- Updated dependencies [f3f3265] +- Updated dependencies [828b6ec] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [d9b72aa] +- Updated dependencies [4d9d12a] +- Updated dependencies [197e3ff] +- Updated dependencies [913d30d] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [38ab473] +- Updated dependencies [1095535] +- Updated dependencies [f037f1c] +- Updated dependencies [0fff9ae] +- Updated dependencies [491ea82] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [355e8e3] +- Updated dependencies [7aaced0] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [d0bce70] +- Updated dependencies [a0ee7d2] +- Updated dependencies [57657df] +- Updated dependencies [ff491c4] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [712b102] +- Updated dependencies [8d4395b] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [75a2d57] +- Updated dependencies [9a13387] +- Updated dependencies [1e87dc1] +- Updated dependencies [dffe83e] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [3dc3983] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [05e645b] +- Updated dependencies [da4efea] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/lint@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/metadata-protocol@19.0.0-next.4 + - @objectstack/rest@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/plugin-auth@19.0.0-next.4 + - @objectstack/service-automation@19.0.0-next.4 + - @objectstack/plugin-approvals@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/service-messaging@19.0.0-next.4 + - @objectstack/service-storage@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/client@19.0.0-next.4 + - @objectstack/service-analytics@19.0.0-next.4 + - @objectstack/mcp@19.0.0-next.4 + - @objectstack/service-queue@19.0.0-next.4 + - @objectstack/service-knowledge@19.0.0-next.4 + - @objectstack/knowledge-pgvector@19.0.0-next.4 + - @objectstack/service-package@19.0.0-next.4 + - @objectstack/plugin-sharing@19.0.0-next.4 + - @objectstack/service-settings@19.0.0-next.4 + - @objectstack/metadata@19.0.0-next.4 + - @objectstack/plugin-email@19.0.0-next.4 + - @objectstack/plugin-audit@19.0.0-next.4 + - @objectstack/cloud-connection@19.0.0-next.4 + - @objectstack/plugin-security@19.0.0-next.4 + - @objectstack/driver-sql@19.0.0-next.4 + - @objectstack/driver-sqlite-wasm@19.0.0-next.4 + - @objectstack/trigger-record-change@19.0.0-next.4 + - @objectstack/account@19.0.0-next.4 + - @objectstack/setup@19.0.0-next.4 + - create-objectstack@19.0.0-next.4 + - @objectstack/driver-memory@19.0.0-next.4 + - @objectstack/driver-mongodb@19.0.0-next.4 + - @objectstack/driver-turso@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + - @objectstack/plugin-hono-server@19.0.0-next.4 + - @objectstack/plugin-pinyin-search@19.0.0-next.4 + - @objectstack/plugin-webhooks@19.0.0-next.4 + - @objectstack/service-cache@19.0.0-next.4 + - @objectstack/service-datasource@19.0.0-next.4 + - @objectstack/service-job@19.0.0-next.4 + - @objectstack/service-mailbox@19.0.0-next.4 + - @objectstack/service-push@19.0.0-next.4 + - @objectstack/service-realtime@19.0.0-next.4 + - @objectstack/service-record-context@19.0.0-next.4 + - @objectstack/service-sms@19.0.0-next.4 + - @objectstack/trigger-api@19.0.0-next.4 + - @objectstack/trigger-schedule@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + - @objectstack/verify@19.0.0-next.4 + - @objectstack/console@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 33a9c3f6036..d3cbd2115d0 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/cli", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "Command Line Interface for ObjectStack Protocol", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/client-react/CHANGELOG.md b/packages/client-react/CHANGELOG.md index ada1026b26a..fd83b8ec4c4 100644 --- a/packages/client-react/CHANGELOG.md +++ b/packages/client-react/CHANGELOG.md @@ -1,5 +1,51 @@ # @objectstack/client-react +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/client@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/client-react/package.json b/packages/client-react/package.json index e9da15ba22c..ee995eebdba 100644 --- a/packages/client-react/package.json +++ b/packages/client-react/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/client-react", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "React hooks for ObjectStack Client SDK", "type": "commonjs", diff --git a/packages/client/CHANGELOG.md b/packages/client/CHANGELOG.md index 595fca41566..c1e0aaba1d5 100644 --- a/packages/client/CHANGELOG.md +++ b/packages/client/CHANGELOG.md @@ -1,5 +1,81 @@ # @objectstack/client +## 19.0.0-next.4 + +### Minor Changes + +- 77d1564: feat(spec,rest): the record page payload answers the data lock read, so a record page learns a closed record in its one request + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: `RecordPageRequestSchema` gains an optional `dataLock: boolean`, and `RecordPageResponseSchema` an optional `dataLock` part: the record's lock exactly as `GET /api/v1/data/{object}/{id}/lock` answers the caller (`RecordLockSchema`: `locked`, and on a locked record `lockSource` and `lockReason`, ADR-0162 D9), or that read's refusal as a part error. `POST /api/v1/data/{object}/{id}/page` (`@objectstack/rest`) answers it from the data protocol's `getRecordLock`, served through the lock door's own projection, so nothing about the state field or value rides along; a deployment whose data engine has no lock read answers the part `501 NOT_IMPLEMENTED`, never "unlocked". A body that does not ask gets no part and the read is not asked. The approval part's own `lock` is the approvals-family read and is unchanged. `client.data.recordPage` takes and returns the new part through the spec types. Nothing an author writes in metadata changes. + +### Patch Changes + +- 7b68db9: feat(data): one record lock read, for closed states and approvals + + Clause-②: yes (widening) + Metadata-protocol: added + + An app can now ask whether a record is locked, and by which lock, in one read that covers both locks a record can be under: a declared closed state (an object's `closedStates`, or a `master_detail` line of a closed record) and an approval. Before this, a client could only ask the approvals read, which knows nothing of closed states, so a closed invoice looked editable until the save was refused. + + - `GET /api/v1/data/{object}/{id}/lock` answers one record: `{ locked, lockSource?, lockReason? }`. `lockReason` is `closed_state` or `approval`, `lockSource` is `record` or `master`, and both are present exactly when `locked` is true. A record the caller cannot read, or that does not exist, answers 404. + - `POST /api/v1/data/{object}/locks` answers a page of up to 200 records, body `{ "recordIds": [...] }`; a record the caller cannot read answers `locked: null`. A longer list is refused whole with 400. + - `client.data.getRecordLock(object, id)` and `client.data.getRecordLocks(object, recordIds)` call them. The shapes are `RecordLockSchema`, `GetRecordLocksRequestSchema` and `GetRecordLocksResponseSchema` in `@objectstack/spec/api`. + + Every user who can read the record is told, even when field permissions hide the state field. The answer never names the field, the value, the approval request or its participants. The read works without the approvals plugin; then only closed states lock. + + The upload-link door now asks this read before it issues a file-field link: a closed record is refused with "the record is closed, so no file can be added to it", a record an approval holds with the existing approval sentence. + + Nothing existing changes: the approvals read (`/api/v1/approvals/records/...`), its SDK methods and service members answer exactly as before. +- 0c45d66: feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: a new route, `POST /api/v1/comments/threads/query`, mounted by plugin-audit's comment registrar beside the resolution and own-comment delete doors. The body (`CommentThreadsQueryRequestSchema`, strict) names an object and carries a list's filter in the `GET /data/{object}` syntax, with `showResolved`, `onlyMine`, `limit` (1 to `COMMENT_THREADS_MAX_LIMIT`, default `COMMENT_THREADS_DEFAULT_LIMIT`) and an opaque keyset `cursor`; the answer (`CommentThreadsQueryResponseSchema`) is one page of the object's top-level comments on the records the filter selects and the caller may read, newest first, each with its record's id and display name, its reply count at any depth and its latest three distinct repliers, and the next page's cursor. Every step runs as the caller: the engine plans the caller's read of the object with the filter (`ObjectQL#planReadScope`) and places it in the comment read as one subquery, so a view past the 1,000-id cap is answered in full; its refusals are the answer (`PERMISSION_DENIED` for a caller with no read on the object or a filter on a field the caller cannot read, `INVALID_FILTER` on MongoDB and OData). A query parameter, an unknown body key, a `limit` out of range or a cursor the read did not issue is `400 VALIDATION_ERROR` before anything is read, and a filter the list read cannot lower is `400 INVALID_FILTER`, as `GET /data/{object}` answers it, never dropped; an object with `enable.feeds: false` is `403 FEEDS_DISABLED`. The read is served on a kernel with an HTTP server; the hosted dispatcher's `/comments` domain does not claim it. `client.comments.queryThreads` is its SDK method. `@objectstack/objectql` exports the `PlanReadScopeOptions` and `ReadScopeComparand` types. No new error code. `Metadata-protocol: added`: the request and response schemas enter the `api` authorable-surface shard, which the level axis reads as added keys, so `@objectstack/spec` is a `minor`; nothing an author writes in an object, view or app definition changes. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/client/package.json b/packages/client/package.json index 9b7e27cb012..985367b8b45 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/client", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Official Client SDK for ObjectStack Protocol", "type": "commonjs", diff --git a/packages/cloud-connection/CHANGELOG.md b/packages/cloud-connection/CHANGELOG.md index 6ae803feb79..ad263be7272 100644 --- a/packages/cloud-connection/CHANGELOG.md +++ b/packages/cloud-connection/CHANGELOG.md @@ -1,5 +1,89 @@ # @objectstack/cloud-connection +## 19.0.0-next.4 + +### Patch Changes + +- 6a3e3ac: fix(console, cloud-connection): a schema upgrade can be confirmed through the install-local door and the tenant-runtime install door too + + Clause-②: yes + Metadata-protocol: none + + An upgrade whose new version renames or retypes stored fields is refused `409 SCHEMA_UPGRADE_CONFIRMATION_REQUIRED` until the same request carries the finding set's token. The marketplace dialog on a control-plane console confirms it since the previous release; the two other install doors had no way to, so the same upgrade failed there with no path forward in the console. + + - **Self-hosted runtime (install-local).** When the runtime refuses a local Install or Reinstall for want of that confirmation, the confirm in front of Install opens again and lists each change in words, in the reader's language, with a line saying this runtime asks for the confirmation. Its button reads **Confirm changes and update** and sends the refusal's token as `confirmSchemaUpgrade`; a token the findings have outgrown is refused again and the fresh list replaces the old one. A refusal that lists no changes says the install cannot be confirmed from the console, instead of the raw refusal text. Opening the confirm again from the page starts over. + - **Hosted environment (`POST /api/v1/cloud-connection/install`).** The route now takes `confirm_schema_upgrade`, the control plane's own param name, and forwards it to the control plane's install action; absent or `null`, nothing is forwarded and the request is the one it always was. Anything but a non-empty string (`true`, `''`, a number) is refused `400 INVALID_REQUEST` naming the key, before the control plane is asked. The route relays the control plane's refusal as it was, so the hosted install dialog lists the refusal's own changes and its next click sends their token. This runtime serves no upgrade-plan route, so the hosted dialog reads none. + + Nothing to migrate. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [fbee4b7] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [d9b72aa] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [0fff9ae] +- Updated dependencies [491ea82] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [da4efea] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/metadata-protocol@19.0.0-next.4 + - @objectstack/rest@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + - @objectstack/service-cluster@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/cloud-connection/package.json b/packages/cloud-connection/package.json index 099a0bc61c5..f2f32899f8a 100644 --- a/packages/cloud-connection/package.json +++ b/packages/cloud-connection/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/cloud-connection", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Runtime-side client for an ObjectStack cloud control plane — marketplace browse proxy, install-local, device-code binding, org catalog and installed views, and the /api/v1/runtime/config discovery endpoint. Open mechanism (cloud ADR-0008): the hub service, plan policy, and entitlements stay server-side.", "type": "module", diff --git a/packages/connectors/connector-imap/CHANGELOG.md b/packages/connectors/connector-imap/CHANGELOG.md index dcfe5aef7b4..53b01cb78d3 100644 --- a/packages/connectors/connector-imap/CHANGELOG.md +++ b/packages/connectors/connector-imap/CHANGELOG.md @@ -1,5 +1,9 @@ # @objectstack/connector-imap +## 19.0.0-next.4 + +No changes in this release. + ## 19.0.0-next.3 No changes in this release. diff --git a/packages/connectors/connector-imap/package.json b/packages/connectors/connector-imap/package.json index ca603f6ff8f..26c6ad2ebd1 100644 --- a/packages/connectors/connector-imap/package.json +++ b/packages/connectors/connector-imap/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-imap", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "IMAP connector for ObjectStack — a read-only IMAP4rev1 session (EXAMINE, UID FETCH with BODY.PEEK) and the per-user-shaped mail account and credential abstraction the mailbox sync connects through.", "type": "commonjs", diff --git a/packages/connectors/connector-mcp/CHANGELOG.md b/packages/connectors/connector-mcp/CHANGELOG.md index c691779e773..af3fbd8075a 100644 --- a/packages/connectors/connector-mcp/CHANGELOG.md +++ b/packages/connectors/connector-mcp/CHANGELOG.md @@ -1,5 +1,81 @@ # @objectstack/connector-mcp +## 19.0.0-next.4 + +### Patch Changes + +- 9a13387: fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + + Clause-②: no + Metadata-protocol: none + + A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + + - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. + - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + + The same release refreshes four runtime dependencies to their latest patch level: + + - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. + - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). + - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + + The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/connectors/connector-mcp/package.json b/packages/connectors/connector-mcp/package.json index dee96a23ade..d2a91369cea 100644 --- a/packages/connectors/connector-mcp/package.json +++ b/packages/connectors/connector-mcp/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-mcp", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Model Context Protocol (MCP) connector for ObjectStack — a generic adapter that turns any MCP server's tools into a connector's actions on the automation engine's connector registry (ADR-0024).", "type": "commonjs", diff --git a/packages/connectors/connector-openapi/CHANGELOG.md b/packages/connectors/connector-openapi/CHANGELOG.md index 32f451fee6f..d2e5c1c6903 100644 --- a/packages/connectors/connector-openapi/CHANGELOG.md +++ b/packages/connectors/connector-openapi/CHANGELOG.md @@ -1,5 +1,51 @@ # @objectstack/connector-openapi +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/connectors/connector-openapi/package.json b/packages/connectors/connector-openapi/package.json index 75febf54f9c..e5991b90769 100644 --- a/packages/connectors/connector-openapi/package.json +++ b/packages/connectors/connector-openapi/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-openapi", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "OpenAPI 3.x connector generator for ObjectStack — turns a declarative OpenAPI document into connector actions on the automation engine's registry, with a self-contained static-auth HTTP transport (ADR-0023).", "type": "commonjs", diff --git a/packages/connectors/connector-rest/CHANGELOG.md b/packages/connectors/connector-rest/CHANGELOG.md index 30a6beecd19..2d18a4dcb5f 100644 --- a/packages/connectors/connector-rest/CHANGELOG.md +++ b/packages/connectors/connector-rest/CHANGELOG.md @@ -1,5 +1,51 @@ # @objectstack/connector-rest +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/connectors/connector-rest/package.json b/packages/connectors/connector-rest/package.json index c04ff6664ab..c6ddb4ad8f5 100644 --- a/packages/connectors/connector-rest/package.json +++ b/packages/connectors/connector-rest/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-rest", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Generic REST connector for ObjectStack — the reference concrete connector that registers a `request` action on the automation engine's connector registry (ADR-0018 §Addendum).", "type": "commonjs", diff --git a/packages/connectors/connector-slack/CHANGELOG.md b/packages/connectors/connector-slack/CHANGELOG.md index c392121a127..de46ca8ffb2 100644 --- a/packages/connectors/connector-slack/CHANGELOG.md +++ b/packages/connectors/connector-slack/CHANGELOG.md @@ -1,5 +1,50 @@ # @objectstack/connector-slack +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/connectors/connector-slack/package.json b/packages/connectors/connector-slack/package.json index 482b0d65284..00f090e8904 100644 --- a/packages/connectors/connector-slack/package.json +++ b/packages/connectors/connector-slack/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/connector-slack", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Slack Web API connector for ObjectStack — registers `chat.postMessage` / `chat.update` / `call` actions on the automation engine's connector registry (ADR-0018 §Addendum, ADR-0022).", "type": "commonjs", diff --git a/packages/console/CHANGELOG.md b/packages/console/CHANGELOG.md index 84c5e4438d2..2c5b19c9eff 100644 --- a/packages/console/CHANGELOG.md +++ b/packages/console/CHANGELOG.md @@ -1,5 +1,9 @@ # @objectstack/console +## 19.0.0-next.4 + +No changes in this release. + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/console/package.json b/packages/console/package.json index e4fa25a67a8..335f26b009d 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/console", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "Prebuilt Console SPA built from this workspace's ui/apps/console (@object-ui/console) at the same version, installed as a dependency of @objectstack/cli.", "license": "Apache-2.0", "homepage": "https://github.com/objectstack-ai/objectstack/tree/main/packages/console", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 6e61545b6d3..8005462c101 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,111 @@ # @objectstack/core +## 19.0.0-next.4 + +### Patch Changes + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(automation): every write of a run carries the root run of its tree (`flowRootRunId`, ADR-0162 D5) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: a data write a run makes (`resolveRunDataContext`, the run identity of `@objectstack/service-automation`) carries `flowRootRunId`, the run id of the root of its run tree, beside `flowRunId`; the engine carries it onto the write's `HookContext.provenance` (`@objectstack/objectql`), the platform system api strips it with the other run marks, a sandboxed body and script see it among the declared provenance members (`@objectstack/runtime`), and it is one of the fields an entry point may not set on an `ExecutionContext` (`assembleExecutionContext`, `@objectstack/core`). The approvals plugin reads it to let every run of an approval through the hold. Absent on a write that is not a run's. +- d7d4605: feat(service-segmenter): a segmenter service that cuts a Chinese question into real words for the keyword leg + + Clause-②: yes + Metadata-protocol: none + + New package `@objectstack/service-segmenter`: `SegmenterServicePlugin` registers `ISegmenterService` under the `segmenter` slot. `keywordTerms(query, { purpose, entries })` answers a question's keyword terms in the shape the knowledge adapters' terms have today (distinct, at most 16). The caller's `word` entries are kept whole wherever the question spells them, in any script. A run of Han characters is cut by `@node-rs/jieba` (HMM off, an optional dependency, one instance per process) with the platform's words (年假, 脱密, 应急采购, 超预算, …) in its dictionary; a word equal to a stop word is dropped, and adjacent single characters are joined into two-character words. The query is NFKC-normalised first, a Thai, Lao, Khmer or Myanmar run is cut by `Intl.Segmenter`, and everything else (English, figures, codes, kana and Hangul runs) is cut exactly as before. Without jieba (not installed, or failed to load: the boot log names which, and `status()` reports it), the service answers by sliding windows with the supplied words still kept whole. The purpose `record_search` is reserved and refused with `NOT_IMPLEMENTED`. + + Nothing calls the service yet: the knowledge adapters keep their own terms until they read the slot. + + `@objectstack/spec/contracts` adds `ISegmenterService`, `SEGMENTER_SERVICE` and their types, and `ServiceSlotContracts` gains the `segmenter` slot (not a `CoreServiceName` member). `@objectstack/core` adds `keywordTerms`, `MAX_KEYWORD_TERMS`, `KEYWORD_SEPARATORS` and `UNSEGMENTED_RUN`: the sliding-window rule the two knowledge adapters each hold a copy of, as one shared copy. +- f28c39f: feat(core): the bounded document text extractor is exported as `@objectstack/core/document-text` + + Clause-②: yes (widening) + Metadata-protocol: none + + The extractor MCP `read_file` reads PDF, Word, text and image files with now lives in `@objectstack/core` and is exported from a Node-only subpath, so a service that depends on the kernel package (an AI service handing a model a document's text instead of the document) uses it without depending on `@objectstack/mcp`: + + ```ts + import { extractFileContent, ReadFileExtractionBusyError } from '@objectstack/core/document-text'; + + const content = await extractFileContent(bytes, mimeType, fileName); + // { kind: 'text', text, truncated, format, note? } | { kind: 'image', data, mimeType } | { kind: 'none', reason } + ``` + + It keeps every bound `read_file`'s extraction had (how many bytes to read at all stays the caller's cap: `read_file` keeps its 10 MiB `READ_FILE_MAX_BYTES`, and a text or image file is decoded on the calling thread at whatever size it is handed): + + - at most 100,000 characters of text (`READ_FILE_TEXT_MAX_CHARS`), 200 PDF pages, a 32 MiB inflated Word body and a 5 MiB image; + - a CPU-time budget per PDF or Word extraction (`OS_MCP_READ_FILE_CPU_BUDGET_MS`, default 2000 ms), checked between pages and paragraphs, with a wall-clock ceiling of five budgets on a worker; + - a `worker_threads` pool and a process-wide cap on extractions in flight (`OS_MCP_READ_FILE_MAX_CONCURRENT`, default 4); one more is refused at once with `ReadFileExtractionBusyError` (`SERVICE_UNAVAILABLE`, 503, `retryAfterSeconds`), never queued. + + Every caller in one process shares the bounds, the pool and the count, so the cap holds whoever asks, and through whichever copy of the package: an ESM `import` and a CJS `require` of the subpath (or two installed versions) share one state under a registered symbol, and `instanceof ReadFileExtractionBusyError` recognises a refusal from any copy. A host that bundles `@objectstack/core` into one file ships `dist/document-text-worker.js` (or `.cjs`) beside its bundle, or points the pool at wherever it put that file with `configureExtractionWorkerEntry` (the file is addressed by path; no `exports` entry names it). Without a worker, that copy extracts on the request thread under the same two bounds, said once at `warn`; another copy in the same process that finds its worker keeps reading on workers, and an idle worker serves any copy. + + The subpath is kept off the main entry, so a host that never reads a document never loads `unpdf`, which is now a dependency of `@objectstack/core` instead of `@objectstack/mcp`. `read_file` reads through the shared extractor and answers as before; the two host variables keep their names and defaults. One fix on the way: the pool now copies the bytes it hands a worker into a fresh `Uint8Array` instead of slicing them, so a Node `Buffer` (whose `slice` is a view over shared memory) reads on a worker instead of failing to transfer, which `read_file` answered with its could-not-read sentence, and the caller's `Buffer` is left intact. One operator-visible change: the one-time `warn` when no worker can start now reads `[document-text] PDF and Word text (read_file and every other caller) is extracted on the request thread, not on a worker: …` (was `[MCP] read_file extracts PDF and Word text on the request thread, not on a worker: …`), since it now speaks for every caller; a log alert matching the old text needs the new one. +- 7341b89: fix(core): a script that reads a document through `@objectstack/core/document-text` exits on its own + + Clause-②: no + Metadata-protocol: none + + A short-lived process (a CLI command, a batch script) that read a PDF or Word file through `extractFileContent` never exited afterwards: the worker pool piped each worker's stdout to stderr, and a worker stdout the parent reads keeps that worker's message port referenced until the worker exits, which `worker.unref()` does not undo, so the idle worker held the process open. The pool no longer reads the worker's output; the worker entry sends what it would print on stdout to stderr itself, and what a job printed reaches the parent before the job's answer. A server keeps the same workers and reuses them as before, and everything the worker entry and the extraction print still goes to stderr. + + Two kinds of worker output now reach the process's stdout instead, because they are printed before the entry can redirect anything, or by an entry that does not: + + - **A Node preload's own output.** A worker inherits the process's `-r` / `--import` flags and runs those preloads again before the entry, so a preload that prints on load (for example `node -r dotenv/config`, whose recent versions print a line) prints on stdout each time a worker starts. On a host serving MCP over the stdio transport, stdout is the protocol stream, so that line corrupts it mid-session. Make such a preload write to stderr, or skip its output off the main thread (`isMainThread` from `node:worker_threads`). + - **A worker entry of the host's own.** A host that points the pool at an entry of its own with `configureExtractionWorkerEntry` (rather than the `document-text-worker.js` or `.cjs` file this package ships) makes that entry send its stdout to stderr too. + + Two smaller fixes: + + - `configureReadFileExtraction(limits)` refuses a bound that is not a positive whole number with a `RangeError` naming it (`limits.maxConcurrent must be a positive whole number; got NaN. …`), as the `OS_MCP_READ_FILE_*` variables already did, and keeps the bounds in force. A `NaN` cap used to switch the cap off without a word. + - Pointing the pool at a worker entry through one copy of the package now makes every copy in the process look for a worker again; a copy that had found none used to keep reading on the request thread although the new entry would start for it. + + The shared state's key is now `objectstack.core.documentText.state.v2`, and a test fails when the state shape or the worker protocol changes while the key stays the same. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 58ddfa5bec6..a7a40645211 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/core", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Microkernel Core for ObjectStack", "type": "module", diff --git a/packages/create-objectstack/CHANGELOG.md b/packages/create-objectstack/CHANGELOG.md index 291ab7e0cb4..8ccd880125d 100644 --- a/packages/create-objectstack/CHANGELOG.md +++ b/packages/create-objectstack/CHANGELOG.md @@ -1,5 +1,9 @@ # create-objectstack +## 19.0.0-next.4 + +No changes in this release. + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/create-objectstack/package.json b/packages/create-objectstack/package.json index 69a633e4606..82e3a0f6ea9 100644 --- a/packages/create-objectstack/package.json +++ b/packages/create-objectstack/package.json @@ -1,6 +1,6 @@ { "name": "create-objectstack", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "Create a new ObjectStack project — npx create-objectstack", "bin": { "create-objectstack": "./bin/create-objectstack.js" diff --git a/packages/create-objectstack/src/templates/blank/package.json b/packages/create-objectstack/src/templates/blank/package.json index a29fdab9f41..6ce38334904 100644 --- a/packages/create-objectstack/src/templates/blank/package.json +++ b/packages/create-objectstack/src/templates/blank/package.json @@ -17,14 +17,14 @@ "test": "vitest run" }, "dependencies": { - "@objectstack/spec": "19.0.0-next.3", - "@objectstack/runtime": "19.0.0-next.3", - "@objectstack/plugin-hono-server": "19.0.0-next.3" + "@objectstack/spec": "19.0.0-next.4", + "@objectstack/runtime": "19.0.0-next.4", + "@objectstack/plugin-hono-server": "19.0.0-next.4" }, "devDependencies": { - "@objectstack/cli": "19.0.0-next.3", - "@objectstack/skills": "19.0.0-next.3", - "@objectstack/verify": "19.0.0-next.3", + "@objectstack/cli": "19.0.0-next.4", + "@objectstack/skills": "19.0.0-next.4", + "@objectstack/verify": "19.0.0-next.4", "typescript": "^5.3.0", "vitest": "~4.1.12" }, diff --git a/packages/drivers/driver-memory/CHANGELOG.md b/packages/drivers/driver-memory/CHANGELOG.md index ccfdfd9e737..ca07e4ea8f0 100644 --- a/packages/drivers/driver-memory/CHANGELOG.md +++ b/packages/drivers/driver-memory/CHANGELOG.md @@ -1,5 +1,51 @@ # @objectstack/driver-memory +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/drivers/driver-memory/package.json b/packages/drivers/driver-memory/package.json index 7058e69d855..b7ff39e8e03 100644 --- a/packages/drivers/driver-memory/package.json +++ b/packages/drivers/driver-memory/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-memory", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "In-Memory Driver for ObjectStack (Reference Implementation)", "type": "commonjs", diff --git a/packages/drivers/driver-mongodb/CHANGELOG.md b/packages/drivers/driver-mongodb/CHANGELOG.md index 8385b3bfa6a..d2753a8d0e6 100644 --- a/packages/drivers/driver-mongodb/CHANGELOG.md +++ b/packages/drivers/driver-mongodb/CHANGELOG.md @@ -1,5 +1,51 @@ # @objectstack/driver-mongodb +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/drivers/driver-mongodb/package.json b/packages/drivers/driver-mongodb/package.json index a097f997303..bcf4241e7e5 100644 --- a/packages/drivers/driver-mongodb/package.json +++ b/packages/drivers/driver-mongodb/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-mongodb", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "MongoDB Driver for ObjectStack - Native document database driver via official mongodb client", "type": "commonjs", diff --git a/packages/drivers/driver-odata/CHANGELOG.md b/packages/drivers/driver-odata/CHANGELOG.md index 987abb33e41..ff555ec192f 100644 --- a/packages/drivers/driver-odata/CHANGELOG.md +++ b/packages/drivers/driver-odata/CHANGELOG.md @@ -1,5 +1,81 @@ # @objectstack/driver-odata +## 19.0.0-next.4 + +### Patch Changes + +- 9a13387: fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + + Clause-②: no + Metadata-protocol: none + + A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + + - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. + - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + + The same release refreshes four runtime dependencies to their latest patch level: + + - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. + - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). + - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + + The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/drivers/driver-odata/package.json b/packages/drivers/driver-odata/package.json index e94d6691412..4a0bab605f8 100644 --- a/packages/drivers/driver-odata/package.json +++ b/packages/drivers/driver-odata/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-odata", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "OData v4 and v2 datasource driver for ObjectStack — serve an OData service's entity sets as external objects through a plugin driver", "keywords": [ diff --git a/packages/drivers/driver-sql/CHANGELOG.md b/packages/drivers/driver-sql/CHANGELOG.md index 72dcdcf4cc3..62ddd2dc176 100644 --- a/packages/drivers/driver-sql/CHANGELOG.md +++ b/packages/drivers/driver-sql/CHANGELOG.md @@ -1,5 +1,52 @@ # @objectstack/driver-sql +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/drivers/driver-sql/package.json b/packages/drivers/driver-sql/package.json index 6eeda30c5a0..def7b0451b1 100644 --- a/packages/drivers/driver-sql/package.json +++ b/packages/drivers/driver-sql/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-sql", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "SQL Driver for ObjectStack - Supports PostgreSQL, MySQL, SQLite via Knex, and Oracle for federation", "type": "commonjs", diff --git a/packages/drivers/driver-sqlite-wasm/CHANGELOG.md b/packages/drivers/driver-sqlite-wasm/CHANGELOG.md index 16025b6d5d9..d4a2fb5b4c5 100644 --- a/packages/drivers/driver-sqlite-wasm/CHANGELOG.md +++ b/packages/drivers/driver-sqlite-wasm/CHANGELOG.md @@ -1,5 +1,51 @@ # @objectstack/driver-sqlite-wasm +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/driver-sql@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/drivers/driver-sqlite-wasm/package.json b/packages/drivers/driver-sqlite-wasm/package.json index 3428bec0b56..229f78f608f 100644 --- a/packages/drivers/driver-sqlite-wasm/package.json +++ b/packages/drivers/driver-sqlite-wasm/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-sqlite-wasm", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "WASM SQLite Driver for ObjectStack — runs in browser/WebContainer (StackBlitz) without native bindings", "keywords": [ diff --git a/packages/drivers/driver-turso/CHANGELOG.md b/packages/drivers/driver-turso/CHANGELOG.md index b90f05ab594..f4afeacf23a 100644 --- a/packages/drivers/driver-turso/CHANGELOG.md +++ b/packages/drivers/driver-turso/CHANGELOG.md @@ -1,5 +1,52 @@ # @objectstack/driver-turso +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/driver-sql@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/drivers/driver-turso/package.json b/packages/drivers/driver-turso/package.json index fab23238bc4..a141efbbb5c 100644 --- a/packages/drivers/driver-turso/package.json +++ b/packages/drivers/driver-turso/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/driver-turso", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Turso/libSQL Driver for ObjectStack — Edge-first SQLite with embedded replicas", "keywords": [ diff --git a/packages/formula/CHANGELOG.md b/packages/formula/CHANGELOG.md index b1a0ec3cc28..72dfa285cc1 100644 --- a/packages/formula/CHANGELOG.md +++ b/packages/formula/CHANGELOG.md @@ -1,5 +1,111 @@ # @objectstack/formula +## 19.0.0-next.4 + +### Minor Changes + +- be2df75: fix(formula)!: a flow condition's date arithmetic that mixes a bare date field with `record.FIELD` / `previous.FIELD`, and a field read by index (`record['FIELD']`), now take the verdicts their consistent spellings already took + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — `skills/objectstack-formula/SKILL.md` already states "The build refuses date arithmetic (`end - start`, `date + n`)" and that a `date` / `datetime` field is refused in a timestamp-only call, naming no spelling those rules are limited to, so they now hold for the mixed and index spellings as written; no skill teaches the index spelling + + + + **BREAKING** accept-set narrowing. In a flow condition (a start, edge or `decision` branch condition) the run binds the record's fields under their bare names and also as `record`, with the row before the write as `previous`. A `date` or `datetime` field reaches the run as its text, so subtracting one from another faults on every run and fails the flow. Two spellings of that mistake passed `os validate` and the publish door with no finding: + + - **Mixed operands.** `due_date - record.borrow_date > duration('24h')`, `previous.due_date - due_date > duration('24h')`. The all-bare (`due_date - borrow_date …`) and all-root (`record.due_date - record.borrow_date …`) spellings were refused already. The check typed the bare names and the root reads in two separate passes, each leaving the other spelling untyped; they are now typed against the object's field table in one pass. + - **Index reads.** `timestamp(record['borrow_date']) < now()`, `record['due_date'] - record['borrow_date'] > duration('24h')`, `isoDate(record['picked_up_at']) == '2026-11-16'`, `record['due_date'] + 1 > 5`. The record-root date-text pass only looked at the member spelling; it now has a gate of its own that admits an index read of `record` or `previous`, so the index read takes the date-text verdicts the member read takes, named by its member spelling, and those only (`record['due_date'] + 1 > 5` takes `date-text-arithmetic`, where its member spelling takes `date-arithmetic`; both prescribe `daysBetween` / `addDays`). The text and boolean mismatch keeps its member-only gate: through an index read, `record['title'] > 5` and an ordering against a text field (`record['due_date'] > record['title']`) are judged exactly as before, and no refusal an expression had before is stood down to a warning. + + - **The verdict.** The code, outcome arm and words of the consistent spelling: `date-text-arithmetic-run-fails` on a record-triggered flow or a sweep of the typed object, `-run-may-fail` elsewhere. A mixed verdict that rests on a bare name takes the bare name's `-run-may-fail` arm where a node can rebind it. + - **Where.** `os validate` / `os build` (`validateStackExpressions`) report an `error`, and the flow publish door refuses the publish with `INVALID_METADATA` (422). `registerFlow` logs it as an advisory and still registers the flow, so a stored flow keeps its run-time behaviour until it is next published. + - **Not refused.** An operand the field table does not type keeps passing: a flow variable or node output holding an instant (`cutoff - record.due_date > duration('24h')`, `get_policy.effective_at - record.due_date > duration('24h')`), a bare name a flow variable shadows, a concatenation of the date text (`prefix + record.due_date`); through an index read, the text or boolean mismatch, an ordering against a text field and equality. The run-time evaluator is unchanged. + + ## FROM → TO + + | FROM | TO | + |:---|:---| + | `due_date - record.borrow_date > duration('24h')` | `daysBetween(record.borrow_date, due_date) > 1` | + | `timestamp(record['borrow_date']) < now()` | `date(record['borrow_date']) < now()` | + | `record['due_date'] - record['borrow_date'] > duration('24h')` | `daysBetween(record['borrow_date'], record['due_date']) > 1` | + + One-line fix: in a flow condition, never subtract one date field from another or hand one to a timestamp-only call, whichever way it is spelled; use `daysBetween(a, b)` for a span, `addDays(d, n)` to shift a date and `date(…)` to parse it. +- 4374517: fix(formula)!: a date-text fault is no longer hidden behind a type-mismatch warning, a text or boolean field read by index (`record['FIELD']`) takes the type-mismatch verdict, and a macro variable ordered against a text literal is no longer refused + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — `skills/objectstack-formula/SKILL.md` rule 5 already states "The build refuses date arithmetic (`end - start`, `date + n`)" and refuses a `date` / `datetime` field in a timestamp-only call, with no exception for a source that also carries a type mismatch; no skill teaches the index spelling, the type-mismatch warning, or ordering a macro variable over date fields + + + + **BREAKING** accept-set narrowing. A flow condition that faults fails the run. Two shapes that published and then failed every run are refused: + + - **A date-text fault behind a type-mismatch warning.** The authoring check reported one finding per source and asked the text / boolean type mismatch first; the date-text check was asked only when that answered nothing. Where the mismatch is a warning, `due_date - borrow_date > duration('1h') && record.title > 5` and `record.active > 5 && isoDate(picked_up_at) == 'x'` published with the warning alone. The more severe verdict now wins: the date-text error is reported instead of the warning, also when the mismatch comes first in the source. The mismatch is a warning, so the change reaches: a flow condition on a flow that is not record-triggered (`date-text-arithmetic-run-may-fail`, `date-text-call-run-may-fail`); a flow condition whose bare name a node can rebind (`bareNamesUnproven`: `date-text-arithmetic-run-fails` / `date-text-call-run-fails` over a `record.FIELD` read, the `-run-may-fail` codes over a bare one); and every record-scoped site that declares no fault outcome (`date-text-arithmetic`, `date-text-call`): a formula field `expression`, a field `visibleWhen` / `settledWhen` / `uiReadonlyWhen`, a field `conditionalFormatting[].condition`, a field group `visibleWhen`, an action `visible` / `disabled` / `pressed`, a sharing rule `condition`, and the object `uiReadonlyWhen`. Where the mismatch is an error already (a record-triggered flow, a sweep of the typed object, a site with a declared fault outcome) it keeps its code. + - **A type mismatch through an index read.** `record['title'] > 5`, `record['active'] + 1 > 3`, `previous['title'] > 5`, `record['title'] > record['active']` passed while their member spellings were judged: a text or boolean field read by index under an arithmetic or ordering operator the run has no overload for (against a number or a boolean), which faults on every row. An index read of `record` / `previous` now takes the text / boolean type-mismatch verdict its member spelling takes (`type-mismatch-run-fails`, `-sweep-run-fails`, or the `-run-may-fail` warning), named as its member spelling is named: by the member spelling, also where a member read sits beside it (`record['title'] > 5 && record.status == 'open'` names `record.title` and takes `type-mismatch-run-fails` under `bareNamesUnproven`, as `record.title > 5 && record.status == 'open'` does; before, it took the warning, and `record['title'] > 5 && record.notes == 'n'` named `record.notes`). Stated limit, carried by #39105: the name is the first field of the faulting type in the field table that the source reads, in either spelling, which need not be the operand (`previous.notes > 5 && record['title'] == 'x'` names `record.title`; it named `previous.notes`). The date-text verdicts an index read took before keep their codes. An ordering of a date read against a text field, which the run answers, with either side read by index keeps the verdict it had: unjudged where no member read is in the source (`record['due_date'] > record['title']`), otherwise the mismatch kept as before, named only by a member read, so under `bareNamesUnproven` it stays the `type-mismatch-run-may-fail` warning (`record.due_date > record['title']`, `record['due_date'] > record['title'] && record.status == 'open'`, `record.due_date > title && record['notes'] == 'n'`). + + Widened in the same change, for flow conditions and record-scoped sites only: a variable a macro binds (`exists`, `all`, `exists_one`, `map`, `filter`) is typed as an element of the list it ranges over, so `[due_date, record.borrow_date].exists(d, d > '2026-01-01')`, which the runtime answers, is no longer refused as a type mismatch; `[title].exists(t, t > 5)` stays refused. A flow value envelope (an `assignment` value, a `create_record` / `update_record` `fields.*` value) keeps the verdict it had: its date-text check stands down where the mismatch check finds a mismatch and asks that check with the macro typing it had before, so `[record.due_date].exists(d, d > '2026-01-01') ? isoDate(record.picked_up_at) : 'x'` as a value registers and validates as it did. That envelope shape is carried by #39107. + + - **Where.** `os validate` / `os build` report an `error`, and a door that runs the same expression pass refuses the write (the flow publish door with `INVALID_METADATA`, 422). For flow conditions `registerFlow` logs it as an advisory and still registers the flow, so a stored flow keeps its run-time behaviour until it is next published; no flow value envelope verdict changes, so no stored flow that registered before is refused at registration. The run-time evaluator is unchanged. + + ## FROM → TO + + | FROM | TO | + |:---|:---| + | `due_date - borrow_date > duration('1h') && record.title > 5` | `daysBetween(borrow_date, due_date) >= 1 && size(record.title) > 5` | + | `record['title'] > 5` | `size(record['title']) > 5` | + | `record['active'] + 1 > 3` | `record['active'] == true` | + + One-line fix: compare like with like in a flow condition, whichever way a field is spelled; use `size(…)` / `double(…)` to make text a number, `true` / `false` for a boolean, and `daysBetween(a, b)` / `addDays(d, n)` / `date(…)` for a date. + +### Patch Changes + +- 0c6f679: fix(formula): a date ordered against a text field gets its own refusal code, `date-text-ordering`, with a sentence that says what the run does (#38959 item 4) + + Clause-②: yes + Metadata-protocol: none + + **What changed.** `validateExpression` keeps refusing a date or datetime field ordered (`<`, `<=`, `>`, `>=`) against a text counterpart that is not a literal — a text field read directly or through a ternary, or text computed by `+`, `upper(…)`, `string(…)` or `isoDate(…)` (the #32595 verdict, unchanged) — at the same grade at every site: an error where the site declares its fault outcome (a fail-closed rule, an advisory rule, a record-triggered flow, a time-relative sweep of the typed object), a warning elsewhere (a formula field, a flow condition with no declared outcome, an unproven bare name). Until now it was served under the `type-mismatch*` code of the site, whose sentence says the field is "used against a number" and that "the expression faults". Neither is true: the runtime holds a date field as its text, so the comparison evaluates as a text comparison and does not fault. It is now served under one new code in the closed `EXPRESSION_REFUSAL_CODES` set, `date-text-ordering`, with params `operands`, `operator` and, when the counterpart is a field read, `reference`. Its sentence says that the comparison is answered by spelling, not by date, and prescribes `date(…)` to compare dates or `string(…)` on the date side to compare text on purpose. + + **The code move, for a consumer that matches the old code on this shape.** Where you matched `type-mismatch`, `type-mismatch-fail-closed`, `type-mismatch-fail-open`, `type-mismatch-run-fails`, `type-mismatch-sweep-run-fails` or `type-mismatch-run-may-fail` and the source orders a date field against text, the refusal now carries `date-text-ordering`; it arrives in `errors[]` or `warnings[]` exactly as the old one did. Add a catalogue row for `date-text-ordering`: its params carry no `held`. A real type mismatch (text or a boolean against a number, text against `today()`) keeps its `type-mismatch*` code. Where the same source also holds a date-text fault (`record.due_date > record.title && record.due_date - record.borrow_date > duration('1h')`), that fault's `date-text-arithmetic*` / `date-text-call*` error is the finding at every site, as it already was where the ordering was a warning; where the ordering was an error this moves the code from `type-mismatch*` to the date-text one, at the same grade. + + **`@objectstack/lint`.** A time-relative flow that sweeps another object than the one its conditions are typed against still gets its note saying why a condition's verdict is a warning there, when that warning is `date-text-ordering`, as it did when the same verdict was served as `type-mismatch-run-may-fail`. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/formula/package.json b/packages/formula/package.json index fbfc2f60df0..71ea522a30a 100644 --- a/packages/formula/package.json +++ b/packages/formula/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/formula", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack canonical expression engine — CEL (cel-js) + ObjectStack stdlib + dialect registry", "type": "commonjs", diff --git a/packages/lint/CHANGELOG.md b/packages/lint/CHANGELOG.md index 4f9f77fec5b..6472661b90f 100644 --- a/packages/lint/CHANGELOG.md +++ b/packages/lint/CHANGELOG.md @@ -1,5 +1,190 @@ # @objectstack/lint +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 3c617a2: feat: forms leave `view` — the protocol-19 form move and its switch command (ADR-0159 card ⑤b, part 1) + + Clause-②: yes + Metadata-protocol: none + + **Sources.** `os migrate meta --from 18` moves each form a stack authors in `views[]` — a container's `form`, a `formViews` entry, a `viewKind: 'form'` item — to `forms[]`, under the name it is served as today, its binding lifted to `object` and its body at the top level, with its `sharing` block, switch and `overrides` declaration as written (conversion `view-forms-to-form-items`). An internal record form (a record-form slot, no public link, no `type: 'form'` action that opens it, no `overrides`) is deleted: New and Edit lay a record out by the object's field groups. A form that declares a public link, switched on or off, is never deleted, and an item that declares `overrides` always moves. A container left with no member is removed. A translation bundle's `objects.OBJECT._views.KEY.title` and `.submitBehavior` move to `forms['OBJECT.KEY']` for each form that is a `forms[]` item after the move (conversion `translation-view-form-tails-to-forms`); `label` and `description` stay. What the move cannot decide — a form whose `data.object` disagrees with its container, a non-object `data` binding, a key a `form` item does not carry, a name `forms[]` already holds, an unreadable body, two forms on one public address, a moved override for `os validate`, the translation tails of a form left in `views[]` or named by no `forms[]` item, a translation tail `forms` already holds, a `_views` label of a moved form — is left in place or moved as written and listed per site by `os migrate meta`. The two semantic entries are `view-forms-move-to-form-type` and `translation-form-tails-move-to-forms`. + + **Stored rows are not rewritten by the conversions.** `view-forms-to-form-items` and `translation-view-form-tails-to-forms` are on the stored seam's `STORED_ROWS_NOT_REWRITTEN`: a stored `view` row keeps its forms, read through the projection, and a stored translation row keeps the `_views` tails those forms are read through. The artifact forward door (`@objectstack/metadata-core`) refuses both by id too, so an installed package keeps its forms in `views[]`, read through the projection, until the deployment switches. + + **`os migrate protocol --to 19`** is the deployment's switch. It previews by default (the stored-form census, and whether the deployment can switch; exit 1 when a row holds it, each row with the action for its cause). `--apply` runs the stored-form ceremony all or nothing, runs the census again, and only when nothing is left to move or remove records a verified `sys_migration` row, `adr-0159-form-type-switch` (`FORM_TYPE_SWITCH_MIGRATION_ID` in `@objectstack/spec/system`). A held run writes nothing, the marker included; a database whose driver cannot roll back is refused first. + + `form-view-modal-size-removed` now applies after the move (its result over sources is unchanged; its notice names the form's address on 19). `@objectstack/lint` adds `shippedFormNames` (what a package ships as `form`, in either type, through the projection) and D7-b's rule `form-override-base-ships-no-form` with its remedy, which `os validate` prints for an override of a form its base does not ship: remove the item, or correct the name. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(lint): an approval that cannot show itself in progress on a field its object closes on is refused where it is authored (ADR-0162 D5) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `@objectstack/lint` exports `validateApprovalClosedStates`, `approvalRootObjectsOf`, `APPROVAL_CLOSED_STATE_GAP` and the type `ApprovalClosedStateFinding`; the rule's sentences are registered in all 11 platform locales. + + A new member of the reference-integrity suite, `validateApprovalClosedStates` (finding `approval-closed-state-gap`, at error), judges each flow of a stack as the root of an approval, on each object it can start on a record of, through the one judge the approvals plugin's first request asks (`judgeApprovalOpeningSync`, `@objectstack/metadata-core`). `os validate`, `os build` and `os lint` refuse the gap on a project's stack, and the runtime publish door (Studio, REST `/meta`, MCP) refuses it with `INVALID_METADATA` (422) on a `flow` or an `object` write: an active save, a draft's promotion, a restore and a package publish (a draft save is not refused). An `object` write judges the written package's live flows and is charged only with a gap it adds. In a package publish each draft is judged against the batch's objects, and a flow the batch redrafts is judged as its draft, so a package that declares `closedStates` and repairs its flow in the same publish passes. The rule refuses only what it has in view: a call to a flow the stack does not hold, a node type the spec does not ship and a host with no `job` service are not refused here, and are judged at the approval's first request, which stays the rule. An object that declares no `closedStates` is judged nowhere. + + Why the protocol line reads none: the rule reads only `closedStates`, which this release adds. No object a released version accepts declares it, so nothing that could be published before is refused now. +- 2595004: fix(lint): `os validate` and the publish gate refuse a knowledge source `affinity` entry whose field does not point at the object its caller fact names + + Clause-②: no + Metadata-protocol: none + + Each `source.affinity` entry of a knowledge source compares its `field` with a fact about the person asking, so the field must hold that kind of id: for `caller: 'user'` a `user` field or a lookup to `sys_user`, for `caller: 'business_unit'` a lookup to `sys_business_unit`. Any other field holds a value that is never the caller's, so the entry matches no hit and the source is ordered as if it had no `affinity`. The metadata API's save door already refused such an entry. New rule `knowledge-source-affinity-field-not-caller-target` (`error`) now refuses it in `os validate`, `os build` and `os lint`, and at the runtime publish gate, which is what judges a source a package ships or code registers, with the save door's words: the message names the entry, the field and what it points at; the fix names a field of the right kind, or the `caller` that matches the field (for a `nearest` entry on a field that points at `sys_user`, a `boost` entry with `caller: 'user'` and `places`). + + Only a field that `metadataFields` lists and the object declares is judged: an unlisted field is still refused by the schema, a field the object does not have is still reported once as `knowledge-source-field-unknown`, and a system column the platform adds is not judged. `os explain knowledge-source-affinity-field-not-caller-target` describes the rule. +- 1aa9c57: refactor(lint): the long-form rule explanations live in one source file per rule family + + Clause-②: no + Metadata-protocol: none + + The table `os explain RULE_ID` prints moved, entry by entry and word for word, from one source file into one file per rule family. Nothing an author or a caller reads changes: `os explain` prints the same bytes for every rule id, `RULE_EXPLANATIONS` holds the same entries in the same key order, `explainRule` answers the same, and the published declaration files are byte-identical. The bundled `@objectstack/lint/rule-explanations` entry still imports nothing; only its bytes moved (module order and source-path comments). +- 197e3ff: fix(cli, lint): `os build` and the body-capability rule count "declared once" the same way + + Clause-②: no + Metadata-protocol: none + + An inline hook or action handler can reach a gated `ctx` member through a local: a context root (`const c = ctx`, or a renamed handler parameter) or a member alias (`const l = c.log`, `const { log } = c`). Both `os build`, which infers the body's capabilities, and the `hook-body-capability-undeclared` / `action-body-capability-undeclared` / `action-body-write-capability-undeclared` publish check read such a local only when it is declared once and never assigned again, but they counted differently. So the build could lower a handler with no grant that the check then refused, such as `async (e) => { const { log } = e; try { … } catch (e) { log.error('x') } }`, or the check could miss a call the build granted. + + Both sides now count the same way: + + - A declaration is every declarator of a `const`, `let` or `var` list: a name, or an object or array pattern at any depth, in any position of the list. The check now reads `const c = ctx, l = c.log` and `const a = 1, { log } = ctx`. It no longer reads a name that an array pattern declares a second time. + - A `catch` binding is not a declaration, like a nested function's parameter. The build now infers `log` for the body above and for `const log = ctx.log; … catch (log) {} log.info('x')`, so the lowered body runs. A read of the catch binding inside its own block is taken as the outer local. That can grant a token the call never uses, which never causes a refusal. + - A destructuring assignment (`[c] = …`, `({ c } = …)`) and a `for (c of …)` / `for (c in …)` head assign the name again, as `c = …` does. + - A member alias or a destructure counts only when its value is the member or the context itself, as a root already did. `const l = ctx.log || null` is no alias on either side. + + The check also reads a semicolon-free body the way JavaScript does. A root ends at a line break when the next line opens with `++`, `--`, `!`, `~`, a string or number literal, `{` or a non-ASCII identifier, and a lone `\r`, U+2028 or U+2029 is a line break. `i++` at the end of a line steps `i`, not the name that opens the next line. + + What changes for authors: a new finding falls on a body whose gated call the sandbox already refuses (403 at the call), so no body that runs today is newly refused. The one exception is a case that already exists: the count does not follow scopes, so a nested function whose parameter has the same name as a root is read as that root. That case now also applies to a root declared later in a list. A freshly built body is granted the same capability, so only a hand-written body with no grant can see that finding. A finding the check drops is on a shape `os build` grants nothing for either (a name declared twice, assigned again, or bound to an expression on the member). A hand-written body of that shape with no grant is refused by the sandbox at the call, as before, and no longer also by the check. +- 913d30d: fix(lint): a form action targeting a `forms:` item resolves, and a field only a form item collects is consumed + + Clause-②: no + Metadata-protocol: none + + Two author-time advisories read form content out of `views:` only, so a stack that authors its forms as `form` items (ADR-0159) got false warnings from `os validate`, `os build` and `os dev`: + + - `view-ref-form-target-missing` checked a `type: 'form'` action's `target` against the expanded views alone. A target equal to the `name` of an authored `forms:` item now resolves, as the console's form page does (it reads the form by that exact name). Neither that warning nor `view-ref-form-target-kind` fires on it. A target that names neither a form view nor a form item still warns. + - `field-no-consumers` did not scan `forms:`. `forms` is now a consumer root: a field a form item's sections collect (as a string or `{ field }`, bound by the form's `object`) is consumed. A field nothing reads is still reported. +- 0c6f679: fix(formula): a date ordered against a text field gets its own refusal code, `date-text-ordering`, with a sentence that says what the run does (#38959 item 4) + + Clause-②: yes + Metadata-protocol: none + + **What changed.** `validateExpression` keeps refusing a date or datetime field ordered (`<`, `<=`, `>`, `>=`) against a text counterpart that is not a literal — a text field read directly or through a ternary, or text computed by `+`, `upper(…)`, `string(…)` or `isoDate(…)` (the #32595 verdict, unchanged) — at the same grade at every site: an error where the site declares its fault outcome (a fail-closed rule, an advisory rule, a record-triggered flow, a time-relative sweep of the typed object), a warning elsewhere (a formula field, a flow condition with no declared outcome, an unproven bare name). Until now it was served under the `type-mismatch*` code of the site, whose sentence says the field is "used against a number" and that "the expression faults". Neither is true: the runtime holds a date field as its text, so the comparison evaluates as a text comparison and does not fault. It is now served under one new code in the closed `EXPRESSION_REFUSAL_CODES` set, `date-text-ordering`, with params `operands`, `operator` and, when the counterpart is a field read, `reference`. Its sentence says that the comparison is answered by spelling, not by date, and prescribes `date(…)` to compare dates or `string(…)` on the date side to compare text on purpose. + + **The code move, for a consumer that matches the old code on this shape.** Where you matched `type-mismatch`, `type-mismatch-fail-closed`, `type-mismatch-fail-open`, `type-mismatch-run-fails`, `type-mismatch-sweep-run-fails` or `type-mismatch-run-may-fail` and the source orders a date field against text, the refusal now carries `date-text-ordering`; it arrives in `errors[]` or `warnings[]` exactly as the old one did. Add a catalogue row for `date-text-ordering`: its params carry no `held`. A real type mismatch (text or a boolean against a number, text against `today()`) keeps its `type-mismatch*` code. Where the same source also holds a date-text fault (`record.due_date > record.title && record.due_date - record.borrow_date > duration('1h')`), that fault's `date-text-arithmetic*` / `date-text-call*` error is the finding at every site, as it already was where the ordering was a warning; where the ordering was an error this moves the code from `type-mismatch*` to the date-text one, at the same grade. + + **`@objectstack/lint`.** A time-relative flow that sweeps another object than the one its conditions are typed against still gets its note saying why a condition's verdict is a warning there, when that warning is `date-text-ordering`, as it did when the same verdict was served as `type-mismatch-run-may-fail`. +- ff491c4: fix(lint): the `flow-decision-unconditional-branch` advice and the automation skill say when an unconditional out-edge beside guarded ones runs + + Clause-②: no + Metadata-protocol: none + + Words only: the rule's id, verdict (a warning) and trigger are unchanged. + + Both texts said an out-edge with no `condition` runs "in parallel" with the guarded branch beside it. The engine takes a node's out-edges in a fixed order, each one finished before the next: its conditioned edges in the order they are declared (a `decision` takes only the first whose condition holds, unless it declares `mode: 'inclusive'`), then its `isDefault` edge when no condition held, then its unconditional edges, and only those run together. So an unconditional sibling runs after the guarded branch, on every pass; and when the guarded branch parks the run (an `approval`, a `screen`, a `wait`), the run resumes from the step it parked at and the unconditional edge is never taken, a shape the flow schema refuses at save (`flow-sequential-branch-durable-pause-refused`). + + - `flow-decision-unconditional-branch`, the message for a decision with guarded and unconditional out-edges: "traversed on EVERY pass, in parallel with whichever guarded branch matched" becomes "traversed on EVERY pass, after whichever guarded branch matched has run", followed by one sentence on the branch that parks the run. The hint is unchanged, and so is the message for a decision that gates no out-edge at all (there every out-edge is unconditional, and they do run together). + - `skills/objectstack-automation/references/state-machines-and-approvals.md`, the approvals example: "the engine evaluates each out-edge's `condition` and follows every match — and an out-edge with NO condition ALWAYS runs (all such edges execute in PARALLEL)" becomes "a `decision` takes the FIRST out-edge whose `condition` holds. One with none runs AFTER it, every pass, or never if that branch parks the run (refused at save)". The old sentence was also wrong about "every match": a `decision` is exclusive unless it declares `mode: 'inclusive'`. The file's size is unchanged (23708 bytes before and after). + - The plain-language text of `flow-decision-unconditional-branch` for that same shape, in all eleven locales it is written in (en, zh-Hans, zh-Hant, es, ar, fr, pt-BR, ru, de, ja, ko): "runs every time, alongside whichever path matched" becomes "runs every time, after whichever path matched", and each locale's "together with" or "at the same time as" wording becomes its "after". + - `flow-multiple-default-edges`, message and docblock: several `isDefault` edges were said to be "traversed together … a parallel fan-out". The engine takes them one after another in declaration order, and the message now says so. The rule's id, verdict (a warning), trigger and hint are unchanged. + - `skills/objectstack-automation/evals/flows-triggers-approvals.json`, the expected answer of the onboarding-wizard case: "an unguarded out-edge always runs, in parallel" becomes "an unguarded out-edge is no otherwise-branch: it runs after the guarded one, or never once that one parks at its `screen`, a shape the flow schema refuses". +- 75a2d57: fix(lint): the liveness lint walks a stack's `forms` + + Clause-②: no + Metadata-protocol: none + + The `form` metadata type has a liveness ledger (`form.json`, seven `dead` rows), but the stack walk behind `liveness-dead-property` and its sibling rules never read `stack.forms`, so a `defineForm` item that sets one of those keys drew no warning. The walk now reads `forms` the way it reads `reports` and `dashboards`: a form item's ledger keys are its top-level keys, because a form view's body sits at the item's top level. All seven rows are retired keys today, so a parsed stack never carries one and nothing changes for a stack that passes `defineForm`; a stack handed to the lint unparsed now gets the same `dead` finding every other listed type gives, naming the form (`form 'OBJECT.KEY'`). The repository's own example forms (one in the CRM example, seven in the showcase) draw no finding. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/sdui-parser@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/lint/package.json b/packages/lint/package.json index 37f48866d67..fd2c073ed00 100644 --- a/packages/lint/package.json +++ b/packages/lint/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/lint", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Static, build-time validation for an ObjectStack metadata graph — dashboard widget bindings, CEL/predicate expressions, and more. Pure (stack) => Issue[] functions shared by the CLI's `os validate` and any other consumer (e.g. AI authoring). Depends on @objectstack/spec; never on a runtime.", "type": "module", diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.md index f38f33deb52..51aa0992c6d 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -1,5 +1,140 @@ # @objectstack/plugin-mcp-server +## 19.0.0-next.4 + +### Patch Changes + +- e542b7b: feat(service-analytics): a word that names the field a filtered measure candidate sums is answered from that field, not asked about + + Clause-②: yes (widening) — `DatasetToolsDeps` gains an optional `readFieldLabel` + Metadata-protocol: none + + `list_datasets` no longer offers, as a candidate to ask back about, a measure that carries a `filter` and whose aggregated base field the word names: the word equals, or is inside, that field's label or its name (ADR-0149 D3, the amendment note of 2026-12-01). "hours" beside a measure "Billable hours" that sums the field `hours` under a filter is now answered from the field: `nextStep.note` names the field (object and field name), says to answer it with the object query tools labelled as not from a governed metric, and mentions the measure as a narrower declared metric. The measure stays listed in its dataset's entry; it is only absent from `candidates` for that word. + + The decision values are unchanged and read as declared: a word left with no candidate is `no_measure`; a word left with dimension candidates stays `candidates_only`, with the field named and no question; a word left with another measure candidate is still asked about, and the field answers only if that question settles nothing. Unchanged, and still asked about: a measure with no `filter` over the named field, a measure over a relationship path, and a word that names different fields through different measures. The take-out runs before the per-word cap of candidates, so a measure taken out uses no slot. + + Field labels are read by a new optional `DatasetToolsDeps.readFieldLabel` (the authored label and the translation-bundle label for the answer's locale). Both MCP doors (HTTP and stdio) wire it from the object `describe_object` serves; a host that does not tests the field's name only, as the `list_datasets` description says. The `list_datasets` description and the MCP `initialize` selection rule carry the rule in the same sentence, and the `candidates` and `nextStep.note` descriptions in `@objectstack/spec` say it. +- 38ab473: docs(skills): the `objectstack-ask` skill says a word that names the field a filtered measure aggregates is answered from that field, not asked about + + Clause-②: no + Metadata-protocol: none + + The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, now state the rule `list_datasets`' description and the MCP `initialize` selection rule already carry (ADR-0149 D3, the amendment note of 2026-12-01). Step 1: a measure that carries a filter and aggregates a field the word names (the word equals or is inside the field's label or name; the name only where the host reads no field labels) is not offered for that word among `candidates`. A measure with no filter, or over a relationship path, is offered as before, and so is every measure when the word names different fields through different candidates. Step 2 has one new row: for such a word `nextStep.note` names the field, the client does not ask about that measure, answers from the field under the labelled fallback (step 4) and mentions the measure as a narrower declared metric; another measure candidate left for the word is asked about first, and the field then answers only if that question settles nothing. + + The instruction to list each candidate's label, its dataset's label and its description was written twice, in the several-measures row and in the paragraph under the table. It now has one home, the row, which also says "as written, one bullet each". `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. +- f28c39f: feat(core): the bounded document text extractor is exported as `@objectstack/core/document-text` + + Clause-②: yes (widening) + Metadata-protocol: none + + The extractor MCP `read_file` reads PDF, Word, text and image files with now lives in `@objectstack/core` and is exported from a Node-only subpath, so a service that depends on the kernel package (an AI service handing a model a document's text instead of the document) uses it without depending on `@objectstack/mcp`: + + ```ts + import { extractFileContent, ReadFileExtractionBusyError } from '@objectstack/core/document-text'; + + const content = await extractFileContent(bytes, mimeType, fileName); + // { kind: 'text', text, truncated, format, note? } | { kind: 'image', data, mimeType } | { kind: 'none', reason } + ``` + + It keeps every bound `read_file`'s extraction had (how many bytes to read at all stays the caller's cap: `read_file` keeps its 10 MiB `READ_FILE_MAX_BYTES`, and a text or image file is decoded on the calling thread at whatever size it is handed): + + - at most 100,000 characters of text (`READ_FILE_TEXT_MAX_CHARS`), 200 PDF pages, a 32 MiB inflated Word body and a 5 MiB image; + - a CPU-time budget per PDF or Word extraction (`OS_MCP_READ_FILE_CPU_BUDGET_MS`, default 2000 ms), checked between pages and paragraphs, with a wall-clock ceiling of five budgets on a worker; + - a `worker_threads` pool and a process-wide cap on extractions in flight (`OS_MCP_READ_FILE_MAX_CONCURRENT`, default 4); one more is refused at once with `ReadFileExtractionBusyError` (`SERVICE_UNAVAILABLE`, 503, `retryAfterSeconds`), never queued. + + Every caller in one process shares the bounds, the pool and the count, so the cap holds whoever asks, and through whichever copy of the package: an ESM `import` and a CJS `require` of the subpath (or two installed versions) share one state under a registered symbol, and `instanceof ReadFileExtractionBusyError` recognises a refusal from any copy. A host that bundles `@objectstack/core` into one file ships `dist/document-text-worker.js` (or `.cjs`) beside its bundle, or points the pool at wherever it put that file with `configureExtractionWorkerEntry` (the file is addressed by path; no `exports` entry names it). Without a worker, that copy extracts on the request thread under the same two bounds, said once at `warn`; another copy in the same process that finds its worker keeps reading on workers, and an idle worker serves any copy. + + The subpath is kept off the main entry, so a host that never reads a document never loads `unpdf`, which is now a dependency of `@objectstack/core` instead of `@objectstack/mcp`. `read_file` reads through the shared extractor and answers as before; the two host variables keep their names and defaults. One fix on the way: the pool now copies the bytes it hands a worker into a fresh `Uint8Array` instead of slicing them, so a Node `Buffer` (whose `slice` is a view over shared memory) reads on a worker instead of failing to transfer, which `read_file` answered with its could-not-read sentence, and the caller's `Buffer` is left intact. One operator-visible change: the one-time `warn` when no worker can start now reads `[document-text] PDF and Word text (read_file and every other caller) is extracted on the request thread, not on a worker: …` (was `[MCP] read_file extracts PDF and Word text on the request thread, not on a worker: …`), since it now speaks for every caller; a log alert matching the old text needs the new one. +- 9a13387: fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + + Clause-②: no + Metadata-protocol: none + + A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + + - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. + - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + + The same release refreshes four runtime dependencies to their latest patch level: + + - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. + - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). + - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + + The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [2595004] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [1aa9c57] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [197e3ff] +- Updated dependencies [913d30d] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [ff491c4] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [75a2d57] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/lint@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/rest@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 477d9ea70a6..383a0acde7d 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/mcp", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack as an MCP server — exposes your app's objects (and AI tools) over the Model Context Protocol (stdio + Streamable HTTP)", "type": "module", diff --git a/packages/metadata-core/CHANGELOG.md b/packages/metadata-core/CHANGELOG.md index faa32a245da..55d947eb8a6 100644 --- a/packages/metadata-core/CHANGELOG.md +++ b/packages/metadata-core/CHANGELOG.md @@ -1,5 +1,153 @@ # @objectstack/metadata-core +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 3c617a2: feat: forms leave `view` — the protocol-19 form move and its switch command (ADR-0159 card ⑤b, part 1) + + Clause-②: yes + Metadata-protocol: none + + **Sources.** `os migrate meta --from 18` moves each form a stack authors in `views[]` — a container's `form`, a `formViews` entry, a `viewKind: 'form'` item — to `forms[]`, under the name it is served as today, its binding lifted to `object` and its body at the top level, with its `sharing` block, switch and `overrides` declaration as written (conversion `view-forms-to-form-items`). An internal record form (a record-form slot, no public link, no `type: 'form'` action that opens it, no `overrides`) is deleted: New and Edit lay a record out by the object's field groups. A form that declares a public link, switched on or off, is never deleted, and an item that declares `overrides` always moves. A container left with no member is removed. A translation bundle's `objects.OBJECT._views.KEY.title` and `.submitBehavior` move to `forms['OBJECT.KEY']` for each form that is a `forms[]` item after the move (conversion `translation-view-form-tails-to-forms`); `label` and `description` stay. What the move cannot decide — a form whose `data.object` disagrees with its container, a non-object `data` binding, a key a `form` item does not carry, a name `forms[]` already holds, an unreadable body, two forms on one public address, a moved override for `os validate`, the translation tails of a form left in `views[]` or named by no `forms[]` item, a translation tail `forms` already holds, a `_views` label of a moved form — is left in place or moved as written and listed per site by `os migrate meta`. The two semantic entries are `view-forms-move-to-form-type` and `translation-form-tails-move-to-forms`. + + **Stored rows are not rewritten by the conversions.** `view-forms-to-form-items` and `translation-view-form-tails-to-forms` are on the stored seam's `STORED_ROWS_NOT_REWRITTEN`: a stored `view` row keeps its forms, read through the projection, and a stored translation row keeps the `_views` tails those forms are read through. The artifact forward door (`@objectstack/metadata-core`) refuses both by id too, so an installed package keeps its forms in `views[]`, read through the projection, until the deployment switches. + + **`os migrate protocol --to 19`** is the deployment's switch. It previews by default (the stored-form census, and whether the deployment can switch; exit 1 when a row holds it, each row with the action for its cause). `--apply` runs the stored-form ceremony all or nothing, runs the census again, and only when nothing is left to move or remove records a verified `sys_migration` row, `adr-0159-form-type-switch` (`FORM_TYPE_SWITCH_MIGRATION_ID` in `@objectstack/spec/system`). A held run writes nothing, the marker included; a database whose driver cannot roll back is refused first. + + `form-view-modal-size-removed` now applies after the move (its result over sources is unchanged; its notice names the form's address on 19). `@objectstack/lint` adds `shippedFormNames` (what a package ships as `form`, in either type, through the projection) and D7-b's rule `form-override-base-ships-no-form` with its remedy, which `os validate` prints for an override of a form its base does not ship: remove the item, or correct the name. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(metadata-core): the judge of an approval's opening conditions on a closing field lives here, so every door asks one copy (ADR-0162 D5) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `@objectstack/metadata-core` exports the judge the approvals plugin's first-request check used to hold, `judgeApprovalOpening` (it awaits each flow it reads), with `judgeApprovalOpeningSync` (over a stack in hand: a flow read that answers a promise counts as a flow it cannot read), the walk both drive, `approvalFlowWalk`, and the helper and types they read (`closedValuesOf`, `OpeningCheckSource`, `OpeningFlow`, `OpeningFlowBody`, `OpeningGap`, `OpeningJudgement` and the rest). `OpeningCheckSource.calleeFlow` may answer a flow or a promise of one. The verdict and its gaps are unchanged; nothing an author writes changes. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(metadata-core): the field-level-security scrub serves an object's closed states without the fields a caller cannot read + + Clause-②: yes (widening: one new optional authorable key, `ObjectSchema.closedStates`) + Metadata-protocol: added + + `closedStates` (ADR-0162 D1) is classified in the object-schema FLS reference table as a map keyed by this object's fields: an entry whose field is denied to the caller is left out of the served definition, and a map left empty is deleted. The listed values are option codes, never field references, so a value spelled like a denied field is served as written. The stored declaration is untouched. +- fc7534a: fix(metadata-protocol): concurrent saves on a connection with no transaction no longer collide on the history event number + + Clause-②: no + Metadata-protocol: none + + On a database connection that gives no transaction (remote Turso), several metadata saves made at once each read the same highest event number from `sys_metadata_history` and took the next one. The unique index on `event_seq` let one history row in and refused the others with `409 DUPLICATE_RECORD` ("No record was written."), while every one of those saves had already written its `sys_metadata` row. History lost the entries, and an agent retried saves that had landed. + + Now, where the write runs with no transaction, the history append reads the event number again after a short random wait and inserts again, up to eight attempts. Each save that answers success has its row and its history row, and the number it answers, and broadcasts to `watch()` subscribers, is the one stored. The same holds for the tombstone of an active delete. + + When concurrent writes still keep the history row out, the save answers `409 CONCURRENT_UPDATE` with a sentence that says what is stored: + + - the write was undone (a new draft removed, an updated row put back, a deleted row restored), so nothing from it is stored; or + - another writer had already replaced the row, so this write is not stored; or + - the row was written without its history row: a concurrent save of the same item recorded the same version first (this case is not retried, because numbering past it could leave the newest history version naming a different body than the live row), or undoing the write failed. + + None of these answers says "no record was written" about a row that was written. A history insert that fails for another reason (a dropped connection, say) is answered as before. + + Connections that give a transaction (Postgres, MySQL, file SQLite, the in-memory driver) are unchanged: one attempt, and a refused history row rolls the whole save back. + + In `@objectstack/metadata-core`, the `sys_metadata_history` object's docblock now says that `event_seq` is derived inside a transaction only where the connection gives one. +- b706ec6: fix(metadata-core): the artifact door replays the form move, so pre-19 package artifacts read again + + Clause-②: no + Metadata-protocol: none + + A package version built before protocol 19 (an `engines.protocol` range such as `^18.6.0`, or a `^19.0.0-next.*` prerelease build) that keeps its forms in `views[]` — a container's `form`, a `formViews` entry, a `viewKind: 'form'` item — was refused whole on a 19 runtime: the strict parse refuses those members (`view.form was removed in @objectstack/spec 19.0.0`, `INVALID_ARTIFACT_PACKAGE_ENTRY`), and nothing reads a form out of a `view` any more. A stored or installed package version cannot be rebuilt at rest, so it could not be read, installed or upgraded from. + + `applyArtifactForwardConversions` now replays the protocol-19 form move (`view-forms-to-form-items`) and its translation companion (`translation-view-form-tails-to-forms`) inside its usual versioned window, the same way it replays any other retired conversion. Such an artifact reads as the 19 package its source would build after `os migrate meta --from 18`: + + - each view-held form arrives as a `form` item under the name it was served as (`OBJECT.KEY`), with its binding lifted to `object` and its `sharing` block as written; + - an internal record form (a create or edit form in a record-form slot that declares no public link, that no `type: 'form'` action opens and that declares no `overrides`) is removed, as `os migrate meta --from 18` removes it: New and Edit lay out by the object's field groups; + - the form's translation tails under `objects.OBJECT._views.KEY` (`title`, `submitBehavior`) move to `forms['OBJECT.KEY']`. + - the translation tails of an internal record form the replay removes (its translated `title`, its `submitBehavior` thank-you panel) are removed with it, one conversion notice each; a tail whose form stays in `views[]`, or that names a form the package does not serve, is left as written and the strict parse still refuses it. + + A 19 body carries no view form, so the replay changes nothing for it. A form the move leaves in place (for example one bound to another object) stays in `views[]` and is still refused by the strict parse, with its prescription. The door rewrites the artifact in memory at each read; stored metadata rows are not rewritten. + + For package authors: nothing to do for a version already published. Rebuilding with a 19 toolchain (`os migrate meta --from 18`, then `os build`) still removes the conversion notice from the boot log. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/metadata-core/package.json b/packages/metadata-core/package.json index e388adb41f7..f238a0de681 100644 --- a/packages/metadata-core/package.json +++ b/packages/metadata-core/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/metadata-core", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Metadata Repository contracts: types, canonicalization, errors, interface (ADR-0008).", "type": "module", diff --git a/packages/metadata-fs/CHANGELOG.md b/packages/metadata-fs/CHANGELOG.md index bc07b95af1e..853c24cca74 100644 --- a/packages/metadata-fs/CHANGELOG.md +++ b/packages/metadata-fs/CHANGELOG.md @@ -1,5 +1,17 @@ # @objectstack/metadata-fs +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [fc7534a] +- Updated dependencies [b706ec6] + - @objectstack/metadata-core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/metadata-fs/package.json b/packages/metadata-fs/package.json index 6230ce41bba..cea7014ccd7 100644 --- a/packages/metadata-fs/package.json +++ b/packages/metadata-fs/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/metadata-fs", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "FileSystemRepository: Node-only Repository implementation backed by JSON files and a JSONL change log (ADR-0008).", "type": "module", diff --git a/packages/metadata-protocol/CHANGELOG.md b/packages/metadata-protocol/CHANGELOG.md index f82d6df989d..05096ceb878 100644 --- a/packages/metadata-protocol/CHANGELOG.md +++ b/packages/metadata-protocol/CHANGELOG.md @@ -1,5 +1,254 @@ # @objectstack/metadata-protocol +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 7b68db9: feat(data): one record lock read, for closed states and approvals + + Clause-②: yes (widening) + Metadata-protocol: added + + An app can now ask whether a record is locked, and by which lock, in one read that covers both locks a record can be under: a declared closed state (an object's `closedStates`, or a `master_detail` line of a closed record) and an approval. Before this, a client could only ask the approvals read, which knows nothing of closed states, so a closed invoice looked editable until the save was refused. + + - `GET /api/v1/data/{object}/{id}/lock` answers one record: `{ locked, lockSource?, lockReason? }`. `lockReason` is `closed_state` or `approval`, `lockSource` is `record` or `master`, and both are present exactly when `locked` is true. A record the caller cannot read, or that does not exist, answers 404. + - `POST /api/v1/data/{object}/locks` answers a page of up to 200 records, body `{ "recordIds": [...] }`; a record the caller cannot read answers `locked: null`. A longer list is refused whole with 400. + - `client.data.getRecordLock(object, id)` and `client.data.getRecordLocks(object, recordIds)` call them. The shapes are `RecordLockSchema`, `GetRecordLocksRequestSchema` and `GetRecordLocksResponseSchema` in `@objectstack/spec/api`. + + Every user who can read the record is told, even when field permissions hide the state field. The answer never names the field, the value, the approval request or its participants. The read works without the approvals plugin; then only closed states lock. + + The upload-link door now asks this read before it issues a file-field link: a closed record is refused with "the record is closed, so no file can be added to it", a record an approval holds with the existing approval sentence. + + Nothing existing changes: the approvals read (`/api/v1/approvals/records/...`), its SDK methods and service members answer exactly as before. +- ca26605: fix(objectql): a tenant's copy of a packaged validation rule is judged against the rule the object serves while an extension package is disabled + + Clause-②: no + Metadata-protocol: none + + When two packages extend one object with a validation rule of the same name and the later package is disabled, the object serves the enabled package's rule. Saving the object with a copy of that rule that changes only its `message` or `active` was refused with "this copy changes `condition`", because the save door compared the copy with the disabled package's rule; a copy carrying the disabled package's condition was accepted. The save door now judges a rule name an enabled layer ships against the rule the object serves, so the reworded copy saves and the disabled package's condition is refused. + + A rule name that only a disabled package ships stays reserved for that package, which takes it back when it is enabled again: a copy that changes its condition or type is still refused, and the refusal now says that the rule's package is switched off. Its `message` and `active` can still be changed. Only a package's code extensions reserve a name. The registry's load report (`validation_rule_copy_changed`) judges the same way, so reading the object with the disabled package's extensions included, as schema sync does, no longer reports a copy of the served rule. +- fbee4b7: fix(metadata-protocol): a package copied under a new namespace opens and translates its own dashboards, pages and reports + + Clause-②: no + Metadata-protocol: none + + When a package is copied under a new namespace (`duplicatePackage`, or an unmanaged install with `targetNamespace`), its dashboards, pages and reports were renamed (`crm_sales` became `crm2_sales`), but the names that open them were not. The copy's app menu (`dashboardName`, `pageName`, `reportName`) still opened the source package's items, and its translation bundle (`dashboards`, `pages`, `reports` keys) still translated the source's items. A dashboard header action that runs a flow (`actionType: 'flow'`) kept the source's flow name in `actionUrl`. + + The copy now renames a name at every reference site the derived reference index lists, for every metadata type it lists: dashboards, pages, reports, datasets, actions, apps, views, books, docs, skills, tools and the rest, besides objects and flows. A name is renamed only when it is exactly the name of an item the copy renames. Names of items outside the package stay as written. A report or dashboard widget bound to a dataset of the same package now binds the copy's dataset. Before, that binding kept the source's name, and an unmanaged install with `targetNamespace` of such a package was rolled back whole (`chart-dataset-unknown`). A dashboard header action's `actionUrl` follows the flow rename only beside `actionType: 'flow'`; with any other action type it is a URL or another target and is left as written. + + If a renamed name would land on a name the item already holds at the same site (for example a translation keyed by both `crm_sales` and `crm2_sales`), the copy is refused, as it already was for objects and flows: the duplicate lists that item in `failed[]`, and the unmanaged install refuses the whole package. Rename or remove one of the two names on the source, then copy again. + + No action needed: nothing changes for a package installed under its own namespace. +- f13adae: fix(metadata-protocol): the bare doc read of the environment's own entry carries the environment's envelope, never a package holder's + + Clause-②: no + Metadata-protocol: none + + A doc read that names no package (`GET /api/v1/meta/doc/NAME`, and the in-process `getMetaItem` with no `packageId`) answers the environment's own doc entry when one or more enabled packages ship the same name. It served that entry's content under the first registered holder's envelope: `item._packageId` and `item._packageVersion` that holder's, `_provenance: 'package'`, and the read envelope's `packageId`, `packageVersion` and `provenance` likewise. A client trusting the envelope read the environment's item as that package's, and with two holders the package it named followed registration order. + + FROM the entry under the first registered holder's envelope, TO the entry under its own: no `_packageId` or `_packageVersion`, its own `_provenance` (`org` for a stored row the environment saved), and no `packageId` on the envelope. The lock is unchanged: it is still the write doors' answer at that address, and a save naming no package is still refused while a holder ships the name, so the envelope still reports `lock: full`. `?package=PACKAGE` still reads that package's doc under that package's envelope. `/layers` and `/published` carried no package envelope and are unchanged. + + The fix for a caller that read the holder's id from the bare read: name the package (`?package=PACKAGE`, or `packageId` in process). The `os migrate meta --from 18` entry `doc-bare-read-environment-entry-first` no longer lists this as a known deviation. +- 670bc89: fix(metadata-protocol): a disabled package counts for nothing at the environment address, the delete naming no package and the read beside a package-less row + + Clause-②: no + Metadata-protocol: none + + A disabled package holds no name and is never named (ADR-0150 D3). Three doors still counted one. + + - **`GET /api/v1/meta/TYPE/_env/NAME`** (the plain read, `?layers=true`, `?state=draft`, `?preview=draft`, and the `_env/NAME` spelling of an import's `mappingName`), for a name the registry knows only through a disabled package while an enabled package holds it through a stored row or draft the registry has not loaded: the answer was `409 RESOURCE_CONFLICT` naming the disabled package. It is now `409 RESOURCE_CONFLICT` naming the enabled package whose row or draft the read that names no package serves (`details.candidates`), and never that row. Where that read answers 404, `_env` still answers 404. + - **`DELETE` naming no package, and the draft discard naming no package**, of an item whose stored rows are bound to a disabled package and to the one enabled package that ships the name: the answer was `409 RESOURCE_CONFLICT` naming both. Each now removes the enabled package's row or draft, as the same request with `?package=` naming it does, and leaves the disabled package's rows as they are. With two or more enabled holders the refusal still names exactly them. + - **The receipt of `DELETE` and of the draft discard**, bare or naming the enabled package, beside a disabled package's rows: it said the item "still carries another overlay: its row bound to package 'D' remains", naming the disabled package, and for a name only a disabled package ships in code it said "reset to artifact default". A disabled package's row is no remaining overlay and its code is no artifact default: the receipt now reads as it does without the disabled package ("reset to artifact default" where the enabled package ships the name, "it no longer exists" where no enabled package does). Repeating the bare delete or discard once the enabled package's row or draft is gone answered by removing the DISABLED package's row or draft (a customization hidden with it); it now answers the no-op receipt at the enabled package's address and leaves the disabled package's rows stored. A `dropStorage` delete still counts every stored row. + - **The read that names no package** (`GET /api/v1/meta/TYPE/NAME`, `/layers`, `/published`), of a name a disabled package ships in code only, beside one enabled package's stored row and a package-less row: the answer was 404. It now serves the enabled package's row, as it does when the disabled package does not ship the name. + + Not changed here: the draft save naming no package of the second case still answers `409` naming both packages. To write the enabled package's draft now, name it: `?package=PACKAGE`. +- d9b72aa: fix(metadata-protocol): the draft save naming no package beside a disabled package's rows writes the one enabled holder's draft + + Clause-②: no + Metadata-protocol: none + + A draft save that names no package, of an item whose stored rows are bound to a disabled package and to the one enabled package that holds the name, now writes that enabled package's draft, as it does when the disabled package is not installed. The disabled package's rows stay as they are. Before, the save was refused `409 RESOURCE_CONFLICT` naming both packages, the disabled one among them, while the read naming no package served the enabled package's item and the publish save wrote its row. The bare delete and draft discard already act at that package's address. Where two or more enabled packages hold the name, the draft save is still refused naming only those packages. +- d38006b: fix(discovery): `routes.approvals` is advertised exactly when the approvals doors serve + + Clause-②: no + Metadata-protocol: none + + The discovery document now fills the declared `routes.approvals` key when the request's kernel has an `approvals` service, and leaves it out when it has none. That is the same check the approvals doors make: each one answers `501 NOT_IMPLEMENTED` when no approvals service is present. The REST discovery endpoint reports the base it mounted the doors on, so a deployment with a moved `apiPath` or an environment-scoped request reads its own base back, not the `/api/v1` default. Before this change no producer ever filled the key, so a client could not learn from discovery that a deployment runs no approvals service. The SDK still falls back to `/api/v1/approvals` when the key is absent, as before. +- 491ea82: fix(migrate): `os migrate meta --stored` judges a stored view's `bulkActions` with the actions the deployment declares, and is not green over a row the runtime serves invalid + + Clause-②: no + Metadata-protocol: none + + **A stored view's `bulkActions`.** The stored pass replays the conversion chain over each `sys_metadata` row on its own, so a Studio-saved list view whose `list` still carried `bulkActions` was told its actions were "not declared as an action of that object", even where the package declares them on that object. The pass now runs the same conversion (`view-bulk-actions-to-action-selection`) again for such a row, with the deployment's declared objects and actions beside it, as the registry holds them: + + - the package's actions already carry the `selection` location, and no `actionLayout.selection` is needed: the view row alone is the write, so it is listed as pending and `--stored --apply` rewrites it without `bulkActions`; + - the actions are declared but still lack `selection` (or the bar's order needs the object's `actionLayout.selection`): that write is the package's, not the row's, so the row stays as stored and its TODO says so. It names the actions and both fixes: add `'selection'` to those actions in the package source and deploy it, or re-save the view without `bulkActions`; + - an action really is undeclared, two lists order the bar differently, or the object already declares an arm: the conversion's own reason, now given with the actions in view. + + **Rows the runtime serves invalid.** Each row whose body the pass reads is judged with the runtime's own check. That is the body the boot hydration registers for the row (`convertStoredItem`), validated by `computeMetadataDiagnostics`, the check behind the `[metadata_spec_invalid]` boot line and the reads' `_diagnostics` badge. A row that fails it carries `servedInvalid: { path, message }`, and the report counts them in `servedInvalid`. `storedMigrationClean` is false while that count is not zero, so `os migrate meta --stored` exits 1. The output lists each such row with its id, the site the schema refuses and its fix, and says why the run is red. `--json` gains `servedInvalid` (the count, and the per-row field) beside `clean`; no existing field is renamed or removed. Not judged: a row stored under a non-canonical type, an organization-scoped row, and a row the chain yields no item of, because the runtime serves none of them under that type. A row that converts nothing and is served invalid is now listed `skipped` with that reason, where it used to be counted `canonical`. + + **Cost.** A deployment holding an unrelated invalid stored row now goes non-green (exit 1) until that row is fixed. The line names the row and its fix. That includes a row whose only finding is a TODO no conversion can rewrite (for example a `controlled_by_parent` object the protocol refuses): those used to be `skipped` and left the run green. The report-only review lists (stored decision nodes, stored permission-set View All / Modify All entries) are unchanged: they still move no count and no verdict. +- 7f72b49: fix(cli): `os migrate meta --from 18` names each own field row beside Modify All that protocol 19 narrows + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `@objectstack/spec` exports `ownFieldRowsBesideModifyAll` and the types `OwnFieldRowBesideModifyAll`, `OwnFieldRowProtocol18Outcome` and `OwnFieldRowProtocol19Outcome`; `os migrate meta --from N --json` gains the key `ownFieldRowNarrowing`, present only when the list is not empty; `StoredViewAllFieldsReview` (`os migrate meta --stored --json`) gains the optional member `ownFieldRows`, and `@objectstack/metadata-protocol` exports its element type `StoredOwnFieldRow`. Nothing a metadata author writes changes. + + The upgrade text no longer says that the `viewAllFields: true` written beside View All or Modify All keeps every field read. It keeps the field reads the bits cast, except a field the set's own `readable: false` row hides beside Modify All, and it keeps no edit Modify All cast. The protocol-19 behaviour itself is unchanged. + + `os migrate meta --from 18` now lists each own field row beside a Modify All bit that the run writes `viewAllFields: true` beside, where the row's answer changes on protocol 19. Each line names the permission set, the `objects` entry and the field row; what the set's holders got on protocol 18 (read and edit: Modify All voted over the set's own rows); what they get on 19 through that set (`hidden`, `read-only`, `read-only-where-when-matches` for a row-conditioned lock, or `edit-only-where-when-matches` for a row-conditioned edit); and the choice: change the row to keep the protocol-18 answer, or accept the narrowing. Following the choice takes the row off the list. A set that already carries `viewAllFields` beside the bit (a source the edit was applied to) is not listed; review its own rows beside Modify All by hand. Example, for a set with View All and Modify All on `contact` and its own `'contact.salary': { readable: false }` row: + + ```text + 1 own field row(s) beside Modify All that protocol 19 narrows — the `viewAllFields: true` written beside the bit does not keep them: + ⚠ permission set 'hr_manager' (permissions[0]), objects entry 'contact', field row 'contact.salary' + protocol 18: read and edit (Modify All voted over the set's own row) + protocol 19: hidden, no read and no edit (the set's own `readable: false` row binds) + choice: to keep the protocol-18 read and edit, change the row to `readable: true, editable: true`; otherwise accept the narrowing. + ``` + + `--json` carries the same list under `ownFieldRowNarrowing` (`set`, `at`, `object`, `field`, `protocol18`, `protocol19`, `choice`); no other key changes. + + `os migrate meta --stored` names the same rows of a stored permission set under its entry in the View All Fields review list, and its `--json` entries carry them as `ownFieldRows`. View All alone is never listed: on 18.6.0 a set's own row already bound beside its own View All. Protocol 18 here means 18.6.0, the release the card measured. +- fc7534a: fix(metadata-protocol): concurrent saves on a connection with no transaction no longer collide on the history event number + + Clause-②: no + Metadata-protocol: none + + On a database connection that gives no transaction (remote Turso), several metadata saves made at once each read the same highest event number from `sys_metadata_history` and took the next one. The unique index on `event_seq` let one history row in and refused the others with `409 DUPLICATE_RECORD` ("No record was written."), while every one of those saves had already written its `sys_metadata` row. History lost the entries, and an agent retried saves that had landed. + + Now, where the write runs with no transaction, the history append reads the event number again after a short random wait and inserts again, up to eight attempts. Each save that answers success has its row and its history row, and the number it answers, and broadcasts to `watch()` subscribers, is the one stored. The same holds for the tombstone of an active delete. + + When concurrent writes still keep the history row out, the save answers `409 CONCURRENT_UPDATE` with a sentence that says what is stored: + + - the write was undone (a new draft removed, an updated row put back, a deleted row restored), so nothing from it is stored; or + - another writer had already replaced the row, so this write is not stored; or + - the row was written without its history row: a concurrent save of the same item recorded the same version first (this case is not retried, because numbering past it could leave the newest history version naming a different body than the live row), or undoing the write failed. + + None of these answers says "no record was written" about a row that was written. A history insert that fails for another reason (a dropped connection, say) is answered as before. + + Connections that give a transaction (Postgres, MySQL, file SQLite, the in-memory driver) are unchanged: one attempt, and a refused history row rolls the whole save back. + + In `@objectstack/metadata-core`, the `sys_metadata_history` object's docblock now says that `event_seq` is derived inside a transaction only where the connection gives one. +- 7814822: fix(metadata-protocol): a `list_drafts` verdict no longer re-collects its package for every draft + + Clause-②: yes (widening: the exported `ObjectStackProtocolImplementation#getMetaItem` request type gains one optional in-process member, `packageClosures`; a caller that omits it behaves exactly as before) + Metadata-protocol: none + + The open MCP draft door's `list_drafts` judges each draft with a strict draft read and a publish judgement. The judgements already shared one publish closure per package (the package's other drafts), but the strict draft read folded its own publish verdict into `_diagnostics` without it, so it collected the whole package again for every draft. One verdict cost about 25 + P queries, where P is the number of drafts in the package, and a whole list P × (25 + P). + + `ObjectStackProtocolImplementation#getMetaItem` now takes an in-process `packageClosures` map, the one `draftPublishJudgement` already takes, and hands it to the strict draft read's folded judgement. The door passes the map its judgements use, so the closure is collected once per package per `list_drafts` call. Measured on SQLite, one package: 10 drafts 352 → 242 queries, 50 drafts 3752 → 1202, 100 drafts (50 judged under the door's cap) 6302 → 1252; about 23 queries per verdict whatever the package's size, plus one collection of the package. + + Nothing a caller can send over the wire changes. The key is not read from any HTTP or MCP request, and only a `Map` is taken, which no JSON body or query string decodes to. A `/meta` draft read names no map: it collects its own closure on every read and folds the same `_diagnostics` as before. A map lives for one `list_drafts` call; nothing is kept between calls. +- da4efea: fix(metadata-protocol): withdrawal reads in every package binding + + Clause-②: no + Metadata-protocol: none + + The public form doors judge a stored form withdrawal held in a view container named after its object the same way whichever package its row is bound to. The read behind that judgement now covers every binding of such a stored body. No other read changes: the `view` list, the `form` read and the authoring doors serve what they served before. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [2595004] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [1aa9c57] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [197e3ff] +- Updated dependencies [913d30d] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [ff491c4] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [75a2d57] +- Updated dependencies [9a13387] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/lint@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/metadata@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + - @objectstack/sdui-parser@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/metadata-protocol/package.json b/packages/metadata-protocol/package.json index 25cf1f47a07..519c6ec0842 100644 --- a/packages/metadata-protocol/package.json +++ b/packages/metadata-protocol/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/metadata-protocol", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack metadata management protocol: sys_metadata CRUD, draft/publish, locks, package ownership, diagnostics (ADR-0076).", "type": "module", diff --git a/packages/metadata/CHANGELOG.md b/packages/metadata/CHANGELOG.md index 0e8d296e3ed..8d0ec01f2b1 100644 --- a/packages/metadata/CHANGELOG.md +++ b/packages/metadata/CHANGELOG.md @@ -1,5 +1,87 @@ # @objectstack/metadata +## 19.0.0-next.4 + +### Patch Changes + +- 9a13387: fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + + Clause-②: no + Metadata-protocol: none + + A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + + - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. + - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + + The same release refreshes four runtime dependencies to their latest patch level: + + - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. + - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). + - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + + The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + - @objectstack/metadata-fs@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/metadata/package.json b/packages/metadata/package.json index b68a941d95b..7ebd5acc31a 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/metadata", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Metadata loading, saving, and persistence for ObjectStack", "type": "module", diff --git a/packages/objectql/CHANGELOG.md b/packages/objectql/CHANGELOG.md index 237cb897124..4fd610b9dcf 100644 --- a/packages/objectql/CHANGELOG.md +++ b/packages/objectql/CHANGELOG.md @@ -1,5 +1,187 @@ # @objectstack/objectql +## 19.0.0-next.4 + +### Minor Changes + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(objectql): a record in a closed state, and its lines, are closed to change (`closedStates`, ADR-0162 D2 to D7, D10) + + Clause-②: yes (widening: the engine enforces the new optional key `ObjectSchema.closedStates`; an object without it behaves exactly as before) + Metadata-protocol: none + + A record whose stored state is one of the values its object lists in `closedStates` is closed, and so are its direct `master_detail` lines (a junction row is a line of both masters). Every write a system context does not make is refused `409 RECORD_LOCKED`, with `reason` (`record_closed`, `master_closed`, `cascade_reaches_closed`, `cannot_judge`), `object`, `blockingObject` and `lockReason: 'closed_state'`; the message names no record id and no state value. + + - **What is judged**: an update or delete of a closed record; a line create, update, delete or move under a closed master, or out of one. An update is judged by the stored row, not by its payload, so the write that closes a record lands whole, other fields included, and the next write is refused. A write with no context is bound. + - **Many-row writes are refused whole**, before any row is written: one existence probe where the store compiles the line semi-join (SQL, the memory driver), otherwise the write's one read of its matched rows, under the engine's per-row ceiling. + - **Refused when it cannot be judged**: a master named in a form the engine cannot read as one id, a master or state read that fails, a many-row line write over the ceiling on a store with no probe. + - **Cascades and restore**: a delete whose cascade reaches a closed record removes no row, with or without transactions; restoring a line under a live closed master that is not part of the entry is refused. The referential clear of a deleted record's references, the recycle-bin relink, and the roll-up summary recompute (a system context) land. Change Owner and the hand-over of a banned user's work are bound like any edit: each closed record is listed among the failures. + - **Placement**: after the permission and record-access gates, before the before-hooks; a master the write names is checked through the caller's own read first. A master a before-hook supplies is not judged. + - **The registry fold** keeps a package's declaration honest: an extension's redeclaration that removes, retypes, makes multi-value or narrows a field the declaration names is refused (the field stands, and the fold logs it once), and a tenant overlay may add closed values but may not shorten the package's list or break a field it names. +- cef9a80: feat(setup): Setup navigation gets ten group anchors; a nav group's `renamedFrom` keeps retired ids working + + Clause-②: yes (widening) + Metadata-protocol: added + + **New key: `renamedFrom` on a group nav item** (`GroupNavItemSchema`, optional, a list of nav ids). It names the group ids the group replaced. A `navigationContributions[]` entry whose `group` names one of them lands in that group instead of the app's top level. The merge looks for an exact group id first and reads `renamedFrom` only when none matches. The app's own parse refuses an entry that is the group's own id, repeats in the list, is an id another entry of the app still declares, or is claimed by a second group, and refuses the key on a group inside `areas[].navigation`, where no contribution is merged. Nothing changes for an app that does not write the key. `@objectstack/spec/ui` exports the check, `checkAppNavGroupRenamedFrom`, and `@object-ui/types`' `AppComponentSchema` chains it and accepts `renamedFrom` on a navigation item, so objectui's validator judges the key as the publish door does instead of dropping it. + + **New warning: `nav_contribution_group_renamed`.** A contribution that names a retired id is logged at `warn` by the runtime and reported by `os build` and `os validate` under its own headline. The message names the package, the retired id and the group that took it over; the fix is to change the contribution's `group` to the new id. It is not a relocation, so the published relocation surface keeps its contract: `NavContributionGroupDiagnostic`, `checkNavContributionGroups()` and `SchemaRegistry#getAppNavDiagnostics()` are unchanged and never carry it (a group id that resolves through `renamedFrom` is not reported there). `@objectstack/objectql` adds `checkNavContributionGroupRenames()` (the compile-time notices, `NavContributionGroupRenamedDiagnostic[]`), `resolveNavGroup()`, `navContributionGroupRenamedDiagnostic()`, `NAV_CONTRIBUTION_GROUP_RENAMED`, and the `NavContributionGroupRenamedDiagnostic` / `NavContributionGroupFinding` (either finding) / `NavGroupResolution` types; `findNavGroup()` now also finds a group through its `renamedFrom`, and `formatNavContributionGroupDiagnostic()` accepts either finding. + + **Setup's anchors.** The System Overview dashboard is pinned above the groups. The groups, in order: `group_users_org`, `group_access_sharing`, `group_apps_ai`, `group_routing_approvals`, `group_audit_data` (expanded), then `group_company`, `group_currency_units`, `group_notifications`, `group_login_security`, `group_integrations_dev` (collapsed), labelled in all 11 Setup locales. Each group that replaced an old anchor lists it in `renamedFrom`, so every existing contribution still lands in the right place, with the warning above. `group_overview` has no successor: a contribution still naming it is appended at the top level with the `nav_contribution_group_missing` warning, and it loses the `manage_platform_settings` gate that group carried. In this repository that is `@objectstack/mcp`'s "Connect an AI Assistant" entry (`nav_connect_agent`, no gate of its own): until its contribution moves to a new anchor it shows at Setup's top level to everyone who can open Setup, not only to holders of `manage_platform_settings`. The page itself was already open to every user through the Account app. + + **What a package author does.** If your package contributes into Setup, change `group` to the new id named in the warning: `group_people_org` → `group_users_org`, `group_access_control` → `group_access_sharing`, `group_apps` → `group_apps_ai`, `group_approvals` → `group_routing_approvals`, `group_diagnostics` → `group_audit_data`, `group_configuration` → `group_company`, `group_integrations` and `group_advanced` → `group_integrations_dev`. A translation bundle keyed by an old group id (`apps.setup.navigation.`) no longer labels anything; key it by the new id. + +### Patch Changes + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(automation): every write of a run carries the root run of its tree (`flowRootRunId`, ADR-0162 D5) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: a data write a run makes (`resolveRunDataContext`, the run identity of `@objectstack/service-automation`) carries `flowRootRunId`, the run id of the root of its run tree, beside `flowRunId`; the engine carries it onto the write's `HookContext.provenance` (`@objectstack/objectql`), the platform system api strips it with the other run marks, a sandboxed body and script see it among the declared provenance members (`@objectstack/runtime`), and it is one of the fields an entry point may not set on an `ExecutionContext` (`assembleExecutionContext`, `@objectstack/core`). The approvals plugin reads it to let every run of an approval through the hold. Absent on a write that is not a run's. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(spec,objectql): the closed-state refusal's own sentences, in every locale (ADR-0162 D8) + + Clause-②: yes (widening: new keys in the published Operation Message Catalog and the upload-link copy; contract-review-tier review owed) + Metadata-protocol: none + + A write refused because a record is in a closed state (`409 RECORD_LOCKED`, ADR-0162) tells the person what happened, in their own language, with a sentence from the Operation Message Catalog. + + - **New catalog keys** in `BUILTIN_OPERATION_MESSAGES`, in every locale the catalog carries (en, zh-CN, ja-JP, es-ES), overridable per deployment under `errors.` like every other key: `record_closed` with its `_unlabeled`, `_untitled` and `_opaque` forms, and `record_closed_delete_blocked` with its `_untitled` and `_opaque` forms. English, for example: "Invoice 'Northwind March' is closed, so it and its lines can no longer be changed or deleted", and "Customer 'Contoso Holdings' cannot be deleted: deleting it would also remove a closed Invoice or one of its lines". + - **The engine words the refusal from them.** The refusal names a title only from a field that holds display text and that the writer's generic read returns, and that the writer is served under its own field permissions (readable and queryable): not a field the generic read withholds (`internal`, or a credential type), not a reference field, not a field the object's `closedStates` names. Otherwise the sentence names the object's label only, and so it does when a registered security service cannot be resolved. With no security service registered there is no field-level security, and the title is named. A line's write names its master by label alone. A delete refused for what it would also remove names the record asked to be deleted and the label of the object in the way, with the title only when the delete names exactly one record by id. No sentence carries a record id, an API name or a state value. + - **On the error**: `userMessage` and the wire's `error` carry the sentence; `message` reads `RECORD_LOCKED: ` followed by the sentence, as the approval lock's refusal does; the developer sentence moves to `developerMessage`, which the REST layer does not relay. A refusal that could not judge the write keeps the developer sentence and sets no `userMessage`. + - **Upload-link page**: a closed-state refusal reaches the page with the engine's declared catalog sentence, which the page shows. The page's own `recordLocked` answers only a `RECORD_LOCKED` with no declared sentence. The page also carries a closed-state sentence (`recordClosed`) in each of its 11 languages; choosing it by the lock's reason comes with a later change. +- 7b68db9: feat(data): one record lock read, for closed states and approvals + + Clause-②: yes (widening) + Metadata-protocol: added + + An app can now ask whether a record is locked, and by which lock, in one read that covers both locks a record can be under: a declared closed state (an object's `closedStates`, or a `master_detail` line of a closed record) and an approval. Before this, a client could only ask the approvals read, which knows nothing of closed states, so a closed invoice looked editable until the save was refused. + + - `GET /api/v1/data/{object}/{id}/lock` answers one record: `{ locked, lockSource?, lockReason? }`. `lockReason` is `closed_state` or `approval`, `lockSource` is `record` or `master`, and both are present exactly when `locked` is true. A record the caller cannot read, or that does not exist, answers 404. + - `POST /api/v1/data/{object}/locks` answers a page of up to 200 records, body `{ "recordIds": [...] }`; a record the caller cannot read answers `locked: null`. A longer list is refused whole with 400. + - `client.data.getRecordLock(object, id)` and `client.data.getRecordLocks(object, recordIds)` call them. The shapes are `RecordLockSchema`, `GetRecordLocksRequestSchema` and `GetRecordLocksResponseSchema` in `@objectstack/spec/api`. + + Every user who can read the record is told, even when field permissions hide the state field. The answer never names the field, the value, the approval request or its participants. The read works without the approvals plugin; then only closed states lock. + + The upload-link door now asks this read before it issues a file-field link: a closed record is refused with "the record is closed, so no file can be added to it", a record an approval holds with the existing approval sentence. + + Nothing existing changes: the approvals read (`/api/v1/approvals/records/...`), its SDK methods and service members answer exactly as before. +- ca26605: fix(objectql): a tenant's copy of a packaged validation rule is judged against the rule the object serves while an extension package is disabled + + Clause-②: no + Metadata-protocol: none + + When two packages extend one object with a validation rule of the same name and the later package is disabled, the object serves the enabled package's rule. Saving the object with a copy of that rule that changes only its `message` or `active` was refused with "this copy changes `condition`", because the save door compared the copy with the disabled package's rule; a copy carrying the disabled package's condition was accepted. The save door now judges a rule name an enabled layer ships against the rule the object serves, so the reworded copy saves and the disabled package's condition is refused. + + A rule name that only a disabled package ships stays reserved for that package, which takes it back when it is enabled again: a copy that changes its condition or type is still refused, and the refusal now says that the rule's package is switched off. Its `message` and `active` can still be changed. Only a package's code extensions reserve a name. The registry's load report (`validation_rule_copy_changed`) judges the same way, so reading the object with the disabled package's extensions included, as schema sync does, no longer reports a copy of the served rule. +- 1e87dc1: feat(objectql): `ObjectQL#planReadScope` scopes a pointer column by a caller-run read of its target object, in one statement + + Clause-②: yes (widening) + Metadata-protocol: none + + A new public method on the engine, for in-process callers (a server door, a plugin): `planReadScope(object, target, { where, context })` answers the `$in` comparand that scopes a column of `object` to the ids of the `target` records the caller reads and `where` matches. Placed in a read's `where` on `object` under the same context, that read reaches a SQL driver as one statement, `column IN (SELECT id FROM target WHERE ...)`, with no id list read first and no cap: + + ```ts + const scope = await engine.planReadScope('sys_comment', 'account', { where: { status: 'open' }, context }); + const threads = await engine.find('sys_comment', { where: { object_name: 'account', record_id: { $in: scope } }, context }); + ``` + + It is the planned read a single-valued nested-relation condition already runs, offered for a column that is not a declared relation (such as the platform-stamped `sys_comment.record_id`). The target is read as the caller: its object permission, row-level rules and field permissions apply, and a `where` on a field the caller cannot read is refused `PERMISSION_DENIED`, never answered empty. The outcomes are a relation condition's: the planned leaf where it is provably the same read; otherwise the ids the caller reads, refused `INVALID_FILTER` past the engine's cap of 1,000 rather than cut off; refused `INVALID_FILTER` before anything is read when the driver of `object` cannot compile the subquery (MongoDB, OData). Nothing a request can write changes: this is no filter operator and no wire key, and a JSON copy of the returned leaf placed in a `where` is refused as before. +- 0c45d66: feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: a new route, `POST /api/v1/comments/threads/query`, mounted by plugin-audit's comment registrar beside the resolution and own-comment delete doors. The body (`CommentThreadsQueryRequestSchema`, strict) names an object and carries a list's filter in the `GET /data/{object}` syntax, with `showResolved`, `onlyMine`, `limit` (1 to `COMMENT_THREADS_MAX_LIMIT`, default `COMMENT_THREADS_DEFAULT_LIMIT`) and an opaque keyset `cursor`; the answer (`CommentThreadsQueryResponseSchema`) is one page of the object's top-level comments on the records the filter selects and the caller may read, newest first, each with its record's id and display name, its reply count at any depth and its latest three distinct repliers, and the next page's cursor. Every step runs as the caller: the engine plans the caller's read of the object with the filter (`ObjectQL#planReadScope`) and places it in the comment read as one subquery, so a view past the 1,000-id cap is answered in full; its refusals are the answer (`PERMISSION_DENIED` for a caller with no read on the object or a filter on a field the caller cannot read, `INVALID_FILTER` on MongoDB and OData). A query parameter, an unknown body key, a `limit` out of range or a cursor the read did not issue is `400 VALIDATION_ERROR` before anything is read, and a filter the list read cannot lower is `400 INVALID_FILTER`, as `GET /data/{object}` answers it, never dropped; an object with `enable.feeds: false` is `403 FEEDS_DISABLED`. The read is served on a kernel with an HTTP server; the hosted dispatcher's `/comments` domain does not claim it. `client.comments.queryThreads` is its SDK method. `@objectstack/objectql` exports the `PlanReadScopeOptions` and `ReadScopeComparand` types. No new error code. `Metadata-protocol: added`: the request and response schemas enter the `api` authorable-surface shard, which the level axis reads as added keys, so `@objectstack/spec` is a `minor`; nothing an author writes in an object, view or app definition changes. +- 360820b: fix(objectql): a contributed navigation group's `renamedFrom` that clashes with the target app is announced + + Clause-②: no + Metadata-protocol: none + + A navigation group that a package contributes through `navigationContributions[]` may carry `renamedFrom`, but the app-level rule that refuses two groups claiming one retired id never saw it: the contribution fold merges the group in after the app is parsed. When the contributed group's `renamedFrom` listed an old id that a group of the app (or an earlier contributed group) already claims, a contribution naming that id landed in whichever claimant came first in the navigation tree; when it listed an id that is a live group id of the app, the entry was never read. Neither said anything. + + The fold now prints one warning per clash, once per registry, naming the contributing package, its group, the old id and the other side (the app's own group, or the other package and its group). Two contributed groups from different packages claiming one old id are reported the same way. Nothing is refused and nothing moves: the items land exactly where they did before. The warning is a registry log line at `warn`; it carries no new diagnostics code and does not enter `getAppNavDiagnostics()`, which still lists relocations only. + + What to do when you see it: remove the old id from the contributed group's `renamedFrom`, unless that group really took the id over, in which case the other claimant drops it. +- dbf103d: fix(objectql): a read keeps its organization wall, whatever a before-hook hands back + + Clause-②: no + Metadata-protocol: none + + `find` and `findOne` hold the organization wall recorded on the read after every `beforeFind` hook, on a tenant object and on a federated one: + + - a read the wall denies answers no rows (`find`) or `null` (`findOne`); + - a read the wall admits answers only the organizations the wall admits, whatever query or tenant options the hooks leave; + - the read's driver options and every later step of the read run on the context as it stood before the hooks. + + On every verb that takes a read scope, a driver's tenant scope under a union of organizations stays inside that union. + + An elevation's tenant options are judged by the values they hold: an element that names no organization is outside the wall. A read whose hooks leave its query and options alone answers the rows it answered before. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [fbee4b7] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [d9b72aa] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [491ea82] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [9a13387] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [da4efea] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/metadata-protocol@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/metadata@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/objectql/package.json b/packages/objectql/package.json index 617b849e845..5687d661e28 100644 --- a/packages/objectql/package.json +++ b/packages/objectql/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/objectql", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Isomorphic ObjectQL Engine for ObjectStack", "type": "commonjs", diff --git a/packages/observability/CHANGELOG.md b/packages/observability/CHANGELOG.md index 7d4f9da596c..752e7b708c7 100644 --- a/packages/observability/CHANGELOG.md +++ b/packages/observability/CHANGELOG.md @@ -1,5 +1,46 @@ # @objectstack/observability +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/observability/package.json b/packages/observability/package.json index 8deab3fb01f..31bf5b116c6 100644 --- a/packages/observability/package.json +++ b/packages/observability/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/observability", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Observability contracts and exporters for ObjectStack — MetricsRegistry, ErrorReporter, Logger plus noop/console/OTLP-HTTP exporters. Deployment-target neutral; runtime and services depend on this so the same instrumentation works on Cloudflare Workers, Node, and self-hosted Kubernetes.", "type": "module", diff --git a/packages/platform-objects/CHANGELOG.md b/packages/platform-objects/CHANGELOG.md index 72655d1c43f..f699e6be61b 100644 --- a/packages/platform-objects/CHANGELOG.md +++ b/packages/platform-objects/CHANGELOG.md @@ -1,5 +1,123 @@ # @objectstack/platform-objects +## 19.0.0-next.4 + +### Minor Changes + +- cef9a80: feat(setup): Setup navigation gets ten group anchors; a nav group's `renamedFrom` keeps retired ids working + + Clause-②: yes (widening) + Metadata-protocol: added + + **New key: `renamedFrom` on a group nav item** (`GroupNavItemSchema`, optional, a list of nav ids). It names the group ids the group replaced. A `navigationContributions[]` entry whose `group` names one of them lands in that group instead of the app's top level. The merge looks for an exact group id first and reads `renamedFrom` only when none matches. The app's own parse refuses an entry that is the group's own id, repeats in the list, is an id another entry of the app still declares, or is claimed by a second group, and refuses the key on a group inside `areas[].navigation`, where no contribution is merged. Nothing changes for an app that does not write the key. `@objectstack/spec/ui` exports the check, `checkAppNavGroupRenamedFrom`, and `@object-ui/types`' `AppComponentSchema` chains it and accepts `renamedFrom` on a navigation item, so objectui's validator judges the key as the publish door does instead of dropping it. + + **New warning: `nav_contribution_group_renamed`.** A contribution that names a retired id is logged at `warn` by the runtime and reported by `os build` and `os validate` under its own headline. The message names the package, the retired id and the group that took it over; the fix is to change the contribution's `group` to the new id. It is not a relocation, so the published relocation surface keeps its contract: `NavContributionGroupDiagnostic`, `checkNavContributionGroups()` and `SchemaRegistry#getAppNavDiagnostics()` are unchanged and never carry it (a group id that resolves through `renamedFrom` is not reported there). `@objectstack/objectql` adds `checkNavContributionGroupRenames()` (the compile-time notices, `NavContributionGroupRenamedDiagnostic[]`), `resolveNavGroup()`, `navContributionGroupRenamedDiagnostic()`, `NAV_CONTRIBUTION_GROUP_RENAMED`, and the `NavContributionGroupRenamedDiagnostic` / `NavContributionGroupFinding` (either finding) / `NavGroupResolution` types; `findNavGroup()` now also finds a group through its `renamedFrom`, and `formatNavContributionGroupDiagnostic()` accepts either finding. + + **Setup's anchors.** The System Overview dashboard is pinned above the groups. The groups, in order: `group_users_org`, `group_access_sharing`, `group_apps_ai`, `group_routing_approvals`, `group_audit_data` (expanded), then `group_company`, `group_currency_units`, `group_notifications`, `group_login_security`, `group_integrations_dev` (collapsed), labelled in all 11 Setup locales. Each group that replaced an old anchor lists it in `renamedFrom`, so every existing contribution still lands in the right place, with the warning above. `group_overview` has no successor: a contribution still naming it is appended at the top level with the `nav_contribution_group_missing` warning, and it loses the `manage_platform_settings` gate that group carried. In this repository that is `@objectstack/mcp`'s "Connect an AI Assistant" entry (`nav_connect_agent`, no gate of its own): until its contribution moves to a new anchor it shows at Setup's top level to everyone who can open Setup, not only to holders of `manage_platform_settings`. The page itself was already open to every user through the Account app. + + **What a package author does.** If your package contributes into Setup, change `group` to the new id named in the warning: `group_people_org` → `group_users_org`, `group_access_control` → `group_access_sharing`, `group_apps` → `group_apps_ai`, `group_approvals` → `group_routing_approvals`, `group_diagnostics` → `group_audit_data`, `group_configuration` → `group_company`, `group_integrations` and `group_advanced` → `group_integrations_dev`. A translation bundle keyed by an old group id (`apps.setup.navigation.`) no longer labels anything; key it by the new id. + +### Patch Changes + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(platform-objects): the Studio object form's closed-states row is translated in every metadata-forms locale pack + + Clause-②: yes (widening: one new optional authorable key, `ObjectSchema.closedStates`) + Metadata-protocol: added + + The object form's Advanced section offers `closedStates` (ADR-0162 D1); its label and help text are authored in all eleven metadata-forms locale packs. +- 3872243: feat(platform-objects, service-segmenter): the 检索词条 object `sys_search_term`, the administrator's search words + + Clause-②: yes + Metadata-protocol: none + + `@objectstack/platform-objects` declares `sys_search_term` (检索词条, Search Term): one record per word an administrator adds to search, one set for the whole deployment (no organization column). Fields: `term`, `kind` (`word` custom word or `stop_word`), `purpose` (`knowledge`, `record_search` or `both`; default `knowledge`, the only one implemented), `knowledge_source` (one knowledge source; empty for every source), `enabled` (default on) and `note`. `term`, `kind`, `purpose` and `enabled` are the segmenter contract's `SegmenterEntry` one to one. The object is `system-data` with CSV import opted in, so New, Edit, Delete, Import, Export and record history are the platform's own; every operation, writes included, requires `manage_platform_settings`. A record that disables a platform word (年假, 脱密, 应急采购, …) is refused: those words live in the segmenter's read-only dictionary, so make one a stop word instead. A platform stop word can be disabled. The platform words move here as `PLATFORM_SEARCH_WORDS`, and the segmenter's `PLATFORM_WORDS` reads them, so the object and the service hold one list. + + `@objectstack/service-segmenter`: `SegmenterServicePlugin` registers `sys_search_term` on the manifest service (`SEARCH_TERM_BUNDLE_ID`), with no Setup entry. Nothing reads the records yet: the knowledge service passes them to the segmenter in a later release, and the object gets its Setup entry then. + + `@objectstack/spec` lists `sys_search_term` among the platform-provided object names. `@objectstack/cli` gives it a row in the organization-ownership inventory (no organization column to drop). +- afc64fc: Setup's platform-owned entries sit in their new groups, in the new order, under the new names; every old name stays searchable + + Clause-②: no + Metadata-protocol: none + + Setup's navigation was regrouped into ten groups (#39050). The entries `@objectstack/platform-objects` contributes now name the new group ids directly, so none of them draws the `nav_contribution_group_renamed` notice: + + - **Users & Organization:** Company Information (first), Users, Invitations, Teams, Business Units, Organizations, then the active organization's page. + - **Access & Sharing:** Positions and Permissions. **Apps & AI:** Installed Apps, AI Model Service. **Audit & Data:** Recycle Bin, Data Retention, File Storage. **Company Settings:** Language & Region, Working Calendars, Holidays & Workday Swaps. **Currency & Units:** Exchange Rates, Units of Measure, Standard Unit Decimals. **Notifications:** Email Channel, SMS Channel, Delivery Log. **Login & Security:** Sign-in Methods, Access policy, Active Sessions. **Integrations & Developer:** API Keys, OAuth Applications, Public Forms. + + Renamed, in every shipped locale: Packages → Installed Apps, Company → Company Information, Localization → Language & Region, Standard Unit Settings → Standard Unit Decimals, Calendar Exceptions → Holidays & Workday Swaps, Mail Delivery → Email Channel, SMS Delivery → SMS Channel, Authentication → Sign-in Methods, AI & Embedder → AI Model Service, Data Lifecycle → Data Retention, Notification Events → Delivery Log, Sessions → Active Sessions. The translated locales also rename four entries other packages contribute: Position Holders, Permission Set Assignment, Record Shares and Queues (their English label changes with each plugin's own entry). + + Every renamed entry keeps its former name as a search alias (`keywords`): the source-language name on the entry, each locale's former name on that locale's bundle entry. Business Units carries Department / Organization Structure / Division (部门 / 组织架构 / 事业部), and each group that took a retired group over carries that group's former name. + + The settings pages' own titles, and their cards on the settings hub, carry the same new names in every shipped locale (`@objectstack/service-settings`), so a page opens under the name its Setup entry shows: Mail Delivery → Email Channel, Localization → Language & Region, and likewise for Company, Authentication, SMS Delivery, AI & Embedder and Data Lifecycle. + + "All Settings" (`nav_settings_hub`) left the navigation: every settings page has its own entry, and the command palette finds them. Its address, `/apps/setup/system/settings`, still opens the settings hub. + + No action needed: nothing an app author writes changes. A third-party contribution that still names a retired group id keeps landing in the group that took it over. +- 1536c07: fix(email): a send through the log-only transport is recorded as `logged`, not `sent` + + Clause-②: yes (widening) + Metadata-protocol: none + + When the mail provider is "None (log only — no real delivery)", which is also what runs when no provider is configured, the mail service wrote the mail log row (`sys_email`, `sys_identity_email`) as `sent` and answered `status: 'sent'`, although no mail left the process. The row now reads `logged`, and `send()` / `sendTemplate()` answer `status: 'logged'`. + + - `EmailDeliveryStatus` (`@objectstack/spec/contracts`) gains `'logged'`: final, not a delivery, not a failure. A caller that branches on `status === 'failed'` is unaffected; a caller that treats every non-`failed` answer as delivered should now also check for `'logged'`. + - `TransportSendResult` gains an optional `outcome?: 'logged'`. A transport that only records the message answers it; `LogTransport` does. A transport that answers nothing is unchanged and its sends read `sent`. The free-form `response` text is never read for this. + - `IEmailService.isConfigured()` is unchanged and still judges by the transport's class: only plugin-email's own `LogTransport` reads as not configured. A host-supplied transport that answers `outcome: 'logged'` has its rows recorded `logged`, but `isConfigured()` still answers `true` for it, so the messaging email channel, the invitation `link_only` answer and the sign-up refusals treat it as delivering. + - A `logged` row keeps the transport's message id and has no `sent_at`, because nothing was sent. + - The `status` select of `sys_email` and `sys_identity_email` gains the option `logged (not delivered)`. It is translated in every shipped locale for `sys_email`. The translation bundles carry no `sys_identity_email` entries at all, so there it shows the English label, as the rest of that object already does. + - Setup › Mail "Send test email" decides its "only logged" warning from the send's own `logged` answer rather than from the transport's class. The Setup › Email banner for the log transport, in all 11 locales, now says messages are recorded as logged (not delivered), not as sent. So do the missing-API-key boot error and `OS_EMAIL_API_KEY` in the environment-variable reference. + - A `logged` row is final for every reader in plugin-email: queue redelivery skips it (it carries its message id), attachment content stored outside the row is reclaimed after the grace window, and the boot outbox sweep counts it apart from `sent` (`OutboxSweepResult.logged`, and its summary line says "logged only (not delivered)"). + + Rows written as `sent` by a log-only transport before this release keep reading `sent`. +- 05e645b: Clause-②: no + Metadata-protocol: none + + The Arabic, German, Spanish, French, Japanese, Korean, Brazilian Portuguese and Russian interfaces now name App Studio in five help texts of App Studio's own forms (the object form's related-lists help, the email template variables description, the AI tool label help, and the email template label and provenance help), where they still read the retired name "Studio". Display text only; no key, identifier or address changes. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/platform-objects/package.json b/packages/platform-objects/package.json index 0c7e9049573..5128a573e51 100644 --- a/packages/platform-objects/package.json +++ b/packages/platform-objects/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/platform-objects", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Core platform object schemas for ObjectStack — identity, security, audit, tenant, and metadata objects", "type": "commonjs", diff --git a/packages/plugins/embedder-openai/CHANGELOG.md b/packages/plugins/embedder-openai/CHANGELOG.md index ab29b0d218f..47b58043260 100644 --- a/packages/plugins/embedder-openai/CHANGELOG.md +++ b/packages/plugins/embedder-openai/CHANGELOG.md @@ -1,5 +1,46 @@ # @objectstack/embedder-openai +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/embedder-openai/package.json b/packages/plugins/embedder-openai/package.json index bbb105c2993..775cb9d3689 100644 --- a/packages/plugins/embedder-openai/package.json +++ b/packages/plugins/embedder-openai/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/embedder-openai", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "OpenAI-compatible embedder for ObjectStack — works against OpenAI, 阿里通义 DashScope, 智谱 BigModel, 硅基流动 SiliconFlow, 火山引擎 Doubao, MiniMax, Ollama, and any drop-in OpenAI-shape endpoint.", "type": "commonjs", diff --git a/packages/plugins/knowledge-memory/CHANGELOG.md b/packages/plugins/knowledge-memory/CHANGELOG.md index ec6047519d0..91a23a07bb7 100644 --- a/packages/plugins/knowledge-memory/CHANGELOG.md +++ b/packages/plugins/knowledge-memory/CHANGELOG.md @@ -1,5 +1,53 @@ # @objectstack/knowledge-memory +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [4d9d12a] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [712b102] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/service-knowledge@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/knowledge-memory/package.json b/packages/plugins/knowledge-memory/package.json index 96c5673a770..a39ecc29923 100644 --- a/packages/plugins/knowledge-memory/package.json +++ b/packages/plugins/knowledge-memory/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/knowledge-memory", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "In-memory knowledge adapter for ObjectStack (dev / test reference implementation).", "type": "commonjs", diff --git a/packages/plugins/knowledge-pgvector/CHANGELOG.md b/packages/plugins/knowledge-pgvector/CHANGELOG.md index a1fd50b7007..852809ddf07 100644 --- a/packages/plugins/knowledge-pgvector/CHANGELOG.md +++ b/packages/plugins/knowledge-pgvector/CHANGELOG.md @@ -1,5 +1,60 @@ # @objectstack/knowledge-pgvector +## 19.0.0-next.4 + +### Patch Changes + +- 58695bb: perf(knowledge): a knowledge search embeds its question at most once for each adapter, the refill round included + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened (ADR-0161, the dated note of 2026-12-01 under K8): `IKnowledgeAdapter` (`@objectstack/spec/contracts`) gains an optional `embedQuery(query)`, which embeds a question exactly as the adapter's `search` does (its embedder and its query prefix), and `AdapterSearchOptions` gains an optional `queryVector: () => Promise`, a function the adapter calls where its `search` embeds the query. An adapter handed it calls it in place of that embedding call, after every refusal it answers first, checks the answer's width as it checks one its embedder answered, and never changes the array. + + For each search, the knowledge service hands every `search` call to an adapter instance that has `embedQuery` one function: its first call asks that instance's `embedQuery`, and every later call in the search answers the same promise, a failed one too. A search whose first round leaves fewer than `topK` records or groups after the permission re-check (a narrowed caller, `granularity: 'record'` or `groupBy`) asks the adapter again with a larger `topK`; that second round used to embed the question a second time, about one embedding request per refilled search. Several sources on one adapter instance now share the one embedding call too. Because the adapter asks only where it embeds, a `keyword` search, a search that ranks nothing and a source the adapter refuses make no embedding call, and the adapter's own refusal (`KNOWLEDGE_REBUILD_REQUIRED` 409 for an index that needs a rebuild) is the one answered even when the embedder would fail. A failed embedding call fails each `search` call that asked for the vector, with the code and wording it had before. + + `knowledge-turso` and `knowledge-pgvector` implement both members. An adapter without `embedQuery`, such as `knowledge-memory`, is handed nothing and is searched as before, embedding on every call. The adapter contract suite (`@objectstack/service-knowledge/testing`) gains an optional `implements.embedQuery` declaration and one case for it. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/knowledge-pgvector/package.json b/packages/plugins/knowledge-pgvector/package.json index c7744c298b4..a3e5089949a 100644 --- a/packages/plugins/knowledge-pgvector/package.json +++ b/packages/plugins/knowledge-pgvector/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/knowledge-pgvector", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "PostgreSQL + pgvector knowledge adapter for ObjectStack: an open vector store for self-hosted deployments.", "type": "commonjs", diff --git a/packages/plugins/knowledge-turso/CHANGELOG.md b/packages/plugins/knowledge-turso/CHANGELOG.md index 84d2b07f306..d384a23e4eb 100644 --- a/packages/plugins/knowledge-turso/CHANGELOG.md +++ b/packages/plugins/knowledge-turso/CHANGELOG.md @@ -1,5 +1,72 @@ # @objectstack/knowledge-turso +## 19.0.0-next.4 + +### Patch Changes + +- 58695bb: perf(knowledge): a knowledge search embeds its question at most once for each adapter, the refill round included + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened (ADR-0161, the dated note of 2026-12-01 under K8): `IKnowledgeAdapter` (`@objectstack/spec/contracts`) gains an optional `embedQuery(query)`, which embeds a question exactly as the adapter's `search` does (its embedder and its query prefix), and `AdapterSearchOptions` gains an optional `queryVector: () => Promise`, a function the adapter calls where its `search` embeds the query. An adapter handed it calls it in place of that embedding call, after every refusal it answers first, checks the answer's width as it checks one its embedder answered, and never changes the array. + + For each search, the knowledge service hands every `search` call to an adapter instance that has `embedQuery` one function: its first call asks that instance's `embedQuery`, and every later call in the search answers the same promise, a failed one too. A search whose first round leaves fewer than `topK` records or groups after the permission re-check (a narrowed caller, `granularity: 'record'` or `groupBy`) asks the adapter again with a larger `topK`; that second round used to embed the question a second time, about one embedding request per refilled search. Several sources on one adapter instance now share the one embedding call too. Because the adapter asks only where it embeds, a `keyword` search, a search that ranks nothing and a source the adapter refuses make no embedding call, and the adapter's own refusal (`KNOWLEDGE_REBUILD_REQUIRED` 409 for an index that needs a rebuild) is the one answered even when the embedder would fail. A failed embedding call fails each `search` call that asked for the vector, with the code and wording it had before. + + `knowledge-turso` and `knowledge-pgvector` implement both members. An adapter without `embedQuery`, such as `knowledge-memory`, is handed nothing and is searched as before, embedding on every call. The adapter contract suite (`@objectstack/service-knowledge/testing`) gains an optional `implements.embedQuery` declaration and one case for it. +- 712b102: feat(knowledge): one timing line per knowledge search + + Clause-②: no + Metadata-protocol: none + + Every knowledge search (each `search_knowledge` call, on every door) now logs one structured line when it ends: message `[knowledge] search timing`, its object under the meta field `knowledgeSearchTiming`. It goes out at `info` on a cloud-hosted runtime (`OS_CLOUD_MANAGED=1`) and at `debug` everywhere else; there is no switch. + + The line carries numbers, flags and source ids only, never the question, a record id or a passage: each source searched (its id as an answer names it, the retrieval mode, and its record scope counted as kind, term count and id count), `topK`, whether the search grouped, the hits answered, the sources refused, whether the refill round ran, whether the search threw, the store's database request count, and milliseconds for `total`, `embed` (the query's one embedding), `queue_wait`, `statements` (the store's requests, summed), `visible_ids` (the caller's readable records, read before ranking) and `permission_recheck`. Each segment is a sum over the search; one that did not run is `null`. + + `queue_wait` and `statements` come from the store. `@objectstack/knowledge-turso` reports them: the time each of a search's calls waited on the client's in-process queue before its work started, and its requests to the database. No adapter contract field carries them; the store publishes them per search call on a Node diagnostics channel the service reads, and publishes nothing while no service listens. A store that reports nothing (today `@objectstack/knowledge-pgvector`) leaves those two `null`; every other segment is measured by the service for any store. The line costs a few clock reads per search, no database read and no embedding call. + + Nothing a caller is answered changes, and the turso store's queue keeps its order. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/knowledge-turso/package.json b/packages/plugins/knowledge-turso/package.json index 34b79158a23..aa35670d288 100644 --- a/packages/plugins/knowledge-turso/package.json +++ b/packages/plugins/knowledge-turso/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/knowledge-turso", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "libSQL (Turso) knowledge adapter for ObjectStack: an open vector store in a libSQL file of its own, for local development and deployments not on PostgreSQL.", "type": "commonjs", diff --git a/packages/plugins/organizations/CHANGELOG.md b/packages/plugins/organizations/CHANGELOG.md index 6017a9da80d..3797d0e927a 100644 --- a/packages/plugins/organizations/CHANGELOG.md +++ b/packages/plugins/organizations/CHANGELOG.md @@ -1,5 +1,55 @@ # @objectstack/organizations +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [9a13387] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/plugin-auth@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/organizations/package.json b/packages/plugins/organizations/package.json index e98757d4b1d..5a226115c83 100644 --- a/packages/plugins/organizations/package.json +++ b/packages/plugins/organizations/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/organizations", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Multi-organization runtime for ObjectStack — registers the `org-scoping` service that turns single-database row-level Organization isolation on: `organization_id` auto-stamp on insert, per-org seed replay, default-organization bootstrap, and the walled-posture membership-policy gate.", "type": "commonjs", diff --git a/packages/plugins/plugin-approvals/CHANGELOG.md b/packages/plugins/plugin-approvals/CHANGELOG.md index 5df64a67897..2ade4eb2251 100644 --- a/packages/plugins/plugin-approvals/CHANGELOG.md +++ b/packages/plugins/plugin-approvals/CHANGELOG.md @@ -1,5 +1,292 @@ # @objectstack/plugin-approvals +## 19.0.0-next.4 + +### Minor Changes + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(approvals)!: on an object that declares `closedStates`, the document is held for the whole approval (ADR-0162 D5, Execution item 8, the hold) + + Clause-②: yes (narrowing) + Metadata-protocol: semantic + Skills-docs: none — `skills/` names no `closedStates` (git grep, 0 hits); its `lockRecord` rows describe the lock while a request is pending, which this does not change, and `content/docs/automation/approvals.mdx` teaches the hold + + **BREAKING** for a caller that edits a record of an object that declares `closedStates` while its approval is between two steps, or after its last decision until the approval is over: FROM the edit landing (the record was locked only while a request was pending, and only under a node whose `lockRecord` is not `false`) TO the edit refused `409 RECORD_LOCKED`. The same holds for an automation that runs as a user outside the approval's own flow, such as a record-change flow with `runAs: 'user'` that a decision sets off. The one-line fix: make the edit before submitting or after the approval is over, or make it from the approval's own flow, whose every run passes; for such an automation, run it with `runAs: 'system'`. No metadata changes and no stored metadata is refused. + + What the hold is. Every decision on such an approval leaves a mark on its request (`unjudged_since`), cleared once the approval is judged or its next request opens. While a mark stands, the pending lock holds the record and its direct `master_detail` lines as a pending request under a locking node does, whatever field the object closes on and whatever the node's `lockRecord` says. It passes: + + - a system context, the approval status mirror among them; + - a write that carries only the mirror field; + - a write by any run of the approval, the record's run or a `subflow` or `map` run under it at any depth, known by the root run (`flowRootRunId`) the automation engine now carries on every write of a run; a hook's write through its own `ctx.api` carries it, a write a hook makes as another caller does not; + - the revise window of a returned request; + - the record's own delete, which lands and ends the approval: it is marked abandoned on its latest request, its marks are cleared, and nothing is written (the reconciler does the same for a record deleted another way). + + An approval that opened before its object declared `closedStates` left no marks and is not held. The approvals-family lock read (`getRecordLock`, the `/lock` and `/locks` routes) answers for a pending request only, as published: in a passage it answers `{ "locked": false }`. + + + +### Patch Changes + +- 6f82fd0: fix(approvals): "The approval ended here" survives a restart and a re-registration of the flow, and is never served for a body the run did not run + + Clause-②: yes (widening: AutomationEngine gains getRunFlowChecksum and getFlowBodyChecksum; RunRecord gains optional flowChecksum; the exported ApprovalResumeSurface drops the optional getFlowVersionHistory and gains optional getRunFlowChecksum and getFlowBodyChecksum) + Metadata-protocol: none + + A decided approval request's route says where the record's approval went next, and `flow_route.outcome.ended` says the approval ended. It is served only for a run that ran the flow body armed now. That used to be proven from this process's registration history (the newest registration, registered before the run started), so every restart and every re-registration of the flow, a package reload included, dropped the line from every earlier request of that flow. Two narrow cases served it for a body the run did not run: a rollback made before the run started and undone after it, and a replica that registered an edit before another replica started the run on the older body. + + The witness is now the body's content. A run's terminal `sys_automation_run` row carries `flow_checksum`, the content checksum of the body it ran (the identity the metadata history keys a stored flow's versions by), stamped on the run's context where it starts and carried through every pause and resume. The approvals plugin serves `ended` only when that checksum equals the checksum of the body armed now. A restart, another server, or the same content registered again keeps the answer; a body with other content never answers in the run's place. + + - `@objectstack/service-automation`: `AutomationEngine.getRunFlowChecksum(runId)` (a finished run's checksum, read as `getRun` reads it: memory, then terminal row; `undefined` for a run not finished) and `AutomationEngine.getFlowBodyChecksum(flow)`; `RunRecord.flowChecksum`. A run records none when it finished before this release, its body could not be hashed, it was parked before this release and its pause pinned none, it resumed on another body because the one it started on could no longer be found, or it failed after a resume and can still be restored (a strand: its row keeps the pause's pin in `flow_checksum` for the restore, as before, and that pin is never read back as the body the run ran). + - `@objectstack/plugin-approvals`: reads the two; no longer reads `getFlowVersionHistory` (dropped from the exported `ApprovalResumeSurface`). A later step is now a request of the run opened after this one was decided, not merely after it opened: a node that fans out to two approval steps opens two requests of one run side by side, and the sibling is no longer served as where the approval went. + - `@objectstack/spec`: the `ended` sentence on `ApprovalRequestRow.flow_route.outcome` says this. + + Upgrading: a run that finished before this release has no checksum on its row, so its decided requests do not say the approval ended (they already lost the line at the restart the upgrade makes). Runs that finish after it keep the line. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + fix(approvals): an abandoned approval never writes a closed value on its status mirror (ADR-0162 D5, Execution item 7) + + Clause-②: no + Metadata-protocol: none + + A request is abandoned by its submitter's recall (while it is pending, or in the revise window after a send-back), by the override arm of a recall (an administrator, or a system context), and by the sweep that releases a record held by a dead run. Each puts a value back on the field the approval mirrors its status onto. Where the object's `closedStates` lists any value for that field (ADR-0162 D1), the mirror now chooses that value so that it never closes the document again: + + - **`recalled`** is written where the field declares it and the object does not close on it, as before. A declared `recalled` the object closes on is withheld, and a `warn` line says so: listing `recalled` among the closed values closes nothing through the mirror. + - **Otherwise the order**: the value held at submit, the field's declared default, empty. A closed value is passed over at each step, and on a required field an empty value at submit is passed over for the default. A pass is logged at `info`. + - **A closed value the approval did not write is left alone.** Where the field holds a closed value, the mirror asks the request table once, by the request's root run and record, whether a request of the same approval on the same record had that value as its status. Where none did, it writes nothing and logs it at `info`. A request of the approval on another record (another item of a `map`) does not count. Where it cannot tell (the request records no root run, or a request on the record that records none was opened since the approval's run started), it goes down the order. + + Every other write of the mirror is unchanged, and so is every write on an object that closes on no value of the mirror field. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(approvals): an approval that cannot show itself in progress on a field its object closes on does not open (ADR-0162 Execution item 7, the check) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `sys_approval_request` gains the engine-written, read-only column `between_steps_json`; `ApprovalService` gains `noteSweepClockScheduled()`, and the input of `ApprovalService.openNodeRequest` gains the optional member `locale` (the run's locale, for the refusal's wording); the plugin's message catalog gains twelve `approvalOpening*` sentences in all 11 locale packs. + + At an approval's first request the plugin now reads the approval whole: the flow its root run was started on and every flow a `subflow` or a `map` in it names, to any depth. Where a step can act on an object that declares `closedStates`: + + - **The between-two-steps set is stamped** on the request, and every later request of the same approval carries the same set. It lists the nodes after which a step of the approval can still follow, so that a run that stops there can later be told from one that stopped after the last step. + - **The approval does not open** where a step mirrors onto a field the object closes on at `pending`, `returned`, `approved` or `rejected`, and one of these is missing: the field declares `pending` and the object closes on neither `pending` nor `returned`; a `state_machine` rule on the field that declares the moves out of a closed `approved` or `rejected` includes `pending` among them; the field has no `readonlyWhen` and no request-status option has a `visibleWhen`; every step that can act on the object mirrors onto the same field; no node that can pause the run (a `wait`, a `screen`, a node type with no descriptor) stands between two steps, and no `map` runs an approval step for items it does not show are not records. An approval one of whose flows cannot be read does not open either, and neither does one on a host that runs no `job` service. + + A refused approval fails its run at the step with `VALIDATION_FAILED` and one sentence per gap naming the flow, the step, the object, the field and what is missing, in the run's locale. No request row is written. + + Not judged, and unchanged: an application in which no object declares `closedStates`; an approval whose objects declare none, once it has been read whole (in an application where some object declares the key, an approval one of whose flows cannot be read is refused, whatever objects the parts that were read act on, since its objects cannot be known); a request whose run hands no root run; a later request of an approval already open (also one opened before the object declared the key); a request that cannot be placed because an earlier request on the record since its root run started records no root run. A writing node between two steps of a flow that runs as the user is not refused. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + refactor(approvals): the first-request check asks the opening judge in `@objectstack/metadata-core` (ADR-0162 D5) + + Clause-②: no + Metadata-protocol: none + + The check an approval's first request makes on a field its object closes on now calls `judgeApprovalOpening` from `@objectstack/metadata-core`, the same judge the authoring rule `validateApprovalClosedStates` asks. `approval-opening-check.ts` re-exports it and its types under the names it exported before. Which approvals open, the refusal and its sentences are unchanged. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + fix(approvals): the opening refusal no longer says the object closes on its approval field when its only gaps are the host's or an unreadable flow + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: the plugin's message catalog gains the sentence `approvalOpeningRefusedClosedStatesLead` in all 11 locale packs. + + An approval's first request is refused when an object it can act on declares `closedStates` and the host runs no job service, or when a flow it runs cannot be read. Those gaps are raised whatever field the object closes on. The refusal's lead used to say "the object closes on its approval field" in every case, which is false for an object that closes on another field. Where every gap is one of those two, the lead now says only what is true: the approval can act on an object that declares `closedStates`. The sentences per gap are unchanged. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(approvals): on a field its object closes on, an approval's decision is written when the approval is over (ADR-0162 Execution item 8, the outcome) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `sys_approval_request` gains the engine-written, read-only datetime column `unjudged_since` (the mark) and an index on it; the `getRun` member of the automation surface the plugin declares (`ApprovalResumeSurface`) now also types the step log the engine already returns; the plugin's message catalog gains `approvalAbandonedTitle` and `approvalAbandonedBody` in all 11 locale packs, sent on the topic `approval.abandoned`. + + What changes, only for an approval the check stamped when it opened (one with a step that can act on an object that declares `closedStates`): + + - **The decision is held back.** Where the object closes on the step's mirror field at `approved` or `rejected`, neither decision is written onto the record when it is made. The request records it as before, and the field keeps `pending`. Every other status (`pending` as a request opens, `returned` at a send-back, what a recall leaves) is written as before. + - **The mark.** Every decision on a request of such an approval sets `unjudged_since` in the update that records it, also where nothing is held back. It is cleared when the approval is judged, and when the approval's next request opens on the record. A recall, an administrator's override and the dead-run sweep clear it on the approval's earlier requests. + - **The door judges the approval.** After a decision (by a person or the SLA clock), a send-back (and its auto-rejection), a resubmission, a recall and the continuation of a restored run, the plugin reads the run that carries the record and the approval's requests on it. Finished (the run completed, stopped after the last step, or is parked at a pause no step can follow): it writes the latest request's decision, as the person who decided it. In progress (a request is open, or the run is parked at a pause a step can follow): nothing. Ended between two steps (the run stopped on a node a step could still follow, a failure the flow routed at the top level ended it, or a later step could not open, whatever the flow did with that): the approval is abandoned. Cannot tell (the run is being advanced or cannot be read): nothing, and the mark stays. + - **An abandoned approval.** The latest request is marked abandoned, the field is put back by item 7's order (never a closed value, and nothing where another approval's request is open on the record on the same field), a timeline line with no actor says why and what the record was put back to, and the submitter is told on `approval.abandoned` instead of `approval.approved` or `approval.rejected`. The decisions already made stay on their requests. + - **A restored run is refused.** `continueRestoredRun` refuses a request of an abandoned approval with `INVALID_STATE` and tells the operator to cancel the restored run. + + Unchanged: an object that declares no `closedStates`; an approval that opened before its object declared the key, or whose requests could not be placed. An approval on an object that declares the key on another field than the approval's holds nothing back: its decisions are written at once, as before, and the door only clears the mark. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(approvals): the reconciler, and the door reads every run of an approval (ADR-0162 Execution item 8) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `ApprovalService` gains `reconcileMarkedApprovals(options?)`, which the plugin runs on the sweep clock beside the escalation, dead-run and stranded-request sweeps; the `getRun` member of the automation surface the plugin declares types the step log's `childRunIds` and `childRunIdsTruncated`, the run's `trigger`, `completedAt` and `summary`, and an optional `{ strict }` read; the plugin's message catalog gains `approvalFlowNotContinuedTitle` and `approvalFlowNotContinuedBody` in all 11 locale packs, sent to the organization's administrators on the topic `approval.flow_not_continued`; `PLATFORM_NOTIFICATION_TOPICS` of `@objectstack/service-messaging`, the topics a notification preference may name, gains that topic. + + Only for an approval the check stamped when it opened (one with a step that can act on an object that declares `closedStates`): + + - **The door reads every run of the approval.** Where it read the run that carries the record and the latest request's own run, it now walks the tree from the run that carries the record, following the child runs each delegating step records: every `subflow` child, and every `map` item run that does not carry another record (an item that is a record carries an approval of its own). It reads the whole tree before it answers, and one run decides for the whole approval: one that the store could not answer for, or that reports a status of a run in motion (`pending`, `running`, `retrying`), makes it cannot tell; otherwise one parked at a node a step can follow, in progress; otherwise one that ended between two steps, abandoned. A run parked at such a node on a child run says what its child says, so the walk reads the child, at any depth. The automation engine reports none of those three statuses for a flow run today: a run it is advancing reads as paused with its pause gone, or as a run with no row, and is held by the rule for a run that stopped, below. So a sibling child whose failure the flow routed, a middle run two levels down that failed, an item run that failed before its step, and a run between two others that is being advanced are no longer read as finished. A failure routed to a pause no step follows is read as abandoned, as on the base. A stop is answered where a request of the approval opened after it. One judgement reads at most 200 runs beside those it kept as ended: past them it is cannot tell, keeps what it read, and the next judgement reads on. That has an end: once the approval's marks have stood for the hour of the age bound, a judgement reads on only while it keeps a run the approval had not kept (the kept list holds 200 runs), and the judgement that keeps none places the approval by the step last decided, below. Two costs come with that rule. A tree the judgements cannot finish is placed without being finished, and from about 399 runs a tree can be one no judgement finishes: the walk reads the runs it starts from before the runs below them, so for a `map` of 199 items that each call a `subflow`, every judgement reads the run and its 199 items and none of the runs below them. And the placement follows from the shape of the flow, so an approval submitted again on the same flow can meet the same end: the remedy is the flow's, not the submitter's. Reading on can take up to 200 further visits of the reconciler after the hour: one each sweep (every 5 minutes by default, the plugin's `escalationScanIntervalMs`), or one each turn of its walk where more requests are marked than one sweep reads. A run parked on a child run that such a judgement did not get to says nothing of its own, and the child a parked run waits on is read next, before the runs beside it. + - **The plugin keeps what it read.** At every door, one that leaves the next request pending included, and as each request opens, the approval's latest request keeps, in its config snapshot (`__runsRead`): the runs that are not read again (`ended`), the runs read to their end over a child run that was not (`open`), a failure between two steps found in a run that ended, and the states the last judgement read that say a run has stopped (`stood`), which the rule for a run that stopped uses, below. A run is kept as ended only once it was read to an end and every child run its steps name is kept as ended too. So a child whose read failed, a child with no row, and the runs past the 200 one judgement reads are read on the next pass, which starts from the open runs as well. A run that a stored step names and that a pass did not read is never left out without a word: it is read on a later pass, it counts as passed by the rule below, or the approval is cannot tell and then placed. A run that no stored step names any more is not covered by that: see the limit of this release, below. A run the plugin read before the automation engine trimmed its history is not needed again, so an approval whose refused outcome is tried again after its run's history went is judged as it would have been. + - **A run with no row, under a run that went on past it, is passed.** A run the engine has no row for counts as passed, and is kept as ended, where a run the plugin read went on past the step that names it: that step succeeded, and the run reached an end of its flow, or logged a later step and is not parked at that step. So an early child run trimmed before the plugin read it does not hold the approval back. A step that failed is never passed, also where the flow routed the failure and went on. A run the plugin had read to its end over an unread child, and whose own row is gone since, is not passed either: nothing names that child any more. + - **A step log the engine marked, or the history row cut, is cannot tell.** Two logs are read as cut, and are not judged from as they stand: one with a step that carries the engine's mark `childRunIdsTruncated` (its execution started more child runs than the 200 a step names, or the history row shed the step's list to fit its size), and the log of a run that ended whose history row keeps fewer steps than the run logged (the row bounds the log by bytes, to a tail of it or to none, while the run's summary still counts every step). Within the age bound nothing is written; past it the approval is placed by the step last decided, as for a run with no row, below. A run whose log is cut is not kept as ended, the child runs it does name are still read, and it speaks for none of them: no run it names counts as passed. A summary that is absent or dropped its per-node detail gives nothing to compare, and reads as cut. + - **The limit of this release: a log that loses whole steps carries no mark (ruling 7268216330 on #37767).** The engine marks one thing: a step whose child-run links were shed carries `childRunIdsTruncated`, above. A log that loses whole steps carries no mark, whichever way it loses them: the engine's compaction of a log of more than 200 steps, the history row's halving of a log over its 64 KB cap, a row stored as null. The plugin reads what the log kept, and a child run named only by a dropped step reads as one the run went past: it is not read. For a halved row and a null row the plugin can still tell that steps are missing, from the run's summary, which counts every step: that is the second log read as cut, above, and the approval is held and then placed. For a compacted log it cannot tell. A run that logged more than 200 steps is stored with 200 of them: every top-level step and every failed step, then the most recent of the rest (the most recent 200 of the top-level and failed steps, where those alone pass 200), and it is judged from those, as before this change. What an operator gets in that case: a `subflow` or `map` step the compaction dropped (one that succeeded inside a `loop`, `parallel` or `try_catch` region, or an early step of a very long run) no longer names the child runs it started; a failure the flow routed inside such a child run, between two steps, is not seen; and the approval can be written as finished, with no notice and no line in the log. A process that still holds the run in memory reads its whole log, so this is a judgement made once that process is gone. No approval is judged worse than before this change, whose door read no child run. + - **The kept reading is its own key.** It is written onto the snapshot read again just before the write, and only while the column still reads the same, at most three times. It cannot write a stale snapshot over a note another writer left there (`__laterStepNotOpened`, `__strandedContinuation`). The judgement reads the note that a later step could not open once it has read the runs, so a note that lands while they are read is judged with. + - **A run that stopped, placed by the step last decided.** A run the engine has no row for and that no run the plugin read speaks for (its history is gone, or a process stopped while advancing it), a run whose step log is cut, above, a tree of more runs than the judgements can read in full, above, and the latest request's own run still parked at the step its decision was recorded on (a process stopped before the run was resumed), in the run that carries the record or in a child run any number of levels below it, are cannot tell for an hour from the approval's marks (the age bound). Past it, each has stopped at the step last decided once two judgements in a row read it in the same state, for the same run. The hour is counted from the marks and not from the run's last movement, and a run the engine is resuming reads as paused with its pause gone or as a run with no row; so an approval whose flow waits longer than the hour between two steps by design (a `wait` node, a batch over records whose items are approved one by one, a child run parked outside the approval's steps) is past the bound whenever it resumes. Only an approval that holds nothing back can wait so: the check at its opening refuses each of the three between two steps of an approval on a field its object closes on. There a placement ends the hold and writes nothing. The judgement that reads a run in such a state first therefore does not place it (it cannot tell, and a run parked on a child that has ended is in progress), and keeps the state it read (`stood` in `__runsRead`); the next judgement places the run if it reads the same, and reads it anew if it does not. A judgement within the hour keeps what it read as well, a door's included, so an approval read in that state within the hour is placed by the first visit past it, and one that was not takes one visit more. A reading that could not be kept leaves on the request the reading kept before it: the next judgement stands on that earlier one, so a state kept earlier can still count, and where none was kept nothing is placed. An approval whose reading is never kept is therefore held with no end. Two passes that each fall inside a resume of the same run still read it as stopped. Whether a later step can follow that step is asked in the flow its request records, so a node of another flow that carries the step's id does not answer for it. Where one can, the approval is abandoned: the record is put back, the submitter is told and submits again, the decisions already made stay on their requests, and a run still parked there is cancelled, with the runs that wait on it up to the run that carries the record, through a `map` whose items are not records as through a `subflow`. The cancel follows the put-back, and is not tried again once the put-back has landed: where it fails, or the process stops between the two, the run stays parked, the approval stays abandoned, and the door that continues a restored run refuses it. At the last step, the outcome is written and, once that write has landed, the administrators are told that the flow could not be seen through to its end after that step; the run's pause is left for an operator. A refused write sends no such notice, and the pass on which the write lands sends it. The notice says what to do in each case: continue or cancel a run that is still paused, and where the run has ended or no run is left, check that the steps after the decision were done. An approval placed for a cut log or a tree too large to read can be one whose flow did go on, which the plugin could not read in full: at its last step the administrators get the notice for a flow that ran, and where a later step can follow, the submitter submits again. + - **The reconciler.** Each pass reads two windows of at most 200 marked requests (`unjudged_since`): the oldest marks, and the next page of a walk over every marked request by id, so that marks which stay cannot keep the newer ones from being read. It judges each approval among them once, as the door would have: it writes the outcome in the name of the request's recorded decider, abandons the approval, or, where nothing was held back, clears the mark and writes nothing (where it concluded that a run had stopped, a line in the log says so). It ends what no door saw: a run that was cancelled, a parent run cancelled while its child's request was pending, and the stopped runs above. Past the age bound it also reads as stopped where it stood a run that reports paused while its pause is gone, and a run parked at a `subflow` or a `map` whose child run has ended or has no row, each once two judgements in a row read it so, as above. The item run of a `map` whose items are records is such a child once it is in a terminal status: its steps are an approval of the item's own record and are not read, only whether it has ended, and it is kept as ended only once it has. + - **A refused write is tried again.** A refused outcome or put-back leaves the marks, and the next pass tries it again. The timeline line and the administrators' notice (keyed per request and status) are left once for one refusal; the same holds for the line an abandoned approval leaves. + - **A deleted record.** Where the approval's record was deleted, the reconciler clears the marks of its requests and writes nothing: no retry and no notice. + - **The stranded-request report** (`inspectStrandedRequests`) leaves a decided request the check stamped to the door and the reconciler, and still reports a returned one. + + - **A refusing end is an end.** The door reads a run that reached an end of the flow as having ended there, a refusing end (`outcome: 'refused'`) included, as it already did for a completed run. + + Unchanged: an object that declares no `closedStates`; an approval that opened before its object declared the key. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + fix(approvals): on a field the object closes on, a refused write of the approval status mirror is no longer swallowed (ADR-0162 Execution item 8) + + Clause-②: no + Metadata-protocol: none + + A validation rule, an option's `visibleWhen` or a hook of the app can refuse the write that mirrors an approval's status onto the record. The mirror used to log every such refusal at `warn` and go on. On a field the object closes on at `approved` or `rejected` (`closedStates`, ADR-0162 D1): + + - **The `pending` of an approval's first request.** The approval does not open. The request's row is voided as `cancelled`, nobody's inbox lists it, no lock is taken, and the run fails at that step with the refusal's own message. The record keeps the value it held, a closed one included. + - **Every other write** (a decision, a send-back, a recall's put-back, a later request's `pending`, the dead-run sweep's put-back). The field keeps the value it held, and the refusal is reported three ways: an `error` line naming the write and the fix, a line with no actor on the request's timeline carrying the refusal's message, and a notice to the organization's administrators under the new topic `approval.status_mirror_refused`, which the notification preference options now list. + + An object that declares no closed state is unchanged: its mirror still logs a refused write at `warn`, and its approval still opens. +- 7b68db9: feat(data): one record lock read, for closed states and approvals + + Clause-②: yes (widening) + Metadata-protocol: added + + An app can now ask whether a record is locked, and by which lock, in one read that covers both locks a record can be under: a declared closed state (an object's `closedStates`, or a `master_detail` line of a closed record) and an approval. Before this, a client could only ask the approvals read, which knows nothing of closed states, so a closed invoice looked editable until the save was refused. + + - `GET /api/v1/data/{object}/{id}/lock` answers one record: `{ locked, lockSource?, lockReason? }`. `lockReason` is `closed_state` or `approval`, `lockSource` is `record` or `master`, and both are present exactly when `locked` is true. A record the caller cannot read, or that does not exist, answers 404. + - `POST /api/v1/data/{object}/locks` answers a page of up to 200 records, body `{ "recordIds": [...] }`; a record the caller cannot read answers `locked: null`. A longer list is refused whole with 400. + - `client.data.getRecordLock(object, id)` and `client.data.getRecordLocks(object, recordIds)` call them. The shapes are `RecordLockSchema`, `GetRecordLocksRequestSchema` and `GetRecordLocksResponseSchema` in `@objectstack/spec/api`. + + Every user who can read the record is told, even when field permissions hide the state field. The answer never names the field, the value, the approval request or its participants. The read works without the approvals plugin; then only closed states lock. + + The upload-link door now asks this read before it issues a file-field link: a closed record is refused with "the record is closed, so no file can be added to it", a record an approval holds with the existing approval sentence. + + Nothing existing changes: the approvals read (`/api/v1/approvals/records/...`), its SDK methods and service members answer exactly as before. +- ad83af4: plugin-approvals: the approval service's engine reads are typed against `EngineQueryOptions` + + Clause-②: no + Metadata-protocol: none + + The four engine `find` calls in the approval service that passed their options as `any` (the manager lookup, the out-of-office delegation lookup, the live-record re-read and the request list) now declare them as `EngineQueryOptions`, so the compiler refuses an options key the engine does not read. Typing only: the emitted JavaScript and type declarations are unchanged, and no behaviour changes. +- 5704d13: fix(plugin-approvals): an approval's run is read by the steps it logged by its end, not a fan-out branch that went on after it + + Clause-②: no + Metadata-protocol: none + + When a flow's node fans out to branches that run together and one branch fails, the automation engine does not stop the others: they go on appending steps to the run's log after the run has ended. The approvals plugin read the last top-level step of a terminal run as where it stopped, and any later step as the run going on past a step, so a step another branch completed after the run's end moved both readings: the reconciler placed a failed run at the other branch's node (and told a failure the flow never routed as one it went on from), and took a child run with no history row as passed. Both readings now use only the steps the run completed by its `completedAt`; a run that names no `completedAt`, and a step completed in the same millisecond, read as before. + + Also: the terminal history row serializes a log under its size cap once, not twice (`@objectstack/service-automation`); the source comment over the step log's `childRunIds` no longer says a reader reaches every run of its tree from the log alone, since the list is bounded and can be shed (`@objectstack/spec`, comment only, no schema change). +- d0bce70: fix(plugin-approvals): an approval step opens no request on a run that has already ended + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening, two additions: the exported `ApprovalAutomationSurface` gains an optional member, `getRun?: ApprovalResumeSurface['getRun']`, the run log read the approval step makes before it opens a request (a host that passes an engine without it opens the step as before); and the exported `ApprovalService` gains a public method, `abandonAtRefusedStep({ runId, nodeId, object, recordId, runStatus, rootRunId? })`, which the approval step calls once when it refuses, described below. It is meant for the approval step only. + + When a flow's node fans out to branches that run together and one branch fails, the run ends while the other branches keep going. A branch that reached an approval step after that still opened a request there: the step's approver was notified and asked to decide for a run that can never resume, and the record was held `pending` until the dead-run sweep recalled the request (every 5 minutes by default, and never on a host with no job service). + + The approval step now reads its run's log before it opens a request. Where the run has already ended (completed, failed, cancelled, timed out, refused or missed) and the log shows a step completed after that end, so another branch went on to this step, it opens no request, sends no notice and leaves nothing pending. The step is logged as failed with a sentence naming the run and how it ended; the run keeps the status and error it ended with. Because the step fails, an authored `fault` out-edge on it is taken, on the run that has already ended. + + The record then ends `recalled` (or its value at submit, where its options do not declare `recalled`) on every object, abandoned and never approved, and the approver of the next step is never asked: + + - On an object that closes on its approval field, the decision before the fan-out was held back, and the plugin's fan-out judge puts the record back, through the door or the reconciler. The refusal writes nothing more there. + - On any other object, the decision before the fan-out was already written to the field (`approved`, say), and no judge runs. The refusal puts the record back itself, as the dead-run sweep does for an approval whose run died: one `recall` row with no actor on the approval's latest request on the record, whether the run itself or any run of its tree opened it (the root run, a `subflow` body or a `map` item, so also the parent or a sibling of a run that is itself a child), naming the run, how it ended and the step that opened nothing, then the status field set to `recalled`. That latest request keeps the decision its approver recorded; no request row is written. If the put-back fails, the step's error says so, and the record keeps the value its last decision wrote. + + A run that is still running, or still being resumed onto the step, opens it as before. So does a run that stranded and was restored and is now resumed again: its log still reads the end it stranded with, but nothing logged after it. A run whose status cannot be read also opens the step: an unreadable run is not taken for an ended one. Where a branch reaches the step before it has logged any step past the run's end (the step is the first node after the fan-out and the failure landed first), the step still opens, and the dead-run sweep recalls the request as before. +- a0ee7d2: fix(plugin-approvals): an approval whose flow fans out and one branch fails is abandoned, never approved + + Clause-②: no + Metadata-protocol: none + + When a flow's node fans out to branches that run together and one branch fails, or reaches an `end` that refuses, the run ends while the other branches keep going. The approval plugin could judge such an approval approved. The judgement after the decision ran as the run ended, while a branch that could still lead to the next approval step had not finished. It placed the run at the failed branch, which leads to no later step, so the record took `approved` and the next approver was never asked. The reconciler, reading the stored log later, could put the record back to `recalled`, so the two judgements could disagree. + + The maintainer ruled that when the run ends, an approval step on another branch that has not finished counts as not done, and the approval is abandoned. The judgement after the decision and the reconciler now read every case pinned here the same way. The record is put back (`recalled`, or the value at submit where the object closes on `recalled`), and the request's timeline names the node where the unfinished branch stood. + + How a branch is read as unfinished: + + - The judge reads the flow's out-edges that run together, and the steps the run logged by its end. It follows each branch of a fan-out past the nodes it had already logged, to the first node it had not reached. A branch counts where a step can still follow that node. + - An approval step's branch is the one its request's decision took (`approve`, `reject` or `revise`), so the branch a decision did not take is not read as open, even where two labels share a target. Where the label a node took is not recorded (a `decision` that declares `conditions`, or an approval step with no request row), every branch of it counts, whatever the run logged: which targets logged cannot tell the label, and a label no edge carries makes the engine run every edge. This can put a record back after a branch the flow did not take, also in a flow with no parallel branches. The seat accepted that cost in writing, the direction ADR-0162 tolerates as a resubmission. It never reads as finished a branch the engine ran. A node that chooses no label runs all its out-edges, even where they carry labels, so every branch of it counts. + - On a branch, a target of a conditional or default edge counts as decided only once the run logged a step for it, or a `skipped` step that passed it over. Otherwise it is undecided or still running, and counts as unfinished. + - A step logged as `skipped` (a gate that did not open) does not count as the node having run. + - Where the flow's body cannot be read when the run is judged, a branch that has logged nothing cannot be seen. The approval is then not judged until the reconciler's age bound has passed. After that it is put back where a step can follow the step last decided, the same rule as for a run that cannot be read. + + A run that ends `refused` after the approval's latest request was rejected keeps `rejected`, even with another branch still open. The ruling concerns a record marked approved with an approver missing, and a rejection is an approver's decision. This applies to a refused run only. A run that failed, was cancelled or timed out was already put back before this change when it stopped between two steps, whatever the latest decision, and it still is. + + A failure another branch logged after the run ended is also no longer read as a failure the flow went on from. The outcome was abandoned before as well; the timeline now names the branch that was still open instead. +- 57657df: fix(plugin-approvals): a refused fan-out run and a run held in memory are read by the steps logged by the run's end + + Clause-②: no + Metadata-protocol: none + + When a flow's node fans out to branches that run together, the automation engine does not stop the other branches when one branch pauses, fails or reaches an `end` that refuses. They go on adding steps to the run's log. The previous fix read a failed run by the steps it completed by its `completedAt`. Two readings still counted the later steps: + + - **A run held in memory** (`suspendedRunStore: 'memory'`, no data engine, or a pause whose durable save failed). The held suspension was the live step log. A run cancelled or failed where it waited therefore ended with the other branch's steps, and the reconciler placed it at the other branch's node. The engine now copies the step log at the pause, as a durable store already does when it saves the run, and each read gets its own copy (`@objectstack/service-automation`). + - **A run that reached an `end`** (`completed` or `refused`). A refusing `end` stops the run the way a failure does, and every successful step counted as passed, including a step another branch completed after the refusal. Such a step is no longer passed, so a child run it names with no history row reads as undetermined. + + A run with no `completedAt`, and a step completed in the same millisecond as the run, read as before. The readers' source comments now state that both instants come from one clock, and that the run is written from its suspension as it was at the pause. +- 08255e0: feat(approvals): the service that owns an approval step can refuse a decision before it is recorded + + Clause-②: yes + Metadata-protocol: none + + A service that owns a flow's approval steps registers a check with `approvals.registerDecisionAdmission({ flow, check })` (`ApprovalDecisionAdmission` in `@objectstack/spec/contracts`, an optional member of `IApprovalService`). Every decision on an approval step of that flow is asked of it after the approvals service's own refusals and before anything is written: an approve or a reject through any door (REST, the action door, the action link, the SLA sweep's auto-decision), for a slot holder and for the administrator override alike, and a send-back, asked as what it records: `revise`, or `reject` once the step's revision budget is spent. A recall is not asked. A refusal (`{ userMessage, message? }`) answers `403 FORBIDDEN` with that `userMessage`; nothing is recorded, the request stays pending with its approvers and approver index unchanged, the run stays parked and no one is notified. Any other non-nullish answer refuses too, without a `userMessage`. A check that throws fails closed: its throw reaches the caller and nothing is recorded. An SLA auto-decision the check refuses leaves the request pending; the sweep's single-shot `escalate` marker is already written, so the sweep does not ask again. One admission per flow name; a second registration throws. + + Before this, a rule the owning flow enforced in a node after the approval could only refuse after the decision was recorded: the door answered `500 RESUME_FAILED`, the request read decided and the submitter was told nothing. Nothing changes for a flow with no admission registered. To adopt it, register the check where the flow is registered, probing for the member first (an implementation without it still satisfies the contract). +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-approvals/package.json b/packages/plugins/plugin-approvals/package.json index 08fcb206847..a073723271a 100644 --- a/packages/plugins/plugin-approvals/package.json +++ b/packages/plugins/plugin-approvals/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-approvals", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Multi-step approval engine for ObjectStack — sys_approval_process + sys_approval_request + sys_approval_action + IApprovalService.", "type": "commonjs", diff --git a/packages/plugins/plugin-audit/CHANGELOG.md b/packages/plugins/plugin-audit/CHANGELOG.md index ca0cbb9ecc2..556fa8de422 100644 --- a/packages/plugins/plugin-audit/CHANGELOG.md +++ b/packages/plugins/plugin-audit/CHANGELOG.md @@ -1,5 +1,97 @@ # @objectstack/plugin-audit +## 19.0.0-next.4 + +### Patch Changes + +- dffe83e: feat(plugin-audit): a comment thread stores who took part in it, so "threads involving me" is one filter + + Clause-②: yes (widening) + Metadata-protocol: none + + `sys_comment` gains `participants`, a read-only list of user ids on a thread's top-level comment: its author, the author of every reply at any depth, and everyone any comment of the thread mentions. On a reply it is `null`. "The threads involving me" is now one read: `parent_id: { $null: true }, participants: { $contains: USER_ID }` (element membership on SQLite, PostgreSQL and MySQL). + + The platform keeps the list for every caller: a new top-level comment is stored with its author and the people it mentions; after a reply, after an update that names `mentions`, `parent_id` or `thread_id`, and after a delete, the record's discussion is read again and any list that no longer matches is rewritten (a system write that keeps the comment's `updated_at`). The list is the rule the comment panel's "involving me" filter already applies to a record's loaded threads, and the two are pinned equal. A client's value never lands: the create stamp replaces it silently, an ordinary update has it stripped and reported in `droppedFields`, and an update under `preserveAudit` has it dropped. Who a reply notifies is unchanged. + + The list is eventually consistent: two replies landing together can leave it one reply behind for a moment, and the keeper re-checks after every write it makes until a pass changes nothing. Each rewrite is a system update the audit writer records (a ledger row and an activity row), and deleting a user removes them from every list that names them. + + **After upgrading, run the backfill.** Threads written before this release carry no list, and the filter does not find them until `os migrate comment-participants --apply` writes their lists. Dry run first (`os migrate comment-participants`); it is idempotent, so a second run changes nothing. +- 0c45d66: feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: a new route, `POST /api/v1/comments/threads/query`, mounted by plugin-audit's comment registrar beside the resolution and own-comment delete doors. The body (`CommentThreadsQueryRequestSchema`, strict) names an object and carries a list's filter in the `GET /data/{object}` syntax, with `showResolved`, `onlyMine`, `limit` (1 to `COMMENT_THREADS_MAX_LIMIT`, default `COMMENT_THREADS_DEFAULT_LIMIT`) and an opaque keyset `cursor`; the answer (`CommentThreadsQueryResponseSchema`) is one page of the object's top-level comments on the records the filter selects and the caller may read, newest first, each with its record's id and display name, its reply count at any depth and its latest three distinct repliers, and the next page's cursor. Every step runs as the caller: the engine plans the caller's read of the object with the filter (`ObjectQL#planReadScope`) and places it in the comment read as one subquery, so a view past the 1,000-id cap is answered in full; its refusals are the answer (`PERMISSION_DENIED` for a caller with no read on the object or a filter on a field the caller cannot read, `INVALID_FILTER` on MongoDB and OData). A query parameter, an unknown body key, a `limit` out of range or a cursor the read did not issue is `400 VALIDATION_ERROR` before anything is read, and a filter the list read cannot lower is `400 INVALID_FILTER`, as `GET /data/{object}` answers it, never dropped; an object with `enable.feeds: false` is `403 FEEDS_DISABLED`. The read is served on a kernel with an HTTP server; the hosted dispatcher's `/comments` domain does not claim it. `client.comments.queryThreads` is its SDK method. `@objectstack/objectql` exports the `PlanReadScopeOptions` and `ReadScopeComparand` types. No new error code. `Metadata-protocol: added`: the request and response schemas enter the `api` authorable-surface shard, which the level axis reads as added keys, so `@objectstack/spec` is a `minor`; nothing an author writes in an object, view or app definition changes. +- 3dc3983: perf(plugin-audit): the comment threads read counts replies with one grouped read, and pages at PostgreSQL microsecond precision without skipping a thread + + Clause-②: yes (widening) + Metadata-protocol: none + + `sys_comment` gains `thread_root_id`, a read-only column the platform writes on each reply: the id of the top-level comment the reply's `parent_id` chain leads to within its record's discussion, or the reply's own id when it is in no thread; `null` on a top-level comment. A reply belongs to a thread up to 15 levels below its top-level comment, the rule a thread's participants are already kept by; a reply 16 or more levels deep belongs to none. The create stamps a reply from its parent, and the keeper that maintains `participants` corrects every stamped root of a discussion in the same reconcile and the same system write (the comment's `updated_at` kept), so a re-point or a delete moves the roots under it. After a write it stamps only the rows that write wrote, so a reply on a discussion full of older replies never turns into one system update (with its audit and activity rows) per older reply. A client's value never lands: the create stamp replaces it, an ordinary update has it stripped and reported in `droppedFields`, and an update under `preserveAudit` has it dropped. + + The comment threads read (`POST /api/v1/comments/threads/query`) now takes each thread's reply count and latest distinct repliers from one grouped read of the page's replies by that column, and one read of each candidate replier's newest reply, as the caller. Before, it read every reply on the page's records and followed `parent_id` in the server. The answer's shape is unchanged. Two latest repliers who replied in the same millisecond are ordered by id. The exported `CommentThreadsEngine` type now requires `aggregate`, and without one the read answers 503. One count differs: a reply exactly 16 levels deep was counted before and is not now, matching the rule the participants list and the comment panel follow. + + The read's cursor now pages by the millisecond a thread was created in, then by id, compared at the millisecond on both sides. PostgreSQL stores microseconds while every read hands back milliseconds, so two threads a database default stamped microseconds apart could be skipped at a page edge. A page whose last millisecond may hold more threads ends with that millisecond read again by id, so the page and the cursor agree. A cursor issued before this release still reads. + + **After upgrading, run the backfill.** Replies written before this release carry no root. The read still counts them, by following each one up its chain, so no count drops, but that read grows with the number of such replies. `os migrate comment-participants --apply` stamps them (dry run first, `os migrate comment-participants`; idempotent). Until it runs, they stay unstamped: a later reply or a re-point stamps only the rows it wrote, so that a user's request never pays for a discussion's backlog. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/plugin-hono-server@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-audit/package.json b/packages/plugins/plugin-audit/package.json index 7463f2656fc..fb75c4c055e 100644 --- a/packages/plugins/plugin-audit/package.json +++ b/packages/plugins/plugin-audit/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-audit", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Audit Plugin for ObjectStack — System audit log object and audit trail", "type": "commonjs", diff --git a/packages/plugins/plugin-auth/CHANGELOG.md b/packages/plugins/plugin-auth/CHANGELOG.md index af023520702..25cbdc58410 100644 --- a/packages/plugins/plugin-auth/CHANGELOG.md +++ b/packages/plugins/plugin-auth/CHANGELOG.md @@ -1,5 +1,134 @@ # Changelog +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 9a13387: fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + + Clause-②: no + Metadata-protocol: none + + A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + + - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. + - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + + The same release refreshes four runtime dependencies to their latest patch level: + + - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. + - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). + - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + + The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/rest@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/service-messaging@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/plugin-hono-server@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-auth/package.json b/packages/plugins/plugin-auth/package.json index ed88a7c0e7f..f4ad5d67982 100644 --- a/packages/plugins/plugin-auth/package.json +++ b/packages/plugins/plugin-auth/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-auth", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Authentication & Identity Plugin for ObjectStack", "type": "commonjs", diff --git a/packages/plugins/plugin-dev/CHANGELOG.md b/packages/plugins/plugin-dev/CHANGELOG.md index dac6f859b8e..4f3e29acfc0 100644 --- a/packages/plugins/plugin-dev/CHANGELOG.md +++ b/packages/plugins/plugin-dev/CHANGELOG.md @@ -1,5 +1,76 @@ # @objectstack/plugin-dev +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [0fff9ae] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [9a13387] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/rest@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/plugin-auth@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/service-storage@19.0.0-next.4 + - @objectstack/plugin-security@19.0.0-next.4 + - @objectstack/account@19.0.0-next.4 + - @objectstack/setup@19.0.0-next.4 + - @objectstack/driver-memory@19.0.0-next.4 + - @objectstack/plugin-hono-server@19.0.0-next.4 + - @objectstack/service-i18n@19.0.0-next.4 + - @objectstack/service-realtime@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-dev/package.json b/packages/plugins/plugin-dev/package.json index 7c94fc044b7..64bb1afb846 100644 --- a/packages/plugins/plugin-dev/package.json +++ b/packages/plugins/plugin-dev/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-dev", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Development Assembly Plugin for ObjectStack — wires the real platform stack for zero-config local development", "type": "commonjs", diff --git a/packages/plugins/plugin-email/CHANGELOG.md b/packages/plugins/plugin-email/CHANGELOG.md index ef96d5ec8a9..8471cefd7e4 100644 --- a/packages/plugins/plugin-email/CHANGELOG.md +++ b/packages/plugins/plugin-email/CHANGELOG.md @@ -1,5 +1,108 @@ # @objectstack/plugin-email +## 19.0.0-next.4 + +### Patch Changes + +- 9a13387: fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + + Clause-②: no + Metadata-protocol: none + + A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + + - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. + - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + + The same release refreshes four runtime dependencies to their latest patch level: + + - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. + - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). + - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + + The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. +- 1536c07: fix(email): a send through the log-only transport is recorded as `logged`, not `sent` + + Clause-②: yes (widening) + Metadata-protocol: none + + When the mail provider is "None (log only — no real delivery)", which is also what runs when no provider is configured, the mail service wrote the mail log row (`sys_email`, `sys_identity_email`) as `sent` and answered `status: 'sent'`, although no mail left the process. The row now reads `logged`, and `send()` / `sendTemplate()` answer `status: 'logged'`. + + - `EmailDeliveryStatus` (`@objectstack/spec/contracts`) gains `'logged'`: final, not a delivery, not a failure. A caller that branches on `status === 'failed'` is unaffected; a caller that treats every non-`failed` answer as delivered should now also check for `'logged'`. + - `TransportSendResult` gains an optional `outcome?: 'logged'`. A transport that only records the message answers it; `LogTransport` does. A transport that answers nothing is unchanged and its sends read `sent`. The free-form `response` text is never read for this. + - `IEmailService.isConfigured()` is unchanged and still judges by the transport's class: only plugin-email's own `LogTransport` reads as not configured. A host-supplied transport that answers `outcome: 'logged'` has its rows recorded `logged`, but `isConfigured()` still answers `true` for it, so the messaging email channel, the invitation `link_only` answer and the sign-up refusals treat it as delivering. + - A `logged` row keeps the transport's message id and has no `sent_at`, because nothing was sent. + - The `status` select of `sys_email` and `sys_identity_email` gains the option `logged (not delivered)`. It is translated in every shipped locale for `sys_email`. The translation bundles carry no `sys_identity_email` entries at all, so there it shows the English label, as the rest of that object already does. + - Setup › Mail "Send test email" decides its "only logged" warning from the send's own `logged` answer rather than from the transport's class. The Setup › Email banner for the log transport, in all 11 locales, now says messages are recorded as logged (not delivered), not as sent. So do the missing-API-key boot error and `OS_EMAIL_API_KEY` in the environment-variable reference. + - A `logged` row is final for every reader in plugin-email: queue redelivery skips it (it carries its message id), attachment content stored outside the row is reclaimed after the grace window, and the boot outbox sweep counts it apart from `sent` (`OutboxSweepResult.logged`, and its summary line says "logged only (not delivered)"). + + Rows written as `sent` by a log-only transport before this release keep reading `sent`. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [05e645b] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-email/package.json b/packages/plugins/plugin-email/package.json index 5e2078cc10f..9618697e128 100644 --- a/packages/plugins/plugin-email/package.json +++ b/packages/plugins/plugin-email/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-email", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Email service plugin for ObjectStack — IEmailService + transport-pluggable outbound delivery with sys_email persistence.", "type": "commonjs", diff --git a/packages/plugins/plugin-hono-server/CHANGELOG.md b/packages/plugins/plugin-hono-server/CHANGELOG.md index 43d20b2bd4f..c2fac482f37 100644 --- a/packages/plugins/plugin-hono-server/CHANGELOG.md +++ b/packages/plugins/plugin-hono-server/CHANGELOG.md @@ -1,5 +1,52 @@ # @objectstack/plugin-hono-server +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-hono-server/package.json b/packages/plugins/plugin-hono-server/package.json index 4c96c85a9c2..bf36c704b80 100644 --- a/packages/plugins/plugin-hono-server/package.json +++ b/packages/plugins/plugin-hono-server/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-hono-server", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Standard Hono Server Adapter for ObjectStack Runtime", "type": "commonjs", diff --git a/packages/plugins/plugin-pinyin-search/CHANGELOG.md b/packages/plugins/plugin-pinyin-search/CHANGELOG.md index f586b8b6f98..c70c54850ca 100644 --- a/packages/plugins/plugin-pinyin-search/CHANGELOG.md +++ b/packages/plugins/plugin-pinyin-search/CHANGELOG.md @@ -1,5 +1,57 @@ # @objectstack/plugin-pinyin-search +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-pinyin-search/package.json b/packages/plugins/plugin-pinyin-search/package.json index 583f8dc3e33..f81573d5ef7 100644 --- a/packages/plugins/plugin-pinyin-search/package.json +++ b/packages/plugins/plugin-pinyin-search/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-pinyin-search", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Pinyin search recall for ObjectStack — populates the hidden `__search` companion column (full pinyin + initials of the display/name field) so `$search` hits CJK names typed as pinyin. Locale-gated via OS_SEARCH_PINYIN_ENABLED (#2486).", "type": "commonjs", diff --git a/packages/plugins/plugin-security/CHANGELOG.md b/packages/plugins/plugin-security/CHANGELOG.md index 05a7f67cc28..e95e555ce65 100644 --- a/packages/plugins/plugin-security/CHANGELOG.md +++ b/packages/plugins/plugin-security/CHANGELOG.md @@ -1,5 +1,76 @@ # @objectstack/plugin-security +## 19.0.0-next.4 + +### Patch Changes + +- dbf103d: fix(objectql): a read keeps its organization wall, whatever a before-hook hands back + + Clause-②: no + Metadata-protocol: none + + `find` and `findOne` hold the organization wall recorded on the read after every `beforeFind` hook, on a tenant object and on a federated one: + + - a read the wall denies answers no rows (`find`) or `null` (`findOne`); + - a read the wall admits answers only the organizations the wall admits, whatever query or tenant options the hooks leave; + - the read's driver options and every later step of the read run on the context as it stood before the hooks. + + On every verb that takes a read scope, a driver's tenant scope under a union of organizations stays inside that union. + + An elevation's tenant options are judged by the values they hold: an element that names no organization is outside the wall. A read whose hooks leave its query and options alone answers the rows it answered before. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-security/package.json b/packages/plugins/plugin-security/package.json index c00fe54e9d4..9b1794ad525 100644 --- a/packages/plugins/plugin-security/package.json +++ b/packages/plugins/plugin-security/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-security", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Security Plugin for ObjectStack — RBAC, RLS, and Field-Level Security Runtime", "type": "commonjs", diff --git a/packages/plugins/plugin-sharing/CHANGELOG.md b/packages/plugins/plugin-sharing/CHANGELOG.md index 2c867fb76bd..13840d79fdf 100644 --- a/packages/plugins/plugin-sharing/CHANGELOG.md +++ b/packages/plugins/plugin-sharing/CHANGELOG.md @@ -1,5 +1,82 @@ # @objectstack/plugin-sharing +## 19.0.0-next.4 + +### Patch Changes + +- 8d4395b: fix(plugin-sharing): the new-queue form asks for the display name first, and a bad API name is refused in the caller's language + + Clause-②: no + Metadata-protocol: none + + `sys_queue` now declares its `label` field before `name`, so a create form asks for the name people read first. `name` is labelled "API Name" (zh-CN「API 名称」), the label the Console's object and field designers already use for a machine name. + + A queue's API name must still start with a lowercase letter and use only lowercase letters, digits and underscores. Nothing new is accepted or refused (Clause-② no): every write refused before is still refused, still as `400 VALIDATION_FAILED`. Three things about the refusal's body move: + + - A badly shaped name is refused by the object's declared `queue_name_shape` format rule, which the engine words in the caller's locale from the plugin's translation bundle. Before, the `sys_queue` beforeInsert hook answered with a fixed English sentence. The entry on `name` is still `invalid_format`. Its message is reworded and no longer ends with `(got "…")`. + - An absent, `null` or empty name, on insert or on an update that supplies an empty value, is now answered by the field's `required` check. The entry on `name` is `code: 'required'`; before, the hook answered `code: 'invalid_format'` with the English sentence. + - `fields[]` may now list more than one entry, for example a missing `label` beside a bad `name`. The hook threw on `name` alone. + + A name an installed app already declares is still refused by the hook, in English, as `invalid_value`. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [05e645b] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/plugins/plugin-sharing/package.json b/packages/plugins/plugin-sharing/package.json index 118620417b8..44dc0ea6f04 100644 --- a/packages/plugins/plugin-sharing/package.json +++ b/packages/plugins/plugin-sharing/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-sharing", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Record-level sharing for ObjectStack — sys_record_share + middleware that enforces sharingModel + ISharingService.", "type": "commonjs", diff --git a/packages/plugins/plugin-webhooks/CHANGELOG.md b/packages/plugins/plugin-webhooks/CHANGELOG.md index 40325f370d6..45faf87b615 100644 --- a/packages/plugins/plugin-webhooks/CHANGELOG.md +++ b/packages/plugins/plugin-webhooks/CHANGELOG.md @@ -1,5 +1,64 @@ # @objectstack/plugin-webhooks +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/service-messaging@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/plugins/plugin-webhooks/package.json b/packages/plugins/plugin-webhooks/package.json index e9e0fe65a60..aef0acd55c5 100644 --- a/packages/plugins/plugin-webhooks/package.json +++ b/packages/plugins/plugin-webhooks/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/plugin-webhooks", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Persistent, cluster-aware webhook dispatcher. Durable outbox + per-partition cluster.lock for exactly-once-ish delivery across nodes. See content/docs/concepts/webhook-delivery.mdx.", "type": "module", diff --git a/packages/qa/dogfood/CHANGELOG.md b/packages/qa/dogfood/CHANGELOG.md index 665407aea91..252b24c561f 100644 --- a/packages/qa/dogfood/CHANGELOG.md +++ b/packages/qa/dogfood/CHANGELOG.md @@ -1,5 +1,121 @@ # @objectstack/dogfood +## 0.0.55-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [7625001] +- Updated dependencies [7625001] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [ad83af4] +- Updated dependencies [8338d07] +- Updated dependencies [f3f3265] +- Updated dependencies [828b6ec] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [44d0f88] +- Updated dependencies [38ab473] +- Updated dependencies [1095535] +- Updated dependencies [f037f1c] +- Updated dependencies [0fff9ae] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [7aaced0] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [d0bce70] +- Updated dependencies [a0ee7d2] +- Updated dependencies [57657df] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [8d4395b] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [9a13387] +- Updated dependencies [1e87dc1] +- Updated dependencies [dffe83e] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [3dc3983] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [05e645b] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/example-crm@4.0.107-next.4 + - @objectstack/example-showcase@0.3.29-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/plugin-auth@19.0.0-next.4 + - @objectstack/service-automation@19.0.0-next.4 + - @objectstack/plugin-approvals@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/service-messaging@19.0.0-next.4 + - @objectstack/service-storage@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/service-analytics@19.0.0-next.4 + - @objectstack/mcp@19.0.0-next.4 + - @objectstack/plugin-sharing@19.0.0-next.4 + - @objectstack/metadata@19.0.0-next.4 + - @objectstack/plugin-email@19.0.0-next.4 + - @objectstack/connector-mcp@19.0.0-next.4 + - @objectstack/plugin-audit@19.0.0-next.4 + - @objectstack/plugin-security@19.0.0-next.4 + - @objectstack/trigger-record-change@19.0.0-next.4 + - @objectstack/example-multi-package@0.0.14-next.4 + - @objectstack/connector-openapi@19.0.0-next.4 + - @objectstack/connector-rest@19.0.0-next.4 + - @objectstack/plugin-pinyin-search@19.0.0-next.4 + - @objectstack/plugin-webhooks@19.0.0-next.4 + - @objectstack/service-datasource@19.0.0-next.4 + - @objectstack/trigger-schedule@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + - @objectstack/verify@19.0.0-next.4 + ## 0.0.55-next.3 ### Patch Changes diff --git a/packages/qa/dogfood/package.json b/packages/qa/dogfood/package.json index eae2231dbd3..161c613f221 100644 --- a/packages/qa/dogfood/package.json +++ b/packages/qa/dogfood/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/dogfood", - "version": "0.0.55-next.3", + "version": "0.0.55-next.4", "private": true, "license": "Apache-2.0", "description": "Dogfood regression gate — hand-written golden tests that boot real example apps through @objectstack/verify's in-process HTTP stack, pinning historical runtime regressions (#2018 timezone bucketing, #1994 cross-owner RLS, #2004 field fidelity) that static checks miss.", diff --git a/packages/qa/downstream-contract/CHANGELOG.md b/packages/qa/downstream-contract/CHANGELOG.md index b4ec45767af..d3c9736879f 100644 --- a/packages/qa/downstream-contract/CHANGELOG.md +++ b/packages/qa/downstream-contract/CHANGELOG.md @@ -1,5 +1,46 @@ # @objectstack/downstream-contract +## 0.0.53-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + ## 0.0.53-next.3 ### Patch Changes diff --git a/packages/qa/downstream-contract/package.json b/packages/qa/downstream-contract/package.json index 9dcfdff033a..faaba133ed4 100644 --- a/packages/qa/downstream-contract/package.json +++ b/packages/qa/downstream-contract/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/downstream-contract", - "version": "0.0.53-next.3", + "version": "0.0.53-next.4", "description": "Frozen third-party consumer fixture — a backward-compatibility gate for @objectstack/spec. Authored the way an external project on a published release authors metadata; if a spec change breaks it, that change is breaking (#2035).", "license": "Apache-2.0", "private": true, diff --git a/packages/qa/http-conformance/CHANGELOG.md b/packages/qa/http-conformance/CHANGELOG.md index 86dcd4aec59..45a16bb1cf8 100644 --- a/packages/qa/http-conformance/CHANGELOG.md +++ b/packages/qa/http-conformance/CHANGELOG.md @@ -1,5 +1,15 @@ # @objectstack/http-conformance +## 0.1.15-next.4 + +### Patch Changes + +- Updated dependencies [440574f] +- Updated dependencies [d7d4605] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] + - @objectstack/core@19.0.0-next.4 + ## 0.1.15-next.3 ### Patch Changes diff --git a/packages/qa/http-conformance/package.json b/packages/qa/http-conformance/package.json index bdd6aae7879..af776e3008b 100644 --- a/packages/qa/http-conformance/package.json +++ b/packages/qa/http-conformance/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/http-conformance", - "version": "0.1.15-next.3", + "version": "0.1.15-next.4", "private": true, "license": "Apache-2.0", "description": "HTTP transport-port conformance gate (ADR-0076 D11/OQ#10, #2462) — a zero-dependency node:http reference implementation of IHttpServer plus a cross-adapter suite that boots the dispatcher bridge and REST generator on it AND on plugin-hono-server, pinning that the port stays free of framework-isms. Not published; validation instrument, not a product server.", diff --git a/packages/qa/scenarios/CHANGELOG.md b/packages/qa/scenarios/CHANGELOG.md index 0c3c7799e5d..0fe7063c7e4 100644 --- a/packages/qa/scenarios/CHANGELOG.md +++ b/packages/qa/scenarios/CHANGELOG.md @@ -1,5 +1,101 @@ # @objectstack/scenarios +## 19.0.0-next.4 + +### Patch Changes + +- a634a41: fix(scenarios): a tool output whose JSON body is followed by a CLI note is read by its body + + Clause-②: no + Metadata-protocol: none + + The agent CLI appends a note after the door's JSON when the agent called a tool without loading its schema first. The scorer read neither the whole text nor the text from its first `{`, so a correct `428 ACTION_CONFIRMATION_REQUIRED` (`no_confirmation_service`) or a `VALIDATION_FAILED` refusal graded `refused (tool error without a code)`. The run grader, the dataset grader and the runner's observation now share one reading (`outputJson`), which also takes the balanced object that opens at the first `{`, so such an output grades exactly as when the note is absent. +- 6f292da: fix(scenarios): door mode runs an operation an earlier write would meet on a fresh copy of the published package, so a one-way status rule no longer leaves the operations after a transition unmeasured + + Clause-②: no + Metadata-protocol: none + + Scratch, template and ask modes already ran such an operation on a fresh seeded copy of the app. Door mode still wrote the moved rows back through the app's own doors, which the app's rules judge. On `invoice_with_line_items`, `send_invoice` moves `i3` from draft to sent; a build that declares a one-way status rule refused the write-back of `i3.status` with 400 `VALIDATION_FAILED`, and `remove_line`, `line_without_product`, `warehouse_reopens` and `remove_inv001_line` read `restore: … not measured`. + + Door mode's build lives in the host's database, not in its project, so a host booted again from the project holds none of it. Its copy now boots the same blank host again with the authoring door on and publishes the person's package there the way the person published it: the same package created, every item the drafts review listed saved as a draft through the draft door with the body the run's host serves after the publish (read decorations stripped), and the drafts published. The copy is refused, and the operation is NOT MEASURED with the reason, when a door refuses a step or the copy does not serve the package's items exactly as the run's host does. + + Measured on hosts booted from the workspace (`objectstack dev --fresh`) with an invoice build whose `status` is a one-way state machine: the copy served all five items exactly as the run's host, `_packageId` included, and the door-mode Run half measured all six operations (four boots); with the copy taken out, the same run left the four operations after `send_invoice` not measured on the 400 `VALIDATION_FAILED` write-back. Installing the served items as a manifest instead, as template mode's copy does, is refused unmanaged (422 `INSTALL_MODE_NOT_PERMITTED`: a manifest without `installModes` is managed only); with `installModes: ['unmanaged']` added it lands under another package (`com.scenario.-copy`), and managed it lands with package provenance, so neither is the package the person published. + + Each door-mode copy costs one boot, the sign-ins, a draft save per package item, a publish and a seed load, paid only before an operation an earlier write would meet. Nothing in the published `./runner` export changes. +- 363c967: fix(scenarios): a delete the cloud chat agent hands to the record page grades as the declared delete + + Clause-②: no + Metadata-protocol: none + + The cloud chat agent deletes no record in the chat: it hands the delete to the record page with `open_record`, and the person deletes the record there. The operation grader read that turn as `refused (no write attempted)`, so a card's `delete` operation that declares `applied` could never pass on that agent. + + The observer now labels such a turn `(handed to the record page: OBJECT ID)` on a `delete` operation when nothing was written, no write call was sent on the object, the reply did not ask first, and the turn's last answered `open_record` on the object points at a record. The record is read off the hand-off's answer (`{ status: 'record_handoff', objectName, recordId }`), never off what the agent asked for. The grader meets a declared `absent` post-state of exactly that record with it: `answer:applied` and that record's `->absent` pass, the second saying the row still reads back because the person deletes it on the record page. Every other declared post-state is checked as before. A hand-off to any other record meets nothing, and a turn with a write call grades by the write, as before. + + The rule is per-driver: the local MCP door registers no `open_record`, so no turn on the local driver carries one and its grades do not change. No exported name, type, field or option changes. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [2595004] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [1aa9c57] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [197e3ff] +- Updated dependencies [913d30d] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [ff491c4] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [8d4395b] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [75a2d57] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/lint@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/plugin-sharing@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/qa/scenarios/package.json b/packages/qa/scenarios/package.json index 8a3ea44b889..d0ae0fd1231 100644 --- a/packages/qa/scenarios/package.json +++ b/packages/qa/scenarios/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/scenarios", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Run the open ObjectStack scenario cards end to end from npm: `npx @objectstack/scenarios run` builds an app from each card's prompt with your local Claude Code login, scores it and writes one run record per card. Also the scenario-card schema and loader (computed truths over seed rows) and the deterministic scorer (`@objectstack/scenarios/score`, `./score/full`). Ships the open card library (docs/qa/scenarios) as package data, never a private overlay; refuses an API-billed login. A devx instrument, not a protocol: packages/spec carries no obligation for this format.", "type": "module", diff --git a/packages/rest/CHANGELOG.md b/packages/rest/CHANGELOG.md index 4ff0dd15a16..a557069b501 100644 --- a/packages/rest/CHANGELOG.md +++ b/packages/rest/CHANGELOG.md @@ -1,5 +1,156 @@ # @objectstack/rest +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + +- 77d1564: feat(spec,rest): the record page payload answers the data lock read, so a record page learns a closed record in its one request + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: `RecordPageRequestSchema` gains an optional `dataLock: boolean`, and `RecordPageResponseSchema` an optional `dataLock` part: the record's lock exactly as `GET /api/v1/data/{object}/{id}/lock` answers the caller (`RecordLockSchema`: `locked`, and on a locked record `lockSource` and `lockReason`, ADR-0162 D9), or that read's refusal as a part error. `POST /api/v1/data/{object}/{id}/page` (`@objectstack/rest`) answers it from the data protocol's `getRecordLock`, served through the lock door's own projection, so nothing about the state field or value rides along; a deployment whose data engine has no lock read answers the part `501 NOT_IMPLEMENTED`, never "unlocked". A body that does not ask gets no part and the read is not asked. The approval part's own `lock` is the approvals-family read and is unchanged. `client.data.recordPage` takes and returns the new part through the spec types. Nothing an author writes in metadata changes. + +### Patch Changes + +- 1de73c0: feat(rest): the record page composite's approval lock says which approval holds the record (`lockSource`), as the lock doors do + + Clause-②: yes (widening: the record page composite's published `lock` gains `lockSource`) + Metadata-protocol: none + + Widened: `RecordPageApprovalsSchema`'s `lock` (the `approvals` part of `POST /data/:object/:id/page`) gains the optional member `lockSource: 'record' | 'master'`, present on a locked record only; `@object-ui/types`'s `RecordPagePayload.approvals.lock` gains the same optional `lockSource`. + + The record page's one read now answers its approval lock through the same projection as `GET /approvals/records/:object/:recordId/lock` and `POST /approvals/records/:object/locks`: `locked`, and on a locked record which approval holds it, `record` (its own) or `master` (the master of a master-detail line; it wins when both hold). A locked answer from a service that names no kind is still served `{ locked: true }` alone, and `null` still means the deployment answers no lock or the record is unreadable or missing. Before this, the composite served `{ locked }` only, so a record page could not tell a line held by its own approval, which may be deleted, from a line of a held master, whose delete the server refuses with `RECORD_LOCKED`. The Console's record page now hides Delete on `lockSource: 'master'`, as the grid's row menu does. +- 7b68db9: feat(data): one record lock read, for closed states and approvals + + Clause-②: yes (widening) + Metadata-protocol: added + + An app can now ask whether a record is locked, and by which lock, in one read that covers both locks a record can be under: a declared closed state (an object's `closedStates`, or a `master_detail` line of a closed record) and an approval. Before this, a client could only ask the approvals read, which knows nothing of closed states, so a closed invoice looked editable until the save was refused. + + - `GET /api/v1/data/{object}/{id}/lock` answers one record: `{ locked, lockSource?, lockReason? }`. `lockReason` is `closed_state` or `approval`, `lockSource` is `record` or `master`, and both are present exactly when `locked` is true. A record the caller cannot read, or that does not exist, answers 404. + - `POST /api/v1/data/{object}/locks` answers a page of up to 200 records, body `{ "recordIds": [...] }`; a record the caller cannot read answers `locked: null`. A longer list is refused whole with 400. + - `client.data.getRecordLock(object, id)` and `client.data.getRecordLocks(object, recordIds)` call them. The shapes are `RecordLockSchema`, `GetRecordLocksRequestSchema` and `GetRecordLocksResponseSchema` in `@objectstack/spec/api`. + + Every user who can read the record is told, even when field permissions hide the state field. The answer never names the field, the value, the approval request or its participants. The read works without the approvals plugin; then only closed states lock. + + The upload-link door now asks this read before it issues a file-field link: a closed record is refused with "the record is closed, so no file can be added to it", a record an approval holds with the existing approval sentence. + + Nothing existing changes: the approvals read (`/api/v1/approvals/records/...`), its SDK methods and service members answer exactly as before. +- 670bc89: fix(metadata-protocol): a disabled package counts for nothing at the environment address, the delete naming no package and the read beside a package-less row + + Clause-②: no + Metadata-protocol: none + + A disabled package holds no name and is never named (ADR-0150 D3). Three doors still counted one. + + - **`GET /api/v1/meta/TYPE/_env/NAME`** (the plain read, `?layers=true`, `?state=draft`, `?preview=draft`, and the `_env/NAME` spelling of an import's `mappingName`), for a name the registry knows only through a disabled package while an enabled package holds it through a stored row or draft the registry has not loaded: the answer was `409 RESOURCE_CONFLICT` naming the disabled package. It is now `409 RESOURCE_CONFLICT` naming the enabled package whose row or draft the read that names no package serves (`details.candidates`), and never that row. Where that read answers 404, `_env` still answers 404. + - **`DELETE` naming no package, and the draft discard naming no package**, of an item whose stored rows are bound to a disabled package and to the one enabled package that ships the name: the answer was `409 RESOURCE_CONFLICT` naming both. Each now removes the enabled package's row or draft, as the same request with `?package=` naming it does, and leaves the disabled package's rows as they are. With two or more enabled holders the refusal still names exactly them. + - **The receipt of `DELETE` and of the draft discard**, bare or naming the enabled package, beside a disabled package's rows: it said the item "still carries another overlay: its row bound to package 'D' remains", naming the disabled package, and for a name only a disabled package ships in code it said "reset to artifact default". A disabled package's row is no remaining overlay and its code is no artifact default: the receipt now reads as it does without the disabled package ("reset to artifact default" where the enabled package ships the name, "it no longer exists" where no enabled package does). Repeating the bare delete or discard once the enabled package's row or draft is gone answered by removing the DISABLED package's row or draft (a customization hidden with it); it now answers the no-op receipt at the enabled package's address and leaves the disabled package's rows stored. A `dropStorage` delete still counts every stored row. + - **The read that names no package** (`GET /api/v1/meta/TYPE/NAME`, `/layers`, `/published`), of a name a disabled package ships in code only, beside one enabled package's stored row and a package-less row: the answer was 404. It now serves the enabled package's row, as it does when the disabled package does not ship the name. + + Not changed here: the draft save naming no package of the second case still answers `409` naming both packages. To write the enabled package's draft now, name it: `?package=PACKAGE`. +- d38006b: fix(discovery): `routes.approvals` is advertised exactly when the approvals doors serve + + Clause-②: no + Metadata-protocol: none + + The discovery document now fills the declared `routes.approvals` key when the request's kernel has an `approvals` service, and leaves it out when it has none. That is the same check the approvals doors make: each one answers `501 NOT_IMPLEMENTED` when no approvals service is present. The REST discovery endpoint reports the base it mounted the doors on, so a deployment with a moved `apiPath` or an environment-scoped request reads its own base back, not the `/api/v1` default. Before this change no producer ever filled the key, so a client could not learn from discovery that a deployment runs no approvals service. The SDK still falls back to `/api/v1/approvals` when the key is absent, as before. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [355e8e3] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [9a13387] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/service-package@19.0.0-next.4 + - @objectstack/metadata@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/rest/package.json b/packages/rest/package.json index 191cc66743a..f068d6bd1d6 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/rest", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack REST API Server - automatic REST endpoint generation from protocol", "type": "module", diff --git a/packages/runtime/CHANGELOG.md b/packages/runtime/CHANGELOG.md index d4b57d46820..a5d027df43f 100644 --- a/packages/runtime/CHANGELOG.md +++ b/packages/runtime/CHANGELOG.md @@ -1,5 +1,233 @@ # @objectstack/runtime +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(automation): every write of a run carries the root run of its tree (`flowRootRunId`, ADR-0162 D5) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: a data write a run makes (`resolveRunDataContext`, the run identity of `@objectstack/service-automation`) carries `flowRootRunId`, the run id of the root of its run tree, beside `flowRunId`; the engine carries it onto the write's `HookContext.provenance` (`@objectstack/objectql`), the platform system api strips it with the other run marks, a sandboxed body and script see it among the declared provenance members (`@objectstack/runtime`), and it is one of the fields an entry point may not set on an `ExecutionContext` (`assembleExecutionContext`, `@objectstack/core`). The approvals plugin reads it to let every run of an approval through the hold. Absent on a write that is not a run's. +- e542b7b: feat(service-analytics): a word that names the field a filtered measure candidate sums is answered from that field, not asked about + + Clause-②: yes (widening) — `DatasetToolsDeps` gains an optional `readFieldLabel` + Metadata-protocol: none + + `list_datasets` no longer offers, as a candidate to ask back about, a measure that carries a `filter` and whose aggregated base field the word names: the word equals, or is inside, that field's label or its name (ADR-0149 D3, the amendment note of 2026-12-01). "hours" beside a measure "Billable hours" that sums the field `hours` under a filter is now answered from the field: `nextStep.note` names the field (object and field name), says to answer it with the object query tools labelled as not from a governed metric, and mentions the measure as a narrower declared metric. The measure stays listed in its dataset's entry; it is only absent from `candidates` for that word. + + The decision values are unchanged and read as declared: a word left with no candidate is `no_measure`; a word left with dimension candidates stays `candidates_only`, with the field named and no question; a word left with another measure candidate is still asked about, and the field answers only if that question settles nothing. Unchanged, and still asked about: a measure with no `filter` over the named field, a measure over a relationship path, and a word that names different fields through different measures. The take-out runs before the per-word cap of candidates, so a measure taken out uses no slot. + + Field labels are read by a new optional `DatasetToolsDeps.readFieldLabel` (the authored label and the translation-bundle label for the answer's locale). Both MCP doors (HTTP and stdio) wire it from the object `describe_object` serves; a host that does not tests the field's name only, as the `list_datasets` description says. The `list_datasets` description and the MCP `initialize` selection rule carry the rule in the same sentence, and the `candidates` and `nextStep.note` descriptions in `@objectstack/spec` say it. +- 670bc89: fix(metadata-protocol): a disabled package counts for nothing at the environment address, the delete naming no package and the read beside a package-less row + + Clause-②: no + Metadata-protocol: none + + A disabled package holds no name and is never named (ADR-0150 D3). Three doors still counted one. + + - **`GET /api/v1/meta/TYPE/_env/NAME`** (the plain read, `?layers=true`, `?state=draft`, `?preview=draft`, and the `_env/NAME` spelling of an import's `mappingName`), for a name the registry knows only through a disabled package while an enabled package holds it through a stored row or draft the registry has not loaded: the answer was `409 RESOURCE_CONFLICT` naming the disabled package. It is now `409 RESOURCE_CONFLICT` naming the enabled package whose row or draft the read that names no package serves (`details.candidates`), and never that row. Where that read answers 404, `_env` still answers 404. + - **`DELETE` naming no package, and the draft discard naming no package**, of an item whose stored rows are bound to a disabled package and to the one enabled package that ships the name: the answer was `409 RESOURCE_CONFLICT` naming both. Each now removes the enabled package's row or draft, as the same request with `?package=` naming it does, and leaves the disabled package's rows as they are. With two or more enabled holders the refusal still names exactly them. + - **The receipt of `DELETE` and of the draft discard**, bare or naming the enabled package, beside a disabled package's rows: it said the item "still carries another overlay: its row bound to package 'D' remains", naming the disabled package, and for a name only a disabled package ships in code it said "reset to artifact default". A disabled package's row is no remaining overlay and its code is no artifact default: the receipt now reads as it does without the disabled package ("reset to artifact default" where the enabled package ships the name, "it no longer exists" where no enabled package does). Repeating the bare delete or discard once the enabled package's row or draft is gone answered by removing the DISABLED package's row or draft (a customization hidden with it); it now answers the no-op receipt at the enabled package's address and leaves the disabled package's rows stored. A `dropStorage` delete still counts every stored row. + - **The read that names no package** (`GET /api/v1/meta/TYPE/NAME`, `/layers`, `/published`), of a name a disabled package ships in code only, beside one enabled package's stored row and a package-less row: the answer was 404. It now serves the enabled package's row, as it does when the disabled package does not ship the name. + + Not changed here: the draft save naming no package of the second case still answers `409` naming both packages. To write the enabled package's draft now, name it: `?package=PACKAGE`. +- 0fff9ae: feat(runtime): a declared `type: 'api'` action delivers a file through the REST action door, and the console saves it as a download + + Clause-②: yes (widening) + Metadata-protocol: none + + **The REST action door relays a file.** `POST /api/v1/actions/...` forwards a same-origin `type: 'api'` action to its `target` in-process. A target that answered `2xx` with anything but JSON used to get the door's own `502`. One such answer is now carried: a non-JSON `2xx` with a body that carries `Content-Disposition: attachment` (a print route's PDF, a CSV export). + + - The door answers it byte for byte: the target's status, its body, and its `Content-Type`, `Content-Disposition`, `Cache-Control` and `X-Content-Type-Options`, each as the target sent it. A credential rotation the target emits is relayed beside it, as on a JSON answer. + - The file is read whole before the door answers, and it is bounded at 32 MiB (`API_FORWARD_ATTACHMENT_MAX_BYTES`). A declared length over the bound is refused unread, and a larger body is refused once it passes the bound. Either way the answer is the door's `502`, never a cut-off file. + - A JSON answer keeps the JSON path whatever its disposition: an `application/json` or `+json` answer sent as `attachment` (the data export with `format=json` is one) is parsed and answered as the same envelope as before. A `204` or `205` has no file to relay and answers as before too. + - Every other non-JSON `2xx` (an inline file, a page, a body with no disposition) still answers `502`. Every non-`2xx` answer is still the target's refusal under its own status, as before. + - The door's gates are unchanged and run first. A caller the door refuses (signed out, an action switched off, a capability it lacks) gets the refusal, and the target is never called. + - **Only the REST door relays a file.** MCP `run_action` and the host door `dispatchAction` still answer a file with the `502`: a tool result and a `{ status, body }` answer cannot carry one. + + **The console saves it.** A click on a declared same-origin `type: 'api'` action whose door answer is a file now saves that file as a download; a JSON answer is read as data, as before, whatever its disposition. The name comes from the `filename*` parameter (RFC 5987, so a name such as `发票.pdf` survives), else from `filename`, else it is `download`. The click then reports success. The record page's own action handler sends a declared action through the same door client, so it saves the file too. A click the shared action runtime fetches itself (an inline page button, or an api action no object declares) saves a target's own attachment answer the same way; it used to read such an answer as an empty success with no file. The record page's own direct fetch is not changed here and still reads a file answer that way. + + Nothing changes for an app whose api targets answer JSON, with or without an attachment disposition. For an app with a target that answers a non-JSON file as an attachment, the action now delivers that file where it used to answer `502`. +- 270d160: fix(runtime): `list_drafts` answers in bounded time when many drafts are pending + + Clause-②: no + Metadata-protocol: none + + `list_drafts` on the MCP draft door (and on the in-process authoring tools that share it) used to judge every pending draft, one after another. Each verdict is a strict draft read and a publish judgement, and its cost grows with the size of the draft's package. With 500 drafts on a remote database the call never answered. Now: + + - Every pending draft is still listed, in the same order, with the same fields. + - One call judges at most 50 drafts, most recently saved first, and starts no new verdict once 20 seconds have passed since the call began. The verdict that is running when the time runs out still finishes. + - A draft that was not judged answers `verdict: null` with `verdictWithheld: { code: 'MAX_RECORDS_EXCEEDED', message, status: 400 }`. A withheld verdict already had this shape, and the console's draft review card shows it as "Verdict withheld". + - The answer gains `judged`, the number of drafts that were judged. When some were not, it also gains `notJudged`, a sentence that says how many were left out and to pass `package` to list fewer. + - The tool description says that verdicts are bounded and how to narrow the list. + + Nothing else changes: the input schema is the same, and a list under the bound answers as before, plus `judged`. +- 3c3a154: fix(runtime): the MCP `list_metadata_items` rows for type `package` name the package + + Clause-②: no + Metadata-protocol: none + + `list_metadata_items` with `type: "package"` answered one row per installed package, and every row read `{ name: null, label: null, packageId: null, draft: false }`: a package item is an installed-package record whose id and display name sit on its `manifest`, and the row read only the item's top-level `name`, `label` and owning package. A package row now reads `name` and `packageId` from `manifest.id` (the id `get_metadata_item` reads the package by, and the value `save_metadata_draft`'s `package` names) and `label` from `manifest.name`. The row keeps its four keys; rows of every other type are unchanged. +- 4a3b532: fix(runtime): `get_metadata_item` without `state` answers the `version` a following save takes + + Clause-②: no + Metadata-protocol: none + + The MCP authoring door's `get_metadata_item`, read without `state`, serves the pending draft where one exists and the published item otherwise, and answered no `version`. An agent that then saved the item had no token for `save_metadata_draft`'s `ifMatch`: it guessed, and the save was refused (`VALIDATION_ERROR` on `ifMatch`, or `409 METADATA_CONFLICT`) until it read again with `state`. + + The answer now carries the `version` of what it served: the pending draft's when it says `draft: true`, the published item's otherwise, the same token a read with that `state` answers. A save pinned to it is written. The tokens are read before the item is served, so a change made while the item is read leaves the token older than what was served, and a save pinned to it is refused naming the current version rather than written over a change the caller never saw. A draft published, discarded or first saved while the item is read leaves the answer with no `version`; read it again. `version: null` means save without `ifMatch`. A read with `state` answers as before, and the protocol's `previewDrafts` read is unchanged. +- 7814822: fix(metadata-protocol): a `list_drafts` verdict no longer re-collects its package for every draft + + Clause-②: yes (widening: the exported `ObjectStackProtocolImplementation#getMetaItem` request type gains one optional in-process member, `packageClosures`; a caller that omits it behaves exactly as before) + Metadata-protocol: none + + The open MCP draft door's `list_drafts` judges each draft with a strict draft read and a publish judgement. The judgements already shared one publish closure per package (the package's other drafts), but the strict draft read folded its own publish verdict into `_diagnostics` without it, so it collected the whole package again for every draft. One verdict cost about 25 + P queries, where P is the number of drafts in the package, and a whole list P × (25 + P). + + `ObjectStackProtocolImplementation#getMetaItem` now takes an in-process `packageClosures` map, the one `draftPublishJudgement` already takes, and hands it to the strict draft read's folded judgement. The door passes the map its judgements use, so the closure is collected once per package per `list_drafts` call. Measured on SQLite, one package: 10 drafts 352 → 242 queries, 50 drafts 3752 → 1202, 100 drafts (50 judged under the door's cap) 6302 → 1252; about 23 queries per verdict whatever the package's size, plus one collection of the package. + + Nothing a caller can send over the wire changes. The key is not read from any HTTP or MCP request, and only a `Map` is taken, which no JSON body or query string decodes to. A `/meta` draft read names no map: it collects its own closure on every read and folds the same `_diagnostics` as before. A map lives for one `list_drafts` call; nothing is kept between calls. +- cef9a80: feat(setup): Setup navigation gets ten group anchors; a nav group's `renamedFrom` keeps retired ids working + + Clause-②: yes (widening) + Metadata-protocol: added + + **New key: `renamedFrom` on a group nav item** (`GroupNavItemSchema`, optional, a list of nav ids). It names the group ids the group replaced. A `navigationContributions[]` entry whose `group` names one of them lands in that group instead of the app's top level. The merge looks for an exact group id first and reads `renamedFrom` only when none matches. The app's own parse refuses an entry that is the group's own id, repeats in the list, is an id another entry of the app still declares, or is claimed by a second group, and refuses the key on a group inside `areas[].navigation`, where no contribution is merged. Nothing changes for an app that does not write the key. `@objectstack/spec/ui` exports the check, `checkAppNavGroupRenamedFrom`, and `@object-ui/types`' `AppComponentSchema` chains it and accepts `renamedFrom` on a navigation item, so objectui's validator judges the key as the publish door does instead of dropping it. + + **New warning: `nav_contribution_group_renamed`.** A contribution that names a retired id is logged at `warn` by the runtime and reported by `os build` and `os validate` under its own headline. The message names the package, the retired id and the group that took it over; the fix is to change the contribution's `group` to the new id. It is not a relocation, so the published relocation surface keeps its contract: `NavContributionGroupDiagnostic`, `checkNavContributionGroups()` and `SchemaRegistry#getAppNavDiagnostics()` are unchanged and never carry it (a group id that resolves through `renamedFrom` is not reported there). `@objectstack/objectql` adds `checkNavContributionGroupRenames()` (the compile-time notices, `NavContributionGroupRenamedDiagnostic[]`), `resolveNavGroup()`, `navContributionGroupRenamedDiagnostic()`, `NAV_CONTRIBUTION_GROUP_RENAMED`, and the `NavContributionGroupRenamedDiagnostic` / `NavContributionGroupFinding` (either finding) / `NavGroupResolution` types; `findNavGroup()` now also finds a group through its `renamedFrom`, and `formatNavContributionGroupDiagnostic()` accepts either finding. + + **Setup's anchors.** The System Overview dashboard is pinned above the groups. The groups, in order: `group_users_org`, `group_access_sharing`, `group_apps_ai`, `group_routing_approvals`, `group_audit_data` (expanded), then `group_company`, `group_currency_units`, `group_notifications`, `group_login_security`, `group_integrations_dev` (collapsed), labelled in all 11 Setup locales. Each group that replaced an old anchor lists it in `renamedFrom`, so every existing contribution still lands in the right place, with the warning above. `group_overview` has no successor: a contribution still naming it is appended at the top level with the `nav_contribution_group_missing` warning, and it loses the `manage_platform_settings` gate that group carried. In this repository that is `@objectstack/mcp`'s "Connect an AI Assistant" entry (`nav_connect_agent`, no gate of its own): until its contribution moves to a new anchor it shows at Setup's top level to everyone who can open Setup, not only to holders of `manage_platform_settings`. The page itself was already open to every user through the Account app. + + **What a package author does.** If your package contributes into Setup, change `group` to the new id named in the warning: `group_people_org` → `group_users_org`, `group_access_control` → `group_access_sharing`, `group_apps` → `group_apps_ai`, `group_approvals` → `group_routing_approvals`, `group_diagnostics` → `group_audit_data`, `group_configuration` → `group_company`, `group_integrations` and `group_advanced` → `group_integrations_dev`. A translation bundle keyed by an old group id (`apps.setup.navigation.`) no longer labels anything; key it by the new id. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [2595004] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [fbee4b7] +- Updated dependencies [f13adae] +- Updated dependencies [1aa9c57] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [d9b72aa] +- Updated dependencies [197e3ff] +- Updated dependencies [913d30d] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [491ea82] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [ff491c4] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [75a2d57] +- Updated dependencies [9a13387] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [da4efea] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/lint@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/metadata-protocol@19.0.0-next.4 + - @objectstack/rest@19.0.0-next.4 + - @objectstack/plugin-auth@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/metadata@19.0.0-next.4 + - @objectstack/plugin-security@19.0.0-next.4 + - @objectstack/driver-sql@19.0.0-next.4 + - @objectstack/driver-sqlite-wasm@19.0.0-next.4 + - @objectstack/driver-memory@19.0.0-next.4 + - @objectstack/driver-turso@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + - @objectstack/service-cluster@19.0.0-next.4 + - @objectstack/service-datasource@19.0.0-next.4 + - @objectstack/service-i18n@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 9b056975da6..c5bc137e0fe 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/runtime", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack Core Runtime & Query Engine", "type": "module", diff --git a/packages/sdui-parser/CHANGELOG.md b/packages/sdui-parser/CHANGELOG.md index b83bde3d36f..3aaa2f3b81d 100644 --- a/packages/sdui-parser/CHANGELOG.md +++ b/packages/sdui-parser/CHANGELOG.md @@ -1,5 +1,9 @@ # @objectstack/sdui-parser +## 19.0.0-next.4 + +No changes in this release. + ## 19.0.0-next.3 No changes in this release. diff --git a/packages/sdui-parser/package.json b/packages/sdui-parser/package.json index b69dc3a3fbf..d950e21fc5c 100644 --- a/packages/sdui-parser/package.json +++ b/packages/sdui-parser/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/sdui-parser", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "ObjectStack constrained JSX-source → SDUI SchemaNode tree compiler (parse, never execute). Isomorphic, zero React. ADR-0080.", "type": "commonjs", diff --git a/packages/services/service-analytics/CHANGELOG.md b/packages/services/service-analytics/CHANGELOG.md index 4e9d36aaf3a..da5709b4eca 100644 --- a/packages/services/service-analytics/CHANGELOG.md +++ b/packages/services/service-analytics/CHANGELOG.md @@ -1,5 +1,72 @@ # Changelog — @objectstack/service-analytics +## 19.0.0-next.4 + +### Patch Changes + +- e542b7b: feat(service-analytics): a word that names the field a filtered measure candidate sums is answered from that field, not asked about + + Clause-②: yes (widening) — `DatasetToolsDeps` gains an optional `readFieldLabel` + Metadata-protocol: none + + `list_datasets` no longer offers, as a candidate to ask back about, a measure that carries a `filter` and whose aggregated base field the word names: the word equals, or is inside, that field's label or its name (ADR-0149 D3, the amendment note of 2026-12-01). "hours" beside a measure "Billable hours" that sums the field `hours` under a filter is now answered from the field: `nextStep.note` names the field (object and field name), says to answer it with the object query tools labelled as not from a governed metric, and mentions the measure as a narrower declared metric. The measure stays listed in its dataset's entry; it is only absent from `candidates` for that word. + + The decision values are unchanged and read as declared: a word left with no candidate is `no_measure`; a word left with dimension candidates stays `candidates_only`, with the field named and no question; a word left with another measure candidate is still asked about, and the field answers only if that question settles nothing. Unchanged, and still asked about: a measure with no `filter` over the named field, a measure over a relationship path, and a word that names different fields through different measures. The take-out runs before the per-word cap of candidates, so a measure taken out uses no slot. + + Field labels are read by a new optional `DatasetToolsDeps.readFieldLabel` (the authored label and the translation-bundle label for the answer's locale). Both MCP doors (HTTP and stdio) wire it from the object `describe_object` serves; a host that does not tests the field's name only, as the `list_datasets` description says. The `list_datasets` description and the MCP `initialize` selection rule carry the rule in the same sentence, and the `candidates` and `nextStep.note` descriptions in `@objectstack/spec` say it. +- 7aaced0: fix(analytics): `list_datasets` offers a measure for a phrase whose head word it carries + + Clause-②: no + Metadata-protocol: none + + A phrase sent to `list_datasets` in `terms` that is near no member by itself is now read a second time, by its head word. A measure near the head word is offered in `candidates` for the phrase, as a possible reading, never as a match; a dimension near the head word is not, so a phrase whose head is near no measure still falls back as before. Asked "what is our booking total?", an assistant that sends the user's phrase `booking total` now gets `nextStep.decision: candidates_only` with a measure whose synonyms include `bookings`, and asks the user whether that is the number meant. Before this release the same call answered `no_measure`, and the assistant computed a figure from the object tools instead of offering the governed measure. + + - The head word is the last word of the phrase that names what is measured. Words that only say a number is totalled (`total`, `sum`, `overall`) and short joining words (`of`, `the`, `our`, `so far`) are skipped, and the phrase is cut before `by`, `per`, `for`, `to` and similar words: the head of `booking total by status` is `booking`. Words that say what kind of number (`amount`, `value`, `count`, `number`) are kept, so `booking count` is read as a count. A modifier is not the head: `sales orders` is read as `orders`, not `sales`. + - In Chinese and Japanese, where a phrase has no spaces, a total word at the end or the start (`合计`, `总计`, `总额` and their traditional and Japanese spellings) is cut off and the rest is read: `成交合计` is read as `成交`, which a synonym `成交额` contains. + - The second reading never adds to the first. A phrase near any member by itself is offered exactly the members it was offered before. + - What counts as a match is unchanged: only equality after normalization. The per-term limit on candidates applies as before. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-analytics/package.json b/packages/services/service-analytics/package.json index b3d1c044393..9f236751229 100644 --- a/packages/services/service-analytics/package.json +++ b/packages/services/service-analytics/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-analytics", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Analytics Service for ObjectStack — implements IAnalyticsService with multi-driver strategy pattern (NativeSQL, ObjectQL, InMemory)", "type": "module", diff --git a/packages/services/service-automation/CHANGELOG.md b/packages/services/service-automation/CHANGELOG.md index a2c2cc5a6f5..eb68c50ad6f 100644 --- a/packages/services/service-automation/CHANGELOG.md +++ b/packages/services/service-automation/CHANGELOG.md @@ -1,5 +1,188 @@ # @objectstack/service-automation +## 19.0.0-next.4 + +### Patch Changes + +- 6f82fd0: fix(approvals): "The approval ended here" survives a restart and a re-registration of the flow, and is never served for a body the run did not run + + Clause-②: yes (widening: AutomationEngine gains getRunFlowChecksum and getFlowBodyChecksum; RunRecord gains optional flowChecksum; the exported ApprovalResumeSurface drops the optional getFlowVersionHistory and gains optional getRunFlowChecksum and getFlowBodyChecksum) + Metadata-protocol: none + + A decided approval request's route says where the record's approval went next, and `flow_route.outcome.ended` says the approval ended. It is served only for a run that ran the flow body armed now. That used to be proven from this process's registration history (the newest registration, registered before the run started), so every restart and every re-registration of the flow, a package reload included, dropped the line from every earlier request of that flow. Two narrow cases served it for a body the run did not run: a rollback made before the run started and undone after it, and a replica that registered an edit before another replica started the run on the older body. + + The witness is now the body's content. A run's terminal `sys_automation_run` row carries `flow_checksum`, the content checksum of the body it ran (the identity the metadata history keys a stored flow's versions by), stamped on the run's context where it starts and carried through every pause and resume. The approvals plugin serves `ended` only when that checksum equals the checksum of the body armed now. A restart, another server, or the same content registered again keeps the answer; a body with other content never answers in the run's place. + + - `@objectstack/service-automation`: `AutomationEngine.getRunFlowChecksum(runId)` (a finished run's checksum, read as `getRun` reads it: memory, then terminal row; `undefined` for a run not finished) and `AutomationEngine.getFlowBodyChecksum(flow)`; `RunRecord.flowChecksum`. A run records none when it finished before this release, its body could not be hashed, it was parked before this release and its pause pinned none, it resumed on another body because the one it started on could no longer be found, or it failed after a resume and can still be restored (a strand: its row keeps the pause's pin in `flow_checksum` for the restore, as before, and that pin is never read back as the body the run ran). + - `@objectstack/plugin-approvals`: reads the two; no longer reads `getFlowVersionHistory` (dropped from the exported `ApprovalResumeSurface`). A later step is now a request of the run opened after this one was decided, not merely after it opened: a node that fans out to two approval steps opens two requests of one run side by side, and the sibling is no longer served as where the approval went. + - `@objectstack/spec`: the `ended` sentence on `ApprovalRequestRow.flow_route.outcome` says this. + + Upgrading: a run that finished before this release has no checksum on its row, so its decided requests do not say the approval ended (they already lost the line at the restart the upgrade makes). Runs that finish after it keep the line. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(automation): every write of a run carries the root run of its tree (`flowRootRunId`, ADR-0162 D5) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: a data write a run makes (`resolveRunDataContext`, the run identity of `@objectstack/service-automation`) carries `flowRootRunId`, the run id of the root of its run tree, beside `flowRunId`; the engine carries it onto the write's `HookContext.provenance` (`@objectstack/objectql`), the platform system api strips it with the other run marks, a sandboxed body and script see it among the declared provenance members (`@objectstack/runtime`), and it is one of the fields an entry point may not set on an `ExecutionContext` (`assembleExecutionContext`, `@objectstack/core`). The approvals plugin reads it to let every run of an approval through the hold. Absent on a write that is not a run's. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(automation): a delegating step records the child runs it started (ADR-0162 Execution item 8) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `AutomationEngine` gains the public read `runStartedFor(context)` and an optional second argument to `getRun(runId, { strict })`; a node executor's result (`NodeExecutionResult`) gains the optional `childRunIds`, and the exported step type (`StepLogEntry`) gains the optional `childRunIds` and `childRunIdsTruncated`, which the engine writes onto the step's log entry (`ExecutionStepLogSchema`, in `@objectstack/spec`). + + - **`childRunIds` on a step.** A `subflow` step names the one run it started, on every exit: paused on its child, completed, failed or refused. A `map` step names the item runs that execution of the step started. Absent on a step that started none, and on a child that paused with no run id. `getRun` serves it with the rest of the step log, so a reader can walk a run's tree from its root; before this, a parent's link to its child lived only on the parent's pause (`correlation: 'subflow:'`), and only while the parent was parked. + - **A step names at most 200 child runs.** A `map` can start up to 10,000 item runs. A step whose execution started more than 200 names the first 200 started and carries `childRunIdsTruncated: true`, so a reader never takes the list for all of them. + - **What the durable history keeps of the links.** A log of more than 200 steps is compacted for history: it keeps every top-level step and every failure while those number 200 or fewer, and otherwise the most recent 200 of them, so compaction can drop a step with its link. A terminal run's step log over the history row's 64 KB cap is stored without every step's `childRunIds`, each step that named child runs marked `childRunIdsTruncated: true`, before any step is dropped; only a log still over the cap without them is halved from its head, as before. A mark costs 28 bytes on each step it lands on, so a log that fits the cap without its links by less than its marks' bytes is halved where a log that never named a child run was not. + - **`runStartedFor(context)`.** A run that ends inside `execute` answers no `runId` (the contract sets it on a paused run only). The engine now answers the id of the run the last `execute` call started for that very context object, whatever it ended in. A run is named once it is past the gates that skip it and leaves a history row, or where it fails before its first node and is recorded as failed; `undefined` where no run started (the flow was missing, disabled, had no start node, or its start condition or the re-entry guard skipped it). Under `errorHandling.strategy: 'retry'` it is the last attempt that started a run. The `subflow` and `map` nodes read it for a child that ended inside the call. + - **`getRun(runId, { strict: true })`.** A store that fails is still logged and read as `null` by default. With `strict`, its failure is thrown instead, so a caller that decides on a missing run can tell a run with no row from a store that did not answer. + + Unchanged: what a run does, the `runId` the contract returns, every existing step field, and which steps a run's history row keeps, but for the marks' bytes above. +- 8338d07: refactor(service-automation): `AutomationEngine` becomes a delegating facade over eight facet modules, unchanged + + Clause-②: no + Metadata-protocol: none + + Internal only: no behaviour changes and nothing is added to or removed from the package entry. The bodies of 145 `AutomationEngine` members move, byte for byte, into static methods of eight facet classes (dispatch, extensions, flow slots, registration, connector doors, enablement, run and resume); each member stays on the class with its signature (and, when public, its docblock) as a one-call stub, so the published declaration of `AutomationEngine`, an instance spy and a subclass override are what they were. The engine's state stays on the class, and a facet body reaches it through a host built once per engine. + + - `@objectstack/spec`: the `flow` and `connector` liveness ledgers cite the facet modules that now hold the bodies they name (`engine-run-facet.ts#retryExecution` and the three retry-backoff keys; `engine-extensions-facet.ts#getConnectorDescriptors`); no verdict changes. +- f3f3265: refactor(service-automation): the automation engine's top-level declarations move out of `engine.ts` into eight leaf modules, unchanged + + Clause-②: no + Metadata-protocol: none + + Internal only: no behaviour changes and nothing is added to or removed from the package entry. The 99 declarations ahead of the `AutomationEngine` class (the node executor contract, the trigger and connector contracts, the run log, the run trigger, the signals, the resume and suspension shapes, the dispatch stores and the flow registration helpers) now live in `engine-*.ts` modules, each one byte for byte as it stood; `engine.ts` re-exports every name it exported before. The published declaration carries the same 156 declarations and the same export list; the built files differ only in the order the bundler lays them out. +- 828b6ec: fix(automation): reading one run answers the run's final row over this process's stale "paused" entry + + Clause-②: no + Metadata-protocol: none + + Reading one automation run (`getRun`, which backs the run-detail route and the approvals plugin's judgement of a run) answered from this process's in-memory run log first, and only looked at the run history store when that log had nothing. On a deployment with more than one process, a run that paused in this process and was then resumed and finished by another process kept reading `paused` here, although the store held its `completed` (or `failed`, `cancelled`) row. The approvals plugin reads a run that is `paused` with no pause left as stopped, so it could abandon an approval whose run had in fact finished. + + Now, when this process's entry for the run is not terminal, the read asks the store for the run's terminal row, and that row answers, on the default read and on the strict read (`getRun(runId, { strict: true })`) alike. Two cases keep this process's entry as the answer: + + - **The store holds no terminal row for the run.** The `paused` entry answers as before; the run's suspension row is not read for it. + - **The store also holds a live pause for the run.** That is a run put back after it ended: an operator's `restoreConsumedSuspension` re-parks a failed run and records it `paused`, leaving its `failed` row in place. The `paused` entry is the later word then, and the run still reads `paused`, as it did before this change. + + A run whose entry in this process is already terminal is answered with no store read. The added cost is one read of the run's terminal row for a run whose entry here is `paused`, plus one read of its live pause only when a terminal row is found; a run with no entry in this process already paid the first read. + + Where one of these added reads fails, the default read answers this process's entry and logs, at `warn`, that it did; the strict read throws the store's failure to its caller, as it already does for the store reads it made before. The strict read's contract (a store failure is the caller's answer, never "no such run") is otherwise unchanged. + + No action is needed. +- 5704d13: fix(plugin-approvals): an approval's run is read by the steps it logged by its end, not a fan-out branch that went on after it + + Clause-②: no + Metadata-protocol: none + + When a flow's node fans out to branches that run together and one branch fails, the automation engine does not stop the others: they go on appending steps to the run's log after the run has ended. The approvals plugin read the last top-level step of a terminal run as where it stopped, and any later step as the run going on past a step, so a step another branch completed after the run's end moved both readings: the reconciler placed a failed run at the other branch's node (and told a failure the flow never routed as one it went on from), and took a child run with no history row as passed. Both readings now use only the steps the run completed by its `completedAt`; a run that names no `completedAt`, and a step completed in the same millisecond, read as before. + + Also: the terminal history row serializes a log under its size cap once, not twice (`@objectstack/service-automation`); the source comment over the step log's `childRunIds` no longer says a reader reaches every run of its tree from the log alone, since the list is bounded and can be shed (`@objectstack/spec`, comment only, no schema change). +- f037f1c: fix(automation): a branch whose subflow or map child parks, where the run cannot park, fails the run instead of silently dropping work + + Clause-②: no + Metadata-protocol: none + + A run parks at one place, and a resumed run continues from the step that parked, never back at the node whose out-edges led there. The flow schema already refuses the two shapes that lose work for the steps that always pause (`approval`, `approval_revise`, `screen`, `wait`): two of them on concurrent branches of one node, and a branch that pauses before the node's other out-edges. It cannot see a `subflow` or `map`, whose pause is decided by the child flow it names, so those shapes registered and ran, and lost work without an error: + + - **Concurrent.** A node fanning out to an `approval` and to a `subflow` whose child parks on its own approval opened both requests. Decided parent first, the parent completed and the work after the `subflow` never ran. Decided child first, the child's completion consumed the parent's approval pause, the parent completed, and the parent's own request stayed `pending` with a decision answering `RESUME_TARGET_LOST`. + - **Sequential.** A node whose earlier true conditioned edge led into such a `subflow`, beside a later true conditioned edge to another step: the child's request opened and was decided, the run completed, and the later step never ran. + + The engine now fails such a run with a named error on the pauses that actually happen, a child flow's pause included whatever step raises it, and cancels every child run a refused `subflow` / `map` started, so nothing is left parked: + + - `durable pause on concurrent branches: node '' runs its unconditional out-edges together, and more than one of those branches suspended — …`, naming each step that paused and the child flow it called; + - `durable pause before a later branch: node '' took edge '', and node '' (sub-flow '') suspended on that branch while the same traversal still had to take edge '' …`, naming the edges left untaken. + + Each message ends with the fix: chain the pausing steps onto one branch, make the branch that pauses the last one the node takes, or republish the child flow without a step that pauses. The error is a guard refusal, so a `fault` edge does not route it. It is the failed run's `error`; no failure step is logged for it (it is raised by the traversal, not by a node), so the run's step log ends where its branches stopped. Inside a `loop`, `parallel` or `try_catch` body the region error is raised instead, as for any pause there. + + When it fires. A fan-out still answers at its first rejection, as it always has: when that is a pause, the run parks and the pause is stored at once, with the step log ending at the node it parked on; nothing waits on the other branches, so a branch that never settles holds nothing up. At the first branch that pauses too afterwards, or ends in this error or the region error, the run that had answered `paused` is failed, provided it still waits at the pause it answered with: that pause is withdrawn the way a resume claims it (the same node and correlation, inside the same in-process gate a resume takes), its record turns `failed` with the error (said once at `error` in the log), a parent flow waiting on it as a `subflow` fails with it, even when the parent's own pause is still being stored, and the child runs are cancelled. A run a decision has moved on by then, finished or parked again at another step, is left as it is, its new pause and that pause's child run untouched; the lost branch is logged at `error` and its child run cancelled. A decision that arrives while the engine is reading where the run waits is held until that read is done rather than refused, and goes on when the run has moved on. When the store cannot be read or claimed at that moment the run is not failed, and the `error` line says so and how to cancel it. When the two arrive before the node has answered, the run fails at once and nothing is stored. When a fan-out's first rejection is a failure, the run fails as before, and a branch that pauses after it has its child run cancelled. The after-the-answer check lives in the engine's process memory: an engine restarted between storing the pause and the late branch settling keeps the old behaviour, the run parked and the late branch's work lost without a word. + + What still runs as before: a fan-out whose one pausing branch sits beside branches that do not pause; a branch that pauses with nothing left for the node to take after it; a later conditioned edge whose condition does not hold when the earlier branch pauses; a sibling that fails (with any other error) after another branch paused, which is dropped as before. + + Not changed: what an author can write, and every door a flow passes before it runs (`objectstack validate`, the metadata save and publish, `registerFlow`, trigger arming). A request an `approval` opened before the run was refused stays `pending`; deciding it answers `409 RESUME_TARGET_LOST`; the approvals' sweep of requests whose run has ended releases it where the deployment schedules that sweep, and an administrator can recall it sooner. +- 57657df: fix(plugin-approvals): a refused fan-out run and a run held in memory are read by the steps logged by the run's end + + Clause-②: no + Metadata-protocol: none + + When a flow's node fans out to branches that run together, the automation engine does not stop the other branches when one branch pauses, fails or reaches an `end` that refuses. They go on adding steps to the run's log. The previous fix read a failed run by the steps it completed by its `completedAt`. Two readings still counted the later steps: + + - **A run held in memory** (`suspendedRunStore: 'memory'`, no data engine, or a pause whose durable save failed). The held suspension was the live step log. A run cancelled or failed where it waited therefore ended with the other branch's steps, and the reconciler placed it at the other branch's node. The engine now copies the step log at the pause, as a durable store already does when it saves the run, and each read gets its own copy (`@objectstack/service-automation`). + - **A run that reached an `end`** (`completed` or `refused`). A refusing `end` stops the run the way a failure does, and every successful step counted as passed, including a step another branch completed after the refusal. Such a step is no longer passed, so a child run it names with no history row reads as undetermined. + + A run with no `completedAt`, and a step completed in the same millisecond as the run, read as before. The readers' source comments now state that both instants come from one clock, and that the run is written from its suspension as it was at the pause. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [ca26605] +- Updated dependencies [fbee4b7] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [d9b72aa] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [491ea82] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [9a13387] +- Updated dependencies [1e87dc1] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [05e645b] +- Updated dependencies [da4efea] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/metadata-protocol@19.0.0-next.4 + - @objectstack/plugin-auth@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/services/service-automation/package.json b/packages/services/service-automation/package.json index 8da50ec7ae2..1481ba3a471 100644 --- a/packages/services/service-automation/package.json +++ b/packages/services/service-automation/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-automation", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Automation Service for ObjectStack — implements IAutomationService with plugin-based DAG flow execution engine", "type": "module", diff --git a/packages/services/service-cache/CHANGELOG.md b/packages/services/service-cache/CHANGELOG.md index 4fc98dedf71..77fcf04ca2d 100644 --- a/packages/services/service-cache/CHANGELOG.md +++ b/packages/services/service-cache/CHANGELOG.md @@ -1,5 +1,52 @@ # @objectstack/service-cache +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + - @objectstack/service-cluster@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-cache/package.json b/packages/services/service-cache/package.json index 245568e0e8d..0bf9292d48a 100644 --- a/packages/services/service-cache/package.json +++ b/packages/services/service-cache/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-cache", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Cache Service for ObjectStack — implements ICacheService with in-memory and Redis adapters", "type": "module", diff --git a/packages/services/service-cluster-redis/CHANGELOG.md b/packages/services/service-cluster-redis/CHANGELOG.md index 010651939f5..c3c5573e939 100644 --- a/packages/services/service-cluster-redis/CHANGELOG.md +++ b/packages/services/service-cluster-redis/CHANGELOG.md @@ -1,5 +1,47 @@ # @objectstack/service-cluster-redis +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/service-cluster@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-cluster-redis/package.json b/packages/services/service-cluster-redis/package.json index 4ea1a0673a7..f0fb3ddfc36 100644 --- a/packages/services/service-cluster-redis/package.json +++ b/packages/services/service-cluster-redis/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-cluster-redis", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Redis cluster driver for ObjectStack — implements IPubSub/ILock/IKV/ICounter against Redis using ioredis.", "type": "module", diff --git a/packages/services/service-cluster/CHANGELOG.md b/packages/services/service-cluster/CHANGELOG.md index 5998b5e7ef4..a59f4aac3bb 100644 --- a/packages/services/service-cluster/CHANGELOG.md +++ b/packages/services/service-cluster/CHANGELOG.md @@ -1,5 +1,50 @@ # @objectstack/service-cluster +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-cluster/package.json b/packages/services/service-cluster/package.json index 6c76c451ce6..0b3d53fb389 100644 --- a/packages/services/service-cluster/package.json +++ b/packages/services/service-cluster/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-cluster", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Cluster Service for ObjectStack — pluggable PubSub/Lock/KV/Counter primitives. Memory driver included; postgres/redis drivers ship separately.", "type": "module", diff --git a/packages/services/service-datasource/CHANGELOG.md b/packages/services/service-datasource/CHANGELOG.md index 10ca1063cfc..c2d074bf3ec 100644 --- a/packages/services/service-datasource/CHANGELOG.md +++ b/packages/services/service-datasource/CHANGELOG.md @@ -1,5 +1,61 @@ # @objectstack/service-external-datasource +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/driver-sql@19.0.0-next.4 + - @objectstack/driver-sqlite-wasm@19.0.0-next.4 + - @objectstack/driver-memory@19.0.0-next.4 + - @objectstack/driver-mongodb@19.0.0-next.4 + - @objectstack/driver-turso@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-datasource/package.json b/packages/services/service-datasource/package.json index 67d87805ddc..1ca38253db6 100644 --- a/packages/services/service-datasource/package.json +++ b/packages/services/service-datasource/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-datasource", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "The datasource service (ADR-0015): external-table federation (introspect/draft/import/validate) + runtime UI datasource lifecycle (list/test/create/update/remove + REST routes). Open-source mechanism; the tier line falls on which ICryptoProvider / driver factory a host injects.", "type": "module", diff --git a/packages/services/service-i18n/CHANGELOG.md b/packages/services/service-i18n/CHANGELOG.md index fb50e464841..3928296edea 100644 --- a/packages/services/service-i18n/CHANGELOG.md +++ b/packages/services/service-i18n/CHANGELOG.md @@ -1,5 +1,51 @@ # @objectstack/service-i18n +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/services/service-i18n/package.json b/packages/services/service-i18n/package.json index b96c6eadc79..e23b4578a21 100644 --- a/packages/services/service-i18n/package.json +++ b/packages/services/service-i18n/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-i18n", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "I18n Service for ObjectStack — implements II18nService with file-based locale loading", "type": "module", diff --git a/packages/services/service-job/CHANGELOG.md b/packages/services/service-job/CHANGELOG.md index 4885cf2aa23..9898209d36e 100644 --- a/packages/services/service-job/CHANGELOG.md +++ b/packages/services/service-job/CHANGELOG.md @@ -1,5 +1,54 @@ # @objectstack/service-job +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-job/package.json b/packages/services/service-job/package.json index 8f12384adeb..cddaed58b50 100644 --- a/packages/services/service-job/package.json +++ b/packages/services/service-job/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-job", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Job Service for ObjectStack — implements IJobService with setInterval and cron scheduling", "type": "module", diff --git a/packages/services/service-knowledge/CHANGELOG.md b/packages/services/service-knowledge/CHANGELOG.md index 31cae6e6cc2..f236a120005 100644 --- a/packages/services/service-knowledge/CHANGELOG.md +++ b/packages/services/service-knowledge/CHANGELOG.md @@ -1,5 +1,85 @@ # @objectstack/service-knowledge +## 19.0.0-next.4 + +### Patch Changes + +- 58695bb: perf(knowledge): a knowledge search embeds its question at most once for each adapter, the refill round included + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened (ADR-0161, the dated note of 2026-12-01 under K8): `IKnowledgeAdapter` (`@objectstack/spec/contracts`) gains an optional `embedQuery(query)`, which embeds a question exactly as the adapter's `search` does (its embedder and its query prefix), and `AdapterSearchOptions` gains an optional `queryVector: () => Promise`, a function the adapter calls where its `search` embeds the query. An adapter handed it calls it in place of that embedding call, after every refusal it answers first, checks the answer's width as it checks one its embedder answered, and never changes the array. + + For each search, the knowledge service hands every `search` call to an adapter instance that has `embedQuery` one function: its first call asks that instance's `embedQuery`, and every later call in the search answers the same promise, a failed one too. A search whose first round leaves fewer than `topK` records or groups after the permission re-check (a narrowed caller, `granularity: 'record'` or `groupBy`) asks the adapter again with a larger `topK`; that second round used to embed the question a second time, about one embedding request per refilled search. Several sources on one adapter instance now share the one embedding call too. Because the adapter asks only where it embeds, a `keyword` search, a search that ranks nothing and a source the adapter refuses make no embedding call, and the adapter's own refusal (`KNOWLEDGE_REBUILD_REQUIRED` 409 for an index that needs a rebuild) is the one answered even when the embedder would fail. A failed embedding call fails each `search` call that asked for the vector, with the code and wording it had before. + + `knowledge-turso` and `knowledge-pgvector` implement both members. An adapter without `embedQuery`, such as `knowledge-memory`, is handed nothing and is searched as before, embedding on every call. The adapter contract suite (`@objectstack/service-knowledge/testing`) gains an optional `implements.embedQuery` declaration and one case for it. +- 4d9d12a: fix(service-knowledge): a host-mounted knowledge service with no embedder answers a search 503 naming the settings to save + + Clause-②: no + Metadata-protocol: none + + When a host mounts `KnowledgeServicePlugin` itself and no embedder is configured, the plugin registers a stand-in embedder. Its refusal now carries ADR-0112 `SERVICE_UNAVAILABLE` (503), the code the held path already answers, on both of its uses: reading `dimensions` and `embed()`. A search on such a host is refused 503 with the stand-in's own sentence, which names the `ai.embedder_*` settings to save under Settings → AI & Embedder and the restart. Before, a store that embeds inside `search` was refused 503 under a platform sentence that named no remedy, so a missing setting read as an outage; a store whose `embedding` descriptor reads the embedder's dimensions threw an error with no code at all while the search was planned. No error code, settings key or contract member is added. +- 712b102: feat(knowledge): one timing line per knowledge search + + Clause-②: no + Metadata-protocol: none + + Every knowledge search (each `search_knowledge` call, on every door) now logs one structured line when it ends: message `[knowledge] search timing`, its object under the meta field `knowledgeSearchTiming`. It goes out at `info` on a cloud-hosted runtime (`OS_CLOUD_MANAGED=1`) and at `debug` everywhere else; there is no switch. + + The line carries numbers, flags and source ids only, never the question, a record id or a passage: each source searched (its id as an answer names it, the retrieval mode, and its record scope counted as kind, term count and id count), `topK`, whether the search grouped, the hits answered, the sources refused, whether the refill round ran, whether the search threw, the store's database request count, and milliseconds for `total`, `embed` (the query's one embedding), `queue_wait`, `statements` (the store's requests, summed), `visible_ids` (the caller's readable records, read before ranking) and `permission_recheck`. Each segment is a sum over the search; one that did not run is `null`. + + `queue_wait` and `statements` come from the store. `@objectstack/knowledge-turso` reports them: the time each of a search's calls waited on the client's in-process queue before its work started, and its requests to the database. No adapter contract field carries them; the store publishes them per search call on a Node diagnostics channel the service reads, and publishes nothing while no service listens. A store that reports nothing (today `@objectstack/knowledge-pgvector`) leaves those two `null`; every other segment is measured by the service for any store. The line costs a few clock reads per search, no database read and no embedding call. + + Nothing a caller is answered changes, and the turso store's queue keeps its order. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/service-settings@19.0.0-next.4 + - @objectstack/embedder-openai@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/packages/services/service-knowledge/package.json b/packages/services/service-knowledge/package.json index 291ad38048c..41262e2ce98 100644 --- a/packages/services/service-knowledge/package.json +++ b/packages/services/service-knowledge/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-knowledge", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Knowledge Service for ObjectStack — orchestrator implementing IKnowledgeService over pluggable IKnowledgeAdapter backends (in-memory, PostgreSQL + pgvector, libSQL, or your own).", "type": "module", diff --git a/packages/services/service-mailbox/CHANGELOG.md b/packages/services/service-mailbox/CHANGELOG.md index 44353c8d85d..9460a30e07d 100644 --- a/packages/services/service-mailbox/CHANGELOG.md +++ b/packages/services/service-mailbox/CHANGELOG.md @@ -1,5 +1,56 @@ # @objectstack/service-mailbox +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + - @objectstack/connector-imap@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-mailbox/package.json b/packages/services/service-mailbox/package.json index 17eacc599cd..abf4cddcba6 100644 --- a/packages/services/service-mailbox/package.json +++ b/packages/services/service-mailbox/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-mailbox", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Mailbox Service for ObjectStack \u2014 inbound mail: the mirrored message (sys_mail_message), its record associations and their read gates.", "type": "module", diff --git a/packages/services/service-messaging/CHANGELOG.md b/packages/services/service-messaging/CHANGELOG.md index 7130167a4b0..1fe415423d4 100644 --- a/packages/services/service-messaging/CHANGELOG.md +++ b/packages/services/service-messaging/CHANGELOG.md @@ -1,5 +1,94 @@ # @objectstack/service-messaging +## 19.0.0-next.4 + +### Patch Changes + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(approvals): the reconciler, and the door reads every run of an approval (ADR-0162 Execution item 8) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `ApprovalService` gains `reconcileMarkedApprovals(options?)`, which the plugin runs on the sweep clock beside the escalation, dead-run and stranded-request sweeps; the `getRun` member of the automation surface the plugin declares types the step log's `childRunIds` and `childRunIdsTruncated`, the run's `trigger`, `completedAt` and `summary`, and an optional `{ strict }` read; the plugin's message catalog gains `approvalFlowNotContinuedTitle` and `approvalFlowNotContinuedBody` in all 11 locale packs, sent to the organization's administrators on the topic `approval.flow_not_continued`; `PLATFORM_NOTIFICATION_TOPICS` of `@objectstack/service-messaging`, the topics a notification preference may name, gains that topic. + + Only for an approval the check stamped when it opened (one with a step that can act on an object that declares `closedStates`): + + - **The door reads every run of the approval.** Where it read the run that carries the record and the latest request's own run, it now walks the tree from the run that carries the record, following the child runs each delegating step records: every `subflow` child, and every `map` item run that does not carry another record (an item that is a record carries an approval of its own). It reads the whole tree before it answers, and one run decides for the whole approval: one that the store could not answer for, or that reports a status of a run in motion (`pending`, `running`, `retrying`), makes it cannot tell; otherwise one parked at a node a step can follow, in progress; otherwise one that ended between two steps, abandoned. A run parked at such a node on a child run says what its child says, so the walk reads the child, at any depth. The automation engine reports none of those three statuses for a flow run today: a run it is advancing reads as paused with its pause gone, or as a run with no row, and is held by the rule for a run that stopped, below. So a sibling child whose failure the flow routed, a middle run two levels down that failed, an item run that failed before its step, and a run between two others that is being advanced are no longer read as finished. A failure routed to a pause no step follows is read as abandoned, as on the base. A stop is answered where a request of the approval opened after it. One judgement reads at most 200 runs beside those it kept as ended: past them it is cannot tell, keeps what it read, and the next judgement reads on. That has an end: once the approval's marks have stood for the hour of the age bound, a judgement reads on only while it keeps a run the approval had not kept (the kept list holds 200 runs), and the judgement that keeps none places the approval by the step last decided, below. Two costs come with that rule. A tree the judgements cannot finish is placed without being finished, and from about 399 runs a tree can be one no judgement finishes: the walk reads the runs it starts from before the runs below them, so for a `map` of 199 items that each call a `subflow`, every judgement reads the run and its 199 items and none of the runs below them. And the placement follows from the shape of the flow, so an approval submitted again on the same flow can meet the same end: the remedy is the flow's, not the submitter's. Reading on can take up to 200 further visits of the reconciler after the hour: one each sweep (every 5 minutes by default, the plugin's `escalationScanIntervalMs`), or one each turn of its walk where more requests are marked than one sweep reads. A run parked on a child run that such a judgement did not get to says nothing of its own, and the child a parked run waits on is read next, before the runs beside it. + - **The plugin keeps what it read.** At every door, one that leaves the next request pending included, and as each request opens, the approval's latest request keeps, in its config snapshot (`__runsRead`): the runs that are not read again (`ended`), the runs read to their end over a child run that was not (`open`), a failure between two steps found in a run that ended, and the states the last judgement read that say a run has stopped (`stood`), which the rule for a run that stopped uses, below. A run is kept as ended only once it was read to an end and every child run its steps name is kept as ended too. So a child whose read failed, a child with no row, and the runs past the 200 one judgement reads are read on the next pass, which starts from the open runs as well. A run that a stored step names and that a pass did not read is never left out without a word: it is read on a later pass, it counts as passed by the rule below, or the approval is cannot tell and then placed. A run that no stored step names any more is not covered by that: see the limit of this release, below. A run the plugin read before the automation engine trimmed its history is not needed again, so an approval whose refused outcome is tried again after its run's history went is judged as it would have been. + - **A run with no row, under a run that went on past it, is passed.** A run the engine has no row for counts as passed, and is kept as ended, where a run the plugin read went on past the step that names it: that step succeeded, and the run reached an end of its flow, or logged a later step and is not parked at that step. So an early child run trimmed before the plugin read it does not hold the approval back. A step that failed is never passed, also where the flow routed the failure and went on. A run the plugin had read to its end over an unread child, and whose own row is gone since, is not passed either: nothing names that child any more. + - **A step log the engine marked, or the history row cut, is cannot tell.** Two logs are read as cut, and are not judged from as they stand: one with a step that carries the engine's mark `childRunIdsTruncated` (its execution started more child runs than the 200 a step names, or the history row shed the step's list to fit its size), and the log of a run that ended whose history row keeps fewer steps than the run logged (the row bounds the log by bytes, to a tail of it or to none, while the run's summary still counts every step). Within the age bound nothing is written; past it the approval is placed by the step last decided, as for a run with no row, below. A run whose log is cut is not kept as ended, the child runs it does name are still read, and it speaks for none of them: no run it names counts as passed. A summary that is absent or dropped its per-node detail gives nothing to compare, and reads as cut. + - **The limit of this release: a log that loses whole steps carries no mark (ruling 7268216330 on #37767).** The engine marks one thing: a step whose child-run links were shed carries `childRunIdsTruncated`, above. A log that loses whole steps carries no mark, whichever way it loses them: the engine's compaction of a log of more than 200 steps, the history row's halving of a log over its 64 KB cap, a row stored as null. The plugin reads what the log kept, and a child run named only by a dropped step reads as one the run went past: it is not read. For a halved row and a null row the plugin can still tell that steps are missing, from the run's summary, which counts every step: that is the second log read as cut, above, and the approval is held and then placed. For a compacted log it cannot tell. A run that logged more than 200 steps is stored with 200 of them: every top-level step and every failed step, then the most recent of the rest (the most recent 200 of the top-level and failed steps, where those alone pass 200), and it is judged from those, as before this change. What an operator gets in that case: a `subflow` or `map` step the compaction dropped (one that succeeded inside a `loop`, `parallel` or `try_catch` region, or an early step of a very long run) no longer names the child runs it started; a failure the flow routed inside such a child run, between two steps, is not seen; and the approval can be written as finished, with no notice and no line in the log. A process that still holds the run in memory reads its whole log, so this is a judgement made once that process is gone. No approval is judged worse than before this change, whose door read no child run. + - **The kept reading is its own key.** It is written onto the snapshot read again just before the write, and only while the column still reads the same, at most three times. It cannot write a stale snapshot over a note another writer left there (`__laterStepNotOpened`, `__strandedContinuation`). The judgement reads the note that a later step could not open once it has read the runs, so a note that lands while they are read is judged with. + - **A run that stopped, placed by the step last decided.** A run the engine has no row for and that no run the plugin read speaks for (its history is gone, or a process stopped while advancing it), a run whose step log is cut, above, a tree of more runs than the judgements can read in full, above, and the latest request's own run still parked at the step its decision was recorded on (a process stopped before the run was resumed), in the run that carries the record or in a child run any number of levels below it, are cannot tell for an hour from the approval's marks (the age bound). Past it, each has stopped at the step last decided once two judgements in a row read it in the same state, for the same run. The hour is counted from the marks and not from the run's last movement, and a run the engine is resuming reads as paused with its pause gone or as a run with no row; so an approval whose flow waits longer than the hour between two steps by design (a `wait` node, a batch over records whose items are approved one by one, a child run parked outside the approval's steps) is past the bound whenever it resumes. Only an approval that holds nothing back can wait so: the check at its opening refuses each of the three between two steps of an approval on a field its object closes on. There a placement ends the hold and writes nothing. The judgement that reads a run in such a state first therefore does not place it (it cannot tell, and a run parked on a child that has ended is in progress), and keeps the state it read (`stood` in `__runsRead`); the next judgement places the run if it reads the same, and reads it anew if it does not. A judgement within the hour keeps what it read as well, a door's included, so an approval read in that state within the hour is placed by the first visit past it, and one that was not takes one visit more. A reading that could not be kept leaves on the request the reading kept before it: the next judgement stands on that earlier one, so a state kept earlier can still count, and where none was kept nothing is placed. An approval whose reading is never kept is therefore held with no end. Two passes that each fall inside a resume of the same run still read it as stopped. Whether a later step can follow that step is asked in the flow its request records, so a node of another flow that carries the step's id does not answer for it. Where one can, the approval is abandoned: the record is put back, the submitter is told and submits again, the decisions already made stay on their requests, and a run still parked there is cancelled, with the runs that wait on it up to the run that carries the record, through a `map` whose items are not records as through a `subflow`. The cancel follows the put-back, and is not tried again once the put-back has landed: where it fails, or the process stops between the two, the run stays parked, the approval stays abandoned, and the door that continues a restored run refuses it. At the last step, the outcome is written and, once that write has landed, the administrators are told that the flow could not be seen through to its end after that step; the run's pause is left for an operator. A refused write sends no such notice, and the pass on which the write lands sends it. The notice says what to do in each case: continue or cancel a run that is still paused, and where the run has ended or no run is left, check that the steps after the decision were done. An approval placed for a cut log or a tree too large to read can be one whose flow did go on, which the plugin could not read in full: at its last step the administrators get the notice for a flow that ran, and where a later step can follow, the submitter submits again. + - **The reconciler.** Each pass reads two windows of at most 200 marked requests (`unjudged_since`): the oldest marks, and the next page of a walk over every marked request by id, so that marks which stay cannot keep the newer ones from being read. It judges each approval among them once, as the door would have: it writes the outcome in the name of the request's recorded decider, abandons the approval, or, where nothing was held back, clears the mark and writes nothing (where it concluded that a run had stopped, a line in the log says so). It ends what no door saw: a run that was cancelled, a parent run cancelled while its child's request was pending, and the stopped runs above. Past the age bound it also reads as stopped where it stood a run that reports paused while its pause is gone, and a run parked at a `subflow` or a `map` whose child run has ended or has no row, each once two judgements in a row read it so, as above. The item run of a `map` whose items are records is such a child once it is in a terminal status: its steps are an approval of the item's own record and are not read, only whether it has ended, and it is kept as ended only once it has. + - **A refused write is tried again.** A refused outcome or put-back leaves the marks, and the next pass tries it again. The timeline line and the administrators' notice (keyed per request and status) are left once for one refusal; the same holds for the line an abandoned approval leaves. + - **A deleted record.** Where the approval's record was deleted, the reconciler clears the marks of its requests and writes nothing: no retry and no notice. + - **The stranded-request report** (`inspectStrandedRequests`) leaves a decided request the check stamped to the door and the reconciler, and still reports a returned one. + + - **A refusing end is an end.** The door reads a run that reached an end of the flow as having ended there, a refusing end (`outcome: 'refused'`) included, as it already did for a completed run. + + Unchanged: an object that declares no `closedStates`; an approval that opened before its object declared the key. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + fix(approvals): on a field the object closes on, a refused write of the approval status mirror is no longer swallowed (ADR-0162 Execution item 8) + + Clause-②: no + Metadata-protocol: none + + A validation rule, an option's `visibleWhen` or a hook of the app can refuse the write that mirrors an approval's status onto the record. The mirror used to log every such refusal at `warn` and go on. On a field the object closes on at `approved` or `rejected` (`closedStates`, ADR-0162 D1): + + - **The `pending` of an approval's first request.** The approval does not open. The request's row is voided as `cancelled`, nobody's inbox lists it, no lock is taken, and the run fails at that step with the refusal's own message. The record keeps the value it held, a closed one included. + - **Every other write** (a decision, a send-back, a recall's put-back, a later request's `pending`, the dead-run sweep's put-back). The field keeps the value it held, and the refusal is reported three ways: an `error` line naming the write and the fix, a line with no actor on the request's timeline carrying the refusal's message, and a notice to the organization's administrators under the new topic `approval.status_mirror_refused`, which the notification preference options now list. + + An object that declares no closed state is unchanged: its mirror still logs a refused write at `warn`, and its approval still opens. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-messaging/package.json b/packages/services/service-messaging/package.json index c73686d22c3..955ab99c711 100644 --- a/packages/services/service-messaging/package.json +++ b/packages/services/service-messaging/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-messaging", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Messaging Service for ObjectStack — outbound notification dispatch (ADR-0012). Ships the MessagingChannel registry, emit() fan-out, and the always-on inbox channel; other channels (email/webhook/push/IM) plug in.", "type": "module", diff --git a/packages/services/service-package/CHANGELOG.md b/packages/services/service-package/CHANGELOG.md index 42521c7902f..a218e09a23f 100644 --- a/packages/services/service-package/CHANGELOG.md +++ b/packages/services/service-package/CHANGELOG.md @@ -1,5 +1,67 @@ # @objectstack/service-package +## 19.0.0-next.4 + +### Patch Changes + +- 355e8e3: Clause-②: no + Metadata-protocol: none + + The boot no longer warns that a customization pair the platform created "declares no engines.protocol range". The + log level moved for platform-created pairs only: a `.custom` package written by the ensure door (Studio's first + customization of an App) has no `engines`, so on every restart it was reported as `[protocol] package 'APP.custom' + declares no engines.protocol range; rehydrating without a compatibility check` at `warn`, about a manifest nothing in + the project declares. It is now one `info` line saying the platform created the pair for its App. A pair is + recognised by the App relation the ensure door writes — its App is installed, and it declares the App's pair + namespace and a dependency on the App — never by the `.custom` id alone. Every other package with no range, + including any package you authored, keeps the warning exactly as before. Nothing is stamped on existing pairs and no + data is migrated; nothing to do on upgrade. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-package/package.json b/packages/services/service-package/package.json index 8ef6e2bd121..86c76dd9f25 100644 --- a/packages/services/service-package/package.json +++ b/packages/services/service-package/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-package", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Package management service for ObjectStack — publish, install, and manage packages", "type": "module", diff --git a/packages/services/service-print/CHANGELOG.md b/packages/services/service-print/CHANGELOG.md index da75ecf0bf8..11a1a40eba9 100644 --- a/packages/services/service-print/CHANGELOG.md +++ b/packages/services/service-print/CHANGELOG.md @@ -1,5 +1,79 @@ # @objectstack/service-print +## 19.0.0-next.4 + +### Patch Changes + +- 5161056: fix!: a record print answers the PDF itself and writes no attachment + + Clause-②: yes (narrowing) + Metadata-protocol: none + + **BREAKING — a print no longer attaches the PDF to the record; it hands the PDF back as a download.** `POST /api/v1/print/records` now answers the PDF itself and stores nothing; keeping the PDF on the record is a separate, explicit act. A declared `type: 'api'` action that targets the route, which is how an app put "Generate PDF" on a record page, now downloads the PDF in the console: see "Apps that declare a print action" below. + + - **The door's answer.** `POST /api/v1/print/records` used to answer `201` with JSON naming the stored file (`fileId`, `attachmentId`, `size`, `filename`). It now answers `200` with the PDF itself as the body: `Content-Type: application/pdf`, `Content-Disposition: attachment` (an ASCII `filename=` and the RFC 5987 `filename*=UTF-8''…` form, so a name such as `报价单.pdf` survives), `Cache-Control: no-store`. Refusals keep the JSON error envelope. + - **Nothing is stored.** A print used to write one `sys_file` and one `sys_attachment` on the record, as the caller. It now writes nothing. + - **Read access is the whole permission.** Printing used to need `enable: { files: true }` on the object (`FILES_DISABLED` / 403) and the attach rule, edit access to the record (`ATTACHMENT_PARENT_ACCESS` / 403). It now needs read access to the record and nothing else: a user who can read a record but not edit it can print it, on any object. + - **No storage dependency.** The `print` service was `unavailable` without a `file-attachments` service; it now needs none, and the package no longer depends on `@objectstack/service-storage`. + - A request's own `filename` is bounded at 255 characters (`PRINT_FILENAME_MAX_CHARS`) and must be well-formed text (a lone UTF-16 surrogate is refused); either refusal is `VALIDATION_ERROR` / 400, before anything is rendered. + + The in-process verb is renamed with its result, so a caller that still reads the stored file's ids fails at its own call instead of reading `undefined`: + + - FROM `IPrintService.printRecordToFile` TO `IPrintService.printRecordToPdf`, which takes the same request and context and resolves to the PDF. + - FROM `PrintedRecordFile` TO `PrintedRecordPdf`, `{ pdf, size, filename, contentType }`: read `pdf` where the code read `fileId` or `attachmentId`. + + **Apps that declare a print action.** The route's answer is now a file, and the REST action door (`POST /api/v1/actions/...`) relays a target's non-JSON `2xx` answer that carries `Content-Disposition: attachment` byte for byte: + + - **Through the REST action door and the console**, a declared `type: 'api'` action whose `target` is `/api/v1/print/records` (the showcase's `GenerateInvoicePdfAction`, HotCRM's Print Quote) delivers the PDF: the door answers the route's bytes with its `Content-Type: application/pdf` and `Content-Disposition: attachment`, and the console saves the file under the name that header gives. A PDF larger than the door's 32 MiB bound is the door's `502`. + - **MCP `run_action`** still answers a file with its own `502`: a tool result cannot carry one. A caller that ran the action over MCP to archive a PDF has no replacement there. + - FROM → TO for an app that declares such an action: it used to answer the stored file's ids (`fileId`, `attachmentId`, `size`, `filename`) and leave the PDF on the record's Attachments; a click now downloads the PDF, and nothing is on the record. A success message that promised an attachment should say the PDF was printed. + + The one-line fix for an app that wants the PDF kept on the record: save it with an explicit act of its own (an upload to the record's attachments, or an app action). An automation keyed on the attachment a print used to write no longer fires on a print: HotCRM's `quote_print_presented` flow, which matched the printed attachment's file name, must become an explicit "mark presented" action. + + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/plugin-hono-server@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-print/package.json b/packages/services/service-print/package.json index afb0e70b109..edb002d9659 100644 --- a/packages/services/service-print/package.json +++ b/packages/services/service-print/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-print", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Print Service for ObjectStack — renders a record's print page in headless Chromium under the requesting user's own principal and answers the PDF as a download; a print stores nothing.", "type": "module", diff --git a/packages/services/service-push/CHANGELOG.md b/packages/services/service-push/CHANGELOG.md index 73d9bd006dd..d76deb6432a 100644 --- a/packages/services/service-push/CHANGELOG.md +++ b/packages/services/service-push/CHANGELOG.md @@ -1,5 +1,50 @@ # @objectstack/service-push +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-push/package.json b/packages/services/service-push/package.json index e5d9336ea25..af818628691 100644 --- a/packages/services/service-push/package.json +++ b/packages/services/service-push/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-push", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Push service for ObjectStack — IPushService over the hosted push relay (cloud binding credential) and the APNs (token auth) and FCM HTTP v1 transports, configured by PushServiceConfigSchema with credentials by reference.", "type": "module", diff --git a/packages/services/service-queue/CHANGELOG.md b/packages/services/service-queue/CHANGELOG.md index f15d593e67e..a45efe4198f 100644 --- a/packages/services/service-queue/CHANGELOG.md +++ b/packages/services/service-queue/CHANGELOG.md @@ -1,5 +1,60 @@ # @objectstack/service-queue +## 19.0.0-next.4 + +### Patch Changes + +- 00f97b3: fix(service-queue): the database queue's main loop claims a tick's rows with one compare-and-set write, so two nodes never both run a per-message message + + Clause-②: no + Metadata-protocol: none + + The database queue adapter's main loop (every per-message `subscribe()` queue: mail send, mail attachment reclaim, API-flow subscriptions) claimed each due row with a write matched by id alone. On a deployment with more than one node, two nodes that both read a row as `pending` both claimed it, the second overwriting the first's lease, and both ran it — a mail could be sent twice. The main loop now claims its candidate rows the way the batch path already does: one `multi: true` write over the id set, matched on `status: 'pending'` and due as well as id, then one read of the ids this worker holds when fewer rows matched. The loser of a row matches nothing and does not run it. Pacing is unchanged: at most `batchSize` messages per `pollIntervalMs` tick, each handed to its handler alone. No configuration change is needed. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-queue/package.json b/packages/services/service-queue/package.json index 2969771d31c..81919c009c7 100644 --- a/packages/services/service-queue/package.json +++ b/packages/services/service-queue/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-queue", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Queue Service for ObjectStack — implements IQueueService with in-memory and durable DB-backed (sys_job_queue) adapters", "type": "module", diff --git a/packages/services/service-realtime/CHANGELOG.md b/packages/services/service-realtime/CHANGELOG.md index 3746e0acf94..02270e8e1bc 100644 --- a/packages/services/service-realtime/CHANGELOG.md +++ b/packages/services/service-realtime/CHANGELOG.md @@ -1,5 +1,54 @@ # @objectstack/service-realtime +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-realtime/package.json b/packages/services/service-realtime/package.json index ef42bdfb439..63e8e140819 100644 --- a/packages/services/service-realtime/package.json +++ b/packages/services/service-realtime/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-realtime", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Realtime Service for ObjectStack — implements IRealtimeService with WebSocket and in-memory pub/sub", "type": "module", diff --git a/packages/services/service-record-context/CHANGELOG.md b/packages/services/service-record-context/CHANGELOG.md index 2a24a0daf29..949b242233e 100644 --- a/packages/services/service-record-context/CHANGELOG.md +++ b/packages/services/service-record-context/CHANGELOG.md @@ -1,5 +1,51 @@ # @objectstack/service-record-context +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-record-context/package.json b/packages/services/service-record-context/package.json index 022a6fd88ce..e5aa9cc7bf4 100644 --- a/packages/services/service-record-context/package.json +++ b/packages/services/service-record-context/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-record-context", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Record context service for ObjectStack — the context-pack (ai_context) render service and the get_record_context tool executor, reading one record AS THE CALLER (ADR-0160).", "type": "module", diff --git a/packages/services/service-segmenter/CHANGELOG.md b/packages/services/service-segmenter/CHANGELOG.md new file mode 100644 index 00000000000..d29d6fbf28e --- /dev/null +++ b/packages/services/service-segmenter/CHANGELOG.md @@ -0,0 +1,70 @@ +# @objectstack/service-segmenter + +## 19.0.0-next.4 + +### Patch Changes + +- 3872243: feat(platform-objects, service-segmenter): the 检索词条 object `sys_search_term`, the administrator's search words + + Clause-②: yes + Metadata-protocol: none + + `@objectstack/platform-objects` declares `sys_search_term` (检索词条, Search Term): one record per word an administrator adds to search, one set for the whole deployment (no organization column). Fields: `term`, `kind` (`word` custom word or `stop_word`), `purpose` (`knowledge`, `record_search` or `both`; default `knowledge`, the only one implemented), `knowledge_source` (one knowledge source; empty for every source), `enabled` (default on) and `note`. `term`, `kind`, `purpose` and `enabled` are the segmenter contract's `SegmenterEntry` one to one. The object is `system-data` with CSV import opted in, so New, Edit, Delete, Import, Export and record history are the platform's own; every operation, writes included, requires `manage_platform_settings`. A record that disables a platform word (年假, 脱密, 应急采购, …) is refused: those words live in the segmenter's read-only dictionary, so make one a stop word instead. A platform stop word can be disabled. The platform words move here as `PLATFORM_SEARCH_WORDS`, and the segmenter's `PLATFORM_WORDS` reads them, so the object and the service hold one list. + + `@objectstack/service-segmenter`: `SegmenterServicePlugin` registers `sys_search_term` on the manifest service (`SEARCH_TERM_BUNDLE_ID`), with no Setup entry. Nothing reads the records yet: the knowledge service passes them to the segmenter in a later release, and the object gets its Setup entry then. + + `@objectstack/spec` lists `sys_search_term` among the platform-provided object names. `@objectstack/cli` gives it a row in the organization-ownership inventory (no organization column to drop). +- d7d4605: feat(service-segmenter): a segmenter service that cuts a Chinese question into real words for the keyword leg + + Clause-②: yes + Metadata-protocol: none + + New package `@objectstack/service-segmenter`: `SegmenterServicePlugin` registers `ISegmenterService` under the `segmenter` slot. `keywordTerms(query, { purpose, entries })` answers a question's keyword terms in the shape the knowledge adapters' terms have today (distinct, at most 16). The caller's `word` entries are kept whole wherever the question spells them, in any script. A run of Han characters is cut by `@node-rs/jieba` (HMM off, an optional dependency, one instance per process) with the platform's words (年假, 脱密, 应急采购, 超预算, …) in its dictionary; a word equal to a stop word is dropped, and adjacent single characters are joined into two-character words. The query is NFKC-normalised first, a Thai, Lao, Khmer or Myanmar run is cut by `Intl.Segmenter`, and everything else (English, figures, codes, kana and Hangul runs) is cut exactly as before. Without jieba (not installed, or failed to load: the boot log names which, and `status()` reports it), the service answers by sliding windows with the supplied words still kept whole. The purpose `record_search` is reserved and refused with `NOT_IMPLEMENTED`. + + Nothing calls the service yet: the knowledge adapters keep their own terms until they read the slot. + + `@objectstack/spec/contracts` adds `ISegmenterService`, `SEGMENTER_SERVICE` and their types, and `ServiceSlotContracts` gains the `segmenter` slot (not a `CoreServiceName` member). `@objectstack/core` adds `keywordTerms`, `MAX_KEYWORD_TERMS`, `KEYWORD_SEPARATORS` and `UNSEGMENTED_RUN`: the sliding-window rule the two knowledge adapters each hold a copy of, as one shared copy. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 diff --git a/packages/services/service-segmenter/package.json b/packages/services/service-segmenter/package.json index 09f99722119..3e128c12a18 100644 --- a/packages/services/service-segmenter/package.json +++ b/packages/services/service-segmenter/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-segmenter", - "version": "19.0.0-next.2", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Segmenter Service for ObjectStack — implements ISegmenterService: the keyword terms of a question, cut into real words by a dictionary segmenter", "type": "module", diff --git a/packages/services/service-settings/CHANGELOG.md b/packages/services/service-settings/CHANGELOG.md index 12d5119c99a..33783b48791 100644 --- a/packages/services/service-settings/CHANGELOG.md +++ b/packages/services/service-settings/CHANGELOG.md @@ -1,5 +1,74 @@ # @objectstack/service-settings +## 19.0.0-next.4 + +### Patch Changes + +- afc64fc: Setup's platform-owned entries sit in their new groups, in the new order, under the new names; every old name stays searchable + + Clause-②: no + Metadata-protocol: none + + Setup's navigation was regrouped into ten groups (#39050). The entries `@objectstack/platform-objects` contributes now name the new group ids directly, so none of them draws the `nav_contribution_group_renamed` notice: + + - **Users & Organization:** Company Information (first), Users, Invitations, Teams, Business Units, Organizations, then the active organization's page. + - **Access & Sharing:** Positions and Permissions. **Apps & AI:** Installed Apps, AI Model Service. **Audit & Data:** Recycle Bin, Data Retention, File Storage. **Company Settings:** Language & Region, Working Calendars, Holidays & Workday Swaps. **Currency & Units:** Exchange Rates, Units of Measure, Standard Unit Decimals. **Notifications:** Email Channel, SMS Channel, Delivery Log. **Login & Security:** Sign-in Methods, Access policy, Active Sessions. **Integrations & Developer:** API Keys, OAuth Applications, Public Forms. + + Renamed, in every shipped locale: Packages → Installed Apps, Company → Company Information, Localization → Language & Region, Standard Unit Settings → Standard Unit Decimals, Calendar Exceptions → Holidays & Workday Swaps, Mail Delivery → Email Channel, SMS Delivery → SMS Channel, Authentication → Sign-in Methods, AI & Embedder → AI Model Service, Data Lifecycle → Data Retention, Notification Events → Delivery Log, Sessions → Active Sessions. The translated locales also rename four entries other packages contribute: Position Holders, Permission Set Assignment, Record Shares and Queues (their English label changes with each plugin's own entry). + + Every renamed entry keeps its former name as a search alias (`keywords`): the source-language name on the entry, each locale's former name on that locale's bundle entry. Business Units carries Department / Organization Structure / Division (部门 / 组织架构 / 事业部), and each group that took a retired group over carries that group's former name. + + The settings pages' own titles, and their cards on the settings hub, carry the same new names in every shipped locale (`@objectstack/service-settings`), so a page opens under the name its Setup entry shows: Mail Delivery → Email Channel, Localization → Language & Region, and likewise for Company, Authentication, SMS Delivery, AI & Embedder and Data Lifecycle. + + "All Settings" (`nav_settings_hub`) left the navigation: every settings page has its own entry, and the command palette finds them. Its address, `/apps/setup/system/settings`, still opens the settings hub. + + No action needed: nothing an app author writes changes. A third-party contribution that still names a retired group id keeps landing in the group that took it over. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-settings/package.json b/packages/services/service-settings/package.json index 6825c787852..3f1d1e4eff6 100644 --- a/packages/services/service-settings/package.json +++ b/packages/services/service-settings/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-settings", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Settings service for ObjectStack — manifest registry + K/V resolver (OS_* env > Tenant > User > Default) + REST routes. See ADR-0007.", "type": "module", diff --git a/packages/services/service-sms/CHANGELOG.md b/packages/services/service-sms/CHANGELOG.md index f1501ea058b..ac8f928fe7d 100644 --- a/packages/services/service-sms/CHANGELOG.md +++ b/packages/services/service-sms/CHANGELOG.md @@ -1,5 +1,52 @@ # @objectstack/service-sms +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [9a13387] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/plugin-auth@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-sms/package.json b/packages/services/service-sms/package.json index e2fb7c9fa64..2b9e72937a1 100644 --- a/packages/services/service-sms/package.json +++ b/packages/services/service-sms/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-sms", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "SMS service for ObjectStack — ISmsService + transport-pluggable outbound delivery (Aliyun / Twilio / log).", "type": "commonjs", diff --git a/packages/services/service-storage/CHANGELOG.md b/packages/services/service-storage/CHANGELOG.md index a5a3dd9b023..5574c2f8415 100644 --- a/packages/services/service-storage/CHANGELOG.md +++ b/packages/services/service-storage/CHANGELOG.md @@ -1,5 +1,87 @@ # @objectstack/service-storage +## 19.0.0-next.4 + +### Patch Changes + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(spec,objectql): the closed-state refusal's own sentences, in every locale (ADR-0162 D8) + + Clause-②: yes (widening: new keys in the published Operation Message Catalog and the upload-link copy; contract-review-tier review owed) + Metadata-protocol: none + + A write refused because a record is in a closed state (`409 RECORD_LOCKED`, ADR-0162) tells the person what happened, in their own language, with a sentence from the Operation Message Catalog. + + - **New catalog keys** in `BUILTIN_OPERATION_MESSAGES`, in every locale the catalog carries (en, zh-CN, ja-JP, es-ES), overridable per deployment under `errors.` like every other key: `record_closed` with its `_unlabeled`, `_untitled` and `_opaque` forms, and `record_closed_delete_blocked` with its `_untitled` and `_opaque` forms. English, for example: "Invoice 'Northwind March' is closed, so it and its lines can no longer be changed or deleted", and "Customer 'Contoso Holdings' cannot be deleted: deleting it would also remove a closed Invoice or one of its lines". + - **The engine words the refusal from them.** The refusal names a title only from a field that holds display text and that the writer's generic read returns, and that the writer is served under its own field permissions (readable and queryable): not a field the generic read withholds (`internal`, or a credential type), not a reference field, not a field the object's `closedStates` names. Otherwise the sentence names the object's label only, and so it does when a registered security service cannot be resolved. With no security service registered there is no field-level security, and the title is named. A line's write names its master by label alone. A delete refused for what it would also remove names the record asked to be deleted and the label of the object in the way, with the title only when the delete names exactly one record by id. No sentence carries a record id, an API name or a state value. + - **On the error**: `userMessage` and the wire's `error` carry the sentence; `message` reads `RECORD_LOCKED: ` followed by the sentence, as the approval lock's refusal does; the developer sentence moves to `developerMessage`, which the REST layer does not relay. A refusal that could not judge the write keeps the developer sentence and sets no `userMessage`. + - **Upload-link page**: a closed-state refusal reaches the page with the engine's declared catalog sentence, which the page shows. The page's own `recordLocked` answers only a `RECORD_LOCKED` with no declared sentence. The page also carries a closed-state sentence (`recordClosed`) in each of its 11 languages; choosing it by the lock's reason comes with a later change. +- 7b68db9: feat(data): one record lock read, for closed states and approvals + + Clause-②: yes (widening) + Metadata-protocol: added + + An app can now ask whether a record is locked, and by which lock, in one read that covers both locks a record can be under: a declared closed state (an object's `closedStates`, or a `master_detail` line of a closed record) and an approval. Before this, a client could only ask the approvals read, which knows nothing of closed states, so a closed invoice looked editable until the save was refused. + + - `GET /api/v1/data/{object}/{id}/lock` answers one record: `{ locked, lockSource?, lockReason? }`. `lockReason` is `closed_state` or `approval`, `lockSource` is `record` or `master`, and both are present exactly when `locked` is true. A record the caller cannot read, or that does not exist, answers 404. + - `POST /api/v1/data/{object}/locks` answers a page of up to 200 records, body `{ "recordIds": [...] }`; a record the caller cannot read answers `locked: null`. A longer list is refused whole with 400. + - `client.data.getRecordLock(object, id)` and `client.data.getRecordLocks(object, recordIds)` call them. The shapes are `RecordLockSchema`, `GetRecordLocksRequestSchema` and `GetRecordLocksResponseSchema` in `@objectstack/spec/api`. + + Every user who can read the record is told, even when field permissions hide the state field. The answer never names the field, the value, the approval request or its participants. The read works without the approvals plugin; then only closed states lock. + + The upload-link door now asks this read before it issues a file-field link: a closed record is refused with "the record is closed, so no file can be added to it", a record an approval holds with the existing approval sentence. + + Nothing existing changes: the approvals read (`/api/v1/approvals/records/...`), its SDK methods and service members answer exactly as before. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/observability@19.0.0-next.4 + - @objectstack/plugin-hono-server@19.0.0-next.4 + - @objectstack/service-cluster@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/services/service-storage/package.json b/packages/services/service-storage/package.json index ebdc2038875..a0d2f3ee33a 100644 --- a/packages/services/service-storage/package.json +++ b/packages/services/service-storage/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/service-storage", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Storage Service for ObjectStack — implements IStorageService with local filesystem and S3 adapter skeleton", "type": "module", diff --git a/packages/skills/CHANGELOG.md b/packages/skills/CHANGELOG.md index 7973e80f206..d564e66f51d 100644 --- a/packages/skills/CHANGELOG.md +++ b/packages/skills/CHANGELOG.md @@ -1,5 +1,334 @@ # @objectstack/skills +## 19.0.0-next.4 + +### Patch Changes + +- 665dfc4: docs(skills): the objectstack-ai entry file becomes a router + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-ai/SKILL.md` goes from 30.0 KB to 9.0 KB (518 lines to 184). It now holds: four first checks (the installed version wins over the `compatibility` line; read the stack's skills, knowledge sources, context packs, `requires` and its objects' actions; read the contract and never recall a key; `os validate` before reporting done), one type-checked skill, the opt-in that makes an Action an AI tool, the confirmation rule of every AI door, the context-pack pointer, one type-checked knowledge source with four rules, two pitfalls, and a list that says where to go for the rest. One sentence of the old entry is corrected (the pending answer, below); no other rule's teaching changes. No text moved between files: what left the entry was cut, and this entry says what now answers it. `references/context-packs.md` is untouched. + + **What the entry keeps.** Each of these parses, or is accepted, and then does nothing or the wrong thing: + + - A tool record (`defineTool`, `*.tool.ts`) makes nothing executable: the default path is the Action's own opt-in, `ai: { exposed: true, description }`, named in a skill's `tools` as `action_`. + - An opted-in action can still be no tool: `url`, `modal` and `form` are UI-only, and the in-app assistant skips a destructive one (`mode: 'delete'`, `variant: 'danger'`, unless `ai.requiresConfirmation` says otherwise) unless the host runs `enableActionApproval: true`. + - `confirmText` is dialog copy and gates no AI call; `ai.requiresConfirmation: true` does. + - A stack-authored agent is never served: skills are the one extension, `agent.tools` and `agent.knowledge` are refused, and retrieval is scoped on the knowledge source (`aiExposed`, `source.where`). + - A skill's `triggerConditions` route on context the client reports, so they are never access control; over MCP the HTTP door offers a skill's prompt only when the server lists every tool the skill binds. + - An action declaring `ai.requiresConfirmation: true` runs only once the person the agent acts for confirms: `run_action` and `resume_run` refuse a call that carries `confirm` (the delete tools' own `confirm: true` is in their descriptions in `tools/list`); at every AI door, `status: 'pending_confirmation'` with a `pendingId` is a success that is relayed and not retried; a host with no pending-confirmation service refuses 428 with `details.reason: 'no_confirmation_service'`; a stdio client advertising form-mode `elicitation` is asked in place (`declined` / `cancelled` / `timed_out`); an AI service account's own key is refused `service_account`; and only the person, on their signed-in session in the app, decides a pending item, so a script lists the queue and never decides. + - No page declares an AI button: the shell's 「问 AI」 entry opens the assistant on the current record. + - A knowledge source is an egress decision with named fields only; `content` is long free text, and a `file` field in it adds no file text; one source per corpus, named to `search_knowledge` in `sourceIds`; `split` cuts passages that never overlap (no key adds an overlap), and an app that cuts its own passages indexes the child records with `strategy: 'whole'` and `documentBy`; an app that ships no source declares `requires: ['knowledge']`; mounted is not enabled, so with no embedder at boot the sources are held (listed, never searched, `search_knowledge` not offered) and `os knowledge status` says why; unmounted or held, a run-time save is refused. + - Sampling sits under an agent's `model`, and the deployment's AI settings choose the provider. + - `ai.requiresConfirmation` guards the action's own door and not the state: the whole of the old pitfall "Gating the action, not the state" stays, under the same title. + + **What left, and what answers it now.** + + - The skill key tables (`name`, `label`, `tools`, `surface`, `description`, `instructions`, `triggerConditions`, `active`, `context`) and the trigger-operator table: the contract, `node_modules/@objectstack/spec/src/ai/skill.zod.ts`. Its docblocks say which edition reads each key, that an incompatible `surface` binding is a load error, that a skill with blank `instructions`, `active: false` or `mcpPrompt: false` is not offered as an MCP prompt, and that the plugin's own stdio server applies no tool-binding filter; `SkillTriggerConditionSchema` refuses a `value` whose shape does not match its `operator`; the strict schema refuses a `permissions` key and a phrase-matching `trigger` key, each with what to write. The entry keeps the five context fields a condition can read. + - The four-rung tool-resolution ladder: `os validate`, whose `ai-skill-tool-unresolved` warning names the unresolved entry and suggests the `action_` spelling. The name lists are `PLATFORM_TOOLS_BY_PACKAGE`, `PLATFORM_PROVIDED_TOOL_NAMES`, `MCP_DOOR_TOOL_NAMES`, `MCP_FILE_TOOL_NAMES` and `PLATFORM_TOOL_FAMILY_PREFIXES`, exported from `@objectstack/spec/system`. + - The in-app `ask` paragraph (a package skill with `surface` `ask` or `both` loads for the app the user is in; a tool it names outside the allow-set is dropped with a diagnostic): cut, with no other home in this repository. It describes the cloud runtime. + - The action dispatch table (`script`, `api`, `flow`): https://objectstack.ai/docs/ai/actions-as-tools (§ What gets exposed). The entry names that page for dispatch only: its list of destructive signals still includes `confirmText` and its approval section still gives the retired pending answer, so the entry states both rules itself. The Human-in-the-loop paragraph: the confirmation contract, `ActionConfirmationRefusalReason` and the docblock above it in `@objectstack/spec/contracts`. The request-body assembly of a `type: 'api'` action (`recordIdParam`, `recordIdField`, `bodyShape`, `bodyExtra`): the contract, `node_modules/@objectstack/spec/src/ui/action.zod.ts`, whose docblocks are the one home of those four keys. That `confirmText` is dialog copy and no destructive signal stays in the entry (objectstack-ui, `rules/actions.md`, says the same). The cloud host's plugin options (`apiActionBaseUrl`, `apiActionHeaders`, a custom `apiClient`) and its two predicates (`actionSkipReason`, `actionRequiresApproval`): cut, with no other home in this repository; they belong to the cloud package that exports them. The old text said a queued call answers `{ status: 'pending_approval', pendingActionId }` from an `ai_pending_actions` row: from 19.0.0 every AI door answers `pending_confirmation` with a `pendingId`, and the entry now says that once, for every door. + - The MCP plugin snippet, the two environment switches (`OS_MCP_SERVER_ENABLED`, `OS_MCP_STDIO_ENABLED`) and the tool table: https://objectstack.ai/docs/ai/connect-mcp (§ What the agent gets, § Local stdio transport) and each tool's own description in `tools/list`, which carries the delete-confirmation rule, the `delete_records` preview and cap, and the `run_action` confirmation rule as the server enforces them. The confirmation contract, door by door and reason by reason: `ActionConfirmationRefusalReason` and the docblock above it, in `@objectstack/spec/contracts`. The plugin's `autoStart` option is a typed, documented option of `MCPServerPlugin` in `@objectstack/mcp`; the published page teaches the environment switch. Consuming an external MCP server (`@objectstack/connector-mcp`): objectstack-automation, `references/integration-recipes.md`. + - The knowledge-source key table (`adapter`, `source.metadataFields`, `source.documentBy`, `source.where`, `source.retrieval.mode`, `refresh.onRecordChange`, `aiExposed`), the store-resolution rule, that a run-time save needs `manage_knowledge_sources` beside `manage_metadata`, the `NAMESPACE-NAME` spelling of a package's source, and the code door (`KnowledgeServicePlugin({ sources })`, `registerSource`): the contract, `node_modules/@objectstack/spec/src/ai/knowledge-source.zod.ts`, and https://objectstack.ai/docs/ai/knowledge-rag. The keys retired in 19 (`id`, `contentFields`, `embedding`, `vectorStore`, `adapterConfig`, `refresh.cron`, `source.kind: 'file'` / `'http'`): each is refused with its fix, the published page lists them under "Upgrading from 18", and `os migrate meta --from 18` lists a stack's edits. The five `knowledge-source-*` rules: `os validate` and publish, which print each with its fix. The splitting detail (what each strategy cuts at, `maxChars` against the Longest passage setting and the embedder's limit, the `minChars` merge, that a changed `split` rebuilds the index and refuses searches meanwhile): the `KnowledgeSplitSchema` docblock in the same contract file and the published page, § Splitting documents into passages. The retired `knowledge.chunk_overlap` setting and `KnowledgeChunk.metadata`: their refusals; the entry keeps "passages never overlap". That a run-time save is refused when the author may not search the object or query a field: the published page, § Writing a source. The rest of the document-unit rule (which field `documentBy` may name, that setting it rebuilds nothing and newly listing the parent field rebuilds the source in place, that `topK` then counts parents and the parent is the hit's `groupValue`): the `documentBy` docblock in the same contract file and the published page, § An app that cuts its own passages. The rest of the held state (the store half, what a held search and `os knowledge rebuild` answer, the two restarts of the remedy): the published page, § Turning it on, and the refusal itself, which names what is missing. + - The tool-record section: the contract, `node_modules/@objectstack/spec/src/ai/tool.zod.ts` (strict; required `name`, `label`, `description`, `parameters`; `outputSchema` marked experimental; the keys retired in 17, each refused with its replacement) and https://objectstack.ai/docs/ai/tools. `ai.outputSchema` and `ai.category` on the action: `ui/action.zod.ts`. + - The model-configuration table: `AIModelConfigSchema` in `node_modules/@objectstack/spec/src/ai/agent.zod.ts` (the `temperature` range and default, the retired `provider` key and the one residue value that still parses). + - The pitfall on `guardrails`: that an agent's `guardrails` and `memory` are limits and no gate is cut from this entry, since a stack does not author an agent; the keys and their prescriptions are in `ai/agent.zod.ts` (the two numbers required once long-term memory is enabled, and no `requireApprovalFor` key, which the strict schema refuses). Cut, with no other home in the published skills: that `approval: 'always'` on an MCP tool binding is an enforced gate (the value itself is `MCPApprovalPolicySchema` in `ai/mcp.zod.ts`), and that AI metadata edits land as drafts a person publishes. + - The platform-agents section: https://objectstack.ai/docs/ai/agents (the two agents and the surface each is bound to, that a skill reaches an agent only when their surfaces match, the MCP prompt rule and `mcpPrompt`, `visualize_data`). The table of the built-in skills (`schema_reader`, `data_explorer`, `actions_executor`, `metadata_authoring`, `solution_design`): cut, with no other home in this repository; they are the cloud runtime's. The retired-keys table of `AgentSchema`: the entry keeps that `agent.tools` and `agent.knowledge` are refused; the refusal names the upgrade guide. + - "Verify your work" and "References": first checks 4 and 3. That this domain has no CEL site and that a model-registry prompt template is the `template` dialect: cut from this entry; objectstack-formula teaches the three dialects and that a `template` is not CEL, and the keys that take an expression are typed in the contract. A scaffolded project's `npm run validate` alias is in that project's own `package.json`. + + **Anchors that no longer exist in `SKILL.md`.** `#skill-configuration`, `#naming-the-tools-the-resolution-ladder`, `#skill-example`, `#trigger-conditions`, `#tool-metadata-definetool--not-the-default-path`, `#model-configuration`, `#verify-your-work`, `#references`, and the anchor of the "Platform agents — reference only" heading. The new ones are `#first-checks`, `#skills` and `#where-to-go`. The title's anchor and the anchors of "Actions as AI Tools", "MCP", "Context packs", "Knowledge Sources (RAG)" and "Common Pitfalls" are unchanged: other bundle files send the reader to three of those headings by name. No file in this repository linked an anchor of the old entry. +- 2af3d78: docs(skills): the objectstack-project entry file becomes a router + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-project/SKILL.md` goes from 12.0 KB to 9.0 KB (214 lines to 184). It keeps its numbered sections under the same headings: the three questions asked before any work (app or platform, own use or product, does the platform ship it), what is written at each stage, the four checks with what each platform command covers and one `bootStack` test, the platform-gap rules, the customer changeset and release rules, the bump steps with the backfill rules, and the list of which skill teaches which kind of change. No rule's teaching changes. This skill has no hand-written reference file (its one reference, the platform catalog, is generated), so no text moved: what left the entry was cut, and this entry says what now answers it. + + **What the entry keeps.** Every ⛔ of the old entry: an own-use app is not asked for a requirement record, a design note or a changeset; `os verify` is not one of the four checks and not in the scaffold's CI; a check the platform makes is not hand-written; a platform defect is never worked around in the app; a new rule that reports existing metadata is never silenced. Beside them, the facts that pass every check and go wrong later: only errors fail `validate` and `lint`, so a warning (label case, an unresolved navigation target) passes without `--strict`; `--rls` proves consistency, not what the business intends; a Studio change stays in that environment's database and never ships; a blocked issue unblocks when the fix is in an installable version, not when the upstream change merges; `manifest.version` is set by hand because `os package publish` ships that one; the skills are re-synced with `--copy` after a bump; removing a field puts its values out of reach once the new metadata is installed, so the backfill runs first, on the old release. One sentence is new: where the installed `@objectstack/cli` differs from the `compatibility` line, the installed command is right. + + **What left, and what answers it now.** + + - The per-command check lists, now behind https://objectstack.ai/docs/deployment/cli. `os validate` keeps its rule families in one sentence; the kinds of reference it resolves, dataset members, package docs and the capability-provider check are on that page. `os lint` keeps "naming, label and translation-coverage style"; `--i18n-strict` is there too, and its rule on hook bodies that stop lowering is no longer listed (the rule reports itself when it fires). `os verify` keeps the round-trip and `--rls`; its other opt-in proofs and the advisory reading of `os validate`'s capability findings are there too. The `pnpm typecheck` row said only what the command's name says. + - The rest of the `bootStack` handle: that `flows.run` needs `{ automation: true }` unless the app requires `automation` is in the README that `@objectstack/verify` ships, which the entry names. The entry now says which call tests which kind of fact (`stack.hooks.run`, `stack.flows.run`, `stack.actions.run`, `stack.rows`), and keeps inline that `stack.rows` reads as a user only when the call passes `as`: without it the read is the system's, past sharing and row-level security. A plugin's `LiteKernel` tests are no longer named; the routing list sends a plugin's tests to objectstack-platform. The pointer to the scaffold's starter test is cut (the old entry called it `note.test.ts`; the template's file is `starter.test.ts`). + - Which schema changes apply on boot and which take `renamedFrom` or `os migrate`: objectstack-data `rules/field-types.md` § Changing a field that has data, which the entry names with the two commands and `--allow-destructive` for a drop. + - Restated inside the entry, so cut once: the stage rows that only named a later section (Test, Release, Upgrade); the sentence that the release note names the backfill script (the breaking-change bullet orders the administrator's steps, a backfill first); what each item of the bump's sweep step does (§3, §2 and the catalog question say it); the opening sentence that the domain skills teach the metadata, and the objectstack-upgrade row of the routing list (the frontmatter description and bump step 2 say both); that package docs are objectstack-ui's (its routing row says so); that `os package publish` is taught by objectstack-platform (its routing row lists the CLI and deployment); "no issue numbers, no internal names" in a customer changeset (the same bullet says it is written for the customer's administrator, in their words). The objectstack-ask and objectui rows are cut too: answering a question from the app's records and rendering the metadata in React are not changes to the metadata project, and each of those skills is still found by its own description. + - Cut with no other home. Each is a convention, an example or a reason, and none passes a check and fails later: the requirement-file template (`# REQ-NNNN`, asked by, their words, a user can, out of scope, status) and that it is created the first time one is needed; "the locale or device when it matters" in the acceptance line; that a product's design note "always answers" installed data and upgrade steps (the two are starred items of the design list, and the breaking-change and backfill rules require both); "if a stale bot runs, exempt that label"; "an older scaffold may lack the `pnpm test` step" (the entry says to run the four in CI); that `npx os explain` lists only the rules that carry an explanation; that `os verify` can also run as a CI step (the entry says to run it before a release); the changesets set-up command; that a Studio change's rule is in the project's `AGENTS.md`; the examples of a breaking change (a field, object, view, permission or behaviour), of a consistency question (labels are translated), of a hand-written check ("every reference resolves") and of a business judgement (how a case is routed); the qualifier "and the app pays for it" on a platform gap; "a workaround outlives the fix"; that a REST-only backfill "works on any installed metadata". + + **Anchors.** No section anchor left `SKILL.md`: the title and every section heading are unchanged. +- 5bd786e: docs(skills): the objectstack-query entry file becomes a router + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-query/SKILL.md` goes from 18.5 KB to 9.0 KB (429 lines to 154). It now holds seven things: four first checks (the installed version wins over the `compatibility` line; read the object's fields, declared or platform-injected, its relation fields and its `searchableFields`; read the contract and never recall a key or an operator; a query in code is judged only when it runs, query metadata by `os validate`), the calling convention as one type-checked block (a `find`, a system read, an `aggregate`) with the closed-set rule, the operator names as one list, seven traps, `## Full-Text Search`, the removed-keys table, and a table that says where to go for the rest. No rule's teaching changes. No text moved between files: what left the entry was cut, and this entry says what now answers it. The three rules files (`rules/filters.md`, `rules/aggregation.md`, `rules/pagination.md`) keep their text; `rules/filters.md` changes two pointers (below). + + **What the entry keeps.** The seven traps, each a query that is accepted and answers, wrong or slow, with no error: a read with no `context` runs as whatever identity the caller carried, so org-scoping returns fewer rows; `$contains`, `$notContains`, `$startsWith` and `$endsWith` compare case-sensitively and typed text wants `$icontains`, and `$like` / `$ilike` match the whole value, so a pattern with no `%` is an exact match; a column with no value fails every ordering test, in `where`, a measure's `filter` and `having` alike, and `$null` misses a text field saved blank where `$empty` does not; `expand` reads the foreign key off each row, so a projection that drops it returns no related data, a key that is not a relation field is skipped, and of a nested value only `fields`, `where` and a further `expand` take effect; a page needs `orderBy` and a keyset `where` must match the sort key and its direction; `where` scopes rows before grouping, `having` filters groups and a measure's `filter` scopes that measure, with the rule for which side buckets a date under a non-UTC `timezone`; a date computed at module load freezes into the built artifact, with the tokens to write in its place, `{current_iso_week}` as a text week key, and the now-anchored comparand `{ $now: true, addDays }`. The search section keeps the bare-string form with `searchFields`, the term and option-label matching, the narrowing rule, that `count` and `aggregate` take the same pair, that `search` never traverses (a dotted path is refused at the protocol door and when it stands alone, and listed beside real fields the engine drops it silently; mirror the related title into a stored field and name it in `searchFields`), and the six knobs of the object form that validate and do nothing. The removed-keys table keeps all six rows. Traps 3, 6 and 7 state inline what the old entry left to the rules files (the `$or` with `$null` beside an ordering test, which side buckets a date under a `timezone`, the tokens and the week key); the rules files still hold the detail. + + **What left, and what answers it now.** + + - The table of each engine method's legal option keys and the `top` / `filter` alias folding: the contract, `node_modules/@objectstack/spec/src/data/data-engine.zod.ts` (`EngineQueryOptionsSchema`, `EngineAggregateOptionsSchema`, `EngineCountOptionsSchema`). The six driver passthrough keys (`transaction`, `tenantId`, `tenantIds`, `timezone`, `bypassTenantAudit`, `preserveAudit`) with the reason `count` and `aggregate` refuse them: that file does not hold them; the driver options contract does (`node_modules/@objectstack/spec/src/data/driver.zod.ts`), and which method takes them is the engine's own list. A key outside a method's set is refused by name, and the refusal prints that method's legal keys, the passthrough ones included. The entry states the closed-set rule without the three schema names; its first check 3 names the file. The old table's `count` row listed `context` and `where` only; the contract also takes `search` and `searchFields` there, and the entry now says so. + - From the execution-context section: that a context carrying no user, position or permission set is refused `403 PERMISSION_DENIED`, which is loud when hit, and that a write takes its context only as the trailing argument, which is the contract (`node_modules/@objectstack/spec/src/contracts/data-engine.ts`). Trap 1 keeps the silent half: fewer rows, with no error. + - From the removed-keys section: the second alternative for `array_agg` / `string_agg` (materialise the roll-up as a stored field), and the sentence dating the removal to `@objectstack/spec` 17. objectstack-upgrade, which the entry names, holds the register. + - The operator tables (purpose, SQL equivalent, value types), the implicit-equality and logical-operator examples, and the notes under the null and existence operators (a view filter's `is_empty` / `is_not_empty` lowers to `$empty`; a face that judges by declared type refuses `$empty` on a column it holds no declaration for): the contract, `node_modules/@objectstack/spec/src/data/filter.zod.ts`, where each operator's `.describe()` text says what it does. `rules/filters.md` § Operator Reference has one example of each operator, and https://objectstack.ai/docs/protocol/objectql/query-syntax has the tables. + - The relation-filter paragraph (the driver capability it needs, the three-relationship limit, the 1000-id cap, the caller's permissions at every hop, the two-step route) and the cross-field paragraph: `rules/filters.md` § Relation Filters, § Field References and § Now-Anchored Comparands, which already held all of it. The entry keeps the shape of a relation condition in the removed-keys row for `query.joins`. + - The "which filter dialect" table: the routing row for objectstack-ui, which names `VIEW_FILTER_OPERATORS`. + - The sorting rules (array order is sort priority, `order` defaults to `'asc'`), the offset-paging block and the "Pagination Pattern for APIs" block: `rules/pagination.md` (its § Sorting with Pagination also says why an unsorted page is not stable) and the contract. Index advice is the routing row for objectstack-data. + - The aggregation call-shape block and the "Dashboard Aggregation Pattern" block: the entry's one block shows a grouped call with a per-measure `filter`; the rest is `rules/aggregation.md` § Filtered Aggregation. Dashboards and reports are the routing row for objectstack-ui. + - From the expand section: that the engine resolves an expand with batched `$in` reads, and the nested-expand example. Nothing an author writes depends on the first; trap 4 states the three-level limit and the contract carries the shape. The old rule said an `expand` key must be a `lookup` or `master_detail` field; the engine resolves `user` and `tree` fields too, and trap 4 names all four. + - From the search section: the comment block that showed the expanded filter, the note that the protocol's `$searchFields` and the object form's `search.fields` spell the same narrowing (the entry says to write `searchFields`), the description of the default searchable set (name or title, short-text fields, fields marked `searchable: true`), the REST refusal of a name outside that set (`400 INVALID_FIELD`, loud when hit), and that `count` and `aggregate` apply the pair before counting or grouping (the contract's docblocks on those two option sets): the published page above, § Full-Text Search, and objectstack-data's Search Fields reference (`searchableFields`), which the entry names. + - The "Cross-Object Queries: Which Tool to Use?" table: trap 4 (`expand` to display; page or sort related records by querying the related object), the search section (the stored mirror), `rules/filters.md` § Relation Filters (filter by a lookup target's column, and a parent by its children in two steps) and the routing row for objectstack-ui (analytics across objects). + - The "Quick Reference" list: the routing table. The "Verify your work" and "References" sections: first checks 4 and 3. The `os build` spelling is objectstack-platform's (its "Verify your work" reference), a scaffolded project's `npm run validate` alias is in that project's own `package.json`, and the sentence on a dashboard widget whose dataset does not resolve is objectstack-ui's (its dashboard rules). + - The routing line to objectstack-ask: the frontmatter description, which is unchanged. + + **`rules/filters.md`.** Two pointers named sections the entry no longer has. The line under the operator list sent the reader to the entry's "Filter Operators" section for purpose, SQL equivalent and case sensitivity; it now names the contract (`data/filter.zod.ts`) for what each operator does and the entry's trap 2 for case sensitivity. The sibling-keys note no longer points at the entry's "Logical Operators" section. The file is 21 bytes smaller and nothing else in it changed. + + **Anchors that no longer exist in `SKILL.md`.** `#calling-convention--object-is-the-first-argument`, `#which-filter-dialect`, `#execution-context-context`, `#removed-keys--live-replacement`, `#quick-reference--detailed-rules`, `#filter-operators`, `#implicit-equality-shorthand`, `#comparison-operators`, `#set--range-operators`, `#string-operators`, `#null--existence-operators`, `#logical-operators`, `#filtering-by-a-related-record`, `#cross-field-comparisons`, `#sorting`, `#pagination`, `#aggregation`, `#expand-related-records`, `#common-patterns`, `#cross-object-queries-which-tool-to-use`, `#pagination-pattern-for-apis`, `#dashboard-aggregation-pattern`, `#verify-your-work`, `#references`. The new ones are `#first-checks`, `#calling-convention`, `#traps`, `#removed-keys` and `#where-to-go`; the title's anchor and `#full-text-search` are unchanged. No file in this repository linked an anchor of the old entry. +- 9da8804: feat(spec)!: a form no longer declares `subforms`; no form surface draws a form's own child tables, which the object's field groups place + + Clause-②: yes (narrowing) + + Metadata-protocol: narrowed + + + + **BREAKING** accept-set narrowing on the form surface (`@objectstack/spec`), ADR-0049 enforce-or-remove. + + The readers of a form's `subforms` were the console's New and Edit record surfaces, which copied it from the object's internal form view. Through 18.6.0 those surfaces drew the child tables a form listed. From 19.0.0 they load no form view (the `internal-record-forms-not-loaded` entry): a record's child tables come from the object alone, as its field groups place them. The page a form opened by name or by a public link gets never drew a child table, and the public submit route writes one record. So on 19 a form saved with `subforms` is accepted, served and drawn exactly as one without it. + + - **FROM → TO.** `subforms: [{ childObject, … }]` on a form (a `form` item; a stored view's `form` and `formViews.`; a form view item's `config`) → nothing on the form. A child table that should be entered with the record is placed on the parent object: a field group whose `relatedList` names the child, for example `{ key: 'lines', label: 'Lines', relatedList: 'order_line' }` in `fieldGroups`, or `'order_line.order'` when the child points at the parent more than once. Every New and Edit form of the object then draws the table at that group and saves the record and its rows together. + - **What an entry set beside `childObject`.** On the child's relationship field: `title` is `inlineTitle`, `columns` is `inlineColumns`, `amountField` is `inlineAmountField`. `totalField` has no twin there: a parent total is a `summary` field on the parent. `addLabel`, `minRows` and `maxRows` have none. + - **The one-line fix.** Delete `subforms` from the form. `os migrate meta --from 18` lists the edits for existing sources, and `--write` applies them. A stored `sys_metadata` row is converted when it is read (the `form-view-subforms-removed` conversion), so a form saved with the key keeps loading, and deleting it changes nothing a reader sees on 19. + - **Coming from 18.x.** A New or Edit form whose form view listed `subforms` drew those child tables through 18.6.0. On 19 it draws the child tables the object's field groups place. A child the form listed and no field group places is entered from the parent record's related list, not inside the parent's form, until a field group names it. The conversion cannot add that group: it would change every New and Edit form of the object, which is a decision about the object. + - **What the parse says.** "`form.subforms` was removed in @objectstack/spec 19.0.0 (ADR-0049) — no renderer reads it: …", naming the field group's `relatedList`, at every form door (a `form` item, a stored view's `form` and `formViews.*`, a form view item record, a flattened form overlay) and at `defineStack` as `STACK_SCHEMA_INVALID` / 422. TypeScript rejects the key at the authoring site. + - **Unchanged.** The React `ObjectForm` block still takes `subforms`: the react-tier contract now declares it on the block itself, with the entry's shape written out. The `object-master-detail-form` page block keeps its `details`. A field's `inlineColumns` and the related-list keys are not touched. + + The retirement kit: the `retiredKey()` tombstone on `FormViewSchema` (the `form` item takes it by reference); the D2 conversion `form-view-subforms-removed` (protocol 19, retired from the load path, reaching `form`, `formViews.*`, form view items, flattened form overlays and `forms[]`, ordered after the move of a view's forms to `forms[]`); `RETIRED_KEYS_BY_MAJOR[19]` rows `ui/FormView:subforms` and `ui/Form:subforms`; the D3 entry `ui-form-view-subforms-retired`; the liveness row `form.json` `subforms`, now `dead`. + + Also corrected: the protocol-19 D3 entry `master-detail-related-list-tab-by-default` said a form view that declares its own subforms still inlines what it declares. No form does, and the sentence is gone. The `split` form type's parse prescription pointed at the same key for a child grid beside the parent, and now names the field group's `relatedList`. `defineStack`'s inline-column check no longer walks a form's `subforms`, which the parse refuses first. + + `@objectstack/skills`: `skills/objectstack-ui/references/react-blocks.md` is regenerated. ``'s `subforms` is listed as a binding prop from the block's overlay, with its entry shape, no longer as a data prop from the form schema. +- 1330750: docs(skills): the objectstack-ai skill teaches a knowledge source's document unit, `source.documentBy`, and that a mounted knowledge service is held until it is enabled + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-ai/SKILL.md`, Knowledge Sources: the key table lists `source.documentBy`, the single-valued `lookup` / `master_detail` field, listed in `metadataFields`, that links each indexed record to its parent record; setting the key rebuilds nothing, and listing the parent field in `metadataFields` for the first time rebuilds the source in place. One rule is added beside the corpus rules: an app that cuts its own passages writes each one as a child record and indexes the child object with `split: { strategy: 'whole' }` and `documentBy`. The index stays one record = one document, and `documentBy` is the unit a `granularity: 'record'` search counts in `topK` and groups by when no `groupBy` is sent. + The same section no longer reads as "a shipped source is searchable". A shipped item mounts the knowledge service, and the service is held until an embedder provider is saved, the deployment's store is mounted and the server restarts. Held sources are listed and never built or searched: `search_knowledge` is not offered, a search or a run-time save answers `503 SERVICE_UNAVAILABLE` naming the missing half, `os knowledge status` prints the state and why, and `os knowledge rebuild` exits 1 with it. Where an app ships no source, the remedy for a refused run-time save now includes saving an embedder provider and the restart after it. + The file's token ceiling moves from 7247 to 7499: restating clauses of the same file are deleted first, and the row moves by the measured remainder. +- f8f7f09: docs(skills): the objectstack-ui actions rule teaches a bulk action placed at `selection`, in place of a list view's retired `bulkActions` list + + Clause-②: no + Metadata-protocol: none + + Protocol 19 retired a list view's `bulkActions` list: an action that acts on many records declares `'selection'` in its own `locations`, and the object's `actionLayout.selection` orders the selection bar. The published skills still taught the retired key, which parse and `tsc` refuse. Text only: no schema, rule or runtime behaviour changes here. + + `skills/objectstack-ui/rules/actions.md`: + + - The location table gains the `selection` row: many records, one run per ticked row, on the selection bar of every grid view of the object. The line under the table that names what replaced each retired word now also names a view's `bulkActions` (`selection`). + - The `actionLayout` paragraph names the third arm: `selection` takes the actions placed at `selection`, with the same `pinned` / `more` parts as the other two. + - The opening paragraph's `action-no-placement` sentence lists the two ways a view still places an action by name, `rowActions` and `bulkActionDefs`. + - The bulk bullet says an action that writes each selected row is placed at `selection`, declares `execution: 'perRecord'` and writes the row it is handed. The aggregate form, a view's `bulkActionDefs` entry with `execution: 'aggregate'`, reads as before. + - The checked `crm_create_campaign` example declares `locations: ['selection']`. Without it the example taught an action no surface draws. + + `skills/objectstack-i18n/SKILL.md`: the key map's `_views.{view}` row spells its bulk group `bulkActions.{bulkActionDefs_name}`. The translation group keeps its name; it is keyed by the `name` of a view's `bulkActionDefs` entry and was never the retired view key. An action placed at `selection` is translated under `_actions`, like any other action. + + Neither file grows. In the actions rule the new text is paid for inside the file: the retired key's two mentions, one clause of the bulk bullet that its next clause repeated ("only ids the caller can read", before "one the caller cannot read refuses the whole call"), the bullet's pointer to the example (the example now declares its placement itself), and the location table's column padding. In the i18n entry the flow-step bullet no longer glosses `approvals` as "(approval)" and `screens` as "(screen)". + + The two `objectstack-ui` eval cases that graded an answer on the retired key (a bulk "Add to campaign" action, and an aggregate body moved to the per-record form) now require `'selection'` and refuse a `bulkActions: [` list. +- f2ca884: docs(skills): the published skills teach three refusals the save door makes: a grid grouping field the engine does not group by, a hook body call without its capability token, and `updateById` under `api.write` + + Clause-②: no + Metadata-protocol: none + + Text only: no schema, rule or runtime behaviour changes here. Each sentence follows the rule's own explanation (`os explain RULE`). + + `skills/objectstack-ui/rules/list-views.md`, Grouping: on a grid (the default `type`) a grouping level's `field` is a stored single-valued field of the object. A multi-valued field (`multiselect`, `checkboxes`, `tags`, `multiple: true`), a JSON-stored one (`json`, `address` and the like) or a `formula` field is refused at validate and publish as `list-view-group-field-ungroupable`; the fix is to show the field as a column. A dotted path (`account.name`) is refused as `list-view-field-dotted`; the fix is to group by the lookup itself. + + `skills/objectstack-data/references/data-hooks.md`, Capabilities: a hook body call whose token is missing from `body.capabilities` is refused at save as `hook-body-capability-undeclared`, an error from `os validate`, `os build`, `os lint` and a runtime save (`422 INVALID_METADATA`); the fix is to add the token the message names, or remove the call. The paragraph says which spellings the rule reads (a call on `ctx`, on a local bound once to it, on a handle bound once to `.object(…)`) and that a call spelled another way still throws in the sandbox. The `api.write` row lists every write leaf the sandbox gates: `insert`, `update`, `updateById(id, patch)`, `delete`, `updateMany`, `deleteMany`, `upsert`. + + `skills/objectstack-ui/rules/actions.md`, opening paragraph: an action body writes through `ctx.api.object(X).update(...)` or `.updateById(id, patch)`, both under `api.write`, and without that grant the write is refused at save (`action-body-write-capability-undeclared`). + + No file grows: each addition is paid for by deletion in its own file, so the three token counts stay 4509, 10120 and 3918. + + - `list-views.md`: the view-switcher consequence of a bare flat view object; the lead-in sentence of Data Source; two words of each Columns comment; "still ANDed with the elements beside it" (the paragraph opens with "elements must all match"); the `userFilters` lead-in's list of elements (the block under it names them); the comment over `appearance`; that the list-view-mode lint also reports a `tabs` element the parse rejects; the second pointer to objectstack-data Search Fields and to Inline Editing (each is named a few lines above); "you almost never need a custom page" (item 2 says when a page is used). + - `data-hooks.md`: the "Reference companion" line under the contents list; the "What Are Hooks?" heading and its one sentence (the two tables under it say when a hook runs); the Status row of the `body` / `handler` table (its header marks `handler` deprecated); a comment in the `input` example; "the layout both real hook modules in the repo use". + - `actions.md`: the new-tab warning no longer names the `ActionParam[]` type, and keeps "user input only". +- 8456562: docs(skills): the objectstack-ui record-page rule teaches `pinOverview` and the object-level `fieldTabs` + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-ui/rules/record-page.md`: step 1 no longer says the record page's layout follows "never a key". It now teaches the two object keys that re-arrange the standard record page. `pinOverview: false` keeps the desktop full page from pinning the details, which become its first tab; the side preview and a phone are unchanged. `fieldTabs: [{ key, groups }]` draws named field groups as tabs of their own right after the details; the note lists what the parse refuses and says this is not the form-level `FormSchema.fieldTabs`, which lists field names. Print pages and authored `kind: 'full' | 'html' | 'react'` pages read neither key, and an object extension is refused both. The example declares both keys. `relatedLists` stays the related-tab list. `evals/record-page.json` gains one case per key. + The file's token ceiling moves from 990 to 1244: four clauses of the same file (one false, three restating) are deleted first, and the row moves by the measured remainder. +- 47bfc94: docs(skills): three `objectstack-upgrade` evals no longer fail an answer for quoting what it warns against, or for explaining a step in its own words + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-upgrade/evals/protocol-major-upgrade.json`, `assertions` of evals 2, 3 and 4. Each graded a right answer as a fail: + + - Eval 2 (the `conditionalRequired` rename): `must_not_contain` forbade `?? `, which an answer writes when it warns against a `??` fallback by showing one, and `must_contain` demanded the literal `conversionId` from an answer that says in its own words that the chain records which conversion made the edit. Both are dropped. `os migrate meta`, `requiredWhen` and `tsc --noEmit` are still required, so an answer that hand-writes the rename without running the chain still fails. + - Eval 3 (the dropped connector `transform`): `must_not_contain` forbade `transform: { type: 'javascript'`, which an answer writes when it restates the site in its question to the owner. It is dropped. `AWAITING DECISION` and `owner` are still required, so an answer that decides alone still fails. + - Eval 4 (green `validate`, stored rows): `applyConversionsToStoredItem` moves from `must_contain` into a `must_contain_any` group with `at read` and `18.3`, so an answer that explains the stored-row read path without naming the function passes. `applied`, `replayedNothing`, `--stored`, `--yes` and the forbidden `UPDATE sys_metadata` are unchanged. + + Every answer that passed before still passes. The three cases have new case hashes, so `skill-evals --regrade` sets them apart from a round recorded before this change: compare them across rounds only after a re-run. Prompts, expected answers and evals 1 and 5 are unchanged. +- 431f880: docs(skills): objectstack-i18n teaches that a stack may translate the platform's Setup and Account apps + + Clause-②: no + Metadata-protocol: none + + `os validate` accepts an `apps.setup` or `apps.account` key in a stack's translation bundle and the runtime applies it over the served app, but the published skill said only that a key naming nothing the metadata declares is refused. An AI author asked to translate Setup's menu either declined or declared an app of its own named `setup`. Text only: no schema, rule or runtime behaviour changes here. + + `skills/objectstack-i18n/SKILL.md`: + + - The verify line keeps its refusal sentence and scopes it: a key naming nothing the metadata declares is refused, except a platform app's. + - The key map gains one note: `apps.setup` and `apps.account` translate the platform apps a stock runtime serves; `os validate` does not judge the `navigation.{id}` ids under them, because the deployment's plugins supply those items, so the ids are read from the served app. + + The file does not grow. The new text is paid for inside it: the title line is shortened, the locale check no longer repeats "not an English `defaultLocale`" after naming the two values to declare, and three worked key paths that restated their own sentence are dropped (the child-object `inlineTitle` path, the report block path and the book group path). Each rule those paths illustrated still reads in full. + + One eval case is added: a stack that declares no `setup` app translates `apps.setup.label` and `apps.setup.navigation.nav_users.label`, and the answer must write the bundle (the navigation key and the title's `label`) and must not declare an app to carry the key. The existing case about a child grid title and a report block now names the child object, its field and the block in its prompt, since the entry file no longer spells those two paths. +- 38ab473: docs(skills): the `objectstack-ask` skill says a word that names the field a filtered measure aggregates is answered from that field, not asked about + + Clause-②: no + Metadata-protocol: none + + The `objectstack-ask` skill, and the page at `GET /mcp/skill` that is generated from it, now state the rule `list_datasets`' description and the MCP `initialize` selection rule already carry (ADR-0149 D3, the amendment note of 2026-12-01). Step 1: a measure that carries a filter and aggregates a field the word names (the word equals or is inside the field's label or name; the name only where the host reads no field labels) is not offered for that word among `candidates`. A measure with no filter, or over a relationship path, is offered as before, and so is every measure when the word names different fields through different candidates. Step 2 has one new row: for such a word `nextStep.note` names the field, the client does not ask about that measure, answers from the field under the labelled fallback (step 4) and mentions the measure as a narrower declared metric; another measure candidate left for the word is asked about first, and the field then answers only if that question settles nothing. + + The instruction to list each candidate's label, its dataset's label and its description was written twice, in the several-measures row and in the paragraph under the table. It now has one home, the row, which also says "as written, one bullet each". `packages/mcp/src/ask-skill.generated.ts` is regenerated from the skill; no code path changes. +- 1e26342: docs(skills): the objectstack-upgrade skill replays from the project's own floor, shows the 18 → 19 run, and names the steps that run adds + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-upgrade/SKILL.md`: the quickstart and the floor-reading check show the current move. `--from` is still the floor of `manifest.engines.protocol`, never guessed from the installed spec; the worked example is now `'^18'` → `os migrate meta --from 18`, replayed with `os migrate meta --from 18 --to 19 --json` (`applied` `[]`, no `replayedNothing`), where it was `--from 16` and `--to 18`. A fourth quickstart step names what an 18 → 19 run also owes. Each line is safe to run and its comment names the write: `os build`, then `--update-access-matrix` only on "Access matrix drift", with the owner reviewing the matrix diff; and per deployment `os migrate plan` then `os migrate apply --yes`, `os migrate protocol --to 19` then `--apply --yes` before a 19 `os serve`, and `os migrate meta --stored` then `--stored --apply --yes`. The control (`os validate` on the un-upgraded source) is taken in preflight, before the pins move, because the target's CLI only refuses the old range. The acceptance step names the reverse check. The spec-changes harvest is one `cp` from `node_modules/@objectstack/spec/`. + + `references/examples-upgrade.md` gains "The 18 → 19 run, as it ships", and `SKILL.md`'s "Where to go" table names it. It holds the protocol handshake that refuses `'^18'` (`OS_PROTOCOL_INCOMPATIBLE`, from `os validate` and `os build` too after `19.0.0-next.3`), what `--write` writes on `19.0.0-next.3` (nothing in a scaffolded project, each edit listed `not written [helper]`, exit `0`) and after it (the edits that stand alone, `Wrote N of M mechanical change(s)`, exit `1` while an edit or the range is left), the access-matrix gate that `os build` and `os compile` run and `os validate` does not, `os migrate apply --yes` in a non-interactive shell, the `os migrate protocol --to 19` switch a 19 `os serve` waits for on an older database, and the stored pass with the 19 CLI. It also says what that pass never does: a stored permission set holding View All or Modify All and no `viewAllFields` is only listed, under `viewAllFieldsReview`, the pass still exits `0`, and its holders already read no field another set hides; the owner decides each entry, adding `viewAllFields: true` through the metadata API to keep the reads. It links the v19 release page for each step in full. + + Two sentences of that file were no longer true and are corrected. `--write` no longer restores every file whenever its re-run disagrees: after `19.0.0-next.3` it keeps the edits that stand alone, and restores every file only for a disagreement it cannot tie to one edit. And the build does ship a migration-chain-only conversion: protocol 19's `permission-view-all-fields-beside-record-bypass`, where View All with no `viewAllFields` still parses and no longer reads every field. The R2 search uses `--from 18`, the branch is `upgrade/protocol-19`, and the report template's range is ` → `. "Arriving several majors late" keeps `--from 16`: its subject is the multi-major replay, and 16 is the chain's support floor. + + `skills/objectstack-data/rules/indexing.md`: the note on the retired `type` and `partial` says `os migrate meta --from N`, N the floor of `engines.protocol`, where it said `--from 16`. + + The eval cases move with the text. Case 1 is a `'^18'` project moving to 19, and also expects `--update-access-matrix`, `--stored` and `os migrate protocol --to 19`; case 4 is an 18 → 19 bump whose expected answer names the protocol-19 default flip, and it also expects `viewAllFields`. + + No token ceiling moves: each file's additions are paid by deleting restatement in the same file. What left, and what answers it now: + + - `SKILL.md`, trap 7 (prove the parse gate once, with a plain data literal, no `define*` call): `references/examples-upgrade.md` 3.5. The quickstart's acceptance step and the "Where to go" row both tell the reader to run that reverse check. Trap 2 no longer repeats the replay command and its criterion: the quickstart's step 3 holds both. First check 4 no longer names the lock entry's `sourceType: github`: the reference's "Re-install the skills" section says which entries the sync skips. + - `references/examples-upgrade.md`, 2.4: the "One target", "Two or more real targets" and "Observable without a test failing" bullets, "How to ask" and "While you wait, do not stall the upgrade" restated `SKILL.md`'s "Decide alone, or ask", which keeps each rule. + - 2.5, "the fix is never a tolerant read of the old one": `SKILL.md`'s boundary. 2.6, why the AI conventions file matters most: trap 6. 2.1, "measure each number again in the report": first check 3. + - Failure modes, the row "`validate` green, but a feature silently stopped working": trap 5 holds the cause and the search; the row's "exercise the path for real" is cut. + - 3.6, "valid only on the release you are leaving": trap 3 says a release that dropped the conversions answers 0 whatever the row holds. + - Shortened with no rule lost: the data-migration paragraph, 2.1's opening and two of its table cells, 2.3's two asides, 2.5's opening, 3.1, 3.4's opening, 3.6's opening, the list of `.upgrade/` file names, the note on `objectstack-pm-dispatch` in the skills re-install, and the sentence that listed `os migrate meta --help`. +- ce0d0da: docs(skills): the `objectstack-mcp-build` skill says a save repaired under a new name leaves the old-name draft, and the hand-over reports drafts as `list_drafts` judges them + + Clause-②: no + Metadata-protocol: none + + A refusal repaired by giving the item a new `name` (a namespace-prefix refusal, for example) saves a second draft and leaves the first one where it was. That old-name draft is still refused, and it blocks the publish of its whole package. The skill's step 4 now says so in its refusals row: the agent discards the old draft with `delete_metadata_draft`, or tells the user plainly that it remains. Step 5 now has the agent report each draft it saved as the closing `list_drafts` judges it, not as a save's reply did, and call a draft publishable, or say it passed a check, only where that verdict says so. + + Four restatements are cut from the same two steps: "the whole item" in the refusals row (step 2 already says it), the gloss of `list_drafts`' reply and of `delete_metadata_draft`'s scope (each tool's own description says it), the `verdict: null` row's "do not call it publishable" (the new step 5 rule covers it), and "Console routes where a person reviews and publishes" (the skill's opening paragraph says it). One eval case is added for the rename repair. No code path changes. +- 4203db7: docs(skills): the objectstack-data skill names the platform's exchange-rate table and teaches `unitConfig` + + Clause-②: no + Metadata-protocol: none + + The data skill never said that the platform ships the rate table and the unit vocabulary, so an app built from it alone declared its own exchange-rate object with a conversion hook, and a free-text or picklist unit field. The engine's conversion at write and its unit-code check then never ran for that app. Both facts were only in `objectstack-project`'s platform catalog, which a reader of the data skill does not load. + + `skills/objectstack-data/rules/field-types.md`, § Currency: the rates `currencyConfig.homeAmount` converts with are the platform's `sys_exchange_rate`, which an administrator keeps in Setup. An app declares no rate object and no conversion hook. A foreign amount with no rate on or before its `rateDate` is refused with `ERR_EXCHANGE_RATE_MISSING`. + + The same file gains § Unit of measure, with one type-checked example of the three shapes of `unitConfig`: `{ unitMode: 'code' }` on a `text` field that holds a unit code with no quantity pointing at it, and on a `number` field `{ unitMode: 'fixed', unit: 'KGM' }` or `{ unitMode: 'record', unitField: 'unit_code' }`, where `unit_code` is a `text` field of the same object with no `unitConfig` or `valueDomain` of its own. `unitMode` has no default. A record stores the unit as a code in exact uppercase: a standard UN/ECE Recommendation 20 code (`H87` for a piece, `KGM`, `XBX` for a box; the table is `STANDARD_UNITS` in `@objectstack/spec/data`), or one the organization adds to the platform's `sys_unit` in Setup, which a `fixed` unit cannot name. The write refuses any other value with `ERR_UNIT_CODE_UNKNOWN` (`pcs`, `kg`, and `C62` or `EA` for a piece), and a quantity beside a blank code with `ERR_UNIT_CODE_REQUIRED`. `unitDimension` limits a `record` or `code` field to the units of one dimension. Free text stored before the declaration is converted with `os migrate unit-codes`. The `text` and `number` rows of the type tables point at the section. + + `skills/objectstack-data/SKILL.md`: in the "Where to go" table, the Field Types row now names exchange rates (`sys_exchange_rate`) and units of measure (`unitConfig`). The sentence above the table is gone: the table's "Open first" column header says the same. + + Two token ceilings move, each after restating text in the same file was deleted first, by the measured remainder: `rules/field-types.md` from 4200 to 4566 (two parentheticals that repeated the `secret` row and the entry's first trap are cut), and `SKILL.md` from 2224 to 2233 (the sentence above the routing table is cut). The entry file is 8958 bytes. +- edff475: docs(skills): the objectstack-automation entry carries a save notice's translation key and names the gate that judges a grant made from a flow + + Clause-②: no + Metadata-protocol: none + + Two facts the entry file pointed at and did not carry. Text only: no schema, rule or runtime behaviour changes here. + + `skills/objectstack-automation/SKILL.md`: + + - The `save_notice` row of the node table says where its message is translated: under `flows.{flow}.notices.{node_id}.message`, read in the locale of the person who saved. Before, the key stood only in objectstack-data `rules/lifecycle.md` § Save Notice, so a builder who loaded the automation skill alone shipped the notice in one language. + - The identity-elevation bullet of § Failure routing & `runAs` says who decides a grant made from a `runAs: 'user'` flow: the delegated-administration gate judges it as the user the run acts for (past an approval, the decider) and records that user as the grant's `granted_by`, or refuses it. A grant refused there is the rule at work, not a defect. The bullet now limits that route to a position or a permission set, the two the gate judges for a delegate and stamps with `granted_by`. It used to read as the route for all four identity objects; an invitation or a membership changes through the organization endpoints, as `references/examples-flows.md` says. + + The file grows by 107 bytes (10703 to 10810). Part of the new text is paid for inside the file by cutting what the entry said twice: the pointer under `### Flow Node Types` (the routing table's first row names control-flow nodes and the same file), the `notify` section's "TypeScript: the same literal" aside (§ Flows says a JSON block is the `defineFlow` literal), and "create/update" beside "record create/update trigger" in the `save_notice` row, which now says "this save". The routing table is unchanged; its "Routing a new record to a queue or a person" row is still the route to § Assignment rules of `references/examples-flows.md`. + + One link left the entry with the cut pointer: `references/examples-flows.md#flow-node-types`. The heading is still in that file, which the routing table links whole. +- 2f9a68c: docs(skills): ten eval cases in four skills no longer fail an answer for naming what it warns against, for writing a legitimate key, or for making a point in its own words + + Clause-②: no + Metadata-protocol: none + + A `must_not_contain` entry is matched as a literal substring, so a bare literal also fails a correct answer that names it as the thing to avoid, and a `must_contain` entry accepts one spelling only. Ten cases graded a right answer as a fail for one of those reasons. Their `assertions` change; no prompt, reference answer or skill text does. + + `skills/objectstack-automation/evals/flows-triggers-approvals.json`: + + - Eval 5 (a failed HTTP call routed to a handler): `label: 'error'` is dropped. The skill itself says "A `label: 'error'` alone does nothing", and a `type: 'fault'` edge may carry that label too, so no literal separates the wrong edge from the right one. `type: 'fault'` is still required, so an answer that routes by the label alone still fails. `query_record` becomes the node spelling, `type: 'query_record'` or its JSON form. + - Eval 7 (who may start an approval): `current_user.positions` becomes the check a wrong answer writes: `in current_user.positions`, or the list called with `.exists(`, `.contains(` or `.includes(`. `onEmptyApprovers: 'auto_approve'` becomes the written key: the literal followed by a comma, a closing brace or the end of the line. An answer that says either is refused still passes. + - Eval 11 (a permission-set grant asked to run as system): `runAs: 'system'` becomes the written key in the same spellings, and `sudo` becomes `sudo(` or `sudo:`. An answer that explains why the grant cannot run as system still passes; a flow written with `runAs: 'system',`, or with the key last on its own line, still fails. + - Eval 15 (an option label in each recipient's language): `once per run` moves from `must_contain` into a `must_contain_any` group with `evaluated once`, `fan-out` and `fan out`. + + `skills/objectstack-automation/evals/integrations-declared.json`, eval 1 (DocuSign): `/connection` moves from `must_contain` into a `must_contain_any` group with `manage_connector_connections`, `once per organization` and `not connected`, so an answer that describes the administrator's connect step without the route passes. + + `skills/objectstack-data/evals/objects-fields-relationships.json`, eval 13 (a ticket's 负责人): `ownership: 'user'` becomes the written key in the spellings above. The skill's own owner row names `ownership: 'user'` as the default, and an answer that repeats it passes; an object that declares the key still fails, as the reference answer leaves it unset. + + `skills/objectstack-data/evals/hooks-security-seeds-datasources.json`, eval 16 (two sharing postures): `permissions:` becomes `permissions: {`, the object-level block, so the stack key `defineStack({ permissions: [...] })` passes. `sharingModel: 'public_read_write'` becomes the written key. + + `skills/objectstack-formula/evals/cel-predicates-formulas.json`: + + - Eval 4 (a seed date 45 days ahead): `new Date(` becomes `: new Date(` and `= new Date(`, a value or a variable assigned a JavaScript date. + - Eval 7 (a predicate on a select): `label(` becomes a `label()` result compared in a predicate: `label(record.kind)` or `label(record.status)` followed by `==` or `!=`. + + `skills/objectstack-platform/evals/config-plugins-ops.json`, eval 5 (migrating changed field types): `os rollback` and `os data seed` become the command as a script writes it: at the start of a line, indented by two spaces or more, after a `$ ` prompt, after `npx ` or `pnpm `, or after `&& `. An answer that says `os rollback` was removed still passes. + + Every answer that passed before still passes. The ten cases have new case hashes, so `skill-evals --regrade` sets them apart from a round recorded before this change: compare them across rounds only after a re-run. +- 356b874: docs(skills): objectstack-i18n eval 12 no longer fails an answer for naming the nested-object shape it warns against + + Clause-②: no + Metadata-protocol: none + + A `must_not_contain` entry is matched as a literal substring, so a bare literal also fails a correct answer that names it as the thing to avoid. `skills/objectstack-i18n/evals/bundles-locales-coverage.json`, eval 12 (table column headers on an action's result dialog) forbade the bare `error: {`. Its `assertions` change; no prompt, reference answer or skill text does. + + `error: {` becomes the written key, the literal where an object holds it: + + - after a previous entry: `, error: {` or `,error: {`; + - first in its object: `{ error: {` or `{error: {`; + - at the start of a line: flush left, or indented by a tab, by one space, or by two spaces or more. + + An answer that names the shape on its own still passes: `error: { message: … }` in backticks, in a sentence or in a list item. The reference answer writes only `'error.message'` and passes. + + An answer that nests `error: { message: … }` in the `rows` columns still fails in each of those positions. No literal separates such an answer from one that shows the same object as the thing not to write, in a "don't" code sample or inline with its braces, nor from one that shows the data row the path reads (`{ email: …, error: { message: … } }`): those fail, as they did before. + + Not graded, before or after: a nested key written in quotes (`"error": {` or `'error': {`) or with no space before the brace (`error:{`). + + Every entry contains the old literal, so every answer that passed before still passes. The case has a new case hash, so `skill-evals --regrade` sets it apart from a round recorded before this change: compare it across rounds only after a re-run. +- 07b2bb2: docs(skills): the objectstack-data security rule says where Modify All lifts the delete floor, and that hiding a field keeps the object read + + Clause-②: no + Metadata-protocol: none + + `skills/objectstack-data/rules/security.md`, two bullets. No platform behaviour changes. + + - **Deletes.** `allowDelete` removes only rows the caller created. `writeScope: 'org'` or `modifyAllRecords: true` widens that only on a `private` or `public_read` object with `ownership: 'user'`. On a `public_read_write` object neither does: a role holding Modify All is still refused 403 on rows others created, and an authored `delete` row policy in its set is what admits them (it does on any object). Each `cascade` child is authorized as the caller too: it needs `allowDelete` on the child and passes the child's own row rule (a `public_read_write` child needs its own `delete` policy; a `controlled_by_parent` child needs edit access to the master row). The bullet carries one example for each shape, and the gloss on `viewAllRecords` / `modifyAllRecords` no longer reads "super-user": it names this exception. + - **Hiding one field.** A role that must not read one field keeps `allowRead` on the object and takes a `fields` row (`'department.budget': { readable: false }`). Leaving the object out of the set hides every record of it from the role. +- ff491c4: fix(lint): the `flow-decision-unconditional-branch` advice and the automation skill say when an unconditional out-edge beside guarded ones runs + + Clause-②: no + Metadata-protocol: none + + Words only: the rule's id, verdict (a warning) and trigger are unchanged. + + Both texts said an out-edge with no `condition` runs "in parallel" with the guarded branch beside it. The engine takes a node's out-edges in a fixed order, each one finished before the next: its conditioned edges in the order they are declared (a `decision` takes only the first whose condition holds, unless it declares `mode: 'inclusive'`), then its `isDefault` edge when no condition held, then its unconditional edges, and only those run together. So an unconditional sibling runs after the guarded branch, on every pass; and when the guarded branch parks the run (an `approval`, a `screen`, a `wait`), the run resumes from the step it parked at and the unconditional edge is never taken, a shape the flow schema refuses at save (`flow-sequential-branch-durable-pause-refused`). + + - `flow-decision-unconditional-branch`, the message for a decision with guarded and unconditional out-edges: "traversed on EVERY pass, in parallel with whichever guarded branch matched" becomes "traversed on EVERY pass, after whichever guarded branch matched has run", followed by one sentence on the branch that parks the run. The hint is unchanged, and so is the message for a decision that gates no out-edge at all (there every out-edge is unconditional, and they do run together). + - `skills/objectstack-automation/references/state-machines-and-approvals.md`, the approvals example: "the engine evaluates each out-edge's `condition` and follows every match — and an out-edge with NO condition ALWAYS runs (all such edges execute in PARALLEL)" becomes "a `decision` takes the FIRST out-edge whose `condition` holds. One with none runs AFTER it, every pass, or never if that branch parks the run (refused at save)". The old sentence was also wrong about "every match": a `decision` is exclusive unless it declares `mode: 'inclusive'`. The file's size is unchanged (23708 bytes before and after). + - The plain-language text of `flow-decision-unconditional-branch` for that same shape, in all eleven locales it is written in (en, zh-Hans, zh-Hant, es, ar, fr, pt-BR, ru, de, ja, ko): "runs every time, alongside whichever path matched" becomes "runs every time, after whichever path matched", and each locale's "together with" or "at the same time as" wording becomes its "after". + - `flow-multiple-default-edges`, message and docblock: several `isDefault` edges were said to be "traversed together … a parallel fan-out". The engine takes them one after another in declaration order, and the message now says so. The rule's id, verdict (a warning), trigger and hint are unchanged. + - `skills/objectstack-automation/evals/flows-triggers-approvals.json`, the expected answer of the onboarding-wizard case: "an unguarded out-edge always runs, in parallel" becomes "an unguarded out-edge is no otherwise-branch: it runs after the guarded one, or never once that one parks at its `screen`, a shape the flow schema refuses". + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/skills/package.json b/packages/skills/package.json index edce8d4f242..81baf25f620 100644 --- a/packages/skills/package.json +++ b/packages/skills/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/skills", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "The published ObjectStack skills catalog \u2014 the repository's skills/** tree, shipped at the version of the @objectstack/* packages it teaches.", "license": "Apache-2.0", "homepage": "https://github.com/objectstack-ai/objectstack/tree/main/packages/skills", diff --git a/packages/spec/CHANGELOG.md b/packages/spec/CHANGELOG.md index a25dae2e50d..0cb1bb5111e 100644 --- a/packages/spec/CHANGELOG.md +++ b/packages/spec/CHANGELOG.md @@ -1,5 +1,481 @@ # @objectstack/spec +## 19.0.0-next.4 + +### Minor Changes + +- be2df75: fix(formula)!: a flow condition's date arithmetic that mixes a bare date field with `record.FIELD` / `previous.FIELD`, and a field read by index (`record['FIELD']`), now take the verdicts their consistent spellings already took + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — `skills/objectstack-formula/SKILL.md` already states "The build refuses date arithmetic (`end - start`, `date + n`)" and that a `date` / `datetime` field is refused in a timestamp-only call, naming no spelling those rules are limited to, so they now hold for the mixed and index spellings as written; no skill teaches the index spelling + + + + **BREAKING** accept-set narrowing. In a flow condition (a start, edge or `decision` branch condition) the run binds the record's fields under their bare names and also as `record`, with the row before the write as `previous`. A `date` or `datetime` field reaches the run as its text, so subtracting one from another faults on every run and fails the flow. Two spellings of that mistake passed `os validate` and the publish door with no finding: + + - **Mixed operands.** `due_date - record.borrow_date > duration('24h')`, `previous.due_date - due_date > duration('24h')`. The all-bare (`due_date - borrow_date …`) and all-root (`record.due_date - record.borrow_date …`) spellings were refused already. The check typed the bare names and the root reads in two separate passes, each leaving the other spelling untyped; they are now typed against the object's field table in one pass. + - **Index reads.** `timestamp(record['borrow_date']) < now()`, `record['due_date'] - record['borrow_date'] > duration('24h')`, `isoDate(record['picked_up_at']) == '2026-11-16'`, `record['due_date'] + 1 > 5`. The record-root date-text pass only looked at the member spelling; it now has a gate of its own that admits an index read of `record` or `previous`, so the index read takes the date-text verdicts the member read takes, named by its member spelling, and those only (`record['due_date'] + 1 > 5` takes `date-text-arithmetic`, where its member spelling takes `date-arithmetic`; both prescribe `daysBetween` / `addDays`). The text and boolean mismatch keeps its member-only gate: through an index read, `record['title'] > 5` and an ordering against a text field (`record['due_date'] > record['title']`) are judged exactly as before, and no refusal an expression had before is stood down to a warning. + + - **The verdict.** The code, outcome arm and words of the consistent spelling: `date-text-arithmetic-run-fails` on a record-triggered flow or a sweep of the typed object, `-run-may-fail` elsewhere. A mixed verdict that rests on a bare name takes the bare name's `-run-may-fail` arm where a node can rebind it. + - **Where.** `os validate` / `os build` (`validateStackExpressions`) report an `error`, and the flow publish door refuses the publish with `INVALID_METADATA` (422). `registerFlow` logs it as an advisory and still registers the flow, so a stored flow keeps its run-time behaviour until it is next published. + - **Not refused.** An operand the field table does not type keeps passing: a flow variable or node output holding an instant (`cutoff - record.due_date > duration('24h')`, `get_policy.effective_at - record.due_date > duration('24h')`), a bare name a flow variable shadows, a concatenation of the date text (`prefix + record.due_date`); through an index read, the text or boolean mismatch, an ordering against a text field and equality. The run-time evaluator is unchanged. + + ## FROM → TO + + | FROM | TO | + |:---|:---| + | `due_date - record.borrow_date > duration('24h')` | `daysBetween(record.borrow_date, due_date) > 1` | + | `timestamp(record['borrow_date']) < now()` | `date(record['borrow_date']) < now()` | + | `record['due_date'] - record['borrow_date'] > duration('24h')` | `daysBetween(record['borrow_date'], record['due_date']) > 1` | + + One-line fix: in a flow condition, never subtract one date field from another or hand one to a timestamp-only call, whichever way it is spelled; use `daysBetween(a, b)` for a span, `addDays(d, n)` to shift a date and `date(…)` to parse it. +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(spec): a run's step log names the child runs a step started (`ExecutionStepLogSchema.childRunIds`, `childRunIdsTruncated`, ADR-0162 Execution item 8) + + Clause-②: yes (widening) + Metadata-protocol: added + Skills-docs: none — `skills/` names none of `ExecutionStepLog`, `childRunIds`, `childRunIdsTruncated` or `runStartedFor` (git grep, 0 hits): the step log is a runtime record no skill teaches an author to write + + Widened: `ExecutionStepLogSchema` gains two optional keys. `childRunIds: string[]`: the run ids of the child runs the step started, the one run of a `subflow` and, for a `map`, the item runs that execution of the step started, at most 200, the first ones started. Absent for a step that started none. `childRunIdsTruncated: true`: the step started more child runs than `childRunIds` names, either more than 200, or the run's history row shed the step's links to fit its size limit, leaving `childRunIds` absent. The engine writes both (`@objectstack/service-automation`); a reader of `getRun` can walk a run's tree from its root with them. Nothing an author writes in a flow changes. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(spec): an object declares its closed states (`closedStates`, ADR-0162 D1) + + Clause-②: yes (widening: one new optional authorable key, `ObjectSchema.closedStates`) + Metadata-protocol: added + + An object may now declare the states in which its records are closed: a map from a stored, single-value `select` field of the object to the list of that field's option values that close a record, e.g. `closedStates: { status: ['paid', 'void'], approval_status: ['approved'] }`. A record is closed when any listed field holds one of its listed values. In a closed state the record and its direct `master_detail` lines are closed to change for every caller that is not a system context. + + - **Refused where the object is authored**, at parse and at the metadata save and publish door, one located issue each: a key that names no field of the object; a field that is not a single-value `select` (another type, `radio` included, or `multiple: true`); a select whose options are not declared inline on it (a `picklist`-backed select); an empty list; a value that is not one of the field's options; a value listed twice. So is the edit that would leave such a declaration behind: removing or retyping a field, or removing an option, that a declaration still names. Take the entry out of `closedStates` first. + - **Optional**: an object without the key behaves exactly as before. A line object declares nothing to be closed with its master, and may declare its own `closedStates`. The key has no tie to a `state_machine` rule in either direction. + - Liveness row `object.closedStates`, the Studio object form's Advanced section offers it as a JSON row, and the reference docs, authorable-surface record and state counts are regenerated. + - The error-code ledger registers `RECORD_LOCKED` for `@objectstack/objectql`, the engine's closed-state refusal, beside the approval lock that already emits it. +- 7b68db9: feat(data): one record lock read, for closed states and approvals + + Clause-②: yes (widening) + Metadata-protocol: added + + An app can now ask whether a record is locked, and by which lock, in one read that covers both locks a record can be under: a declared closed state (an object's `closedStates`, or a `master_detail` line of a closed record) and an approval. Before this, a client could only ask the approvals read, which knows nothing of closed states, so a closed invoice looked editable until the save was refused. + + - `GET /api/v1/data/{object}/{id}/lock` answers one record: `{ locked, lockSource?, lockReason? }`. `lockReason` is `closed_state` or `approval`, `lockSource` is `record` or `master`, and both are present exactly when `locked` is true. A record the caller cannot read, or that does not exist, answers 404. + - `POST /api/v1/data/{object}/locks` answers a page of up to 200 records, body `{ "recordIds": [...] }`; a record the caller cannot read answers `locked: null`. A longer list is refused whole with 400. + - `client.data.getRecordLock(object, id)` and `client.data.getRecordLocks(object, recordIds)` call them. The shapes are `RecordLockSchema`, `GetRecordLocksRequestSchema` and `GetRecordLocksResponseSchema` in `@objectstack/spec/api`. + + Every user who can read the record is told, even when field permissions hide the state field. The answer never names the field, the value, the approval request or its participants. The read works without the approvals plugin; then only closed states lock. + + The upload-link door now asks this read before it issues a file-field link: a closed record is refused with "the record is closed, so no file can be added to it", a record an approval holds with the existing approval sentence. + + Nothing existing changes: the approvals read (`/api/v1/approvals/records/...`), its SDK methods and service members answer exactly as before. +- 9da8804: feat(spec)!: a form no longer declares `subforms`; no form surface draws a form's own child tables, which the object's field groups place + + Clause-②: yes (narrowing) + + Metadata-protocol: narrowed + + + + **BREAKING** accept-set narrowing on the form surface (`@objectstack/spec`), ADR-0049 enforce-or-remove. + + The readers of a form's `subforms` were the console's New and Edit record surfaces, which copied it from the object's internal form view. Through 18.6.0 those surfaces drew the child tables a form listed. From 19.0.0 they load no form view (the `internal-record-forms-not-loaded` entry): a record's child tables come from the object alone, as its field groups place them. The page a form opened by name or by a public link gets never drew a child table, and the public submit route writes one record. So on 19 a form saved with `subforms` is accepted, served and drawn exactly as one without it. + + - **FROM → TO.** `subforms: [{ childObject, … }]` on a form (a `form` item; a stored view's `form` and `formViews.`; a form view item's `config`) → nothing on the form. A child table that should be entered with the record is placed on the parent object: a field group whose `relatedList` names the child, for example `{ key: 'lines', label: 'Lines', relatedList: 'order_line' }` in `fieldGroups`, or `'order_line.order'` when the child points at the parent more than once. Every New and Edit form of the object then draws the table at that group and saves the record and its rows together. + - **What an entry set beside `childObject`.** On the child's relationship field: `title` is `inlineTitle`, `columns` is `inlineColumns`, `amountField` is `inlineAmountField`. `totalField` has no twin there: a parent total is a `summary` field on the parent. `addLabel`, `minRows` and `maxRows` have none. + - **The one-line fix.** Delete `subforms` from the form. `os migrate meta --from 18` lists the edits for existing sources, and `--write` applies them. A stored `sys_metadata` row is converted when it is read (the `form-view-subforms-removed` conversion), so a form saved with the key keeps loading, and deleting it changes nothing a reader sees on 19. + - **Coming from 18.x.** A New or Edit form whose form view listed `subforms` drew those child tables through 18.6.0. On 19 it draws the child tables the object's field groups place. A child the form listed and no field group places is entered from the parent record's related list, not inside the parent's form, until a field group names it. The conversion cannot add that group: it would change every New and Edit form of the object, which is a decision about the object. + - **What the parse says.** "`form.subforms` was removed in @objectstack/spec 19.0.0 (ADR-0049) — no renderer reads it: …", naming the field group's `relatedList`, at every form door (a `form` item, a stored view's `form` and `formViews.*`, a form view item record, a flattened form overlay) and at `defineStack` as `STACK_SCHEMA_INVALID` / 422. TypeScript rejects the key at the authoring site. + - **Unchanged.** The React `ObjectForm` block still takes `subforms`: the react-tier contract now declares it on the block itself, with the entry's shape written out. The `object-master-detail-form` page block keeps its `details`. A field's `inlineColumns` and the related-list keys are not touched. + + The retirement kit: the `retiredKey()` tombstone on `FormViewSchema` (the `form` item takes it by reference); the D2 conversion `form-view-subforms-removed` (protocol 19, retired from the load path, reaching `form`, `formViews.*`, form view items, flattened form overlays and `forms[]`, ordered after the move of a view's forms to `forms[]`); `RETIRED_KEYS_BY_MAJOR[19]` rows `ui/FormView:subforms` and `ui/Form:subforms`; the D3 entry `ui-form-view-subforms-retired`; the liveness row `form.json` `subforms`, now `dead`. + + Also corrected: the protocol-19 D3 entry `master-detail-related-list-tab-by-default` said a form view that declares its own subforms still inlines what it declares. No form does, and the sentence is gone. The `split` form type's parse prescription pointed at the same key for a child grid beside the parent, and now names the field group's `relatedList`. `defineStack`'s inline-column check no longer walks a form's `subforms`, which the parse refuses first. + + `@objectstack/skills`: `skills/objectstack-ui/references/react-blocks.md` is regenerated. ``'s `subforms` is listed as a binding prop from the block's overlay, with its entry shape, no longer as a data prop from the form schema. +- 44d0f88: fix(spec)!: a flow whose node fans out to two or more branches that each reach a step that parks the run is refused at authoring + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + **BREAKING** for a flow author: FROM a flow in which one node's out-edges with no `condition` (not `isDefault`, not `fault`) lead two or more branches, along any path, to an `approval`, `approval_revise`, `screen` or `wait` node registering and running, TO that flow refused by the flow schema, at every door (`objectstack validate`, the metadata save, draft or active, and publish with `422 INVALID_METADATA`, and `registerFlow`), with one message naming the fan-out node and each pausing branch. The one-line fix: chain the pausing steps one after another on a single branch; where several people must approve at once, use one `approval` step with several approver groups and `behavior: 'unanimous'`; where only one branch should run, put a `decision` in front of them with its fallback edge marked `isDefault: true`. + + Why. The engine runs a node's unconditional out-edges together and a run parks at one place. Two concurrent pauses both did their on-entry work and only the first was kept: a start node fanning out to two approval steps opened two `pending` requests in one run, only the first held the run's suspension, and deciding the second answered `RESUME_TARGET_LOST`, so the approver decided and the run never moved. Beside a `wait` or a `screen`, the approval's decision resumed the run from the other node. This is the limit already refused by type inside a `loop` / `parallel` / `try_catch` body, now refused on the top-level graph; the engine is not made to serialise the branches. + + What is refused: two branches that each reach a pausing node, through any path, `condition`s, `decision`s and back-edges included (the parse cannot tell which conditions can hold together), and two branches merging into one pausing node, which the engine runs once per arriving branch. On an `approval` / `approval_revise` node, and on a `decision` that declares `config.conditions`, only out-edges sharing one `label` run together, so two edges labelled `approve` to two steps are refused and `approve` / `reject` edges to two steps are not. A `decision` that declares `config.conditions` but no fallback edge (none labelled `default`, none `isDefault: true`) is refused when two of its branches reach a pausing node: a run matching no condition picks the `default` branch, no edge claims it, and the engine runs every out-edge together. The fix there: mark the fallback edge `isDefault: true` (or label it `default`); marking one existing branch edge `isDefault: true` is enough. A decision one of whose conditions is the literal `true` (`expression: 'true'`) always matches, so it is exhaustive and is not refused; any other always-true expression, or conditions that together cover every record, is refused all the same, because the parse does not check coverage. + + Still accepted: one pausing branch beside branches that never pause, an approval after a `parallel` region, an approval's `approve` / `reject` edges each to its own step, and the branches of a `decision` that has a fallback edge, each to its own step. Conditioned out-edges of one node run one after another, so they never pause together; a branch among them that parks before another is refused by its sibling rule, `flow-sequential-branch-durable-pause-refused`. Not judged: a `subflow` or `map` on a concurrent branch (whether it pauses is decided by the child flow it names) and a pausing node type a plugin registers. + + A stored flow carrying the shape no longer registers until it is rewritten. No conversion rewrites it (which shape the author meant is not recorded); the ADR-0087 semantic entry `flow-concurrent-branch-durable-pause-refused` carries the rewrite to the upgrade guide. + + +- 1095535: fix(spec)!: a flow whose node takes a branch that parks the run before another out-edge is refused at authoring + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + + **BREAKING** for a flow author: FROM a flow registering and running in which one node takes an out-edge whose branch reaches, along any path, an `approval`, `approval_revise`, `screen` or `wait` node before another out-edge of the same traversal, TO that flow refused by the flow schema, at every door (`objectstack validate`, the metadata save, draft or active, and publish with `422 INVALID_METADATA`, and `registerFlow`), with one message naming the node, the edge whose branch parks the run, and the edges it leaves untaken. The one-line fix: make the branch that parks the last one the node takes (declare its edge after its conditioned siblings, with no unconditional sibling beside it), or chain the steps onto one branch; where only one branch should run, route them through a `decision` (exclusive by default), or delete `mode: 'inclusive'` from the `decision` that carries it; on a `decision` that already takes only the first true edge, mark the unconditional otherwise-branch `isDefault: true` and keep one `isDefault` edge per node. + + Why. The engine takes a node's out-edges in a fixed order, each awaited before the next: its conditioned edges in declaration order (every one whose condition holds, except on a `decision` without `mode: 'inclusive'`, which takes only the first), then its `isDefault` edges when no condition held, then its unconditional edges together. A run parks at one place, and on resume it continues from the node that parked, never back at the node it was traversing. So when an earlier branch parks, the later edges are never taken: a node with two conditioned out-edges, both true, to two approval steps ran the first, parked, and after its decision completed the run with the second step never opened and no error anywhere. No approval request is orphaned; a branch whose condition holds is silently dropped. + + What is refused, each measured on the real engine before the rule: two conditioned edges, the earlier one reaching a pausing node (the later one pausing or not), on any node but an exclusive `decision`, an inclusive `decision` included; a conditioned or `isDefault` edge reaching a pausing node beside an unconditional sibling, whichever is declared first, on any node, an exclusive `decision` included; an `isDefault` edge reaching a pausing node before a later `isDefault` edge of the same node; and, on a `decision` that declares `config.conditions`, the run matching none of them: with no edge labelled `default` every `isDefault` edge is claimed whatever its label and taken in turn, and with no claimant at all every out-edge is taken in the order above. Conditions are judged as if they may all hold, as the fan-out rule judges them, because the parse cannot tell which conditions can hold together: two conditioned edges whose conditions exclude each other are refused too, and the prescription names the `decision` that makes the choice explicit. + + Still accepted: the last conditioned branch reaching a pausing node (the earlier ones have run), an exclusive `decision`'s conditioned branches, an `isDefault` edge beside conditioned ones (it runs only when none held), a `fault` edge, and an approval's `approve` / `reject` edges, judged per label. Not judged: a `subflow` or `map` whose child pauses (whether it pauses is decided by the child flow it names; it drops the later edges at run time all the same) and a pausing node type a plugin registers. + + A stored flow carrying the shape no longer registers until it is rewritten. No conversion rewrites it (which shape the author meant is not recorded); the ADR-0087 semantic entry `flow-sequential-branch-durable-pause-refused` carries the rewrite to the upgrade guide. + + +- 4374517: fix(formula)!: a date-text fault is no longer hidden behind a type-mismatch warning, a text or boolean field read by index (`record['FIELD']`) takes the type-mismatch verdict, and a macro variable ordered against a text literal is no longer refused + + Clause-②: no (narrowing) + Metadata-protocol: narrowed + Skills-docs: none — `skills/objectstack-formula/SKILL.md` rule 5 already states "The build refuses date arithmetic (`end - start`, `date + n`)" and refuses a `date` / `datetime` field in a timestamp-only call, with no exception for a source that also carries a type mismatch; no skill teaches the index spelling, the type-mismatch warning, or ordering a macro variable over date fields + + + + **BREAKING** accept-set narrowing. A flow condition that faults fails the run. Two shapes that published and then failed every run are refused: + + - **A date-text fault behind a type-mismatch warning.** The authoring check reported one finding per source and asked the text / boolean type mismatch first; the date-text check was asked only when that answered nothing. Where the mismatch is a warning, `due_date - borrow_date > duration('1h') && record.title > 5` and `record.active > 5 && isoDate(picked_up_at) == 'x'` published with the warning alone. The more severe verdict now wins: the date-text error is reported instead of the warning, also when the mismatch comes first in the source. The mismatch is a warning, so the change reaches: a flow condition on a flow that is not record-triggered (`date-text-arithmetic-run-may-fail`, `date-text-call-run-may-fail`); a flow condition whose bare name a node can rebind (`bareNamesUnproven`: `date-text-arithmetic-run-fails` / `date-text-call-run-fails` over a `record.FIELD` read, the `-run-may-fail` codes over a bare one); and every record-scoped site that declares no fault outcome (`date-text-arithmetic`, `date-text-call`): a formula field `expression`, a field `visibleWhen` / `settledWhen` / `uiReadonlyWhen`, a field `conditionalFormatting[].condition`, a field group `visibleWhen`, an action `visible` / `disabled` / `pressed`, a sharing rule `condition`, and the object `uiReadonlyWhen`. Where the mismatch is an error already (a record-triggered flow, a sweep of the typed object, a site with a declared fault outcome) it keeps its code. + - **A type mismatch through an index read.** `record['title'] > 5`, `record['active'] + 1 > 3`, `previous['title'] > 5`, `record['title'] > record['active']` passed while their member spellings were judged: a text or boolean field read by index under an arithmetic or ordering operator the run has no overload for (against a number or a boolean), which faults on every row. An index read of `record` / `previous` now takes the text / boolean type-mismatch verdict its member spelling takes (`type-mismatch-run-fails`, `-sweep-run-fails`, or the `-run-may-fail` warning), named as its member spelling is named: by the member spelling, also where a member read sits beside it (`record['title'] > 5 && record.status == 'open'` names `record.title` and takes `type-mismatch-run-fails` under `bareNamesUnproven`, as `record.title > 5 && record.status == 'open'` does; before, it took the warning, and `record['title'] > 5 && record.notes == 'n'` named `record.notes`). Stated limit, carried by #39105: the name is the first field of the faulting type in the field table that the source reads, in either spelling, which need not be the operand (`previous.notes > 5 && record['title'] == 'x'` names `record.title`; it named `previous.notes`). The date-text verdicts an index read took before keep their codes. An ordering of a date read against a text field, which the run answers, with either side read by index keeps the verdict it had: unjudged where no member read is in the source (`record['due_date'] > record['title']`), otherwise the mismatch kept as before, named only by a member read, so under `bareNamesUnproven` it stays the `type-mismatch-run-may-fail` warning (`record.due_date > record['title']`, `record['due_date'] > record['title'] && record.status == 'open'`, `record.due_date > title && record['notes'] == 'n'`). + + Widened in the same change, for flow conditions and record-scoped sites only: a variable a macro binds (`exists`, `all`, `exists_one`, `map`, `filter`) is typed as an element of the list it ranges over, so `[due_date, record.borrow_date].exists(d, d > '2026-01-01')`, which the runtime answers, is no longer refused as a type mismatch; `[title].exists(t, t > 5)` stays refused. A flow value envelope (an `assignment` value, a `create_record` / `update_record` `fields.*` value) keeps the verdict it had: its date-text check stands down where the mismatch check finds a mismatch and asks that check with the macro typing it had before, so `[record.due_date].exists(d, d > '2026-01-01') ? isoDate(record.picked_up_at) : 'x'` as a value registers and validates as it did. That envelope shape is carried by #39107. + + - **Where.** `os validate` / `os build` report an `error`, and a door that runs the same expression pass refuses the write (the flow publish door with `INVALID_METADATA`, 422). For flow conditions `registerFlow` logs it as an advisory and still registers the flow, so a stored flow keeps its run-time behaviour until it is next published; no flow value envelope verdict changes, so no stored flow that registered before is refused at registration. The run-time evaluator is unchanged. + + ## FROM → TO + + | FROM | TO | + |:---|:---| + | `due_date - borrow_date > duration('1h') && record.title > 5` | `daysBetween(borrow_date, due_date) >= 1 && size(record.title) > 5` | + | `record['title'] > 5` | `size(record['title']) > 5` | + | `record['active'] + 1 > 3` | `record['active'] == true` | + + One-line fix: compare like with like in a flow condition, whichever way a field is spelled; use `size(…)` / `double(…)` to make text a number, `true` / `false` for a boolean, and `daysBetween(a, b)` / `addDays(d, n)` / `date(…)` for a date. +- 84d209d: feat(console): the chat's draft review card publishes a draft, pinned to the version the turn saved + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: `DraftReviewItemSchema` (`@objectstack/spec/ai`, the row of the `data-draft-review` stream part) gains the optional `version`, the draft's version token as the turn's last save of it wrote it (the save receipt's `version`). `DraftReviewCardProps` and `ChatbotEnhancedProps` gain the optional `onPublishDraft`, and `@object-ui/plugin-chatbot` exports the type `DraftReviewPublishResult`; the card's Publish strings are added to every shipped locale pack. + + The contract that nothing is published from the chat changes. The review card under an ask turn's answer now carries a Publish button per draft: one click publishes that one draft as the signed-in person, through the item's own publish (`POST /meta/:type/:name/publish?package=`), with the row's `version` sent as the body's `draftVersion`. A draft changed after the turn saved it is refused `409 METADATA_CONFLICT`, nothing is published, and the row says the draft changed since the turn. Any other refusal (a member who may not publish gets `PERMISSION_DENIED`) is shown on the row with the platform's code and sentence. Publish is offered only on a row that carries a `version` and whose verdict is `publishable`; a refused, withheld or unversioned row shows it disabled with the reason and is published in Studio through the review links, as before. The agent is given no publish: the click is always the person's. Nothing is discarded from the chat. + + `verdictWithheld`'s description now also covers a draft the door left unjudged under a bound such as `MAX_RECORDS_EXCEEDED`, not only a verdict the person may not read; its shape is unchanged. + + A host that fills the `data-draft-review` part must state each row's `version` for the button to be enabled; a part without it draws the card as before, with Publish disabled. + + Why the protocol line reads added: `DraftReviewItem` is on the authorable surface the ratchet records (`packages/spec/authorable-surface/ai.json`), and `version` is a key that enters it. Nothing a released version accepts is refused now. +- 77d1564: feat(spec,rest): the record page payload answers the data lock read, so a record page learns a closed record in its one request + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: `RecordPageRequestSchema` gains an optional `dataLock: boolean`, and `RecordPageResponseSchema` an optional `dataLock` part: the record's lock exactly as `GET /api/v1/data/{object}/{id}/lock` answers the caller (`RecordLockSchema`: `locked`, and on a locked record `lockSource` and `lockReason`, ADR-0162 D9), or that read's refusal as a part error. `POST /api/v1/data/{object}/{id}/page` (`@objectstack/rest`) answers it from the data protocol's `getRecordLock`, served through the lock door's own projection, so nothing about the state field or value rides along; a deployment whose data engine has no lock read answers the part `501 NOT_IMPLEMENTED`, never "unlocked". A body that does not ask gets no part and the read is not asked. The approval part's own `lock` is the approvals-family read and is unchanged. `client.data.recordPage` takes and returns the new part through the spec types. Nothing an author writes in metadata changes. +- 3dfffef: feat(spec): a navigation item declares search aliases, `keywords`, and a translation bundle gives them per locale + + Clause-②: yes (widening) + Metadata-protocol: added + + Setup pages are being renamed (#39050), so a page must still be found by its old name. Two optional keys carry that: + + - **`keywords: string[]` on every navigation item** except `separator` (it sits on the shared nav base, beside `label`). Source-language words a person may type to find the entry, such as its old name. Search only: never shown, never a route, never a gate. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, and an entry takes at most 20 (the dataset synonym's rule); anything else is refused, not trimmed. `synonyms`, `searchTerms` and `searchKeywords` are refused with "did you mean `keywords`", and so is `aliases`, except on a `group`, where it is answered with both keys it can mean there (`keywords`, or `renamedFrom` for retired group ids). A `separator` refuses `keywords` with its own prescription. + - **`keywords: string[]` on a translation bundle's navigation node**, beside `label`: `apps..navigation..keywords` gives this locale's aliases for the entry, keyed by the same entry id as the label, at both translation doors (the file bundle and the registered `translation` item), under the same rule as the item's. The node still owes its `label`, and an unknown key is still refused. + + The key is named `keywords`, not `aliases`, because `aliases` already means a retired-key rename map across the AI schemas. + + Nothing reads either key yet. The reader is the command palette (#39055), which will match a query against the aliases resolved for the current locale. Until then the key is graded `planned` on the liveness ledger (`navigation.children.keywords`), its describe carries `[PLANNED — not yet read]`, and authoring it raises no warning: an alias nothing reads costs a search hit, not a gate. + + The navigation contribution's `group` describe and example now name a current Setup group id, `group_integrations_dev`, instead of the retired `group_integrations`. + + `@object-ui/types` declares `keywords` on its navigation item mirror, so `objectui validate` keeps the key, under the spec's rule, instead of stripping it; nothing in the console reads it yet. `@object-ui/app-shell`'s nav editors count `keywords` among the describing keys, so changing an entry's type keeps them. + + No action needed for existing metadata: both keys are optional. +- cef9a80: feat(setup): Setup navigation gets ten group anchors; a nav group's `renamedFrom` keeps retired ids working + + Clause-②: yes (widening) + Metadata-protocol: added + + **New key: `renamedFrom` on a group nav item** (`GroupNavItemSchema`, optional, a list of nav ids). It names the group ids the group replaced. A `navigationContributions[]` entry whose `group` names one of them lands in that group instead of the app's top level. The merge looks for an exact group id first and reads `renamedFrom` only when none matches. The app's own parse refuses an entry that is the group's own id, repeats in the list, is an id another entry of the app still declares, or is claimed by a second group, and refuses the key on a group inside `areas[].navigation`, where no contribution is merged. Nothing changes for an app that does not write the key. `@objectstack/spec/ui` exports the check, `checkAppNavGroupRenamedFrom`, and `@object-ui/types`' `AppComponentSchema` chains it and accepts `renamedFrom` on a navigation item, so objectui's validator judges the key as the publish door does instead of dropping it. + + **New warning: `nav_contribution_group_renamed`.** A contribution that names a retired id is logged at `warn` by the runtime and reported by `os build` and `os validate` under its own headline. The message names the package, the retired id and the group that took it over; the fix is to change the contribution's `group` to the new id. It is not a relocation, so the published relocation surface keeps its contract: `NavContributionGroupDiagnostic`, `checkNavContributionGroups()` and `SchemaRegistry#getAppNavDiagnostics()` are unchanged and never carry it (a group id that resolves through `renamedFrom` is not reported there). `@objectstack/objectql` adds `checkNavContributionGroupRenames()` (the compile-time notices, `NavContributionGroupRenamedDiagnostic[]`), `resolveNavGroup()`, `navContributionGroupRenamedDiagnostic()`, `NAV_CONTRIBUTION_GROUP_RENAMED`, and the `NavContributionGroupRenamedDiagnostic` / `NavContributionGroupFinding` (either finding) / `NavGroupResolution` types; `findNavGroup()` now also finds a group through its `renamedFrom`, and `formatNavContributionGroupDiagnostic()` accepts either finding. + + **Setup's anchors.** The System Overview dashboard is pinned above the groups. The groups, in order: `group_users_org`, `group_access_sharing`, `group_apps_ai`, `group_routing_approvals`, `group_audit_data` (expanded), then `group_company`, `group_currency_units`, `group_notifications`, `group_login_security`, `group_integrations_dev` (collapsed), labelled in all 11 Setup locales. Each group that replaced an old anchor lists it in `renamedFrom`, so every existing contribution still lands in the right place, with the warning above. `group_overview` has no successor: a contribution still naming it is appended at the top level with the `nav_contribution_group_missing` warning, and it loses the `manage_platform_settings` gate that group carried. In this repository that is `@objectstack/mcp`'s "Connect an AI Assistant" entry (`nav_connect_agent`, no gate of its own): until its contribution moves to a new anchor it shows at Setup's top level to everyone who can open Setup, not only to holders of `manage_platform_settings`. The page itself was already open to every user through the Account app. + + **What a package author does.** If your package contributes into Setup, change `group` to the new id named in the warning: `group_people_org` → `group_users_org`, `group_access_control` → `group_access_sharing`, `group_apps` → `group_apps_ai`, `group_approvals` → `group_routing_approvals`, `group_diagnostics` → `group_audit_data`, `group_configuration` → `group_company`, `group_integrations` and `group_advanced` → `group_integrations_dev`. A translation bundle keyed by an old group id (`apps.setup.navigation.`) no longer labels anything; key it by the new id. +- 0c45d66: feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: a new route, `POST /api/v1/comments/threads/query`, mounted by plugin-audit's comment registrar beside the resolution and own-comment delete doors. The body (`CommentThreadsQueryRequestSchema`, strict) names an object and carries a list's filter in the `GET /data/{object}` syntax, with `showResolved`, `onlyMine`, `limit` (1 to `COMMENT_THREADS_MAX_LIMIT`, default `COMMENT_THREADS_DEFAULT_LIMIT`) and an opaque keyset `cursor`; the answer (`CommentThreadsQueryResponseSchema`) is one page of the object's top-level comments on the records the filter selects and the caller may read, newest first, each with its record's id and display name, its reply count at any depth and its latest three distinct repliers, and the next page's cursor. Every step runs as the caller: the engine plans the caller's read of the object with the filter (`ObjectQL#planReadScope`) and places it in the comment read as one subquery, so a view past the 1,000-id cap is answered in full; its refusals are the answer (`PERMISSION_DENIED` for a caller with no read on the object or a filter on a field the caller cannot read, `INVALID_FILTER` on MongoDB and OData). A query parameter, an unknown body key, a `limit` out of range or a cursor the read did not issue is `400 VALIDATION_ERROR` before anything is read, and a filter the list read cannot lower is `400 INVALID_FILTER`, as `GET /data/{object}` answers it, never dropped; an object with `enable.feeds: false` is `403 FEEDS_DISABLED`. The read is served on a kernel with an HTTP server; the hosted dispatcher's `/comments` domain does not claim it. `client.comments.queryThreads` is its SDK method. `@objectstack/objectql` exports the `PlanReadScopeOptions` and `ReadScopeComparand` types. No new error code. `Metadata-protocol: added`: the request and response schemas enter the `api` authorable-surface shard, which the level axis reads as added keys, so `@objectstack/spec` is a `minor`; nothing an author writes in an object, view or app definition changes. + +### Patch Changes + +- 3c617a2: feat: forms leave `view` — the protocol-19 form move and its switch command (ADR-0159 card ⑤b, part 1) + + Clause-②: yes + Metadata-protocol: none + + **Sources.** `os migrate meta --from 18` moves each form a stack authors in `views[]` — a container's `form`, a `formViews` entry, a `viewKind: 'form'` item — to `forms[]`, under the name it is served as today, its binding lifted to `object` and its body at the top level, with its `sharing` block, switch and `overrides` declaration as written (conversion `view-forms-to-form-items`). An internal record form (a record-form slot, no public link, no `type: 'form'` action that opens it, no `overrides`) is deleted: New and Edit lay a record out by the object's field groups. A form that declares a public link, switched on or off, is never deleted, and an item that declares `overrides` always moves. A container left with no member is removed. A translation bundle's `objects.OBJECT._views.KEY.title` and `.submitBehavior` move to `forms['OBJECT.KEY']` for each form that is a `forms[]` item after the move (conversion `translation-view-form-tails-to-forms`); `label` and `description` stay. What the move cannot decide — a form whose `data.object` disagrees with its container, a non-object `data` binding, a key a `form` item does not carry, a name `forms[]` already holds, an unreadable body, two forms on one public address, a moved override for `os validate`, the translation tails of a form left in `views[]` or named by no `forms[]` item, a translation tail `forms` already holds, a `_views` label of a moved form — is left in place or moved as written and listed per site by `os migrate meta`. The two semantic entries are `view-forms-move-to-form-type` and `translation-form-tails-move-to-forms`. + + **Stored rows are not rewritten by the conversions.** `view-forms-to-form-items` and `translation-view-form-tails-to-forms` are on the stored seam's `STORED_ROWS_NOT_REWRITTEN`: a stored `view` row keeps its forms, read through the projection, and a stored translation row keeps the `_views` tails those forms are read through. The artifact forward door (`@objectstack/metadata-core`) refuses both by id too, so an installed package keeps its forms in `views[]`, read through the projection, until the deployment switches. + + **`os migrate protocol --to 19`** is the deployment's switch. It previews by default (the stored-form census, and whether the deployment can switch; exit 1 when a row holds it, each row with the action for its cause). `--apply` runs the stored-form ceremony all or nothing, runs the census again, and only when nothing is left to move or remove records a verified `sys_migration` row, `adr-0159-form-type-switch` (`FORM_TYPE_SWITCH_MIGRATION_ID` in `@objectstack/spec/system`). A held run writes nothing, the marker included; a database whose driver cannot roll back is refused first. + + `form-view-modal-size-removed` now applies after the move (its result over sources is unchanged; its notice names the form's address on 19). `@objectstack/lint` adds `shippedFormNames` (what a package ships as `form`, in either type, through the projection) and D7-b's rule `form-override-base-ships-no-form` with its remedy, which `os validate` prints for an override of a form its base does not ship: remove the item, or correct the name. +- 1de73c0: feat(rest): the record page composite's approval lock says which approval holds the record (`lockSource`), as the lock doors do + + Clause-②: yes (widening: the record page composite's published `lock` gains `lockSource`) + Metadata-protocol: none + + Widened: `RecordPageApprovalsSchema`'s `lock` (the `approvals` part of `POST /data/:object/:id/page`) gains the optional member `lockSource: 'record' | 'master'`, present on a locked record only; `@object-ui/types`'s `RecordPagePayload.approvals.lock` gains the same optional `lockSource`. + + The record page's one read now answers its approval lock through the same projection as `GET /approvals/records/:object/:recordId/lock` and `POST /approvals/records/:object/locks`: `locked`, and on a locked record which approval holds it, `record` (its own) or `master` (the master of a master-detail line; it wins when both hold). A locked answer from a service that names no kind is still served `{ locked: true }` alone, and `null` still means the deployment answers no lock or the record is unreadable or missing. Before this, the composite served `{ locked }` only, so a record page could not tell a line held by its own approval, which may be deleted, from a line of a held master, whose delete the server refuses with `RECORD_LOCKED`. The Console's record page now hides Delete on `lockSource: 'master'`, as the grid's row menu does. +- 6f82fd0: fix(approvals): "The approval ended here" survives a restart and a re-registration of the flow, and is never served for a body the run did not run + + Clause-②: yes (widening: AutomationEngine gains getRunFlowChecksum and getFlowBodyChecksum; RunRecord gains optional flowChecksum; the exported ApprovalResumeSurface drops the optional getFlowVersionHistory and gains optional getRunFlowChecksum and getFlowBodyChecksum) + Metadata-protocol: none + + A decided approval request's route says where the record's approval went next, and `flow_route.outcome.ended` says the approval ended. It is served only for a run that ran the flow body armed now. That used to be proven from this process's registration history (the newest registration, registered before the run started), so every restart and every re-registration of the flow, a package reload included, dropped the line from every earlier request of that flow. Two narrow cases served it for a body the run did not run: a rollback made before the run started and undone after it, and a replica that registered an edit before another replica started the run on the older body. + + The witness is now the body's content. A run's terminal `sys_automation_run` row carries `flow_checksum`, the content checksum of the body it ran (the identity the metadata history keys a stored flow's versions by), stamped on the run's context where it starts and carried through every pause and resume. The approvals plugin serves `ended` only when that checksum equals the checksum of the body armed now. A restart, another server, or the same content registered again keeps the answer; a body with other content never answers in the run's place. + + - `@objectstack/service-automation`: `AutomationEngine.getRunFlowChecksum(runId)` (a finished run's checksum, read as `getRun` reads it: memory, then terminal row; `undefined` for a run not finished) and `AutomationEngine.getFlowBodyChecksum(flow)`; `RunRecord.flowChecksum`. A run records none when it finished before this release, its body could not be hashed, it was parked before this release and its pause pinned none, it resumed on another body because the one it started on could no longer be found, or it failed after a resume and can still be restored (a strand: its row keeps the pause's pin in `flow_checksum` for the restore, as before, and that pin is never read back as the body the run ran). + - `@objectstack/plugin-approvals`: reads the two; no longer reads `getFlowVersionHistory` (dropped from the exported `ApprovalResumeSurface`). A later step is now a request of the run opened after this one was decided, not merely after it opened: a node that fans out to two approval steps opens two requests of one run side by side, and the sibling is no longer served as where the approval went. + - `@objectstack/spec`: the `ended` sentence on `ApprovalRequestRow.flow_route.outcome` says this. + + Upgrading: a run that finished before this release has no checksum on its row, so its decided requests do not say the approval ended (they already lost the line at the restart the upgrade makes). Runs that finish after it keep the line. +- 7d6742a: docs(spec): the screen-input refusal's `fields` carries one entry per finding, not one per field + + Clause-②: no + Metadata-protocol: none + + The `AutomationResult.fields` contract comment, the `TriggerFlowResponseSchema` `data.fields` description and the flows guide said a `400 INVALID_SCREEN_INPUT` refusal carries one `error.details.fields` entry per violated field. It carries one entry per finding, so one field can carry more than one entry: a value above a field's `max` but below its larger `min`, for instance, breaks both bounds. For `unknown_field`, `field` is the key the caller sent, not a declared screen field name. A runner that sizes its error display by one row per field groups the entries by `field`. The `ScreenInputIssue.code` comment now points at `error.details.fields`, where these codes travel. Text only: the response is unchanged. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(spec): a run's writes name the root run of its tree (`ExecutionContext.flowRootRunId`, `HookContext.provenance.flowRootRunId`, ADR-0162 D5) + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `ExecutionContextSchema` and the `provenance` of `HookContextSchema` gain the optional string `flowRootRunId`, beside `flowRunId`: the run id of the root of the run tree the writing run belongs to (the run itself for a root run). The automation engine stamps it on every write a run makes; it is never read from a request. Nothing an author writes changes. +- 440574f: **Shipped in 19.0.0-next.3**, whose CHANGELOG missed this entry; listed here one prerelease late. + + feat(spec,objectql): the closed-state refusal's own sentences, in every locale (ADR-0162 D8) + + Clause-②: yes (widening: new keys in the published Operation Message Catalog and the upload-link copy; contract-review-tier review owed) + Metadata-protocol: none + + A write refused because a record is in a closed state (`409 RECORD_LOCKED`, ADR-0162) tells the person what happened, in their own language, with a sentence from the Operation Message Catalog. + + - **New catalog keys** in `BUILTIN_OPERATION_MESSAGES`, in every locale the catalog carries (en, zh-CN, ja-JP, es-ES), overridable per deployment under `errors.` like every other key: `record_closed` with its `_unlabeled`, `_untitled` and `_opaque` forms, and `record_closed_delete_blocked` with its `_untitled` and `_opaque` forms. English, for example: "Invoice 'Northwind March' is closed, so it and its lines can no longer be changed or deleted", and "Customer 'Contoso Holdings' cannot be deleted: deleting it would also remove a closed Invoice or one of its lines". + - **The engine words the refusal from them.** The refusal names a title only from a field that holds display text and that the writer's generic read returns, and that the writer is served under its own field permissions (readable and queryable): not a field the generic read withholds (`internal`, or a credential type), not a reference field, not a field the object's `closedStates` names. Otherwise the sentence names the object's label only, and so it does when a registered security service cannot be resolved. With no security service registered there is no field-level security, and the title is named. A line's write names its master by label alone. A delete refused for what it would also remove names the record asked to be deleted and the label of the object in the way, with the title only when the delete names exactly one record by id. No sentence carries a record id, an API name or a state value. + - **On the error**: `userMessage` and the wire's `error` carry the sentence; `message` reads `RECORD_LOCKED: ` followed by the sentence, as the approval lock's refusal does; the developer sentence moves to `developerMessage`, which the REST layer does not relay. A refusal that could not judge the write keeps the developer sentence and sets no `userMessage`. + - **Upload-link page**: a closed-state refusal reaches the page with the engine's declared catalog sentence, which the page shows. The page's own `recordLocked` answers only a `RECORD_LOCKED` with no declared sentence. The page also carries a closed-state sentence (`recordClosed`) in each of its 11 languages; choosing it by the lock's reason comes with a later change. +- e542b7b: feat(service-analytics): a word that names the field a filtered measure candidate sums is answered from that field, not asked about + + Clause-②: yes (widening) — `DatasetToolsDeps` gains an optional `readFieldLabel` + Metadata-protocol: none + + `list_datasets` no longer offers, as a candidate to ask back about, a measure that carries a `filter` and whose aggregated base field the word names: the word equals, or is inside, that field's label or its name (ADR-0149 D3, the amendment note of 2026-12-01). "hours" beside a measure "Billable hours" that sums the field `hours` under a filter is now answered from the field: `nextStep.note` names the field (object and field name), says to answer it with the object query tools labelled as not from a governed metric, and mentions the measure as a narrower declared metric. The measure stays listed in its dataset's entry; it is only absent from `candidates` for that word. + + The decision values are unchanged and read as declared: a word left with no candidate is `no_measure`; a word left with dimension candidates stays `candidates_only`, with the field named and no question; a word left with another measure candidate is still asked about, and the field answers only if that question settles nothing. Unchanged, and still asked about: a measure with no `filter` over the named field, a measure over a relationship path, and a word that names different fields through different measures. The take-out runs before the per-word cap of candidates, so a measure taken out uses no slot. + + Field labels are read by a new optional `DatasetToolsDeps.readFieldLabel` (the authored label and the translation-bundle label for the answer's locale). Both MCP doors (HTTP and stdio) wire it from the object `describe_object` serves; a host that does not tests the field's name only, as the `list_datasets` description says. The `list_datasets` description and the MCP `initialize` selection rule carry the rule in the same sentence, and the `candidates` and `nextStep.note` descriptions in `@objectstack/spec` say it. +- f13adae: fix(metadata-protocol): the bare doc read of the environment's own entry carries the environment's envelope, never a package holder's + + Clause-②: no + Metadata-protocol: none + + A doc read that names no package (`GET /api/v1/meta/doc/NAME`, and the in-process `getMetaItem` with no `packageId`) answers the environment's own doc entry when one or more enabled packages ship the same name. It served that entry's content under the first registered holder's envelope: `item._packageId` and `item._packageVersion` that holder's, `_provenance: 'package'`, and the read envelope's `packageId`, `packageVersion` and `provenance` likewise. A client trusting the envelope read the environment's item as that package's, and with two holders the package it named followed registration order. + + FROM the entry under the first registered holder's envelope, TO the entry under its own: no `_packageId` or `_packageVersion`, its own `_provenance` (`org` for a stored row the environment saved), and no `packageId` on the envelope. The lock is unchanged: it is still the write doors' answer at that address, and a save naming no package is still refused while a holder ships the name, so the envelope still reports `lock: full`. `?package=PACKAGE` still reads that package's doc under that package's envelope. `/layers` and `/published` carried no package envelope and are unchanged. + + The fix for a caller that read the holder's id from the bare read: name the package (`?package=PACKAGE`, or `packageId` in process). The `os migrate meta --from 18` entry `doc-bare-read-environment-entry-first` no longer lists this as a known deviation. +- 8338d07: refactor(service-automation): `AutomationEngine` becomes a delegating facade over eight facet modules, unchanged + + Clause-②: no + Metadata-protocol: none + + Internal only: no behaviour changes and nothing is added to or removed from the package entry. The bodies of 145 `AutomationEngine` members move, byte for byte, into static methods of eight facet classes (dispatch, extensions, flow slots, registration, connector doors, enablement, run and resume); each member stays on the class with its signature (and, when public, its docblock) as a one-call stub, so the published declaration of `AutomationEngine`, an instance spy and a subclass override are what they were. The engine's state stays on the class, and a facet body reaches it through a host built once per engine. + + - `@objectstack/spec`: the `flow` and `connector` liveness ledgers cite the facet modules that now hold the bodies they name (`engine-run-facet.ts#retryExecution` and the three retry-backoff keys; `engine-extensions-facet.ts#getConnectorDescriptors`); no verdict changes. +- 58695bb: perf(knowledge): a knowledge search embeds its question at most once for each adapter, the refill round included + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened (ADR-0161, the dated note of 2026-12-01 under K8): `IKnowledgeAdapter` (`@objectstack/spec/contracts`) gains an optional `embedQuery(query)`, which embeds a question exactly as the adapter's `search` does (its embedder and its query prefix), and `AdapterSearchOptions` gains an optional `queryVector: () => Promise`, a function the adapter calls where its `search` embeds the query. An adapter handed it calls it in place of that embedding call, after every refusal it answers first, checks the answer's width as it checks one its embedder answered, and never changes the array. + + For each search, the knowledge service hands every `search` call to an adapter instance that has `embedQuery` one function: its first call asks that instance's `embedQuery`, and every later call in the search answers the same promise, a failed one too. A search whose first round leaves fewer than `topK` records or groups after the permission re-check (a narrowed caller, `granularity: 'record'` or `groupBy`) asks the adapter again with a larger `topK`; that second round used to embed the question a second time, about one embedding request per refilled search. Several sources on one adapter instance now share the one embedding call too. Because the adapter asks only where it embeds, a `keyword` search, a search that ranks nothing and a source the adapter refuses make no embedding call, and the adapter's own refusal (`KNOWLEDGE_REBUILD_REQUIRED` 409 for an index that needs a rebuild) is the one answered even when the embedder would fail. A failed embedding call fails each `search` call that asked for the vector, with the code and wording it had before. + + `knowledge-turso` and `knowledge-pgvector` implement both members. An adapter without `embedQuery`, such as `knowledge-memory`, is handed nothing and is searched as before, embedding on every call. The adapter contract suite (`@objectstack/service-knowledge/testing`) gains an optional `implements.embedQuery` declaration and one case for it. +- 5704d13: fix(plugin-approvals): an approval's run is read by the steps it logged by its end, not a fan-out branch that went on after it + + Clause-②: no + Metadata-protocol: none + + When a flow's node fans out to branches that run together and one branch fails, the automation engine does not stop the others: they go on appending steps to the run's log after the run has ended. The approvals plugin read the last top-level step of a terminal run as where it stopped, and any later step as the run going on past a step, so a step another branch completed after the run's end moved both readings: the reconciler placed a failed run at the other branch's node (and told a failure the flow never routed as one it went on from), and took a child run with no history row as passed. Both readings now use only the steps the run completed by its `completedAt`; a run that names no `completedAt`, and a step completed in the same millisecond, read as before. + + Also: the terminal history row serializes a log under its size cap once, not twice (`@objectstack/service-automation`); the source comment over the step log's `childRunIds` no longer says a reader reaches every run of its tree from the log alone, since the list is bounded and can be shed (`@objectstack/spec`, comment only, no schema change). +- 3872243: feat(platform-objects, service-segmenter): the 检索词条 object `sys_search_term`, the administrator's search words + + Clause-②: yes + Metadata-protocol: none + + `@objectstack/platform-objects` declares `sys_search_term` (检索词条, Search Term): one record per word an administrator adds to search, one set for the whole deployment (no organization column). Fields: `term`, `kind` (`word` custom word or `stop_word`), `purpose` (`knowledge`, `record_search` or `both`; default `knowledge`, the only one implemented), `knowledge_source` (one knowledge source; empty for every source), `enabled` (default on) and `note`. `term`, `kind`, `purpose` and `enabled` are the segmenter contract's `SegmenterEntry` one to one. The object is `system-data` with CSV import opted in, so New, Edit, Delete, Import, Export and record history are the platform's own; every operation, writes included, requires `manage_platform_settings`. A record that disables a platform word (年假, 脱密, 应急采购, …) is refused: those words live in the segmenter's read-only dictionary, so make one a stop word instead. A platform stop word can be disabled. The platform words move here as `PLATFORM_SEARCH_WORDS`, and the segmenter's `PLATFORM_WORDS` reads them, so the object and the service hold one list. + + `@objectstack/service-segmenter`: `SegmenterServicePlugin` registers `sys_search_term` on the manifest service (`SEARCH_TERM_BUNDLE_ID`), with no Setup entry. Nothing reads the records yet: the knowledge service passes them to the segmenter in a later release, and the object gets its Setup entry then. + + `@objectstack/spec` lists `sys_search_term` among the platform-provided object names. `@objectstack/cli` gives it a row in the organization-ownership inventory (no organization column to drop). +- d7d4605: feat(service-segmenter): a segmenter service that cuts a Chinese question into real words for the keyword leg + + Clause-②: yes + Metadata-protocol: none + + New package `@objectstack/service-segmenter`: `SegmenterServicePlugin` registers `ISegmenterService` under the `segmenter` slot. `keywordTerms(query, { purpose, entries })` answers a question's keyword terms in the shape the knowledge adapters' terms have today (distinct, at most 16). The caller's `word` entries are kept whole wherever the question spells them, in any script. A run of Han characters is cut by `@node-rs/jieba` (HMM off, an optional dependency, one instance per process) with the platform's words (年假, 脱密, 应急采购, 超预算, …) in its dictionary; a word equal to a stop word is dropped, and adjacent single characters are joined into two-character words. The query is NFKC-normalised first, a Thai, Lao, Khmer or Myanmar run is cut by `Intl.Segmenter`, and everything else (English, figures, codes, kana and Hangul runs) is cut exactly as before. Without jieba (not installed, or failed to load: the boot log names which, and `status()` reports it), the service answers by sliding windows with the supplied words still kept whole. The purpose `record_search` is reserved and refused with `NOT_IMPLEMENTED`. + + Nothing calls the service yet: the knowledge adapters keep their own terms until they read the slot. + + `@objectstack/spec/contracts` adds `ISegmenterService`, `SEGMENTER_SERVICE` and their types, and `ServiceSlotContracts` gains the `segmenter` slot (not a `CoreServiceName` member). `@objectstack/core` adds `keywordTerms`, `MAX_KEYWORD_TERMS`, `KEYWORD_SEPARATORS` and `UNSEGMENTED_RUN`: the sliding-window rule the two knowledge adapters each hold a copy of, as one shared copy. +- 7f72b49: fix(cli): `os migrate meta --from 18` names each own field row beside Modify All that protocol 19 narrows + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `@objectstack/spec` exports `ownFieldRowsBesideModifyAll` and the types `OwnFieldRowBesideModifyAll`, `OwnFieldRowProtocol18Outcome` and `OwnFieldRowProtocol19Outcome`; `os migrate meta --from N --json` gains the key `ownFieldRowNarrowing`, present only when the list is not empty; `StoredViewAllFieldsReview` (`os migrate meta --stored --json`) gains the optional member `ownFieldRows`, and `@objectstack/metadata-protocol` exports its element type `StoredOwnFieldRow`. Nothing a metadata author writes changes. + + The upgrade text no longer says that the `viewAllFields: true` written beside View All or Modify All keeps every field read. It keeps the field reads the bits cast, except a field the set's own `readable: false` row hides beside Modify All, and it keeps no edit Modify All cast. The protocol-19 behaviour itself is unchanged. + + `os migrate meta --from 18` now lists each own field row beside a Modify All bit that the run writes `viewAllFields: true` beside, where the row's answer changes on protocol 19. Each line names the permission set, the `objects` entry and the field row; what the set's holders got on protocol 18 (read and edit: Modify All voted over the set's own rows); what they get on 19 through that set (`hidden`, `read-only`, `read-only-where-when-matches` for a row-conditioned lock, or `edit-only-where-when-matches` for a row-conditioned edit); and the choice: change the row to keep the protocol-18 answer, or accept the narrowing. Following the choice takes the row off the list. A set that already carries `viewAllFields` beside the bit (a source the edit was applied to) is not listed; review its own rows beside Modify All by hand. Example, for a set with View All and Modify All on `contact` and its own `'contact.salary': { readable: false }` row: + + ```text + 1 own field row(s) beside Modify All that protocol 19 narrows — the `viewAllFields: true` written beside the bit does not keep them: + ⚠ permission set 'hr_manager' (permissions[0]), objects entry 'contact', field row 'contact.salary' + protocol 18: read and edit (Modify All voted over the set's own row) + protocol 19: hidden, no read and no edit (the set's own `readable: false` row binds) + choice: to keep the protocol-18 read and edit, change the row to `readable: true, editable: true`; otherwise accept the narrowing. + ``` + + `--json` carries the same list under `ownFieldRowNarrowing` (`set`, `at`, `object`, `field`, `protocol18`, `protocol19`, `choice`); no other key changes. + + `os migrate meta --stored` names the same rows of a stored permission set under its entry in the View All Fields review list, and its `--json` entries carry them as `ownFieldRows`. View All alone is never listed: on 18.6.0 a set's own row already bound beside its own View All. Protocol 18 here means 18.6.0, the release the card measured. +- a294369: fix(spec,cli): `os migrate meta --from 18` proves the protocol-19 notices a stack has no surface for absent, and says why when it cannot + + Clause-②: yes (widening) + Metadata-protocol: none + + Widened: `MigrationChainResult` (`@objectstack/spec/migrations`) gains the optional member `unanswered` — `{ todos, unread }`, the entries whose relevance question the chain could not answer and what it could not read (`plugins`, `devPlugins`, `tiers`, a key whose value is not a list or a map, an unreadable manifest or package body). It moves nothing off any list; it only says why. `os migrate meta --json` emits it, under the same name, when a question stayed open; otherwise the payload is unchanged. + + Most protocol-19 semantic entries whose surface is metadata authored under top-level stack keys now carry a `relevantWhen` question naming each key it can be written under, nested sites included (an action an object carries inline counts under `objects`). On a stack that declares none of them, the chain proves the entry absent, and `os migrate meta` counts it rather than listing it (`--all` lists it). The rule: a surface that a stored copy of the same metadata also meets still takes a question, since the proof covers the stack the command loads and never what a deployment stores. An entry stays listed to every stack when its surface is host code, a deployment's own state and doors (installed packages, rows written at run time), or something every stack carries, or when its own check runs over the rows a deployment stores — the protocol-19 permission-set field vote and the move of forms out of views among them. No prose is matched. + + The question now also reads the stack's own `manifest`, as it reads a package body: a seed dataset declared under `manifest.data` keeps the seed notices listed. + + `os migrate meta` prints the count of notices proven absent even when it is zero, whenever the run crossed an entry that asks, and says why a question stayed open. A stack that lists a plugin (`plugins:`, `devPlugins:`) or a `tiers` preset proves nothing absent, because a plugin can register metadata at boot that the stack does not show. The 18.x blank template lists three connector plugins, so an app scaffolded from it keeps every notice listed, and the report now says so: + + ``` + 0 more manual change(s) not listed: no surface they ask about was proven absent from this stack. + N of the manual change(s) listed above ask whether this stack declares their surface, and this run could not prove it absent: it cannot read `plugins`. + ``` + + The proof covers the definitions the stack declares. Two sources of metadata are outside it, and the line that scopes the count names both: what a deployment stores (Studio, the metadata API), and what the app's `onEnable` hook registers through the engine it is handed at start. `onEnable` is not treated as a carrier: it is described for action handlers and drivers, and registering metadata there is off-label. + + An app that lists no plugins, such as one scaffolded from the current blank template, sees the protocol-19 notices about agents, knowledge sources and the other surfaces it does not author, among those that carry a question, leave the default list. +- fb32a1c: fix(spec): a list view `columns` array that mixes field names and column objects is refused with a sentence that names the mix + + Clause-②: no + Metadata-protocol: none + + A list view's `columns` takes one spelling per list: every entry a field name (`['name', 'amount']`), or every entry a column object (`[{ field: 'name' }, { field: 'amount', width: 120 }]`). A mixed array such as `['name', { field: 'amount' }]` was already refused, and still is, but the refusal read `columns.0: Invalid input: expected string, received object`, which sounds as if column objects were not allowed. The refusal at `columns` now says that the array mixes the two spellings and how to fix it: write the plain entries as objects too (`'name'` becomes `{ field: 'name' }`). Every array that parsed before still parses, and every other `columns` refusal reads as before. +- f7c791f: feat(app-shell): the command palette finds a navigation entry by its old name or another alias, and shows each navigation result under its group path + + Clause-②: yes (widening) + Metadata-protocol: none + + A navigation entry's `keywords` now have their reader. + + - **The served app carries each entry's aliases for the reader's locale.** `translateApp` gives every navigation node its own source-language `keywords` plus the reader's locale's `apps..navigation..keywords` from the translation bundle (the first locale along the chain that lists any), each word once. A locale's words add to the source words; they never replace them. So an English alias still finds the entry in a Chinese session, and a Chinese-only alias finds it there and not in English. A node whose bundle lists no keywords is served as before. + - **The ⌘K palette matches navigation entries on their `keywords`** as well as on their label and machine name, under the same word-prefix and substring rule. When only an alias found the entry, the row shows it after the entry's name: 「原名 岗位持有人」 in Chinese, "Formerly Position Holders" in English (a new `console.commandPalette.formerName` string in every console locale). A group's label and `keywords` find the visible entries under it, so a renamed group is still found by its old name, and each of its entries shows the group's matched alias. An entry found through an alias counts as found, so the palette does not offer to create a record from those words. `action` and `doc` entries accept `keywords`, but nothing reads them yet. + - **Every navigation result shows its group path** before its name, 「人员与组织 › 业务单元」, nested groups outermost first; an entry at the top level of the menu shows its name alone. + + The key's liveness row (`navigation.children.keywords`) is now `live`, and its describe no longer carries the `[PLANNED — not yet read]` marker. + + No action needed for existing metadata. +- b706ec6: fix(spec): the form move reads action targets walking each object once + + Clause-②: no + Metadata-protocol: none + + `view-forms-to-form-items` keeps a view form that a `type: 'form'` action opens, and it finds those actions by reading the whole stack. That read now walks each object once, from the shallowest depth it is reached at. A stack that refers back to itself, such as a boot definition that carries live plugin instances beside a view form, converts in one pass instead of walking without end. The targets found are the same as before. +- 1536c07: fix(email): a send through the log-only transport is recorded as `logged`, not `sent` + + Clause-②: yes (widening) + Metadata-protocol: none + + When the mail provider is "None (log only — no real delivery)", which is also what runs when no provider is configured, the mail service wrote the mail log row (`sys_email`, `sys_identity_email`) as `sent` and answered `status: 'sent'`, although no mail left the process. The row now reads `logged`, and `send()` / `sendTemplate()` answer `status: 'logged'`. + + - `EmailDeliveryStatus` (`@objectstack/spec/contracts`) gains `'logged'`: final, not a delivery, not a failure. A caller that branches on `status === 'failed'` is unaffected; a caller that treats every non-`failed` answer as delivered should now also check for `'logged'`. + - `TransportSendResult` gains an optional `outcome?: 'logged'`. A transport that only records the message answers it; `LogTransport` does. A transport that answers nothing is unchanged and its sends read `sent`. The free-form `response` text is never read for this. + - `IEmailService.isConfigured()` is unchanged and still judges by the transport's class: only plugin-email's own `LogTransport` reads as not configured. A host-supplied transport that answers `outcome: 'logged'` has its rows recorded `logged`, but `isConfigured()` still answers `true` for it, so the messaging email channel, the invitation `link_only` answer and the sign-up refusals treat it as delivering. + - A `logged` row keeps the transport's message id and has no `sent_at`, because nothing was sent. + - The `status` select of `sys_email` and `sys_identity_email` gains the option `logged (not delivered)`. It is translated in every shipped locale for `sys_email`. The translation bundles carry no `sys_identity_email` entries at all, so there it shows the English label, as the rest of that object already does. + - Setup › Mail "Send test email" decides its "only logged" warning from the send's own `logged` answer rather than from the transport's class. The Setup › Email banner for the log transport, in all 11 locales, now says messages are recorded as logged (not delivered), not as sent. So do the missing-API-key boot error and `OS_EMAIL_API_KEY` in the environment-variable reference. + - A `logged` row is final for every reader in plugin-email: queue redelivery skips it (it carries its message id), attachment content stored outside the row is reclaimed after the grace window, and the boot outbox sweep counts it apart from `sent` (`OutboxSweepResult.logged`, and its summary line says "logged only (not delivered)"). + + Rows written as `sent` by a log-only transport before this release keep reading `sent`. +- 08255e0: feat(approvals): the service that owns an approval step can refuse a decision before it is recorded + + Clause-②: yes + Metadata-protocol: none + + A service that owns a flow's approval steps registers a check with `approvals.registerDecisionAdmission({ flow, check })` (`ApprovalDecisionAdmission` in `@objectstack/spec/contracts`, an optional member of `IApprovalService`). Every decision on an approval step of that flow is asked of it after the approvals service's own refusals and before anything is written: an approve or a reject through any door (REST, the action door, the action link, the SLA sweep's auto-decision), for a slot holder and for the administrator override alike, and a send-back, asked as what it records: `revise`, or `reject` once the step's revision budget is spent. A recall is not asked. A refusal (`{ userMessage, message? }`) answers `403 FORBIDDEN` with that `userMessage`; nothing is recorded, the request stays pending with its approvers and approver index unchanged, the run stays parked and no one is notified. Any other non-nullish answer refuses too, without a `userMessage`. A check that throws fails closed: its throw reaches the caller and nothing is recorded. An SLA auto-decision the check refuses leaves the request pending; the sweep's single-shot `escalate` marker is already written, so the sweep does not ask again. One admission per flow name; a second registration throws. + + Before this, a rule the owning flow enforced in a node after the approval could only refuse after the decision was recorded: the door answered `500 RESUME_FAILED`, the request read decided and the submitter was told nothing. Nothing changes for a flow with no admission registered. To adopt it, register the check where the flow is registered, probing for the member first (an implementation without it still satisfies the contract). +- a5e49ac: docs(spec): the retired-key sentence's doc comment quotes the header `os migrate meta` now prints + + Clause-②: no + Metadata-protocol: none + + The comment in `retired-key.ts` quoted the `Applied N mechanical change(s)` header that `os migrate meta` no longer prints; a dry run prints `Would apply N mechanical change(s)`. Comment only, no behaviour change. + ## 19.0.0-next.3 ### Major Changes diff --git a/packages/spec/package.json b/packages/spec/package.json index fd7d40ecab5..39b04671f4a 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/spec", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "ObjectStack Protocol & Specification - TypeScript Interfaces, JSON Schemas, and Convention Configurations", "license": "Apache-2.0", "type": "commonjs", diff --git a/packages/triggers/trigger-api/CHANGELOG.md b/packages/triggers/trigger-api/CHANGELOG.md index be40983865d..bdecbe4978d 100644 --- a/packages/triggers/trigger-api/CHANGELOG.md +++ b/packages/triggers/trigger-api/CHANGELOG.md @@ -1,5 +1,50 @@ # @objectstack/trigger-api +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/triggers/trigger-api/package.json b/packages/triggers/trigger-api/package.json index 946727faf91..86b5a57205c 100644 --- a/packages/triggers/trigger-api/package.json +++ b/packages/triggers/trigger-api/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/trigger-api", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Inbound HTTP/webhook flow trigger for ObjectStack — per-flow HMAC-verified endpoints with queue-backed ingestion (ADR-0041)", "type": "commonjs", diff --git a/packages/triggers/trigger-record-change/CHANGELOG.md b/packages/triggers/trigger-record-change/CHANGELOG.md index 76cbaf1261f..5dfa1df5d2a 100644 --- a/packages/triggers/trigger-record-change/CHANGELOG.md +++ b/packages/triggers/trigger-record-change/CHANGELOG.md @@ -1,5 +1,50 @@ # @objectstack/plugin-trigger-record-change +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/triggers/trigger-record-change/package.json b/packages/triggers/trigger-record-change/package.json index 95ce95b32ef..3efc9b93786 100644 --- a/packages/triggers/trigger-record-change/package.json +++ b/packages/triggers/trigger-record-change/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/trigger-record-change", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Record-change flow trigger for ObjectStack — auto-launches flows on object insert/update/delete via ObjectQL lifecycle hooks (ADR-0018)", "type": "commonjs", diff --git a/packages/triggers/trigger-schedule/CHANGELOG.md b/packages/triggers/trigger-schedule/CHANGELOG.md index 85d1b43679d..50212821099 100644 --- a/packages/triggers/trigger-schedule/CHANGELOG.md +++ b/packages/triggers/trigger-schedule/CHANGELOG.md @@ -1,5 +1,56 @@ # @objectstack/plugin-trigger-schedule +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [fc7534a] +- Updated dependencies [77d1564] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/metadata-core@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/triggers/trigger-schedule/package.json b/packages/triggers/trigger-schedule/package.json index 5784595049b..cd81223ea1d 100644 --- a/packages/triggers/trigger-schedule/package.json +++ b/packages/triggers/trigger-schedule/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/trigger-schedule", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Schedule flow trigger for ObjectStack \u2014 auto-launches flows on a cron/interval/once schedule via the IJobService (ADR-0018)", "type": "commonjs", diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index 9719819c9d1..81ba8ee6707 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -1,5 +1,46 @@ # @objectstack/types +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/types/package.json b/packages/types/package.json index b624ebbd184..30548fff6a4 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/types", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Shared interfaces describing the ObjectStack Runtime environment", "type": "commonjs", diff --git a/packages/verify/CHANGELOG.md b/packages/verify/CHANGELOG.md index 9d5c5273e06..21180457cd1 100644 --- a/packages/verify/CHANGELOG.md +++ b/packages/verify/CHANGELOG.md @@ -1,5 +1,127 @@ # @objectstack/verify +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [00f97b3] +- Updated dependencies [ca26605] +- Updated dependencies [f13adae] +- Updated dependencies [ad83af4] +- Updated dependencies [8338d07] +- Updated dependencies [f3f3265] +- Updated dependencies [828b6ec] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [670bc89] +- Updated dependencies [4d9d12a] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [38ab473] +- Updated dependencies [1095535] +- Updated dependencies [f037f1c] +- Updated dependencies [0fff9ae] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [355e8e3] +- Updated dependencies [7aaced0] +- Updated dependencies [4374517] +- Updated dependencies [270d160] +- Updated dependencies [3c3a154] +- Updated dependencies [fb32a1c] +- Updated dependencies [4a3b532] +- Updated dependencies [84d209d] +- Updated dependencies [d0bce70] +- Updated dependencies [a0ee7d2] +- Updated dependencies [57657df] +- Updated dependencies [77d1564] +- Updated dependencies [7814822] +- Updated dependencies [f28c39f] +- Updated dependencies [7341b89] +- Updated dependencies [712b102] +- Updated dependencies [8d4395b] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [afc64fc] +- Updated dependencies [9a13387] +- Updated dependencies [1e87dc1] +- Updated dependencies [dffe83e] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [360820b] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [3dc3983] +- Updated dependencies [a5e49ac] +- Updated dependencies [dbf103d] +- Updated dependencies [05e645b] + - @objectstack/spec@19.0.0-next.4 + - @objectstack/rest@19.0.0-next.4 + - @objectstack/runtime@19.0.0-next.4 + - @objectstack/plugin-auth@19.0.0-next.4 + - @objectstack/service-automation@19.0.0-next.4 + - @objectstack/plugin-approvals@19.0.0-next.4 + - @objectstack/core@19.0.0-next.4 + - @objectstack/objectql@19.0.0-next.4 + - @objectstack/service-messaging@19.0.0-next.4 + - @objectstack/service-storage@19.0.0-next.4 + - @objectstack/platform-objects@19.0.0-next.4 + - @objectstack/service-analytics@19.0.0-next.4 + - @objectstack/mcp@19.0.0-next.4 + - @objectstack/service-queue@19.0.0-next.4 + - @objectstack/service-knowledge@19.0.0-next.4 + - @objectstack/knowledge-pgvector@19.0.0-next.4 + - @objectstack/service-package@19.0.0-next.4 + - @objectstack/plugin-sharing@19.0.0-next.4 + - @objectstack/service-settings@19.0.0-next.4 + - @objectstack/metadata@19.0.0-next.4 + - @objectstack/plugin-email@19.0.0-next.4 + - @objectstack/plugin-audit@19.0.0-next.4 + - @objectstack/plugin-security@19.0.0-next.4 + - @objectstack/trigger-record-change@19.0.0-next.4 + - @objectstack/plugin-hono-server@19.0.0-next.4 + - @objectstack/plugin-pinyin-search@19.0.0-next.4 + - @objectstack/plugin-webhooks@19.0.0-next.4 + - @objectstack/service-cache@19.0.0-next.4 + - @objectstack/service-datasource@19.0.0-next.4 + - @objectstack/service-job@19.0.0-next.4 + - @objectstack/service-mailbox@19.0.0-next.4 + - @objectstack/service-push@19.0.0-next.4 + - @objectstack/service-realtime@19.0.0-next.4 + - @objectstack/service-record-context@19.0.0-next.4 + - @objectstack/service-sms@19.0.0-next.4 + - @objectstack/trigger-api@19.0.0-next.4 + - @objectstack/trigger-schedule@19.0.0-next.4 + - @objectstack/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/packages/verify/package.json b/packages/verify/package.json index e121678fdf8..910995bdcda 100644 --- a/packages/verify/package.json +++ b/packages/verify/package.json @@ -1,6 +1,6 @@ { "name": "@objectstack/verify", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "license": "Apache-2.0", "description": "Boot any ObjectStack app in-process and verify it through the real HTTP stack — auto-derived CRUD round-trip fidelity plus the cross-owner RLS invariant. Catches runtime regressions that static checks miss.", "type": "module", diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index 07116c50b10..ec38bb20856 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -13,7 +13,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: ai tags: agent, tool, skill, knowledge, context-pack, llm, embedding, mcp --- diff --git a/skills/objectstack-api/SKILL.md b/skills/objectstack-api/SKILL.md index f8c56d99949..1613818ba47 100644 --- a/skills/objectstack-api/SKILL.md +++ b/skills/objectstack-api/SKILL.md @@ -14,7 +14,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: api tags: rest, endpoint, auth, realtime, server --- diff --git a/skills/objectstack-ask/SKILL.md b/skills/objectstack-ask/SKILL.md index cd96e3199b3..88b66ad6502 100644 --- a/skills/objectstack-ask/SKILL.md +++ b/skills/objectstack-ask/SKILL.md @@ -17,7 +17,7 @@ license: Apache-2.0 compatibility: Requires an environment served by @objectstack/mcp 19.x metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: process tags: ask, question, metric, dataset, mcp, list_datasets, query_dataset, 问数, 指标 --- diff --git a/skills/objectstack-automation/SKILL.md b/skills/objectstack-automation/SKILL.md index b5c33feb781..01d51a809fb 100644 --- a/skills/objectstack-automation/SKILL.md +++ b/skills/objectstack-automation/SKILL.md @@ -11,7 +11,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: automation tags: flow, workflow, trigger, approval, state-machine, scheduled, webhook --- diff --git a/skills/objectstack-data/SKILL.md b/skills/objectstack-data/SKILL.md index d901fd27a36..2e6c38e8e45 100644 --- a/skills/objectstack-data/SKILL.md +++ b/skills/objectstack-data/SKILL.md @@ -11,7 +11,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: data tags: object, field, validation, index, relationship, hook, schema, permission, rls, security, seed, fixture --- diff --git a/skills/objectstack-formula/SKILL.md b/skills/objectstack-formula/SKILL.md index a58d3cc4af6..e747d36b256 100644 --- a/skills/objectstack-formula/SKILL.md +++ b/skills/objectstack-formula/SKILL.md @@ -11,7 +11,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x and @objectstack/formula 19.x (CEL) metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: expression tags: cel, formula, predicate, condition, validation, visibility, seed-dynamic --- diff --git a/skills/objectstack-i18n/SKILL.md b/skills/objectstack-i18n/SKILL.md index f4642467566..9f32b1c3bed 100644 --- a/skills/objectstack-i18n/SKILL.md +++ b/skills/objectstack-i18n/SKILL.md @@ -11,7 +11,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: i18n tags: i18n, translation, locale, l10n, bundle, coverage --- diff --git a/skills/objectstack-mcp-build/SKILL.md b/skills/objectstack-mcp-build/SKILL.md index 7964f31e608..70c843dc0f6 100644 --- a/skills/objectstack-mcp-build/SKILL.md +++ b/skills/objectstack-mcp-build/SKILL.md @@ -15,7 +15,7 @@ license: Apache-2.0 compatibility: Requires an environment whose @objectstack/runtime 19.x serves the MCP draft door (none through 18.6.0 does), on a connection granted metadata:write metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: process tags: mcp, build, draft, save_metadata_draft, verdict, studio, no-project, 草稿 --- diff --git a/skills/objectstack-platform/SKILL.md b/skills/objectstack-platform/SKILL.md index c54be907e22..f19c0c90005 100644 --- a/skills/objectstack-platform/SKILL.md +++ b/skills/objectstack-platform/SKILL.md @@ -17,7 +17,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x and @objectstack/core 19.x (Zod v4 schemas), Node 22+ metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: platform tags: project, defineStack, driver, hono, plugin, kernel, service, requires, capability, DI, lifecycle, cli, deploy, ops --- diff --git a/skills/objectstack-platform/references/bootstrap.md b/skills/objectstack-platform/references/bootstrap.md index db701f8a054..7024d33ea13 100644 --- a/skills/objectstack-platform/references/bootstrap.md +++ b/skills/objectstack-platform/references/bootstrap.md @@ -329,13 +329,13 @@ resuming, re-run the defect's own reproduction on the version you pin. "validate": "objectstack validate" }, "dependencies": { - "@objectstack/spec": "19.0.0-next.3", - "@objectstack/runtime": "19.0.0-next.3", - "@objectstack/driver-memory": "19.0.0-next.3", - "@objectstack/plugin-hono-server": "19.0.0-next.3" + "@objectstack/spec": "19.0.0-next.4", + "@objectstack/runtime": "19.0.0-next.4", + "@objectstack/driver-memory": "19.0.0-next.4", + "@objectstack/plugin-hono-server": "19.0.0-next.4" }, "devDependencies": { - "@objectstack/cli": "19.0.0-next.3", + "@objectstack/cli": "19.0.0-next.4", "typescript": "^5.3.0" } } diff --git a/skills/objectstack-project/SKILL.md b/skills/objectstack-project/SKILL.md index 74c04d0efe1..85fadba14a3 100644 --- a/skills/objectstack-project/SKILL.md +++ b/skills/objectstack-project/SKILL.md @@ -13,7 +13,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/cli 19.x and @objectstack/verify 19.x; the check lists below are that version's. metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: process tags: project, process, testing, verify, release, changeset, upgrade, backfill, platform-gap --- diff --git a/skills/objectstack-query/SKILL.md b/skills/objectstack-query/SKILL.md index 4b36932b4df..88b36a224bb 100644 --- a/skills/objectstack-query/SKILL.md +++ b/skills/objectstack-query/SKILL.md @@ -12,7 +12,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: query tags: query, filter, sort, paginate, aggregate, ObjectQL, full-text --- diff --git a/skills/objectstack-ui/SKILL.md b/skills/objectstack-ui/SKILL.md index a771260087c..b17e6327375 100644 --- a/skills/objectstack-ui/SKILL.md +++ b/skills/objectstack-ui/SKILL.md @@ -11,7 +11,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x (Zod v4 schemas) metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: ui tags: view, app, page, dashboard, report, chart, action, widget, doc --- diff --git a/skills/objectstack-upgrade/SKILL.md b/skills/objectstack-upgrade/SKILL.md index 1e30b7ad402..68e69bef805 100644 --- a/skills/objectstack-upgrade/SKILL.md +++ b/skills/objectstack-upgrade/SKILL.md @@ -16,7 +16,7 @@ license: Apache-2.0 compatibility: Requires `@objectstack/spec` and `@objectstack/cli` at the TARGET major; the chain replays from the spec's `MIGRATION_SUPPORT_FLOOR`. No network access required. metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: process tags: upgrade, migration, protocol, major, retired-keys, tombstone, conversions, validate, report --- diff --git a/skills/objectui/SKILL.md b/skills/objectui/SKILL.md index 9abeba6b9f1..bf58c53c367 100644 --- a/skills/objectui/SKILL.md +++ b/skills/objectui/SKILL.md @@ -5,7 +5,7 @@ license: Apache-2.0 compatibility: Requires @objectstack/spec 19.x; each @object-ui/* package declares its exact @objectstack/spec range in its own manifest. metadata: author: objectstack-ai - version: "19.0.0-next.3" + version: "19.0.0-next.4" domain: ui tags: sdui, schema-renderer, json-ui, react, shadcn, tailwind, plugin, expression user-invocable: false diff --git a/ui/apps/console/CHANGELOG.md b/ui/apps/console/CHANGELOG.md index f109432bfdc..7eb306eecf7 100644 --- a/ui/apps/console/CHANGELOG.md +++ b/ui/apps/console/CHANGELOG.md @@ -1,5 +1,77 @@ # @object-ui/console +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 1f92981: feat(console): the first-run checklist lives at the bottom of the sidebar only, its entry stays until every row is done, and the account menu reopens it afterwards + + Clause-②: yes (widening) + Metadata-protocol: none + + An administrator's first-run checklist is no longer drawn as a card at the top of the Setup app's first page (系统概览 on a fresh install). It lives in the 「Get started n/m」 entry at the bottom of the sidebar (after the app's menu on a phone), which opens it in place. + + That entry now stays until every row is done, optional rows included (email delivery, inviting colleagues, the built-in AI, connecting an external AI assistant), or until the administrator hides it with 「Hide on this device」. Before, it went away as soon as the required row (the organization's basics) was done, which left the optional rows reachable only from the Setup page card. Home's checklist card (the no-apps page, and a phone's Home) is unchanged: it still stands aside once the required rows are done. + + Once that entry has stood aside (every row done, or the checklist hidden on this device), the account menu carries an 「Initial setup」 item (「初始设置」) for the administrator. It reopens the full checklist in a dialog, done rows shown, for looking back; a row's link opens its Setup page and closes the dialog. It does not un-hide the sidebar entry. + + Nothing is written to the server: hiding the checklist stays a record in this browser, and no row's state changes. + + `@object-ui/i18n` adds one key in every language pack, `console.firstRunChecklist.accountMenuItem` (the item's label). No key is removed or renamed. + + For hosts building on `@object-ui/app-shell` from this workspace: the slot that drew a host element above the Setup app's first page, `SetupFirstPageSlotProvider` (and its type `SetupFirstPageSlot`), is removed. Nothing is drawn there any more; a host that provided one drops the provider. The account menu gains a place for a host's entries, `AccountMenuSlotProvider` (type `AccountMenuSlot`): its value draws `DropdownMenuItem`s after Profile. +- 99b961d: fix(console): a settings key at its manifest default reads unset while the server states nothing is in use for it + + Clause-②: no + Metadata-protocol: none + + On a fresh install, Setup › Mail Delivery showed the Provider select as SMTP, with an empty Host and port 587, under a banner saying no mail leaves the machine and the live transport is the development log. The select showed the manifest default (`provider: { value: 'smtp', source: 'default' }`), not what runs. + + The settings page now reads the namespace's `live` statement: a key whose value comes from the manifest default (`source: 'default'`) while the server states nothing is in use for it (`live[key].source === 'none'`) shows as unset. Mail's Provider select reads its "Select…" placeholder, and the SMTP rows, visible only for `smtp`, stay hidden until a provider is chosen. A save is checked on what the page shows, so a save that leaves the provider unset is blocked on Provider until one is picked (choose "None (log only)" to keep logging). A provider somebody saved is shown as saved, whatever is live; the banner states the live one. Nothing the server serves or stores changes. +- @objectstack/sdui-parser@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/apps/console/package.json b/ui/apps/console/package.json index c41d7a13131..975c8abddb4 100644 --- a/ui/apps/console/package.json +++ b/ui/apps/console/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/console", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "ObjectStack Console — opinionated, fork-ready runtime console built on @object-ui/app-shell with the full plugin set wired up. Ships as a Hono UI plugin serving a pre-built SPA.", "license": "MIT", "type": "module", diff --git a/ui/packages/app-shell/CHANGELOG.md b/ui/packages/app-shell/CHANGELOG.md index c55c5805ce5..151267aea23 100644 --- a/ui/packages/app-shell/CHANGELOG.md +++ b/ui/packages/app-shell/CHANGELOG.md @@ -1,5 +1,430 @@ # @object-ui/app-shell — Changelog +## 18.6.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 67d87f3: fix(console): a closed record's page reads as closed, not as in approval, from the page's one request + + Clause-②: no + Metadata-protocol: none + + The record page now reads the data layer's lock for its Edit and Delete, and words the reason from its `lockReason`. It asks for that lock in the request it already sends when it opens (`POST /api/v1/data/{object}/{id}/page` with `dataLock: true`), so opening a record page is still one request. It no longer asks the approvals lock read for these affordances; the approvals panel and the header's approval tag keep reading it. + + - A closed record (`lockReason: 'closed_state'`, its own state or its master's) shows Edit greyed with "This record is closed, so it can't be changed.", a "Closed" chip, and no Delete, for either `lockSource`. Its master-detail lines offer no New, Edit or Delete. A record that is closed and also held by an approval reads as closed. + - A record held by an approval behaves as before: its own approval keeps Delete, and a line of a held master does not. + - The answer is read above the caller's field permissions, so a reader who may not see the state field still gets the closed wording, and the page shows neither the field nor its value. + - When nothing on screen is a record page, the edit dialog opened over a list reads the record's lock through `GET /api/v1/data/{object}/{id}/lock` next to its approvals reads. The record page does the same when it re-reads after the record changes. Over its record page, the dialog reuses the page's answer and sends nothing. + - `RecordPagePayload` (`@object-ui/types`) declares the payload's `dataLock` part. + - New strings `detail.lockedClosed` and `detail.lockedClosedTooltip` in every console locale. +- ac97540: feat(app-shell): the app's AI inquiry page (`ai:chat`) is the AI drawer's full-window conversation, with its history beside the chat + + Clause-②: no + Metadata-protocol: none + + An app's AI inquiry page now looks and works like the AI drawer filling the window: + + - The history sits beside the chat, in the home state and in a conversation, with search. It lists only the conversations this page started in this app (the same rule the page's `?c=` address uses), among the newest conversations the list reads. Picking one opens it on the page under `?c=`. + - The page header carries the drawer's title-bar buttons: favourite, new conversation, a history button that folds the history away and brings it back, and the 「···」 menu with AI usage and Share. Expand and close stay the drawer's. On a phone the history covers the chat while it is open, as in the drawer's phone sheet. + - Unchanged: the entry's title, subtitle, placeholder, suggestions and scope badge on the home state with its recent conversations; the `ask` agent; the `app:PKG:ask` conversation key and `metadata.activePackageId`; the `?c=` address, which opens the home state for another app's conversation and offers a retry when the check fails; the unavailable and no-package states. + - Until a later change, a conversation starred on the page reopens in the drawer. + + `ChatDockConversation` gains optional props for a host's conversation key and create metadata, a pinned agent, a history row filter, a start shown in place of the pane for a fresh question, and the conversation as the host has already read it. Without them the drawer renders as before. + + Nothing to migrate. +- 2e0d3d7: feat(app-shell): a conversation starred on the app's AI inquiry page (`ai:chat`) reopens on that page + + Clause-②: no + Metadata-protocol: none + + The interim the previous change named is over: a conversation starred on an app's AI inquiry page no longer reopens in the AI drawer. + + - Starring a conversation on the page stores the page's own address for it (`/apps/APP/component/ai/chat?c=ID`). Its row in the sidebar's Favorites opens the page at that conversation, where the page's usual `?c=` checks apply, and the drawer does not open. + - A conversation starred in the drawer opens in the drawer, as before. + - A favourite saved before this change opens in the drawer, as before. Nothing stored is rewritten. + + `ChatTitleBarActions` gains an optional `favoriteHref` for a host other than the drawer to name the address its favourite reopens on. The drawer passes none. + + Nothing to migrate. +- 29b270d: refactor(app-shell): the AI drawer's title-bar buttons become one shared component; the conversation list can be narrowed to a host's own rows + + Clause-②: no + Metadata-protocol: none + + Nothing changes for users: the AI drawer's title bar draws the same buttons in the same order (favourite, new conversation, history, the 「···」 menu with AI usage, Share and expand, and close), in the side rail, the full window and the phone sheet. + + - The buttons now live in one component the drawer renders, which a host can draw without the drawer's own expand and close. The app's AI inquiry page (`ai:chat`) will draw the same row next. + - `ConversationsSidebar` takes an optional `rowFilter`: a predicate over each list row (its `metadata` included). A row it refuses is not listed, the open conversation included, and its missing preview is not read. Without it the list is scoped by agent as before. + + Nothing to migrate. +- 0543d59: feat(app-shell): links in an answer on the app's AI inquiry page (`ai:chat`) open in a new tab + + Clause-②: no + Metadata-protocol: none + + On an app's AI inquiry page only, clicking a link in an answer no longer replaces the page, so the conversation stays where it was. + + - An in-app record link or citation, a list link, and a draft review card's App Studio link open in a new tab. The tab opens the same address a same-tab click opened before, under the console's base path, with `?section=` for a cited section. + - The AI drawer is unchanged: its links still open in the same tab (ui ADR-0057 A3). + - On both, the record-write card's "open full form" button still opens in the same tab, because the proposed values travel with that navigation and a new tab would not receive them. + - External links are unchanged: they already open in a new tab after the link-safety confirmation. + + `ChatPane` and `ChatDockConversation` gain an optional `openLinksInNewTab` for a host that keeps its conversation in place. The drawer passes none. + + Nothing to migrate. +- e5ae93d: fix(app-shell): the Packages page's loose-items banner counts only items its links can move into a package + + Clause-②: no + Metadata-protocol: none + + The banner "N items belong to no package" on Setup → Packages counted every row with no package of every type that takes a runtime write. It counted the platform's `default` datasource, and its "Datasources (1)" link opened Setup's Datasources page, which has no "Loose" list and no way to move a datasource into a package. + + - The banner reads only a type whose Studio list offers the "Loose" value. The datasource is not one: every Studio address of a datasource opens Setup's Datasources page, where connections are managed as environment configuration (ADR-0084, amended 2026-11-26, decision 12). Nor is a type that registers its own list page in place of the default list. + - A record the platform registered (served with `_provenance: 'platform'` and no package) is no longer read as loose, by the banner or by the "Loose" list: the move door leaves it out of what it moves and answers `NOT_LOOSE`. Every other package-less item still counts, and still offers the move. +- 6d163f4: fix(app-shell): a Studio item page drops its "Unpublished draft" marks when the item is published outside the tab + + Clause-②: no + Metadata-protocol: none + + A Studio item page under All metadata kept the header's "Unpublished draft · N pending" chip and the unpublished-changes strip, with its Discard draft and Publish buttons, after the item's draft was published from MCP, REST or another tab. Only a browser reload cleared them. The page now follows the pending-drafts check that the Changes badge already runs: on switching back to the tab, and every 30 seconds while the tab stays visible. + + - With no unsaved edit, the page reads the item again: the marks go when the draft was published or discarded elsewhere, and a draft staged elsewhere shows. + - With unsaved edits, the edits stay on the page and nothing replaces them. A draft that went away takes its marks with it. A draft that appeared shows once the edits are saved or dropped. +- b06efa9: fix(app-shell): binding an Object to a nav item no longer raises a false "does not match the spec" banner + + Clause-②: no + Metadata-protocol: none + + In an app's nav-item inspector, picking an Object showed a red "This metadata does not match the spec" banner naming an unrecognized `object` key, though the item saved clean. Switching an item's type did the same, naming every stale target key. The inspector cleared those keys by setting them to `undefined`. The save's JSON dropped them, but the editor's live check saw them as present. The inspector now removes a cleared key from the item. The banner shows only when the item that would be saved fails the spec. +- 94d552c: fix(app-shell): an app's sidebar names an unlabelled object entry by its object's label, not its machine name + + Clause-②: no + Metadata-protocol: none + + A navigation entry with no `label` of its own shows the current label of what it opens. Opening an app straight on one of its object pages (a deep link, a reload, a fresh tab) often left the sidebar showing the objects' API names, such as `repairs_repair_ticket`, until something else redrew the menu. It happened with or without a view published on the object. + + The sidebar's rows are memoised and compare the previous label lookup with the new one by what each answers. The lookup read the metadata cache live, so once an object's definition arrived both lookups answered its label, the row was judged unchanged and kept the machine name it was first drawn with. Each lookup now answers as of the render that made it, so the arrival is a change the row redraws for. An entry with its own `label` is unaffected. +- 0fff9ae: feat(runtime): a declared `type: 'api'` action delivers a file through the REST action door, and the console saves it as a download + + Clause-②: yes (widening) + Metadata-protocol: none + + **The REST action door relays a file.** `POST /api/v1/actions/...` forwards a same-origin `type: 'api'` action to its `target` in-process. A target that answered `2xx` with anything but JSON used to get the door's own `502`. One such answer is now carried: a non-JSON `2xx` with a body that carries `Content-Disposition: attachment` (a print route's PDF, a CSV export). + + - The door answers it byte for byte: the target's status, its body, and its `Content-Type`, `Content-Disposition`, `Cache-Control` and `X-Content-Type-Options`, each as the target sent it. A credential rotation the target emits is relayed beside it, as on a JSON answer. + - The file is read whole before the door answers, and it is bounded at 32 MiB (`API_FORWARD_ATTACHMENT_MAX_BYTES`). A declared length over the bound is refused unread, and a larger body is refused once it passes the bound. Either way the answer is the door's `502`, never a cut-off file. + - A JSON answer keeps the JSON path whatever its disposition: an `application/json` or `+json` answer sent as `attachment` (the data export with `format=json` is one) is parsed and answered as the same envelope as before. A `204` or `205` has no file to relay and answers as before too. + - Every other non-JSON `2xx` (an inline file, a page, a body with no disposition) still answers `502`. Every non-`2xx` answer is still the target's refusal under its own status, as before. + - The door's gates are unchanged and run first. A caller the door refuses (signed out, an action switched off, a capability it lacks) gets the refusal, and the target is never called. + - **Only the REST door relays a file.** MCP `run_action` and the host door `dispatchAction` still answer a file with the `502`: a tool result and a `{ status, body }` answer cannot carry one. + + **The console saves it.** A click on a declared same-origin `type: 'api'` action whose door answer is a file now saves that file as a download; a JSON answer is read as data, as before, whatever its disposition. The name comes from the `filename*` parameter (RFC 5987, so a name such as `发票.pdf` survives), else from `filename`, else it is `download`. The click then reports success. The record page's own action handler sends a declared action through the same door client, so it saves the file too. A click the shared action runtime fetches itself (an inline page button, or an api action no object declares) saves a target's own attachment answer the same way; it used to read such an answer as an empty success with no file. The record page's own direct fetch is not changed here and still reads a file answer that way. + + Nothing changes for an app whose api targets answer JSON, with or without an attachment disposition. For an app with a target that answers a non-JSON file as an attachment, the action now delivers that file where it used to answer `502`. +- d79520c: fix(console): the marketplace install dialog confirms a schema upgrade instead of failing it + + Clause-②: no + Metadata-protocol: none + + On a console served by the control plane, the marketplace install dialog (**Install to cloud…** on a package page) now reads the upgrade's schema verdict before an upgrade: + + - When the chosen environment already holds the package, the dialog reads `GET /api/v1/cloud/packages/:id/upgrade-plan?environment_id=…` and lists each change that needs confirming in words, in the reader's language: a stored field removed while another is added with no declared rename, or a stored field whose type changes. The primary button reads **Confirm changes and update**, and its one click sends the verdict's token as `confirm_schema_upgrade` with the install, so the upgrade completes instead of answering `409 SCHEMA_UPGRADE_CONFIRMATION_REQUIRED`. + - With nothing to confirm, or on a fresh install, the request is the one it always was, and no plan is read for a fresh install. + - When the plan cannot be read, the dialog says so and installs as before; the control plane still decides. + - When the control plane refuses the token as stale, the dialog reads the plan again, lists the current changes, and asks for the confirmation again, in place of the refusal's text. + - When the refusal itself carries the findings and token (`error.details`), the dialog lists them from the refusal without another read; when neither the refusal nor the plan can be read, it says the update cannot be confirmed from this dialog. + + Nothing to migrate. +- 84d209d: feat(console): the chat's draft review card publishes a draft, pinned to the version the turn saved + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: `DraftReviewItemSchema` (`@objectstack/spec/ai`, the row of the `data-draft-review` stream part) gains the optional `version`, the draft's version token as the turn's last save of it wrote it (the save receipt's `version`). `DraftReviewCardProps` and `ChatbotEnhancedProps` gain the optional `onPublishDraft`, and `@object-ui/plugin-chatbot` exports the type `DraftReviewPublishResult`; the card's Publish strings are added to every shipped locale pack. + + The contract that nothing is published from the chat changes. The review card under an ask turn's answer now carries a Publish button per draft: one click publishes that one draft as the signed-in person, through the item's own publish (`POST /meta/:type/:name/publish?package=`), with the row's `version` sent as the body's `draftVersion`. A draft changed after the turn saved it is refused `409 METADATA_CONFLICT`, nothing is published, and the row says the draft changed since the turn. Any other refusal (a member who may not publish gets `PERMISSION_DENIED`) is shown on the row with the platform's code and sentence. Publish is offered only on a row that carries a `version` and whose verdict is `publishable`; a refused, withheld or unversioned row shows it disabled with the reason and is published in Studio through the review links, as before. The agent is given no publish: the click is always the person's. Nothing is discarded from the chat. + + `verdictWithheld`'s description now also covers a draft the door left unjudged under a bound such as `MAX_RECORDS_EXCEEDED`, not only a verdict the person may not read; its shape is unchanged. + + A host that fills the `data-draft-review` part must state each row's `version` for the button to be enabled; a part without it draws the card as before, with Publish disabled. + + Why the protocol line reads added: `DraftReviewItem` is on the authorable surface the ratchet records (`packages/spec/authorable-surface/ai.json`), and `version` is a key that enters it. Nothing a released version accepts is refused now. +- 444dce6: fix(console): the record edit dialog opens locked with the closed sentence on a closed record + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening: the exported `lockedBy` prop of `RecordFieldAccessScopeProps` (`@object-ui/permissions`) and of `ModalFormProps` (`@object-ui/plugin-form`) accepts `'closed'` beside `'approval'`. + + The console's full-record edit dialog now opens read-only on a closed record (one of its object's `closedStates` holds, its own or its master's, ADR-0162). It says "This record is closed, so it can't be changed." (the record page's sentence, `detail.lockedClosedTooltip`) and offers no Save. Before, it opened editable and the server's refusal of the save was the user's first notice. + + - The dialog reads the closed state from the data lock the record page reads (`recordClosedByLock` on `useRecordApprovals`). It sends no request of its own: on a record page it uses the page's answer. + - A record that is closed and also held by an approval reads as closed, as on the record page. A record held only by an approval reads as before. + - `RecordFieldAccessScope`, `ModalForm` and `RecordFieldAccessForForm` accept `lockedBy: 'closed'` beside `'approval'`. The scope refuses the row's update with the new reason `record-closed`, and `closedFormAffordance` answers it as the new `'closed'` affordance, which `closedForRecord` treats like `'approval'` (no Save). +- 571b494: fix(console): the record page's edit-state save writes a closing header after its lines + + Clause-②: no + Metadata-protocol: none + + On a record page in its edit state, a Save that edits the body-table lines and also sets the record to a state its object lists in `closedStates` now writes every line first and the record's update last, in the same one batch. Before, the record's update went first, the line writes then met a closed record, and the whole save was refused. A Save that does not close the record keeps the record's update first, as before. This is the order the master-detail form already uses (ADR-0162 D4). + + `buildRecordEditBatch` takes the object's `closedStates` as a new optional fifth argument (`{ closedStates }`), the same option `buildMasterDetailEditBatch` takes. Callers that pass nothing get the old order. Find the record's operation by its owner (`{ kind: 'parent' }`), not by index 0: a closing update is the last operation. +- 81112d2: fix(app-shell): the ⌘K command palette offers "Create 'words' as OBJECT" only for the object of the page it was opened on, and only when the query finds nothing else + + Clause-②: no + Metadata-protocol: none + + The palette used to offer every typed query as a new record of each of the app's first three creatable objects, on any page and whatever the query found. In Setup, searching 邮件, 时区 or 审计 listed 「新建「邮件」为业务单元 / 共享规则 / 队列」. + + - The "Create 'words' as OBJECT" row is now offered only for the object of the page the palette was opened on (its list, a named view or a record page), when the member may create one seeded with the words. + - It is not offered while the query finds an entry of its own: a navigation entry, a report, an app, a command or a "New OBJECT" entry. Words that name a page are a search for that page, not a record title. + - Off an object's page (an app's home, a dashboard, Setup's overview) no such row is offered. The "New OBJECT" entries, found by "new" or by an object's name, are unchanged. + + Nothing to migrate. +- baecbf2: fix(app-shell): the ⌘K command palette finds the app's component and url navigation entries, so every Setup page can be found by its name + + Clause-②: no + Metadata-protocol: none + + The palette matched only object, dashboard, page and report navigation entries. Nearly every Setup page is a `component` entry (Audit Log, Recycle Bin, Positions and Permissions, Packages) or a `url` entry (Mail Delivery, Localization, Company, Authentication), so searching 邮件, 审计 or "mail" in Setup found no page. + + - Such an entry is now listed under Pages, matched by the label the sidebar shows (in the viewer's language) and, for a component entry, by its `componentRef`. A `url` entry is not matched by its address. + - Only the entries the sidebar shows this member are offered: an entry hidden by its `requiredPermissions`, a capability gate or `visible` stays hidden. + - Picking one opens it where its sidebar row's link does: the component route with its params, the url entry's address, and a `_blank` url entry in a new tab. + + Nothing to migrate. +- 1f92981: feat(console): the first-run checklist lives at the bottom of the sidebar only, its entry stays until every row is done, and the account menu reopens it afterwards + + Clause-②: yes (widening) + Metadata-protocol: none + + An administrator's first-run checklist is no longer drawn as a card at the top of the Setup app's first page (系统概览 on a fresh install). It lives in the 「Get started n/m」 entry at the bottom of the sidebar (after the app's menu on a phone), which opens it in place. + + That entry now stays until every row is done, optional rows included (email delivery, inviting colleagues, the built-in AI, connecting an external AI assistant), or until the administrator hides it with 「Hide on this device」. Before, it went away as soon as the required row (the organization's basics) was done, which left the optional rows reachable only from the Setup page card. Home's checklist card (the no-apps page, and a phone's Home) is unchanged: it still stands aside once the required rows are done. + + Once that entry has stood aside (every row done, or the checklist hidden on this device), the account menu carries an 「Initial setup」 item (「初始设置」) for the administrator. It reopens the full checklist in a dialog, done rows shown, for looking back; a row's link opens its Setup page and closes the dialog. It does not un-hide the sidebar entry. + + Nothing is written to the server: hiding the checklist stays a record in this browser, and no row's state changes. + + `@object-ui/i18n` adds one key in every language pack, `console.firstRunChecklist.accountMenuItem` (the item's label). No key is removed or renamed. + + For hosts building on `@object-ui/app-shell` from this workspace: the slot that drew a host element above the Setup app's first page, `SetupFirstPageSlotProvider` (and its type `SetupFirstPageSlot`), is removed. Nothing is drawn there any more; a host that provided one drops the provider. The account menu gains a place for a host's entries, `AccountMenuSlotProvider` (type `AccountMenuSlot`): its value draws `DropdownMenuItem`s after Profile. +- 634c598: fix(app-shell): Setup's Positions and permissions page is titled as its navigation entry and drawn for an administrator + + Clause-②: no + Metadata-protocol: none + + Setup → Access control → Positions and permissions (zh 岗位与权限) opened a page headed 「元数据」 ("All Metadata Types"), the Studio type directory's own title, and each type's tile printed its machine name (`position`, `capability`, `permission`, `sharing_rule`) under its label. It also showed the metadata browser's instruments: lock counts, the per-type state chips (可新增 / 只读) with the sentence that explains them, and the Quick Find hint and palette. The page heading is now the label the sidebar draws for the entry that opened it, read from the app as served, so it matches the entry in every locale the app is translated into and follows a stack's own relabel of that entry. Only when no sidebar entry opens the page does the heading fall back to the Studio string for this catalog, which exists in English and Chinese. Its tiles name each type by its label alone, and those instruments are not drawn there. Studio's directory keeps its title, its machine names and every instrument unchanged. +- 3dfffef: feat(spec): a navigation item declares search aliases, `keywords`, and a translation bundle gives them per locale + + Clause-②: yes (widening) + Metadata-protocol: added + + Setup pages are being renamed (#39050), so a page must still be found by its old name. Two optional keys carry that: + + - **`keywords: string[]` on every navigation item** except `separator` (it sits on the shared nav base, beside `label`). Source-language words a person may type to find the entry, such as its old name. Search only: never shown, never a route, never a gate. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, and an entry takes at most 20 (the dataset synonym's rule); anything else is refused, not trimmed. `synonyms`, `searchTerms` and `searchKeywords` are refused with "did you mean `keywords`", and so is `aliases`, except on a `group`, where it is answered with both keys it can mean there (`keywords`, or `renamedFrom` for retired group ids). A `separator` refuses `keywords` with its own prescription. + - **`keywords: string[]` on a translation bundle's navigation node**, beside `label`: `apps..navigation..keywords` gives this locale's aliases for the entry, keyed by the same entry id as the label, at both translation doors (the file bundle and the registered `translation` item), under the same rule as the item's. The node still owes its `label`, and an unknown key is still refused. + + The key is named `keywords`, not `aliases`, because `aliases` already means a retired-key rename map across the AI schemas. + + Nothing reads either key yet. The reader is the command palette (#39055), which will match a query against the aliases resolved for the current locale. Until then the key is graded `planned` on the liveness ledger (`navigation.children.keywords`), its describe carries `[PLANNED — not yet read]`, and authoring it raises no warning: an alias nothing reads costs a search hit, not a gate. + + The navigation contribution's `group` describe and example now name a current Setup group id, `group_integrations_dev`, instead of the retired `group_integrations`. + + `@object-ui/types` declares `keywords` on its navigation item mirror, so `objectui validate` keeps the key, under the spec's rule, instead of stripping it; nothing in the console reads it yet. `@object-ui/app-shell`'s nav editors count `keywords` among the describing keys, so changing an entry's type keeps them. + + No action needed for existing metadata: both keys are optional. +- f7c791f: feat(app-shell): the command palette finds a navigation entry by its old name or another alias, and shows each navigation result under its group path + + Clause-②: yes (widening) + Metadata-protocol: none + + A navigation entry's `keywords` now have their reader. + + - **The served app carries each entry's aliases for the reader's locale.** `translateApp` gives every navigation node its own source-language `keywords` plus the reader's locale's `apps..navigation..keywords` from the translation bundle (the first locale along the chain that lists any), each word once. A locale's words add to the source words; they never replace them. So an English alias still finds the entry in a Chinese session, and a Chinese-only alias finds it there and not in English. A node whose bundle lists no keywords is served as before. + - **The ⌘K palette matches navigation entries on their `keywords`** as well as on their label and machine name, under the same word-prefix and substring rule. When only an alias found the entry, the row shows it after the entry's name: 「原名 岗位持有人」 in Chinese, "Formerly Position Holders" in English (a new `console.commandPalette.formerName` string in every console locale). A group's label and `keywords` find the visible entries under it, so a renamed group is still found by its old name, and each of its entries shows the group's matched alias. An entry found through an alias counts as found, so the palette does not offer to create a record from those words. `action` and `doc` entries accept `keywords`, but nothing reads them yet. + - **Every navigation result shows its group path** before its name, 「人员与组织 › 业务单元」, nested groups outermost first; an entry at the top level of the menu shows its name alone. + + The key's liveness row (`navigation.children.keywords`) is now `live`, and its describe no longer carries the `[PLANNED — not yet read]` marker. + + No action needed for existing metadata. +- 53ca731: Clause-②: no + Metadata-protocol: none + + The account menu (the avatar menu and the sidebar foot's row) gains a 「系统设置」 / "Setup" entry that opens `/apps/setup`, drawn only for a member whose capability set holds `setup.access` (`holdsSetupAccess`, read from `usePermissions().systemPermissions`, as the shell's other Setup gates read it). A member without it sees no entry. The label is the new `user.setup` key in every locale pack. Where a member lands at sign-in is unchanged (objectstack#39062). +- e9a5d4f: feat(console): on an object list drawn as a grid, a record with an open comment thread shows a dot after its name + + Clause-②: no + Metadata-protocol: none + + On an object's list view drawn as a grid, a record with at least one open comment thread (a top-level thread that is not resolved) shows a small dot after its name. The dot is a marker only: clicking it does nothing. Its accessible name and tooltip say how many threads are open, with the same text as a board card's comment count. + + - One grouped count read per page of rows (`POST /data/sys_comment/query`), never one per row. It is asked again when the page changes, when the list re-reads, and when a comment is posted, edited, deleted, resolved or reopened. + - An object with `enable.feeds: false` reads nothing and shows no dot. A board reads nothing for the dot, and its cards keep their comment count (`kanban.cardFooter.comments`). + - A member who may not read comments sees no dot and no error. + - On the managed environment's Users list, the dot is drawn beside the "Not authorized" marker, and both show when both apply. + + Nothing to migrate. +- f6b008e: refactor(console): the record page's discussion becomes one unit other pages can mount + + Clause-②: no + Metadata-protocol: none + + No visible change. The record page's comment read (comments, their reactions on either store, reply counts, resolutions and resolver names), its comment writes (post, reply, edit, delete, resolve and reopen, react), the write gates that hand each write out and the panel's two record verdicts (may the viewer moderate comments here, may they update a comment they did not write) move out of `RecordDetailView` into `useRecordDiscussion`, a hook in the same package keyed by object and record id. The record page mounts it once; it still reads the comments inside its own feed effect beside the activity, so a record page sends the same requests on open, in the same order. A second mount, for another record on the same page, shares no state with the first. The hook is internal to `@object-ui/app-shell` and is not exported from a package entry. +- e9b01db: feat(console): on a phone, the list page's comments icon opens the view's threads as a page + + Clause-②: no + Metadata-protocol: none + + On a phone, an object's list page shows a comments icon in its top bar, before ⋮, on a grid or a board of an object whose discussion is on (`enable.feeds` not `false`), against a server that answers the threads read. It opens a page over the list with the same threads the desktop comments column lists for the same view and person: the view's saved filter with the filters set on the list and not saved, newest first, with the column's filter menu and no box for a new comment. A card opens its thread the way the record's phone comment page shows one: the comment and its replies, the reply box docked above the keyboard, and a long press for the same actions. The record's name on a card opens the record's page. The page lives in the URL (`?comments=`, and `?commentsRecord=` beside a thread), so Back returns to the list where it was scrolled and a reload reopens the page or the thread. With feeds off there is no icon. +- 6a3e3ac: fix(console, cloud-connection): a schema upgrade can be confirmed through the install-local door and the tenant-runtime install door too + + Clause-②: yes + Metadata-protocol: none + + An upgrade whose new version renames or retypes stored fields is refused `409 SCHEMA_UPGRADE_CONFIRMATION_REQUIRED` until the same request carries the finding set's token. The marketplace dialog on a control-plane console confirms it since the previous release; the two other install doors had no way to, so the same upgrade failed there with no path forward in the console. + + - **Self-hosted runtime (install-local).** When the runtime refuses a local Install or Reinstall for want of that confirmation, the confirm in front of Install opens again and lists each change in words, in the reader's language, with a line saying this runtime asks for the confirmation. Its button reads **Confirm changes and update** and sends the refusal's token as `confirmSchemaUpgrade`; a token the findings have outgrown is refused again and the fresh list replaces the old one. A refusal that lists no changes says the install cannot be confirmed from the console, instead of the raw refusal text. Opening the confirm again from the page starts over. + - **Hosted environment (`POST /api/v1/cloud-connection/install`).** The route now takes `confirm_schema_upgrade`, the control plane's own param name, and forwards it to the control plane's install action; absent or `null`, nothing is forwarded and the request is the one it always was. Anything but a non-empty string (`true`, `''`, a number) is refused `400 INVALID_REQUEST` naming the key, before the control plane is asked. The route relays the control plane's refusal as it was, so the hosted install dialog lists the refusal's own changes and its next click sends their token. This runtime serves no upgrade-plan route, so the hosted dialog reads none. + + Nothing to migrate. +- 4b1be66: feat(plugin-detail): `CommentsPage` takes an optional `threadTitle`; the phone list page's comment thread names its record + + Clause-②: yes (widening) + Metadata-protocol: none + + `CommentsPage` takes one new optional prop, `threadTitle` (`{ label, onPress? }`). When set, a thread's header reads `label` instead of the generic thread title, and `onPress`, when set, makes the title a button. The list level's header is unchanged, and a host that passes nothing keeps today's header, so existing hosts need no change. On a phone, a thread opened from an object list page's comments page now reads its record's name in the header; a tap opens the record's page, and Back returns to the thread. A thread opened from a link before its card is read keeps the generic header. The record page's own phone comments page is unchanged. +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [2595004] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [1aa9c57] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [197e3ff] +- Updated dependencies [913d30d] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [878aebd] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [ff491c4] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [571b494] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [4b8a67d] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [75a2d57] +- Updated dependencies [9a13387] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [27ce3c0] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [4b1be66] +- Updated dependencies [a5e49ac] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @object-ui/plugin-list@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @objectstack/lint@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/plugin-grid@19.0.0-next.4 + - @object-ui/plugin-form@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/plugin-chatbot@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/layout@19.0.0-next.4 + - @object-ui/auth@19.0.0-next.4 + - @object-ui/data-objectstack@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + - @object-ui/plugin-calendar@19.0.0-next.4 + - @object-ui/plugin-charts@19.0.0-next.4 + - @object-ui/plugin-dashboard@19.0.0-next.4 + - @object-ui/plugin-designer@19.0.0-next.4 + - @object-ui/plugin-editor@19.0.0-next.4 + - @object-ui/plugin-kanban@19.0.0-next.4 + - @object-ui/plugin-report@19.0.0-next.4 + - @object-ui/plugin-view@19.0.0-next.4 + - @object-ui/collaboration@19.0.0-next.4 + - @object-ui/mobile@19.0.0-next.4 + ## 18.6.0-next.3 ### Minor Changes diff --git a/ui/packages/app-shell/package.json b/ui/packages/app-shell/package.json index e7ff98c27e3..fc4e65496b0 100644 --- a/ui/packages/app-shell/package.json +++ b/ui/packages/app-shell/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/app-shell", - "version": "18.6.0-next.3", + "version": "18.6.0-next.4", "private": true, "type": "module", "sideEffects": [ diff --git a/ui/packages/auth/CHANGELOG.md b/ui/packages/auth/CHANGELOG.md index 5222950ac08..af0880043b8 100644 --- a/ui/packages/auth/CHANGELOG.md +++ b/ui/packages/auth/CHANGELOG.md @@ -1,5 +1,87 @@ # @object-ui/auth +## 19.0.0-next.4 + +### Patch Changes + +- 9a13387: fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + + Clause-②: no + Metadata-protocol: none + + A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + + - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. + - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + + The same release refreshes four runtime dependencies to their latest patch level: + + - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. + - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). + - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + + The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. +- 27ce3c0: fix(auth): `removeMember` sends `memberIdOrEmail`, the key the remove-member endpoint reads, so the console's Remove member works again + + Clause-②: no + Metadata-protocol: none + + The console's Members page sent `POST /organization/remove-member` with `{ organizationId, memberIdOrUserId }`. better-auth's remove-member endpoint reads `memberIdOrEmail`, so every removal was refused with `400 VALIDATION_ERROR` naming `body.memberIdOrEmail`, and the member stayed in the organization. The auth client now sends `memberIdOrEmail`, the same key `@objectstack/client`'s `organizations.removeMember` sends, and that call is now typed against better-auth's own organization client, so another spelling no longer compiles there. + + The parameter of `removeMember` is renamed on `AuthClient` and on the `useAuth()` / `AuthContext` value: `removeMember({ organizationId, memberIdOrUserId })` becomes `removeMember({ organizationId, memberIdOrEmail })`. The value is unchanged: a member id (or the member's email). Code that called it with the old key never removed anyone; rename the key. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/auth/package.json b/ui/packages/auth/package.json index d3fa17ca0f7..2bf28f9e152 100644 --- a/ui/packages/auth/package.json +++ b/ui/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/auth", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Authentication system for ObjectUI with AuthProvider, useAuth hook, AuthGuard, and form components.", diff --git a/ui/packages/cli/CHANGELOG.md b/ui/packages/cli/CHANGELOG.md index 4575a4c0130..fb3c334d558 100644 --- a/ui/packages/cli/CHANGELOG.md +++ b/ui/packages/cli/CHANGELOG.md @@ -1,5 +1,83 @@ # @object-ui/cli +## 19.0.0-next.4 + +### Patch Changes + +- 9a13387: fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + + Clause-②: no + Metadata-protocol: none + + A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + + - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. + - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + + The same release refreshes four runtime dependencies to their latest patch level: + + - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. + - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). + - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + + The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/cli/package.json b/ui/packages/cli/package.json index 5d26b600877..0a19147b70a 100644 --- a/ui/packages/cli/package.json +++ b/ui/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/cli", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "Standalone CLI for ObjectUI — scaffold, develop, build and validate JSON/YAML schema-driven applications.", "type": "module", "homepage": "https://objectstack.ai/docs/frontend/cli", diff --git a/ui/packages/collaboration/CHANGELOG.md b/ui/packages/collaboration/CHANGELOG.md index 001feea34ec..ac8dc453c8b 100644 --- a/ui/packages/collaboration/CHANGELOG.md +++ b/ui/packages/collaboration/CHANGELOG.md @@ -1,5 +1,26 @@ # @object-ui/collaboration +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [d79520c] +- Updated dependencies [84d209d] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [b98173c] +- Updated dependencies [6a3e3ac] + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/collaboration/package.json b/ui/packages/collaboration/package.json index 17ec8cf704c..e8a1469c481 100644 --- a/ui/packages/collaboration/package.json +++ b/ui/packages/collaboration/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/collaboration", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Real-time collaboration for ObjectUI with presence tracking, live cursors, conflict resolution, and comment threads.", diff --git a/ui/packages/components/CHANGELOG.md b/ui/packages/components/CHANGELOG.md index 6ece16386bc..038b8810114 100644 --- a/ui/packages/components/CHANGELOG.md +++ b/ui/packages/components/CHANGELOG.md @@ -1,5 +1,70 @@ # @object-ui/components +## 19.0.0-next.4 + +### Patch Changes + +- 0f2778c: fix(plugin-list, components): browser Back to a scroll-loaded list restores the rows and the position it left, as the record page's close button does + + Clause-②: no + Metadata-protocol: none + + A list that loads as it scrolls keeps its position and the rows it held under a key naming the list's address. Two things stopped browser Back from returning there when the record drawer had been open over the list: + + - The key carried the drawer's `recordId` and `recordObject` parameters. The drawer opens over the list without remounting it, so a record opened while the drawer was open left a history entry carrying the drawer. Back returned to that address, missed the kept position and showed the first window at the top. The close button returns to the list without the drawer and found it. A list that first mounted under an open drawer lost its position on every return. The key now leaves out those two parameters; every other address parameter still keys the list. + - On that return the drawer reopened and scrolled its record's row into view over the restored position. A list that returns to a kept position now says so on its root (`data-list-kept-position`), and there the drawer's first record is not scrolled into view. A row click, a step to another record, or a deep link with no kept position scrolls the open row into view as before. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @objectstack/sdui-parser@19.0.0-next.4 + - @object-ui/react-runtime@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/ui/packages/components/package.json b/ui/packages/components/package.json index be3acfa5fcf..2e13bc56b94 100644 --- a/ui/packages/components/package.json +++ b/ui/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/components", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Standard UI component library for ObjectUI, built with Shadcn UI + Tailwind CSS", diff --git a/ui/packages/core/CHANGELOG.md b/ui/packages/core/CHANGELOG.md index d727656642b..09820005413 100644 --- a/ui/packages/core/CHANGELOG.md +++ b/ui/packages/core/CHANGELOG.md @@ -1,5 +1,93 @@ # @object-ui/core +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/ui/packages/core/package.json b/ui/packages/core/package.json index 0fa727c0b99..4c5727ac5b8 100644 --- a/ui/packages/core/package.json +++ b/ui/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/core", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "sideEffects": false, "license": "MIT", diff --git a/ui/packages/create-plugin/CHANGELOG.md b/ui/packages/create-plugin/CHANGELOG.md index ebe3d61e4b7..30d54cc7c62 100644 --- a/ui/packages/create-plugin/CHANGELOG.md +++ b/ui/packages/create-plugin/CHANGELOG.md @@ -1,5 +1,9 @@ # @object-ui/create-plugin +## 19.0.0-next.4 + +No changes in this release. + ## 19.0.0-next.3 No changes in this release. diff --git a/ui/packages/create-plugin/package.json b/ui/packages/create-plugin/package.json index ca86afcc6ef..1353facdb3f 100644 --- a/ui/packages/create-plugin/package.json +++ b/ui/packages/create-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/create-plugin", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "CLI tool to scaffold ObjectUI plugins", "type": "module", "license": "MIT", diff --git a/ui/packages/data-objectstack/CHANGELOG.md b/ui/packages/data-objectstack/CHANGELOG.md index 3932695bf8f..c5c9f452e5b 100644 --- a/ui/packages/data-objectstack/CHANGELOG.md +++ b/ui/packages/data-objectstack/CHANGELOG.md @@ -1,5 +1,61 @@ # @object-ui/data-objectstack +## 19.0.0-next.4 + +### Patch Changes + +- b98173c: feat(console): a comments column on the list page, with the threads of the records the view shows + + Clause-②: yes (widening) — new optional members and exports only: `DataSource.queryCommentThreads` and the `CommentThreadsQueryRequest` / `CommentThreadsQueryResponse` types on `@object-ui/types`; `ListView`'s `onEffectiveFilterChange` host prop and the `ListEffectiveFilter` type on `@object-ui/plugin-list`; `ViewCommentsPanel`, `splitCommentMentions` and their types on `@object-ui/plugin-detail`; nothing removed or renamed + Metadata-protocol: none + + An object's list page now has a comments icon in its header, on a grid and on a board, where the object's discussion is on (`enable.feeds` not `false`). A press opens a 380 px column at the page's right and the list narrows to make room; ✕ or Esc closes it, and the browser remembers whether it was left open. + + The column lists the comment threads on the records the view shows, newest first: the view's saved filter together with the filters the reader has set on the list and not saved. The search box does not narrow it. The server runs the filter as the reader's own read, so someone who may read fewer records sees fewer threads. Each card names the record (which opens it the way a row does), who wrote the first comment and when, its text with mentions highlighted, and 「N 条回复」 with the latest repliers' faces; 「加载更多」 reads the next page. A card opens its thread in place, with reply, resolve and reopen, reactions, edit and delete as the record page offers them; there is no box for a new thread. The filter menu holds 「显示已解决」 (off) and 「只看我参与的」. The column reads again when the view, its filter or a toggle changes and when a comment is written, and reads nothing while closed. It says so when the reader may not read the comments, when the read failed (with a retry), when the list's filter cannot be sent, and when the server does not answer the threads read (`POST /api/v1/comments/threads/query`). + + For React hosts: `ObjectStackAdapter.queryCommentThreads(request)` calls that read; `ListView`'s `onEffectiveFilterChange` reports the filter the list applies, on every layout (`{ kind: 'filter', filter }`, or `{ kind: 'unlowerable' }` for a filter it cannot lower); `ViewCommentsPanel` draws the column from threads its host reads. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @objectstack/client@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/data-objectstack/package.json b/ui/packages/data-objectstack/package.json index 3469c11481d..fc0ec78da9d 100644 --- a/ui/packages/data-objectstack/package.json +++ b/ui/packages/data-objectstack/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/data-objectstack", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "ObjectStack Data Adapter for ObjectUI", "license": "MIT", "type": "module", diff --git a/ui/packages/fields/CHANGELOG.md b/ui/packages/fields/CHANGELOG.md index c836cb0dd3c..3dbcbd43153 100644 --- a/ui/packages/fields/CHANGELOG.md +++ b/ui/packages/fields/CHANGELOG.md @@ -1,5 +1,66 @@ # @object-ui/fields +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [0c6f679] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/formula@19.0.0-next.4 + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/mobile@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/fields/package.json b/ui/packages/fields/package.json index a8a13f54221..f0de25f5d9d 100644 --- a/ui/packages/fields/package.json +++ b/ui/packages/fields/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/fields", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "Field renderers and registry for ObjectUI", "license": "MIT", "type": "module", diff --git a/ui/packages/i18n/CHANGELOG.md b/ui/packages/i18n/CHANGELOG.md index 394fc428d0c..9b5a68b7195 100644 --- a/ui/packages/i18n/CHANGELOG.md +++ b/ui/packages/i18n/CHANGELOG.md @@ -1,5 +1,171 @@ # @object-ui/i18n +## 19.0.0-next.4 + +### Patch Changes + +- 5064289: fix(console): a closed row in a grid reads as closed, not as in approval, and a save that closes a master writes its lines first + + Clause-②: no + Metadata-protocol: none + + The grid and the line grid now ask the data layer's one lock read (`POST /api/v1/data/{object}/locks`, on the first cell or row selection) for the edit and delete affordances of a row, and word the reason from its `lockReason`. They no longer ask the approvals lock read for this. + + - A closed row (`lockReason: 'closed_state'`, its own state or its master's) opens no cell editor, and the cell says "This record is closed, so it can't be changed." Its row menu offers neither Edit nor Delete, for either `lockSource`. A row that is closed and also held by an approval reads as closed. + - A row held by an approval behaves as before: its own approval keeps Delete, and a line of a held master does not. + - The answer is read above the caller's field permissions, so a reader who may not see the state field still gets the closed wording. + - A master-detail edit save that sets a closing state on the header (a value its object lists in `closedStates`) writes every line first and the header last, in one batch, so the save is not refused against the record it is closing. A save that does not close keeps the header first. + - New string `grid.readOnlyReason.closedLocked` in every console locale. + + The grid's lock read is gated on the `data` route in discovery, not on the approvals service, and makes the same number of requests as before. The record page is unchanged here. +- 67d87f3: fix(console): a closed record's page reads as closed, not as in approval, from the page's one request + + Clause-②: no + Metadata-protocol: none + + The record page now reads the data layer's lock for its Edit and Delete, and words the reason from its `lockReason`. It asks for that lock in the request it already sends when it opens (`POST /api/v1/data/{object}/{id}/page` with `dataLock: true`), so opening a record page is still one request. It no longer asks the approvals lock read for these affordances; the approvals panel and the header's approval tag keep reading it. + + - A closed record (`lockReason: 'closed_state'`, its own state or its master's) shows Edit greyed with "This record is closed, so it can't be changed.", a "Closed" chip, and no Delete, for either `lockSource`. Its master-detail lines offer no New, Edit or Delete. A record that is closed and also held by an approval reads as closed. + - A record held by an approval behaves as before: its own approval keeps Delete, and a line of a held master does not. + - The answer is read above the caller's field permissions, so a reader who may not see the state field still gets the closed wording, and the page shows neither the field nor its value. + - When nothing on screen is a record page, the edit dialog opened over a list reads the record's lock through `GET /api/v1/data/{object}/{id}/lock` next to its approvals reads. The record page does the same when it re-reads after the record changes. Over its record page, the dialog reuses the page's answer and sends nothing. + - `RecordPagePayload` (`@object-ui/types`) declares the payload's `dataLock` part. + - New strings `detail.lockedClosed` and `detail.lockedClosedTooltip` in every console locale. +- d79520c: fix(console): the marketplace install dialog confirms a schema upgrade instead of failing it + + Clause-②: no + Metadata-protocol: none + + On a console served by the control plane, the marketplace install dialog (**Install to cloud…** on a package page) now reads the upgrade's schema verdict before an upgrade: + + - When the chosen environment already holds the package, the dialog reads `GET /api/v1/cloud/packages/:id/upgrade-plan?environment_id=…` and lists each change that needs confirming in words, in the reader's language: a stored field removed while another is added with no declared rename, or a stored field whose type changes. The primary button reads **Confirm changes and update**, and its one click sends the verdict's token as `confirm_schema_upgrade` with the install, so the upgrade completes instead of answering `409 SCHEMA_UPGRADE_CONFIRMATION_REQUIRED`. + - With nothing to confirm, or on a fresh install, the request is the one it always was, and no plan is read for a fresh install. + - When the plan cannot be read, the dialog says so and installs as before; the control plane still decides. + - When the control plane refuses the token as stale, the dialog reads the plan again, lists the current changes, and asks for the confirmation again, in place of the refusal's text. + - When the refusal itself carries the findings and token (`error.details`), the dialog lists them from the refusal without another read; when neither the refusal nor the plan can be read, it says the update cannot be confirmed from this dialog. + + Nothing to migrate. +- 84d209d: feat(console): the chat's draft review card publishes a draft, pinned to the version the turn saved + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: `DraftReviewItemSchema` (`@objectstack/spec/ai`, the row of the `data-draft-review` stream part) gains the optional `version`, the draft's version token as the turn's last save of it wrote it (the save receipt's `version`). `DraftReviewCardProps` and `ChatbotEnhancedProps` gain the optional `onPublishDraft`, and `@object-ui/plugin-chatbot` exports the type `DraftReviewPublishResult`; the card's Publish strings are added to every shipped locale pack. + + The contract that nothing is published from the chat changes. The review card under an ask turn's answer now carries a Publish button per draft: one click publishes that one draft as the signed-in person, through the item's own publish (`POST /meta/:type/:name/publish?package=`), with the row's `version` sent as the body's `draftVersion`. A draft changed after the turn saved it is refused `409 METADATA_CONFLICT`, nothing is published, and the row says the draft changed since the turn. Any other refusal (a member who may not publish gets `PERMISSION_DENIED`) is shown on the row with the platform's code and sentence. Publish is offered only on a row that carries a `version` and whose verdict is `publishable`; a refused, withheld or unversioned row shows it disabled with the reason and is published in Studio through the review links, as before. The agent is given no publish: the click is always the person's. Nothing is discarded from the chat. + + `verdictWithheld`'s description now also covers a draft the door left unjudged under a bound such as `MAX_RECORDS_EXCEEDED`, not only a verdict the person may not read; its shape is unchanged. + + A host that fills the `data-draft-review` part must state each row's `version` for the button to be enabled; a part without it draws the card as before, with Publish disabled. + + Why the protocol line reads added: `DraftReviewItem` is on the authorable surface the ratchet records (`packages/spec/authorable-surface/ai.json`), and `version` is a key that enters it. Nothing a released version accepts is refused now. +- 1f92981: feat(console): the first-run checklist lives at the bottom of the sidebar only, its entry stays until every row is done, and the account menu reopens it afterwards + + Clause-②: yes (widening) + Metadata-protocol: none + + An administrator's first-run checklist is no longer drawn as a card at the top of the Setup app's first page (系统概览 on a fresh install). It lives in the 「Get started n/m」 entry at the bottom of the sidebar (after the app's menu on a phone), which opens it in place. + + That entry now stays until every row is done, optional rows included (email delivery, inviting colleagues, the built-in AI, connecting an external AI assistant), or until the administrator hides it with 「Hide on this device」. Before, it went away as soon as the required row (the organization's basics) was done, which left the optional rows reachable only from the Setup page card. Home's checklist card (the no-apps page, and a phone's Home) is unchanged: it still stands aside once the required rows are done. + + Once that entry has stood aside (every row done, or the checklist hidden on this device), the account menu carries an 「Initial setup」 item (「初始设置」) for the administrator. It reopens the full checklist in a dialog, done rows shown, for looking back; a row's link opens its Setup page and closes the dialog. It does not un-hide the sidebar entry. + + Nothing is written to the server: hiding the checklist stays a record in this browser, and no row's state changes. + + `@object-ui/i18n` adds one key in every language pack, `console.firstRunChecklist.accountMenuItem` (the item's label). No key is removed or renamed. + + For hosts building on `@object-ui/app-shell` from this workspace: the slot that drew a host element above the Setup app's first page, `SetupFirstPageSlotProvider` (and its type `SetupFirstPageSlot`), is removed. Nothing is drawn there any more; a host that provided one drops the provider. The account menu gains a place for a host's entries, `AccountMenuSlotProvider` (type `AccountMenuSlot`): its value draws `DropdownMenuItem`s after Profile. +- f7c791f: feat(app-shell): the command palette finds a navigation entry by its old name or another alias, and shows each navigation result under its group path + + Clause-②: yes (widening) + Metadata-protocol: none + + A navigation entry's `keywords` now have their reader. + + - **The served app carries each entry's aliases for the reader's locale.** `translateApp` gives every navigation node its own source-language `keywords` plus the reader's locale's `apps..navigation..keywords` from the translation bundle (the first locale along the chain that lists any), each word once. A locale's words add to the source words; they never replace them. So an English alias still finds the entry in a Chinese session, and a Chinese-only alias finds it there and not in English. A node whose bundle lists no keywords is served as before. + - **The ⌘K palette matches navigation entries on their `keywords`** as well as on their label and machine name, under the same word-prefix and substring rule. When only an alias found the entry, the row shows it after the entry's name: 「原名 岗位持有人」 in Chinese, "Formerly Position Holders" in English (a new `console.commandPalette.formerName` string in every console locale). A group's label and `keywords` find the visible entries under it, so a renamed group is still found by its old name, and each of its entries shows the group's matched alias. An entry found through an alias counts as found, so the palette does not offer to create a record from those words. `action` and `doc` entries accept `keywords`, but nothing reads them yet. + - **Every navigation result shows its group path** before its name, 「人员与组织 › 业务单元」, nested groups outermost first; an entry at the top level of the menu shows its name alone. + + The key's liveness row (`navigation.children.keywords`) is now `live`, and its describe no longer carries the `[PLANNED — not yet read]` marker. + + No action needed for existing metadata. +- 53ca731: Clause-②: no + Metadata-protocol: none + + The account menu (the avatar menu and the sidebar foot's row) gains a 「系统设置」 / "Setup" entry that opens `/apps/setup`, drawn only for a member whose capability set holds `setup.access` (`holdsSetupAccess`, read from `usePermissions().systemPermissions`, as the shell's other Setup gates read it). A member without it sees no entry. The label is the new `user.setup` key in every locale pack. Where a member lands at sign-in is unchanged (objectstack#39062). +- 06d5dff: feat(chatbot): a mermaid block in a chat answer is drawn as a diagram the reader can enlarge, reorient and download + + Clause-②: no + Metadata-protocol: none + + A fenced `mermaid` block in an assistant answer used to show as a code box of arrow syntax. It is now drawn by `AnswerDiagram`, registered for the `mermaid` language through streamdown's `plugins.renderers` in `CHAT_MARKDOWN_PLUGINS`: + + - A flowchart reads left to right when the answer column is at least 560px wide and top to bottom when it is narrower, whatever direction the model wrote; a control beside the diagram switches it by hand. + - The inline view is capped at `min(180px, 25vh)` and fades out when cropped; a click, Enter or Space opens the full diagram in a dialog. The wheel and a drag still scroll the conversation. + - Download saves a PNG in the light theme on white at 2x, named after the diagram's `accTitle` when it has one. + - Mermaid loads on the first diagram and renders with `securityLevel: "strict"`. A source it cannot parse shows its text under a short notice; an incomplete block while the answer streams shows a placeholder. + - An answer that carries a diagram takes the full column width. + + `@object-ui/plugin-chatbot` now depends on `mermaid` directly. Its strings are the new `chatbot.answer.diagram*` keys, added to every shipped locale pack. +- b98173c: feat(console): a comments column on the list page, with the threads of the records the view shows + + Clause-②: yes (widening) — new optional members and exports only: `DataSource.queryCommentThreads` and the `CommentThreadsQueryRequest` / `CommentThreadsQueryResponse` types on `@object-ui/types`; `ListView`'s `onEffectiveFilterChange` host prop and the `ListEffectiveFilter` type on `@object-ui/plugin-list`; `ViewCommentsPanel`, `splitCommentMentions` and their types on `@object-ui/plugin-detail`; nothing removed or renamed + Metadata-protocol: none + + An object's list page now has a comments icon in its header, on a grid and on a board, where the object's discussion is on (`enable.feeds` not `false`). A press opens a 380 px column at the page's right and the list narrows to make room; ✕ or Esc closes it, and the browser remembers whether it was left open. + + The column lists the comment threads on the records the view shows, newest first: the view's saved filter together with the filters the reader has set on the list and not saved. The search box does not narrow it. The server runs the filter as the reader's own read, so someone who may read fewer records sees fewer threads. Each card names the record (which opens it the way a row does), who wrote the first comment and when, its text with mentions highlighted, and 「N 条回复」 with the latest repliers' faces; 「加载更多」 reads the next page. A card opens its thread in place, with reply, resolve and reopen, reactions, edit and delete as the record page offers them; there is no box for a new thread. The filter menu holds 「显示已解决」 (off) and 「只看我参与的」. The column reads again when the view, its filter or a toggle changes and when a comment is written, and reads nothing while closed. It says so when the reader may not read the comments, when the read failed (with a retry), when the list's filter cannot be sent, and when the server does not answer the threads read (`POST /api/v1/comments/threads/query`). + + For React hosts: `ObjectStackAdapter.queryCommentThreads(request)` calls that read; `ListView`'s `onEffectiveFilterChange` reports the filter the list applies, on every layout (`{ kind: 'filter', filter }`, or `{ kind: 'unlowerable' }` for a filter it cannot lower); `ViewCommentsPanel` draws the column from threads its host reads. +- 6a3e3ac: fix(console, cloud-connection): a schema upgrade can be confirmed through the install-local door and the tenant-runtime install door too + + Clause-②: yes + Metadata-protocol: none + + An upgrade whose new version renames or retypes stored fields is refused `409 SCHEMA_UPGRADE_CONFIRMATION_REQUIRED` until the same request carries the finding set's token. The marketplace dialog on a control-plane console confirms it since the previous release; the two other install doors had no way to, so the same upgrade failed there with no path forward in the console. + + - **Self-hosted runtime (install-local).** When the runtime refuses a local Install or Reinstall for want of that confirmation, the confirm in front of Install opens again and lists each change in words, in the reader's language, with a line saying this runtime asks for the confirmation. Its button reads **Confirm changes and update** and sends the refusal's token as `confirmSchemaUpgrade`; a token the findings have outgrown is refused again and the fresh list replaces the old one. A refusal that lists no changes says the install cannot be confirmed from the console, instead of the raw refusal text. Opening the confirm again from the page starts over. + - **Hosted environment (`POST /api/v1/cloud-connection/install`).** The route now takes `confirm_schema_upgrade`, the control plane's own param name, and forwards it to the control plane's install action; absent or `null`, nothing is forwarded and the request is the one it always was. Anything but a non-empty string (`true`, `''`, a number) is refused `400 INVALID_REQUEST` naming the key, before the control plane is asked. The route relays the control plane's refusal as it was, so the hosted install dialog lists the refusal's own changes and its next click sends their token. This runtime serves no upgrade-plan route, so the hosted dialog reads none. + + Nothing to migrate. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/ui/packages/i18n/package.json b/ui/packages/i18n/package.json index 54bbda392ea..28f9ca460b9 100644 --- a/ui/packages/i18n/package.json +++ b/ui/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/i18n", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "sideEffects": false, "license": "MIT", diff --git a/ui/packages/layout/CHANGELOG.md b/ui/packages/layout/CHANGELOG.md index 516915af535..ee82bbb2d2b 100644 --- a/ui/packages/layout/CHANGELOG.md +++ b/ui/packages/layout/CHANGELOG.md @@ -1,5 +1,67 @@ # @object-ui/layout +## 19.0.0-next.4 + +### Patch Changes + +- 4b8a67d: feat(layout): the sidebar remembers each user's open and closed groups in the browser, and opens the group holding the current page + + Clause-②: no + Metadata-protocol: none + + A navigation group's open state used to be decided once, when the sidebar mounted, and was then forgotten: a reload put every group back to its authored default, and moving to a page inside a collapsed group (a link, Back, or a jump from the command palette) left that group closed over the page you were on. + + - A user's own expand or collapse of a group is now kept in the browser's local storage, per signed-in user, per app and per group. It wins over the group's authored `expanded` in either direction: a group the user opened stays open after a reload even when it declares `expanded: false`, and a group the user closed stays closed. + - Whenever the current page changes to one inside a closed group, that group opens. Opening it for the page is not the user's choice and is not stored: back on a page outside the group, a reload shows it as the user last left it. + - With no signed-in user nothing is stored, so one person's choice never reaches another person on a shared browser. Storage that cannot be read or written (a private window, blocked site data, a full quota) is treated as "nothing remembered": the sidebar draws the authored defaults and toggles still work for the session. + - A group's length still never decides whether it is open. + + `NavigationRenderer` keeps its props unchanged. The user is read from the `currentUserId` of the `templateContext` it is already handed, and the app from its `basePath`. A host that passes no `currentUserId` gets groups that open by the route and their `expanded`, as before. The choice stays in the browser: it does not follow the user to another device. +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/layout/package.json b/ui/packages/layout/package.json index 3322136df0a..76373e6a901 100644 --- a/ui/packages/layout/package.json +++ b/ui/packages/layout/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/layout", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "sideEffects": [ "./dist/index.js", diff --git a/ui/packages/mobile/CHANGELOG.md b/ui/packages/mobile/CHANGELOG.md index e1ae237c029..8d8ce2a6a60 100644 --- a/ui/packages/mobile/CHANGELOG.md +++ b/ui/packages/mobile/CHANGELOG.md @@ -1,5 +1,17 @@ # @object-ui/mobile +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [67d87f3] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [b98173c] + - @object-ui/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/mobile/package.json b/ui/packages/mobile/package.json index 30b8310a6ff..fc8e1b51221 100644 --- a/ui/packages/mobile/package.json +++ b/ui/packages/mobile/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/mobile", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Mobile optimization for ObjectUI with responsive components, PWA support, and touch gesture handling.", diff --git a/ui/packages/permissions/CHANGELOG.md b/ui/packages/permissions/CHANGELOG.md index 84799830acd..902292f5cab 100644 --- a/ui/packages/permissions/CHANGELOG.md +++ b/ui/packages/permissions/CHANGELOG.md @@ -1,5 +1,61 @@ # @object-ui/permissions +## 19.0.0-next.4 + +### Patch Changes + +- 444dce6: fix(console): the record edit dialog opens locked with the closed sentence on a closed record + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening: the exported `lockedBy` prop of `RecordFieldAccessScopeProps` (`@object-ui/permissions`) and of `ModalFormProps` (`@object-ui/plugin-form`) accepts `'closed'` beside `'approval'`. + + The console's full-record edit dialog now opens read-only on a closed record (one of its object's `closedStates` holds, its own or its master's, ADR-0162). It says "This record is closed, so it can't be changed." (the record page's sentence, `detail.lockedClosedTooltip`) and offers no Save. Before, it opened editable and the server's refusal of the save was the user's first notice. + + - The dialog reads the closed state from the data lock the record page reads (`recordClosedByLock` on `useRecordApprovals`). It sends no request of its own: on a record page it uses the page's answer. + - A record that is closed and also held by an approval reads as closed, as on the record page. A record held only by an approval reads as before. + - `RecordFieldAccessScope`, `ModalForm` and `RecordFieldAccessForForm` accept `lockedBy: 'closed'` beside `'approval'`. The scope refuses the row's update with the new reason `record-closed`, and `closedFormAffordance` answers it as the new `'closed'` affordance, which `closedForRecord` treats like `'approval'` (no Save). +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/permissions/package.json b/ui/packages/permissions/package.json index fd10a054522..fd518eb717d 100644 --- a/ui/packages/permissions/package.json +++ b/ui/packages/permissions/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/permissions", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "RBAC permission system for ObjectUI with object/field/row-level access control, permission guards, and hooks.", diff --git a/ui/packages/plugin-calendar/CHANGELOG.md b/ui/packages/plugin-calendar/CHANGELOG.md index d24ee96c698..ff18e620b7f 100644 --- a/ui/packages/plugin-calendar/CHANGELOG.md +++ b/ui/packages/plugin-calendar/CHANGELOG.md @@ -1,5 +1,37 @@ # @object-ui/plugin-calendar +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [0f2778c] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [d38006b] +- Updated dependencies [878aebd] +- Updated dependencies [d79520c] +- Updated dependencies [84d209d] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [b98173c] +- Updated dependencies [6a3e3ac] +- Updated dependencies [4b1be66] + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/mobile@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-calendar/package.json b/ui/packages/plugin-calendar/package.json index 517c3151202..e848003bc7a 100644 --- a/ui/packages/plugin-calendar/package.json +++ b/ui/packages/plugin-calendar/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-calendar", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Calendar view plugins for ObjectUI - includes both ObjectQL-integrated and standalone calendar components", diff --git a/ui/packages/plugin-charts/CHANGELOG.md b/ui/packages/plugin-charts/CHANGELOG.md index 55c002f7b83..8857bfe7bae 100644 --- a/ui/packages/plugin-charts/CHANGELOG.md +++ b/ui/packages/plugin-charts/CHANGELOG.md @@ -1,5 +1,31 @@ # @object-ui/plugin-charts +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [0f2778c] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [d38006b] +- Updated dependencies [d79520c] +- Updated dependencies [84d209d] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [b98173c] +- Updated dependencies [6a3e3ac] + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-charts/package.json b/ui/packages/plugin-charts/package.json index e889b222e97..e369681f584 100644 --- a/ui/packages/plugin-charts/package.json +++ b/ui/packages/plugin-charts/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-charts", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Chart components plugin for ObjectUI, powered by Recharts", diff --git a/ui/packages/plugin-chatbot/CHANGELOG.md b/ui/packages/plugin-chatbot/CHANGELOG.md index 175ac436632..9f1f92c55d9 100644 --- a/ui/packages/plugin-chatbot/CHANGELOG.md +++ b/ui/packages/plugin-chatbot/CHANGELOG.md @@ -1,5 +1,89 @@ # @object-ui/plugin-chatbot +## 19.0.0-next.4 + +### Patch Changes + +- 84d209d: feat(console): the chat's draft review card publishes a draft, pinned to the version the turn saved + + Clause-②: yes (widening) + Metadata-protocol: added + + Widened: `DraftReviewItemSchema` (`@objectstack/spec/ai`, the row of the `data-draft-review` stream part) gains the optional `version`, the draft's version token as the turn's last save of it wrote it (the save receipt's `version`). `DraftReviewCardProps` and `ChatbotEnhancedProps` gain the optional `onPublishDraft`, and `@object-ui/plugin-chatbot` exports the type `DraftReviewPublishResult`; the card's Publish strings are added to every shipped locale pack. + + The contract that nothing is published from the chat changes. The review card under an ask turn's answer now carries a Publish button per draft: one click publishes that one draft as the signed-in person, through the item's own publish (`POST /meta/:type/:name/publish?package=`), with the row's `version` sent as the body's `draftVersion`. A draft changed after the turn saved it is refused `409 METADATA_CONFLICT`, nothing is published, and the row says the draft changed since the turn. Any other refusal (a member who may not publish gets `PERMISSION_DENIED`) is shown on the row with the platform's code and sentence. Publish is offered only on a row that carries a `version` and whose verdict is `publishable`; a refused, withheld or unversioned row shows it disabled with the reason and is published in Studio through the review links, as before. The agent is given no publish: the click is always the person's. Nothing is discarded from the chat. + + `verdictWithheld`'s description now also covers a draft the door left unjudged under a bound such as `MAX_RECORDS_EXCEEDED`, not only a verdict the person may not read; its shape is unchanged. + + A host that fills the `data-draft-review` part must state each row's `version` for the button to be enabled; a part without it draws the card as before, with Publish disabled. + + Why the protocol line reads added: `DraftReviewItem` is on the authorable surface the ratchet records (`packages/spec/authorable-surface/ai.json`), and `version` is a key that enters it. Nothing a released version accepts is refused now. +- 06d5dff: feat(chatbot): a mermaid block in a chat answer is drawn as a diagram the reader can enlarge, reorient and download + + Clause-②: no + Metadata-protocol: none + + A fenced `mermaid` block in an assistant answer used to show as a code box of arrow syntax. It is now drawn by `AnswerDiagram`, registered for the `mermaid` language through streamdown's `plugins.renderers` in `CHAT_MARKDOWN_PLUGINS`: + + - A flowchart reads left to right when the answer column is at least 560px wide and top to bottom when it is narrower, whatever direction the model wrote; a control beside the diagram switches it by hand. + - The inline view is capped at `min(180px, 25vh)` and fades out when cropped; a click, Enter or Space opens the full diagram in a dialog. The wheel and a drag still scroll the conversation. + - Download saves a PNG in the light theme on white at 2x, named after the diagram's `accTitle` when it has one. + - Mermaid loads on the first diagram and renders with `securityLevel: "strict"`. A source it cannot parse shows its text under a short notice; an incomplete block while the answer streams shows a placeholder. + - An answer that carries a diagram takes the full column width. + + `@object-ui/plugin-chatbot` now depends on `mermaid` directly. Its strings are the new `chatbot.answer.diagram*` keys, added to every shipped locale pack. +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-chatbot/package.json b/ui/packages/plugin-chatbot/package.json index 26305a59c60..1f4a2d951d0 100644 --- a/ui/packages/plugin-chatbot/package.json +++ b/ui/packages/plugin-chatbot/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-chatbot", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Chatbot interface plugin for ObjectUI", diff --git a/ui/packages/plugin-dashboard/CHANGELOG.md b/ui/packages/plugin-dashboard/CHANGELOG.md index 5af0dbc5e23..ed2f8cd46e5 100644 --- a/ui/packages/plugin-dashboard/CHANGELOG.md +++ b/ui/packages/plugin-dashboard/CHANGELOG.md @@ -1,5 +1,64 @@ # @object-ui/plugin-dashboard +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-dashboard/package.json b/ui/packages/plugin-dashboard/package.json index 20fbbd31177..01144cd8511 100644 --- a/ui/packages/plugin-dashboard/package.json +++ b/ui/packages/plugin-dashboard/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-dashboard", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Dashboard plugin for ObjectUI", diff --git a/ui/packages/plugin-designer/CHANGELOG.md b/ui/packages/plugin-designer/CHANGELOG.md index 653da01e1fb..9d39be50e47 100644 --- a/ui/packages/plugin-designer/CHANGELOG.md +++ b/ui/packages/plugin-designer/CHANGELOG.md @@ -1,5 +1,69 @@ # @object-ui/plugin-designer +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [878aebd] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [571b494] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [4b8a67d] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/plugin-grid@19.0.0-next.4 + - @object-ui/plugin-form@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/layout@19.0.0-next.4 + - @object-ui/data-objectstack@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-designer/package.json b/ui/packages/plugin-designer/package.json index 5f4c65cd6ff..f3cedcb9757 100644 --- a/ui/packages/plugin-designer/package.json +++ b/ui/packages/plugin-designer/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-designer", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Visual designer plugin for ObjectUI with page, data model, process, and report designers.", diff --git a/ui/packages/plugin-detail/CHANGELOG.md b/ui/packages/plugin-detail/CHANGELOG.md index af907e810d8..86a3814891d 100644 --- a/ui/packages/plugin-detail/CHANGELOG.md +++ b/ui/packages/plugin-detail/CHANGELOG.md @@ -1,5 +1,88 @@ # @object-ui/plugin-detail +## 19.0.0-next.4 + +### Patch Changes + +- 878aebd: fix(plugin-grid, plugin-detail): on a phone, a related tab's cards follow the relationship's columns and leave out the reference back to the page's record + + Clause-②: yes (widening) — new optional member only: `ObjectGridComponentProps.cardFields` on `@object-ui/plugin-grid`; nothing removed or renamed + Metadata-protocol: none + + On a phone, a record page's related tab draws each row as a card. Since 19.0.0-next.3 the card body read the child object's `highlightFields`, so the relationship's own `relatedListColumns` were ignored. The card also drew the lookup back to the record the page is showing: the same value on every card, and one the list never expands, so it showed as a raw id or an unresolved reference. A product's opportunity lines, for example, showed the product on every card and never the deal. + + The card body now reads the relationship's `relatedListColumns` when they are declared, and the child's `highlightFields` otherwise. This is the same order the tab's table follows. The reference back to the page's record is left out. A lookup on the card is one the list expands, so it shows the record's name. Other lists keep the `highlightFields` card, and the desktop table is unchanged. No metadata change is needed. +- b98173c: feat(console): a comments column on the list page, with the threads of the records the view shows + + Clause-②: yes (widening) — new optional members and exports only: `DataSource.queryCommentThreads` and the `CommentThreadsQueryRequest` / `CommentThreadsQueryResponse` types on `@object-ui/types`; `ListView`'s `onEffectiveFilterChange` host prop and the `ListEffectiveFilter` type on `@object-ui/plugin-list`; `ViewCommentsPanel`, `splitCommentMentions` and their types on `@object-ui/plugin-detail`; nothing removed or renamed + Metadata-protocol: none + + An object's list page now has a comments icon in its header, on a grid and on a board, where the object's discussion is on (`enable.feeds` not `false`). A press opens a 380 px column at the page's right and the list narrows to make room; ✕ or Esc closes it, and the browser remembers whether it was left open. + + The column lists the comment threads on the records the view shows, newest first: the view's saved filter together with the filters the reader has set on the list and not saved. The search box does not narrow it. The server runs the filter as the reader's own read, so someone who may read fewer records sees fewer threads. Each card names the record (which opens it the way a row does), who wrote the first comment and when, its text with mentions highlighted, and 「N 条回复」 with the latest repliers' faces; 「加载更多」 reads the next page. A card opens its thread in place, with reply, resolve and reopen, reactions, edit and delete as the record page offers them; there is no box for a new thread. The filter menu holds 「显示已解决」 (off) and 「只看我参与的」. The column reads again when the view, its filter or a toggle changes and when a comment is written, and reads nothing while closed. It says so when the reader may not read the comments, when the read failed (with a retry), when the list's filter cannot be sent, and when the server does not answer the threads read (`POST /api/v1/comments/threads/query`). + + For React hosts: `ObjectStackAdapter.queryCommentThreads(request)` calls that read; `ListView`'s `onEffectiveFilterChange` reports the filter the list applies, on every layout (`{ kind: 'filter', filter }`, or `{ kind: 'unlowerable' }` for a filter it cannot lower); `ViewCommentsPanel` draws the column from threads its host reads. +- 4b1be66: feat(plugin-detail): `CommentsPage` takes an optional `threadTitle`; the phone list page's comment thread names its record + + Clause-②: yes (widening) + Metadata-protocol: none + + `CommentsPage` takes one new optional prop, `threadTitle` (`{ label, onPress? }`). When set, a thread's header reads `label` instead of the generic thread title, and `onPress`, when set, makes the title a button. The list level's header is unchanged, and a host that passes nothing keeps today's header, so existing hosts need no change. On a phone, a thread opened from an object list page's comments page now reads its record's name in the header; a tap opens the record's page, and Back returns to the thread. A thread opened from a link before its card is read keeps the generic header. The record page's own phone comments page is unchanged. +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/ui/packages/plugin-detail/package.json b/ui/packages/plugin-detail/package.json index ff44174a49c..32c5a2b0f68 100644 --- a/ui/packages/plugin-detail/package.json +++ b/ui/packages/plugin-detail/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-detail", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "DetailView plugin for ObjectUI - comprehensive detail page with sections, tabs, and related lists", diff --git a/ui/packages/plugin-editor/CHANGELOG.md b/ui/packages/plugin-editor/CHANGELOG.md index b3cd40c6c54..0dba4ccf12e 100644 --- a/ui/packages/plugin-editor/CHANGELOG.md +++ b/ui/packages/plugin-editor/CHANGELOG.md @@ -1,5 +1,20 @@ # @object-ui/plugin-editor +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [0f2778c] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [67d87f3] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [b98173c] + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-editor/package.json b/ui/packages/plugin-editor/package.json index 9d17e335d8d..f3cb6d400e8 100644 --- a/ui/packages/plugin-editor/package.json +++ b/ui/packages/plugin-editor/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-editor", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Rich text editor plugin for ObjectUI, powered by Monaco Editor", diff --git a/ui/packages/plugin-form/CHANGELOG.md b/ui/packages/plugin-form/CHANGELOG.md index 725e2ac22df..0946519d675 100644 --- a/ui/packages/plugin-form/CHANGELOG.md +++ b/ui/packages/plugin-form/CHANGELOG.md @@ -1,5 +1,98 @@ # @object-ui/plugin-form +## 19.0.0-next.4 + +### Patch Changes + +- 5064289: fix(console): a closed row in a grid reads as closed, not as in approval, and a save that closes a master writes its lines first + + Clause-②: no + Metadata-protocol: none + + The grid and the line grid now ask the data layer's one lock read (`POST /api/v1/data/{object}/locks`, on the first cell or row selection) for the edit and delete affordances of a row, and word the reason from its `lockReason`. They no longer ask the approvals lock read for this. + + - A closed row (`lockReason: 'closed_state'`, its own state or its master's) opens no cell editor, and the cell says "This record is closed, so it can't be changed." Its row menu offers neither Edit nor Delete, for either `lockSource`. A row that is closed and also held by an approval reads as closed. + - A row held by an approval behaves as before: its own approval keeps Delete, and a line of a held master does not. + - The answer is read above the caller's field permissions, so a reader who may not see the state field still gets the closed wording. + - A master-detail edit save that sets a closing state on the header (a value its object lists in `closedStates`) writes every line first and the header last, in one batch, so the save is not refused against the record it is closing. A save that does not close keeps the header first. + - New string `grid.readOnlyReason.closedLocked` in every console locale. + + The grid's lock read is gated on the `data` route in discovery, not on the approvals service, and makes the same number of requests as before. The record page is unchanged here. +- 444dce6: fix(console): the record edit dialog opens locked with the closed sentence on a closed record + + Clause-②: yes (widening) + Metadata-protocol: none + + The widening: the exported `lockedBy` prop of `RecordFieldAccessScopeProps` (`@object-ui/permissions`) and of `ModalFormProps` (`@object-ui/plugin-form`) accepts `'closed'` beside `'approval'`. + + The console's full-record edit dialog now opens read-only on a closed record (one of its object's `closedStates` holds, its own or its master's, ADR-0162). It says "This record is closed, so it can't be changed." (the record page's sentence, `detail.lockedClosedTooltip`) and offers no Save. Before, it opened editable and the server's refusal of the save was the user's first notice. + + - The dialog reads the closed state from the data lock the record page reads (`recordClosedByLock` on `useRecordApprovals`). It sends no request of its own: on a record page it uses the page's answer. + - A record that is closed and also held by an approval reads as closed, as on the record page. A record held only by an approval reads as before. + - `RecordFieldAccessScope`, `ModalForm` and `RecordFieldAccessForForm` accept `lockedBy: 'closed'` beside `'approval'`. The scope refuses the row's update with the new reason `record-closed`, and `closedFormAffordance` answers it as the new `'closed'` affordance, which `closedForRecord` treats like `'approval'` (no Save). +- 571b494: fix(console): the record page's edit-state save writes a closing header after its lines + + Clause-②: no + Metadata-protocol: none + + On a record page in its edit state, a Save that edits the body-table lines and also sets the record to a state its object lists in `closedStates` now writes every line first and the record's update last, in the same one batch. Before, the record's update went first, the line writes then met a closed record, and the whole save was refused. A Save that does not close the record keeps the record's update first, as before. This is the order the master-detail form already uses (ADR-0162 D4). + + `buildRecordEditBatch` takes the object's `closedStates` as a new optional fifth argument (`{ closedStates }`), the same option `buildMasterDetailEditBatch` takes. Callers that pass nothing get the old order. Find the record's operation by its owner (`{ kind: 'parent' }`), not by index 0: a closing update is the last operation. +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-form/package.json b/ui/packages/plugin-form/package.json index f5eca48a771..00ebe1896f0 100644 --- a/ui/packages/plugin-form/package.json +++ b/ui/packages/plugin-form/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-form", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Form plugin for ObjectUI", diff --git a/ui/packages/plugin-gantt/CHANGELOG.md b/ui/packages/plugin-gantt/CHANGELOG.md index 6b650ec7a07..080903f9708 100644 --- a/ui/packages/plugin-gantt/CHANGELOG.md +++ b/ui/packages/plugin-gantt/CHANGELOG.md @@ -1,5 +1,67 @@ # @object-ui/plugin-gantt +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [878aebd] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [4b1be66] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-gantt/package.json b/ui/packages/plugin-gantt/package.json index 405128d7283..9a4ebd6c418 100644 --- a/ui/packages/plugin-gantt/package.json +++ b/ui/packages/plugin-gantt/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-gantt", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Gantt chart plugin for ObjectUI", diff --git a/ui/packages/plugin-grid/CHANGELOG.md b/ui/packages/plugin-grid/CHANGELOG.md index b57179a6e33..a5da6eb2653 100644 --- a/ui/packages/plugin-grid/CHANGELOG.md +++ b/ui/packages/plugin-grid/CHANGELOG.md @@ -1,5 +1,96 @@ # @object-ui/plugin-grid +## 19.0.0-next.4 + +### Patch Changes + +- 5064289: fix(console): a closed row in a grid reads as closed, not as in approval, and a save that closes a master writes its lines first + + Clause-②: no + Metadata-protocol: none + + The grid and the line grid now ask the data layer's one lock read (`POST /api/v1/data/{object}/locks`, on the first cell or row selection) for the edit and delete affordances of a row, and word the reason from its `lockReason`. They no longer ask the approvals lock read for this. + + - A closed row (`lockReason: 'closed_state'`, its own state or its master's) opens no cell editor, and the cell says "This record is closed, so it can't be changed." Its row menu offers neither Edit nor Delete, for either `lockSource`. A row that is closed and also held by an approval reads as closed. + - A row held by an approval behaves as before: its own approval keeps Delete, and a line of a held master does not. + - The answer is read above the caller's field permissions, so a reader who may not see the state field still gets the closed wording. + - A master-detail edit save that sets a closing state on the header (a value its object lists in `closedStates`) writes every line first and the header last, in one batch, so the save is not refused against the record it is closing. A save that does not close keeps the header first. + - New string `grid.readOnlyReason.closedLocked` in every console locale. + + The grid's lock read is gated on the `data` route in discovery, not on the approvals service, and makes the same number of requests as before. The record page is unchanged here. +- d38006b: fix(plugin-grid): a list on a deployment with no approvals service sends no batch lock read, so the browser logs no 501 error + + Clause-②: no + Metadata-protocol: none + + The list's approval lock read (`POST /api/v1/approvals/records/:object/locks`, sent on the first cell or row selection) is no longer sent once discovery has answered without `routes.approvals`. Discovery leaves that key out exactly when the server runs no approvals service. The read used to go out and come back 501. The hook latched that answer, but the browser had already logged the failed request as a red console error on every page load. Until discovery answers, the read goes out as before, and the latched 501 stays as the fallback. `@object-ui/react` exports `isRouteWithheld(discovery, key)`, the shared check: it is true only when a discovery document with a `routes` map has answered without the key. +- 878aebd: fix(plugin-grid, plugin-detail): on a phone, a related tab's cards follow the relationship's columns and leave out the reference back to the page's record + + Clause-②: yes (widening) — new optional member only: `ObjectGridComponentProps.cardFields` on `@object-ui/plugin-grid`; nothing removed or renamed + Metadata-protocol: none + + On a phone, a record page's related tab draws each row as a card. Since 19.0.0-next.3 the card body read the child object's `highlightFields`, so the relationship's own `relatedListColumns` were ignored. The card also drew the lookup back to the record the page is showing: the same value on every card, and one the list never expands, so it showed as a raw id or an unresolved reference. A product's opportunity lines, for example, showed the product on every card and never the deal. + + The card body now reads the relationship's `relatedListColumns` when they are declared, and the child's `highlightFields` otherwise. This is the same order the tab's table follows. The reference back to the page's record is left out. A lookup on the card is one the list expands, so it shows the record's name. Other lists keep the `highlightFields` card, and the desktop table is unchanged. No metadata change is needed. +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [878aebd] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [4b1be66] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + - @object-ui/mobile@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/ui/packages/plugin-grid/package.json b/ui/packages/plugin-grid/package.json index 7db1c1ab7e2..c20fdc1dd81 100644 --- a/ui/packages/plugin-grid/package.json +++ b/ui/packages/plugin-grid/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-grid", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Grid plugin for ObjectUI", diff --git a/ui/packages/plugin-kanban/CHANGELOG.md b/ui/packages/plugin-kanban/CHANGELOG.md index 7888dedf758..599c73c8cfd 100644 --- a/ui/packages/plugin-kanban/CHANGELOG.md +++ b/ui/packages/plugin-kanban/CHANGELOG.md @@ -1,5 +1,37 @@ # @object-ui/plugin-kanban +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [0f2778c] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [d38006b] +- Updated dependencies [878aebd] +- Updated dependencies [d79520c] +- Updated dependencies [84d209d] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [b98173c] +- Updated dependencies [6a3e3ac] +- Updated dependencies [4b1be66] + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-kanban/package.json b/ui/packages/plugin-kanban/package.json index aa525ffd915..6a75315e3b6 100644 --- a/ui/packages/plugin-kanban/package.json +++ b/ui/packages/plugin-kanban/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-kanban", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Kanban board plugin for ObjectUI, powered by dnd-kit", diff --git a/ui/packages/plugin-list/CHANGELOG.md b/ui/packages/plugin-list/CHANGELOG.md index e19d1f6c312..8b3ce9234ce 100644 --- a/ui/packages/plugin-list/CHANGELOG.md +++ b/ui/packages/plugin-list/CHANGELOG.md @@ -1,5 +1,88 @@ # @object-ui/plugin-list +## 19.0.0-next.4 + +### Patch Changes + +- 0f2778c: fix(plugin-list, components): browser Back to a scroll-loaded list restores the rows and the position it left, as the record page's close button does + + Clause-②: no + Metadata-protocol: none + + A list that loads as it scrolls keeps its position and the rows it held under a key naming the list's address. Two things stopped browser Back from returning there when the record drawer had been open over the list: + + - The key carried the drawer's `recordId` and `recordObject` parameters. The drawer opens over the list without remounting it, so a record opened while the drawer was open left a history entry carrying the drawer. Back returned to that address, missed the kept position and showed the first window at the top. The close button returns to the list without the drawer and found it. A list that first mounted under an open drawer lost its position on every return. The key now leaves out those two parameters; every other address parameter still keys the list. + - On that return the drawer reopened and scrolled its record's row into view over the restored position. A list that returns to a kept position now says so on its root (`data-list-kept-position`), and there the drawer's first record is not scrolled into view. A row click, a step to another record, or a deep link with no kept position scrolls the open row into view as before. +- b98173c: feat(console): a comments column on the list page, with the threads of the records the view shows + + Clause-②: yes (widening) — new optional members and exports only: `DataSource.queryCommentThreads` and the `CommentThreadsQueryRequest` / `CommentThreadsQueryResponse` types on `@object-ui/types`; `ListView`'s `onEffectiveFilterChange` host prop and the `ListEffectiveFilter` type on `@object-ui/plugin-list`; `ViewCommentsPanel`, `splitCommentMentions` and their types on `@object-ui/plugin-detail`; nothing removed or renamed + Metadata-protocol: none + + An object's list page now has a comments icon in its header, on a grid and on a board, where the object's discussion is on (`enable.feeds` not `false`). A press opens a 380 px column at the page's right and the list narrows to make room; ✕ or Esc closes it, and the browser remembers whether it was left open. + + The column lists the comment threads on the records the view shows, newest first: the view's saved filter together with the filters the reader has set on the list and not saved. The search box does not narrow it. The server runs the filter as the reader's own read, so someone who may read fewer records sees fewer threads. Each card names the record (which opens it the way a row does), who wrote the first comment and when, its text with mentions highlighted, and 「N 条回复」 with the latest repliers' faces; 「加载更多」 reads the next page. A card opens its thread in place, with reply, resolve and reopen, reactions, edit and delete as the record page offers them; there is no box for a new thread. The filter menu holds 「显示已解决」 (off) and 「只看我参与的」. The column reads again when the view, its filter or a toggle changes and when a comment is written, and reads nothing while closed. It says so when the reader may not read the comments, when the read failed (with a retry), when the list's filter cannot be sent, and when the server does not answer the threads read (`POST /api/v1/comments/threads/query`). + + For React hosts: `ObjectStackAdapter.queryCommentThreads(request)` calls that read; `ListView`'s `onEffectiveFilterChange` reports the filter the list applies, on every layout (`{ kind: 'filter', filter }`, or `{ kind: 'unlowerable' }` for a filter it cannot lower); `ViewCommentsPanel` draws the column from threads its host reads. +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [878aebd] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [4b1be66] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/plugin-grid@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + - @object-ui/mobile@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/ui/packages/plugin-list/package.json b/ui/packages/plugin-list/package.json index 971ca66c3a7..8bdb088d525 100644 --- a/ui/packages/plugin-list/package.json +++ b/ui/packages/plugin-list/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-list", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "ListView plugin for ObjectUI - unified view component with view type switching", diff --git a/ui/packages/plugin-map/CHANGELOG.md b/ui/packages/plugin-map/CHANGELOG.md index 33d4501797e..77897b67287 100644 --- a/ui/packages/plugin-map/CHANGELOG.md +++ b/ui/packages/plugin-map/CHANGELOG.md @@ -1,5 +1,27 @@ # @object-ui/plugin-map +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [0f2778c] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [67d87f3] +- Updated dependencies [d38006b] +- Updated dependencies [878aebd] +- Updated dependencies [444dce6] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [b98173c] +- Updated dependencies [4b1be66] + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-map/package.json b/ui/packages/plugin-map/package.json index 82f329f2397..771ecdaa225 100644 --- a/ui/packages/plugin-map/package.json +++ b/ui/packages/plugin-map/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-map", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Map visualization plugin for ObjectUI", diff --git a/ui/packages/plugin-markdown/CHANGELOG.md b/ui/packages/plugin-markdown/CHANGELOG.md index e170b22d9c0..bf13e731468 100644 --- a/ui/packages/plugin-markdown/CHANGELOG.md +++ b/ui/packages/plugin-markdown/CHANGELOG.md @@ -1,5 +1,20 @@ # @object-ui/plugin-markdown +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [0f2778c] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [67d87f3] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [b98173c] + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-markdown/package.json b/ui/packages/plugin-markdown/package.json index 01eeadec696..a29658e5b92 100644 --- a/ui/packages/plugin-markdown/package.json +++ b/ui/packages/plugin-markdown/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-markdown", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Markdown rendering plugin for ObjectUI, powered by react-markdown", diff --git a/ui/packages/plugin-report/CHANGELOG.md b/ui/packages/plugin-report/CHANGELOG.md index 710c782e2f1..0b07c902f80 100644 --- a/ui/packages/plugin-report/CHANGELOG.md +++ b/ui/packages/plugin-report/CHANGELOG.md @@ -1,5 +1,64 @@ # @object-ui/plugin-report +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-report/package.json b/ui/packages/plugin-report/package.json index 2e9c0362747..31376d86c5f 100644 --- a/ui/packages/plugin-report/package.json +++ b/ui/packages/plugin-report/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-report", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "main": "dist/index.umd.cjs", "module": "dist/index.js", diff --git a/ui/packages/plugin-timeline/CHANGELOG.md b/ui/packages/plugin-timeline/CHANGELOG.md index 550eeccd59a..f4986e0bf8f 100644 --- a/ui/packages/plugin-timeline/CHANGELOG.md +++ b/ui/packages/plugin-timeline/CHANGELOG.md @@ -1,5 +1,67 @@ # @object-ui/plugin-timeline +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [878aebd] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [4b1be66] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/mobile@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-timeline/package.json b/ui/packages/plugin-timeline/package.json index 1dcabe294ba..2365196c63f 100644 --- a/ui/packages/plugin-timeline/package.json +++ b/ui/packages/plugin-timeline/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-timeline", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Timeline component plugin for ObjectUI", diff --git a/ui/packages/plugin-timesheet/CHANGELOG.md b/ui/packages/plugin-timesheet/CHANGELOG.md index 37d87ab4b14..bd536ec2926 100644 --- a/ui/packages/plugin-timesheet/CHANGELOG.md +++ b/ui/packages/plugin-timesheet/CHANGELOG.md @@ -1,5 +1,34 @@ # @object-ui/plugin-timesheet +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [0f2778c] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [d38006b] +- Updated dependencies [d79520c] +- Updated dependencies [84d209d] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [b98173c] +- Updated dependencies [6a3e3ac] + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-timesheet/package.json b/ui/packages/plugin-timesheet/package.json index 32cd6202f0d..05bf8f0ac7e 100644 --- a/ui/packages/plugin-timesheet/package.json +++ b/ui/packages/plugin-timesheet/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-timesheet", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Timesheet (row × weekday entry grid) list view plugin for ObjectUI", diff --git a/ui/packages/plugin-tree/CHANGELOG.md b/ui/packages/plugin-tree/CHANGELOG.md index 74e6ca126c7..615ead72bd2 100644 --- a/ui/packages/plugin-tree/CHANGELOG.md +++ b/ui/packages/plugin-tree/CHANGELOG.md @@ -1,5 +1,67 @@ # @object-ui/plugin-tree +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [878aebd] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [4b1be66] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/plugin-detail@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + - @object-ui/fields@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-tree/package.json b/ui/packages/plugin-tree/package.json index 53720d2baaf..b6f5428dd40 100644 --- a/ui/packages/plugin-tree/package.json +++ b/ui/packages/plugin-tree/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-tree", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Tree / tree-grid visualization plugin for ObjectUI", diff --git a/ui/packages/plugin-view/CHANGELOG.md b/ui/packages/plugin-view/CHANGELOG.md index dee53bd3b47..8a316c92ca5 100644 --- a/ui/packages/plugin-view/CHANGELOG.md +++ b/ui/packages/plugin-view/CHANGELOG.md @@ -1,5 +1,67 @@ # @object-ui/plugin-view +## 19.0.0-next.4 + +### Patch Changes + +- Updated dependencies [be2df75] +- Updated dependencies [0f2778c] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [d38006b] +- Updated dependencies [1095535] +- Updated dependencies [878aebd] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [444dce6] +- Updated dependencies [571b494] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/components@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/plugin-grid@19.0.0-next.4 + - @object-ui/plugin-form@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + - @object-ui/react@19.0.0-next.4 + - @object-ui/permissions@19.0.0-next.4 + ## 19.0.0-next.3 ### Patch Changes diff --git a/ui/packages/plugin-view/package.json b/ui/packages/plugin-view/package.json index 6d92f11b4ab..edfd04273fa 100644 --- a/ui/packages/plugin-view/package.json +++ b/ui/packages/plugin-view/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/plugin-view", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "Object View plugin for ObjectUI", diff --git a/ui/packages/react-runtime/CHANGELOG.md b/ui/packages/react-runtime/CHANGELOG.md index c1f9bc0f58c..fd418f6fb51 100644 --- a/ui/packages/react-runtime/CHANGELOG.md +++ b/ui/packages/react-runtime/CHANGELOG.md @@ -1,5 +1,9 @@ # @object-ui/react-runtime +## 19.0.0-next.4 + +No changes in this release. + ## 19.0.0-next.3 No changes in this release. diff --git a/ui/packages/react-runtime/package.json b/ui/packages/react-runtime/package.json index 6ac2f9c0bd2..6ef1d3dc5a6 100644 --- a/ui/packages/react-runtime/package.json +++ b/ui/packages/react-runtime/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/react-runtime", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "sideEffects": false, "license": "MIT", diff --git a/ui/packages/react/CHANGELOG.md b/ui/packages/react/CHANGELOG.md index cfb346485d2..051e2973d3d 100644 --- a/ui/packages/react/CHANGELOG.md +++ b/ui/packages/react/CHANGELOG.md @@ -1,5 +1,63 @@ # @object-ui/react +## 19.0.0-next.4 + +### Patch Changes + +- d38006b: fix(plugin-grid): a list on a deployment with no approvals service sends no batch lock read, so the browser logs no 501 error + + Clause-②: no + Metadata-protocol: none + + The list's approval lock read (`POST /api/v1/approvals/records/:object/locks`, sent on the first cell or row selection) is no longer sent once discovery has answered without `routes.approvals`. Discovery leaves that key out exactly when the server runs no approvals service. The read used to go out and come back 501. The hook latched that answer, but the browser had already logged the failed request as a red console error on every page load. Until discovery answers, the read goes out as before, and the latched 501 stays as the fallback. `@object-ui/react` exports `isRouteWithheld(discovery, key)`, the shared check: it is true only when a discovery document with a `routes` map has answered without the key. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [5064289] +- Updated dependencies [67d87f3] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [d79520c] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [1f92981] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [53ca731] +- Updated dependencies [06d5dff] +- Updated dependencies [0c45d66] +- Updated dependencies [b98173c] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [6a3e3ac] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + - @object-ui/core@19.0.0-next.4 + - @object-ui/types@19.0.0-next.4 + - @object-ui/i18n@19.0.0-next.4 + ## 19.0.0-next.3 ### Minor Changes diff --git a/ui/packages/react/package.json b/ui/packages/react/package.json index 9a6bff364a0..92bba506ead 100644 --- a/ui/packages/react/package.json +++ b/ui/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/react", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "type": "module", "license": "MIT", "description": "React bindings and SchemaRenderer component for ObjectUI", diff --git a/ui/packages/types/CHANGELOG.md b/ui/packages/types/CHANGELOG.md index 280772d5d6b..9431bb08260 100644 --- a/ui/packages/types/CHANGELOG.md +++ b/ui/packages/types/CHANGELOG.md @@ -1,5 +1,150 @@ # @object-ui/types +## 19.0.0-next.4 + +### Minor Changes + +- f42afe7: feat!: protocol 19 — a `view` holds lists only, and a form is its own `form` item (ADR-0159 D7) + + Clause-②: yes (narrowing) + Metadata-protocol: narrowed + Skills-docs: `skills/objectstack-i18n/SKILL.md` sends a form's heading and thank-you panel to the `forms` group and drops `title` / `submitBehavior` from the `_views` row; `skills/objectstack-ui/rules/list-views.md` already teaches `forms:` and refuses a form inside a view + + **BREAKING — read this first: record New and Edit dialogs no longer read a form.** On protocol 19 a record's New and Edit dialogs lay out by the object's `fieldGroups` (and each field's `showOnCreate`), never by a form. A create or edit form that a view declared (the container's default `form`, `formViews.default`, `formViews.create`, an item marked `isDefault` or named `OBJECT.create`) stops applying: its sections, tabs, wizard steps, create defaults and form-level required rules no longer shape those dialogs, and nothing converts them into field groups. If your app relied on one, declare the object's `fieldGroups` (and `showOnCreate: false` on the fields a create should not ask for) before you upgrade. `os migrate meta --from 18` deletes such a form from your sources, and the upgrade command removes stored ones of that kind; its report carries each removed form's body and says, per object, whether the object declares field groups. A form that declares a public link (`sharing.publicLink`, switched on or off), one a `type: 'form'` action opens, and one that declares `overrides` is never deleted: it moves. + + **BREAKING — the three old form shapes are refused.** FROM a form authored inside a view TO a `form` item in the stack's `forms:`: + + | Old shape (protocol 18) | Protocol 19 | + |---|---| + | `defineView({ object, form: { … } })` | `defineForm({ name: 'OBJECT.form', object, … })` in `forms:` | + | `defineView({ object, formViews: { KEY: { … } } })` | `defineForm({ name: 'OBJECT.KEY', object, … })` in `forms:` | + | `defineViewItem({ name: 'OBJECT.KEY', viewKind: 'form', config: { … } })` | `defineForm({ name: 'OBJECT.KEY', object, … })`, the `config` body at the top level | + | `translation.objects.OBJECT._views.KEY.title` / `.submitBehavior` | `translation.forms['OBJECT.KEY'].title` / `.submitBehavior` | + + The one-line fix: run `os migrate meta --from 18 --write` and apply by hand the edits it lists but cannot prove. The form keeps the name it is served under, so a `type: 'form'` action and a public link keep reaching it. Each old shape is refused with that prescription at `os validate`, at `defineStack` and at the metadata save door: a `view` save that carries `form`, `formViews` or `viewKind: 'form'` answers `422 INVALID_METADATA`, located at that key, and writes nothing. For API callers this changes one error code: a `view` save that carried a form at a public link another form already holds used to answer `FORM_ADDRESS_TAKEN`; it now answers `422 INVALID_METADATA` for the shape, and `FORM_ADDRESS_TAKEN` is answered by `form` saves. `GetUiViewResponse` loses its `form` and `formViews` members the same way; `getUiView` for `type: 'form'` answers the form scaffold `{ object, form }`, typed `GetUiViewFormScaffold`. + + **What a `view` read serves.** A `view` list serves lists only: it drops the form members of a stored old-shape container, a stored `viewKind: 'form'` row answers no item by name, and a `form` read serves no form out of a stored old-shape row. The stored rows are neither refused nor rewritten by a read: a stored old-shape container is served by name as stored, and saving that body back through the `view` door is refused (`422`), so no stored state is lost. The Console follows: the list switcher, the Studio view editor and the view preview handle lists only (a view created in Studio is a list), and a form is edited as a `form` item. + + **Stored forms: convert, then switch.** A deployment's stored forms in an old shape move only through `os migrate protocol --to 19 --apply --yes`, all or nothing, after `os migrate protocol --to 19` (and `os migrate stored-forms`) previewed what moves and whether the deployment can switch (see *Check stored forms before the next major* in the deployment docs). On protocol 19, `os serve` (and so `os dev` and `os start`) refuses to start, with `FORM_TYPE_SWITCH_REQUIRED`, on a database an earlier release created until that command has recorded the switch; its refusal names the command. A database with no stored form runs it once too and finds nothing to move. A database the server creates from empty is recorded as switched at its first start. No variable or flag skips the refusal. A row that holds the switch is listed with the action for its cause, taken on the release you are running. + + **Withdrawn public forms stay closed.** A public form an administrator switched off before the upgrade stays switched off after it, and so does a form that one package ships over another package's object when its withdrawal is stored for that package. `os migrate organization-ownership --apply` carries an organization's public-form withdrawal onto the `form` item a package ships at protocol 19, saved into that package's writable pair when the package itself is not writable; a withdrawal it cannot carry blocks the step and nothing is opened. + + **Until the switch, a stored old-shape form is not served.** On protocol 19 a form held only in a stored old-shape row (a container's `form` / `formViews` member, or a `viewKind: 'form'` row) answers `404` on the `form` and `view` doors, whoever asks, until `os migrate protocol --to 19 --apply --yes` has moved it; once moved, it is served as a `form` item under the same name and link. This includes a pre-19 stored copy of a package's form saved open, which protocol 18 served at its link: on protocol 19 it opens nothing until the ceremony moves it, including on a host that assembles its own kernel without the boot guard. A withdrawal stored in such a row keeps its form closed before and after the move. + + **Fixes.** A form save into a package's writable pair no longer hangs on SQLite when legacy organization rows exist: the read of those rows joins the save's own transaction instead of waiting for a second connection. `os migrate packageless-overlays` now says that a view container it cannot move is deleted only after `os migrate protocol --to 19 --apply` has moved its form members. + + **Validators follow the `form` type.** The form rules now judge `form` saves and `forms:` items, not `view`: `validateFormLayout`, `validatePublicFormFileFields`, `validateThankYouRecordFields`, `validateVisibilityPredicates` and `validatePredicatePathRefs` list `form` where they listed `view`. A `form` save is now refused for a public form's file field (`public-form-file-field`), a thank-you panel's record field (`thank-you-record-field`) and the visibility-predicate family, and a `form` save and read carry the advisories `form-field-unknown` and `form-section-group-unknown`. A `view` save keeps `validateStackExpressions`, `validatePresetComparands` and `validateReferenceIntegrity`; `view-key-collision` judges list views only. `GET /api/v1/meta/form/NAME` serves a package's declared `.custom` override of a form, as the `form` list does. + + **Removed exports** (FROM → TO): + + - `@objectstack/spec` (`@objectstack/spec/ui`): the `formOverlay` member of `VIEW_METADATA_MEMBERS`, the `'formOverlay'` entry of `VIEW_METADATA_BRANCHES` and that value of the type `ViewMetadataBranch` → none; a flat `viewKind: 'form'` body is read by `VIEW_METADATA_MEMBERS.listOverlay`, whose `viewKind` answers the prescription above, and `selectViewMetadataBranch` names `'listOverlay'` for it. + - `@objectstack/lint`: `validateInternalFormViews`, `FORM_VIEW_INTERNAL_NOT_LOADED` and `InternalFormViewFinding` → none; the rule `form-view-internal-not-loaded` is retired, so the author-time rule count `os validate` prints drops by one. Its successor, the advisory `form-consumer-less`, reports a `form` item with no public link that no `type: 'form'` action opens. + + **New exports:** `@objectstack/spec` `ServedViewItem`, `expandServedViewContainer` and `isServedViewItem` (a container expanded to the list items a `view` read serves), `GetUiViewFormScaffold`, and the error code `FORM_TYPE_SWITCH_REQUIRED`; `@objectstack/runtime` `FormTypeSwitchBootGuardPlugin`, `FormTypeSwitchBirthMarkerPlugin`, `FORM_TYPE_SWITCH_BOOT_REFUSAL_CODE`, `isFormTypeSwitchBootRefusal` and their companions. + + + +### Patch Changes + +- 1de73c0: feat(rest): the record page composite's approval lock says which approval holds the record (`lockSource`), as the lock doors do + + Clause-②: yes (widening: the record page composite's published `lock` gains `lockSource`) + Metadata-protocol: none + + Widened: `RecordPageApprovalsSchema`'s `lock` (the `approvals` part of `POST /data/:object/:id/page`) gains the optional member `lockSource: 'record' | 'master'`, present on a locked record only; `@object-ui/types`'s `RecordPagePayload.approvals.lock` gains the same optional `lockSource`. + + The record page's one read now answers its approval lock through the same projection as `GET /approvals/records/:object/:recordId/lock` and `POST /approvals/records/:object/locks`: `locked`, and on a locked record which approval holds it, `record` (its own) or `master` (the master of a master-detail line; it wins when both hold). A locked answer from a service that names no kind is still served `{ locked: true }` alone, and `null` still means the deployment answers no lock or the record is unreadable or missing. Before this, the composite served `{ locked }` only, so a record page could not tell a line held by its own approval, which may be deleted, from a line of a held master, whose delete the server refuses with `RECORD_LOCKED`. The Console's record page now hides Delete on `lockSource: 'master'`, as the grid's row menu does. +- 67d87f3: fix(console): a closed record's page reads as closed, not as in approval, from the page's one request + + Clause-②: no + Metadata-protocol: none + + The record page now reads the data layer's lock for its Edit and Delete, and words the reason from its `lockReason`. It asks for that lock in the request it already sends when it opens (`POST /api/v1/data/{object}/{id}/page` with `dataLock: true`), so opening a record page is still one request. It no longer asks the approvals lock read for these affordances; the approvals panel and the header's approval tag keep reading it. + + - A closed record (`lockReason: 'closed_state'`, its own state or its master's) shows Edit greyed with "This record is closed, so it can't be changed.", a "Closed" chip, and no Delete, for either `lockSource`. Its master-detail lines offer no New, Edit or Delete. A record that is closed and also held by an approval reads as closed. + - A record held by an approval behaves as before: its own approval keeps Delete, and a line of a held master does not. + - The answer is read above the caller's field permissions, so a reader who may not see the state field still gets the closed wording, and the page shows neither the field nor its value. + - When nothing on screen is a record page, the edit dialog opened over a list reads the record's lock through `GET /api/v1/data/{object}/{id}/lock` next to its approvals reads. The record page does the same when it re-reads after the record changes. Over its record page, the dialog reuses the page's answer and sends nothing. + - `RecordPagePayload` (`@object-ui/types`) declares the payload's `dataLock` part. + - New strings `detail.lockedClosed` and `detail.lockedClosedTooltip` in every console locale. +- 3dfffef: feat(spec): a navigation item declares search aliases, `keywords`, and a translation bundle gives them per locale + + Clause-②: yes (widening) + Metadata-protocol: added + + Setup pages are being renamed (#39050), so a page must still be found by its old name. Two optional keys carry that: + + - **`keywords: string[]` on every navigation item** except `separator` (it sits on the shared nav base, beside `label`). Source-language words a person may type to find the entry, such as its old name. Search only: never shown, never a route, never a gate. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, and an entry takes at most 20 (the dataset synonym's rule); anything else is refused, not trimmed. `synonyms`, `searchTerms` and `searchKeywords` are refused with "did you mean `keywords`", and so is `aliases`, except on a `group`, where it is answered with both keys it can mean there (`keywords`, or `renamedFrom` for retired group ids). A `separator` refuses `keywords` with its own prescription. + - **`keywords: string[]` on a translation bundle's navigation node**, beside `label`: `apps..navigation..keywords` gives this locale's aliases for the entry, keyed by the same entry id as the label, at both translation doors (the file bundle and the registered `translation` item), under the same rule as the item's. The node still owes its `label`, and an unknown key is still refused. + + The key is named `keywords`, not `aliases`, because `aliases` already means a retired-key rename map across the AI schemas. + + Nothing reads either key yet. The reader is the command palette (#39055), which will match a query against the aliases resolved for the current locale. Until then the key is graded `planned` on the liveness ledger (`navigation.children.keywords`), its describe carries `[PLANNED — not yet read]`, and authoring it raises no warning: an alias nothing reads costs a search hit, not a gate. + + The navigation contribution's `group` describe and example now name a current Setup group id, `group_integrations_dev`, instead of the retired `group_integrations`. + + `@object-ui/types` declares `keywords` on its navigation item mirror, so `objectui validate` keeps the key, under the spec's rule, instead of stripping it; nothing in the console reads it yet. `@object-ui/app-shell`'s nav editors count `keywords` among the describing keys, so changing an entry's type keeps them. + + No action needed for existing metadata: both keys are optional. +- cef9a80: feat(setup): Setup navigation gets ten group anchors; a nav group's `renamedFrom` keeps retired ids working + + Clause-②: yes (widening) + Metadata-protocol: added + + **New key: `renamedFrom` on a group nav item** (`GroupNavItemSchema`, optional, a list of nav ids). It names the group ids the group replaced. A `navigationContributions[]` entry whose `group` names one of them lands in that group instead of the app's top level. The merge looks for an exact group id first and reads `renamedFrom` only when none matches. The app's own parse refuses an entry that is the group's own id, repeats in the list, is an id another entry of the app still declares, or is claimed by a second group, and refuses the key on a group inside `areas[].navigation`, where no contribution is merged. Nothing changes for an app that does not write the key. `@objectstack/spec/ui` exports the check, `checkAppNavGroupRenamedFrom`, and `@object-ui/types`' `AppComponentSchema` chains it and accepts `renamedFrom` on a navigation item, so objectui's validator judges the key as the publish door does instead of dropping it. + + **New warning: `nav_contribution_group_renamed`.** A contribution that names a retired id is logged at `warn` by the runtime and reported by `os build` and `os validate` under its own headline. The message names the package, the retired id and the group that took it over; the fix is to change the contribution's `group` to the new id. It is not a relocation, so the published relocation surface keeps its contract: `NavContributionGroupDiagnostic`, `checkNavContributionGroups()` and `SchemaRegistry#getAppNavDiagnostics()` are unchanged and never carry it (a group id that resolves through `renamedFrom` is not reported there). `@objectstack/objectql` adds `checkNavContributionGroupRenames()` (the compile-time notices, `NavContributionGroupRenamedDiagnostic[]`), `resolveNavGroup()`, `navContributionGroupRenamedDiagnostic()`, `NAV_CONTRIBUTION_GROUP_RENAMED`, and the `NavContributionGroupRenamedDiagnostic` / `NavContributionGroupFinding` (either finding) / `NavGroupResolution` types; `findNavGroup()` now also finds a group through its `renamedFrom`, and `formatNavContributionGroupDiagnostic()` accepts either finding. + + **Setup's anchors.** The System Overview dashboard is pinned above the groups. The groups, in order: `group_users_org`, `group_access_sharing`, `group_apps_ai`, `group_routing_approvals`, `group_audit_data` (expanded), then `group_company`, `group_currency_units`, `group_notifications`, `group_login_security`, `group_integrations_dev` (collapsed), labelled in all 11 Setup locales. Each group that replaced an old anchor lists it in `renamedFrom`, so every existing contribution still lands in the right place, with the warning above. `group_overview` has no successor: a contribution still naming it is appended at the top level with the `nav_contribution_group_missing` warning, and it loses the `manage_platform_settings` gate that group carried. In this repository that is `@objectstack/mcp`'s "Connect an AI Assistant" entry (`nav_connect_agent`, no gate of its own): until its contribution moves to a new anchor it shows at Setup's top level to everyone who can open Setup, not only to holders of `manage_platform_settings`. The page itself was already open to every user through the Account app. + + **What a package author does.** If your package contributes into Setup, change `group` to the new id named in the warning: `group_people_org` → `group_users_org`, `group_access_control` → `group_access_sharing`, `group_apps` → `group_apps_ai`, `group_approvals` → `group_routing_approvals`, `group_diagnostics` → `group_audit_data`, `group_configuration` → `group_company`, `group_integrations` and `group_advanced` → `group_integrations_dev`. A translation bundle keyed by an old group id (`apps.setup.navigation.`) no longer labels anything; key it by the new id. +- b98173c: feat(console): a comments column on the list page, with the threads of the records the view shows + + Clause-②: yes (widening) — new optional members and exports only: `DataSource.queryCommentThreads` and the `CommentThreadsQueryRequest` / `CommentThreadsQueryResponse` types on `@object-ui/types`; `ListView`'s `onEffectiveFilterChange` host prop and the `ListEffectiveFilter` type on `@object-ui/plugin-list`; `ViewCommentsPanel`, `splitCommentMentions` and their types on `@object-ui/plugin-detail`; nothing removed or renamed + Metadata-protocol: none + + An object's list page now has a comments icon in its header, on a grid and on a board, where the object's discussion is on (`enable.feeds` not `false`). A press opens a 380 px column at the page's right and the list narrows to make room; ✕ or Esc closes it, and the browser remembers whether it was left open. + + The column lists the comment threads on the records the view shows, newest first: the view's saved filter together with the filters the reader has set on the list and not saved. The search box does not narrow it. The server runs the filter as the reader's own read, so someone who may read fewer records sees fewer threads. Each card names the record (which opens it the way a row does), who wrote the first comment and when, its text with mentions highlighted, and 「N 条回复」 with the latest repliers' faces; 「加载更多」 reads the next page. A card opens its thread in place, with reply, resolve and reopen, reactions, edit and delete as the record page offers them; there is no box for a new thread. The filter menu holds 「显示已解决」 (off) and 「只看我参与的」. The column reads again when the view, its filter or a toggle changes and when a comment is written, and reads nothing while closed. It says so when the reader may not read the comments, when the read failed (with a retry), when the list's filter cannot be sent, and when the server does not answer the threads read (`POST /api/v1/comments/threads/query`). + + For React hosts: `ObjectStackAdapter.queryCommentThreads(request)` calls that read; `ListView`'s `onEffectiveFilterChange` reports the filter the list applies, on every layout (`{ kind: 'filter', filter }`, or `{ kind: 'unlowerable' }` for a filter it cannot lower); `ViewCommentsPanel` draws the column from threads its host reads. +- Updated dependencies [be2df75] +- Updated dependencies [3c617a2] +- Updated dependencies [f42afe7] +- Updated dependencies [1de73c0] +- Updated dependencies [6f82fd0] +- Updated dependencies [7d6742a] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [440574f] +- Updated dependencies [7b68db9] +- Updated dependencies [9da8804] +- Updated dependencies [e542b7b] +- Updated dependencies [f13adae] +- Updated dependencies [8338d07] +- Updated dependencies [58695bb] +- Updated dependencies [5704d13] +- Updated dependencies [3872243] +- Updated dependencies [d7d4605] +- Updated dependencies [44d0f88] +- Updated dependencies [1095535] +- Updated dependencies [7f72b49] +- Updated dependencies [a294369] +- Updated dependencies [4374517] +- Updated dependencies [fb32a1c] +- Updated dependencies [84d209d] +- Updated dependencies [77d1564] +- Updated dependencies [3dfffef] +- Updated dependencies [cef9a80] +- Updated dependencies [f7c791f] +- Updated dependencies [0c45d66] +- Updated dependencies [b706ec6] +- Updated dependencies [1536c07] +- Updated dependencies [08255e0] +- Updated dependencies [a5e49ac] + - @objectstack/spec@19.0.0-next.4 + ## 19.0.0-next.3 ### Major Changes diff --git a/ui/packages/types/package.json b/ui/packages/types/package.json index 73a293fcaa7..1891f996006 100644 --- a/ui/packages/types/package.json +++ b/ui/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@object-ui/types", - "version": "19.0.0-next.3", + "version": "19.0.0-next.4", "description": "Pure TypeScript type definitions for ObjectUI - The Protocol Layer", "type": "module", "sideEffects": false,